3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.22 2005/01/11 01:34:47 hyc Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2005 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-2005 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
86 SLAPD Backend Options:"
88 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
90 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
92 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
94 --enable-ldap enable ldap backend no|yes|mod [no]"
96 --enable-ldbm enable ldbm backend no|yes|mod [no]"
98 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
100 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
102 --enable-meta enable metadirectory backend no|yes|mod [no]"
104 --enable-monitor enable monitor backend no|yes|mod [yes]"
106 --enable-null enable null backend no|yes|mod [no]"
108 --enable-passwd enable passwd backend no|yes|mod [no]"
110 --enable-perl enable perl backend no|yes|mod [no]"
112 --enable-shell enable shell backend no|yes|mod [no]"
114 --enable-sql enable sql backend no|yes|mod [no]"
117 SLAPD Overlay Options:"
119 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
121 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
124 SLURPD (Replication Daemon) Options:"
126 --enable-slurpd enable building slurpd [auto]"
129 Library Generation & Linking Options"
131 --enable-static[=PKGS] build static libraries [default=yes]"
133 --enable-shared[=PKGS] build shared libraries [default=yes]"
135 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
137 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
139 # Find the correct PATH separator. Usually this is `:', but
140 # DJGPP uses `;' like DOS.
141 if test "X${PATH_SEPARATOR+set}" != Xset; then
142 UNAME=${UNAME-`uname 2>/dev/null`}
144 *-DOS) lt_cv_sys_path_separator=';' ;;
145 *) lt_cv_sys_path_separator=':' ;;
147 PATH_SEPARATOR=$lt_cv_sys_path_separator
151 # Check that we are running under the correct shell.
152 SHELL=${CONFIG_SHELL-/bin/sh}
156 # Remove one level of quotation (which was required for Make).
157 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
162 if test "X$1" = X--no-reexec; then
163 # Discard the --no-reexec flag, and continue.
165 elif test "X$1" = X--fallback-echo; then
166 # Avoid inline document here, it may be left over
168 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
169 # Yippee, $echo works!
172 # Restart under the correct shell.
173 exec $SHELL "$0" --no-reexec ${1+"$@"}
176 if test "X$1" = X--fallback-echo; then
177 # used as fallback echo
185 # The HP-UX ksh and POSIX shell print the target directory to stdout
187 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
189 if test -z "$ECHO"; then
190 if test "X${echo_test_string+set}" != Xset; then
191 # find a string as large as possible, as long as the shell can cope with it
192 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
193 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
194 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
195 echo_test_string="`eval $cmd`" &&
196 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
203 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
204 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
205 test "X$echo_testing_string" = "X$echo_test_string"; then
208 # The Solaris, AIX, and Digital Unix default echo programs unquote
209 # backslashes. This makes it impossible to quote backslashes using
210 # echo "$something" | sed 's/\\/\\\\/g'
212 # So, first we look for a working echo in the user's PATH.
214 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
215 for dir in $PATH /usr/ucb; do
216 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
217 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
218 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
219 test "X$echo_testing_string" = "X$echo_test_string"; then
226 if test "X$echo" = Xecho; then
227 # We didn't find a better echo, so look for alternatives.
228 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
229 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
230 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # This shell has a builtin print -r that does the trick.
233 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
234 test "X$CONFIG_SHELL" != X/bin/ksh; then
235 # If we have ksh, try running configure again with it.
236 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
237 export ORIGINAL_CONFIG_SHELL
238 CONFIG_SHELL=/bin/ksh
240 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
244 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
245 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
246 test "X$echo_testing_string" = "X$echo_test_string"; then
249 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
250 test "X$echo_testing_string" = 'X\t' &&
251 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
252 test "X$echo_testing_string" = "X$echo_test_string"; then
253 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
255 SHELL="$CONFIG_SHELL"
257 echo="$CONFIG_SHELL $0 --fallback-echo"
258 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
259 test "X$echo_testing_string" = 'X\t' &&
260 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
261 test "X$echo_testing_string" = "X$echo_test_string"; then
262 echo="$CONFIG_SHELL $0 --fallback-echo"
264 # maybe with a smaller string...
267 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
268 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
275 if test "$prev" != 'sed 50q "$0"'; then
276 echo_test_string=`eval $prev`
277 export echo_test_string
278 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
280 # Oops. We lost completely, so just stick with echo.
289 # Copy echo and quote the copy suitably for passing to libtool from
290 # the Makefile, instead of quoting the original, which is used later.
292 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
293 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
298 --disable-libtool-lock avoid locking (might break parallel builds)"
300 --with-pic try to use only PIC/non-PIC objects [default=use both]"
303 See INSTALL file for further details."
305 # Initialize some variables set by options.
306 # The variables have the same names as the options, with
307 # dashes changed to underlines.
309 cache_file=./config.cache
318 program_transform_name=s,x,x,
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
339 # Initialize some other variables.
342 SHELL=${CONFIG_SHELL-/bin/sh}
343 # Maximum number of lines to put in a shell here document.
350 # If the previous option needs an argument, assign it.
351 if test -n "$ac_prev"; then
352 eval "$ac_prev=\$ac_option"
358 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
369 bindir="$ac_optarg" ;;
371 -build | --build | --buil | --bui | --bu)
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build="$ac_optarg" ;;
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file="$ac_optarg" ;;
383 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
385 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
387 datadir="$ac_optarg" ;;
389 -disable-* | --disable-*)
390 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
395 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
396 eval "enable_${ac_feature}=no" ;;
398 -enable-* | --enable-*)
399 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
404 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
409 eval "enable_${ac_feature}='$ac_optarg'" ;;
411 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
412 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
413 | --exec | --exe | --ex)
414 ac_prev=exec_prefix ;;
415 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
416 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
417 | --exec=* | --exe=* | --ex=*)
418 exec_prefix="$ac_optarg" ;;
420 -gas | --gas | --ga | --g)
421 # Obsolete; use --with-gas.
424 -help | --help | --hel | --he)
425 # Omit some internal or obsolete options to make the list less imposing.
426 # This message is too long to be a string in the A/UX 3.1 sh.
428 Usage: configure [options] [host]
429 Options: [defaults in brackets after descriptions]
431 --cache-file=FILE cache test results in FILE
432 --help print this message
433 --no-create do not create output files
434 --quiet, --silent do not print \`checking...' messages
435 --version print the version of autoconf that created configure
436 Directory and file names:
437 --prefix=PREFIX install architecture-independent files in PREFIX
439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
441 --bindir=DIR user executables in DIR [EPREFIX/bin]
442 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
443 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
444 --datadir=DIR read-only architecture-independent data in DIR
446 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
447 --sharedstatedir=DIR modifiable architecture-independent data in DIR
449 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
450 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
451 --includedir=DIR C header files in DIR [PREFIX/include]
452 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
453 --infodir=DIR info documentation in DIR [PREFIX/info]
454 --mandir=DIR man documentation in DIR [PREFIX/man]
455 --srcdir=DIR find the sources in DIR [configure dir or ..]
456 --program-prefix=PREFIX prepend PREFIX to installed program names
457 --program-suffix=SUFFIX append SUFFIX to installed program names
458 --program-transform-name=PROGRAM
459 run sed PROGRAM on installed program names
463 --build=BUILD configure for building on BUILD [BUILD=HOST]
464 --host=HOST configure for HOST [guessed]
465 --target=TARGET configure for TARGET [TARGET=HOST]
466 Features and packages:
467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
471 --x-includes=DIR X include files are in DIR
472 --x-libraries=DIR X library files are in DIR
474 if test -n "$ac_help"; then
475 echo "--enable and --with options recognized:$ac_help"
479 -host | --host | --hos | --ho)
481 -host=* | --host=* | --hos=* | --ho=*)
484 -includedir | --includedir | --includedi | --included | --include \
485 | --includ | --inclu | --incl | --inc)
486 ac_prev=includedir ;;
487 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
488 | --includ=* | --inclu=* | --incl=* | --inc=*)
489 includedir="$ac_optarg" ;;
491 -infodir | --infodir | --infodi | --infod | --info | --inf)
493 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
494 infodir="$ac_optarg" ;;
496 -libdir | --libdir | --libdi | --libd)
498 -libdir=* | --libdir=* | --libdi=* | --libd=*)
499 libdir="$ac_optarg" ;;
501 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
502 | --libexe | --libex | --libe)
503 ac_prev=libexecdir ;;
504 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
505 | --libexe=* | --libex=* | --libe=*)
506 libexecdir="$ac_optarg" ;;
508 -localstatedir | --localstatedir | --localstatedi | --localstated \
509 | --localstate | --localstat | --localsta | --localst \
510 | --locals | --local | --loca | --loc | --lo)
511 ac_prev=localstatedir ;;
512 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
513 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
514 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
515 localstatedir="$ac_optarg" ;;
517 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
519 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
520 mandir="$ac_optarg" ;;
523 # Obsolete; use --without-fp.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
530 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
531 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
534 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
535 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
536 | --oldin | --oldi | --old | --ol | --o)
537 ac_prev=oldincludedir ;;
538 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
539 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
540 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
541 oldincludedir="$ac_optarg" ;;
543 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
545 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
546 prefix="$ac_optarg" ;;
548 -program-prefix | --program-prefix | --program-prefi | --program-pref \
549 | --program-pre | --program-pr | --program-p)
550 ac_prev=program_prefix ;;
551 -program-prefix=* | --program-prefix=* | --program-prefi=* \
552 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
553 program_prefix="$ac_optarg" ;;
555 -program-suffix | --program-suffix | --program-suffi | --program-suff \
556 | --program-suf | --program-su | --program-s)
557 ac_prev=program_suffix ;;
558 -program-suffix=* | --program-suffix=* | --program-suffi=* \
559 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
560 program_suffix="$ac_optarg" ;;
562 -program-transform-name | --program-transform-name \
563 | --program-transform-nam | --program-transform-na \
564 | --program-transform-n | --program-transform- \
565 | --program-transform | --program-transfor \
566 | --program-transfo | --program-transf \
567 | --program-trans | --program-tran \
568 | --progr-tra | --program-tr | --program-t)
569 ac_prev=program_transform_name ;;
570 -program-transform-name=* | --program-transform-name=* \
571 | --program-transform-nam=* | --program-transform-na=* \
572 | --program-transform-n=* | --program-transform-=* \
573 | --program-transform=* | --program-transfor=* \
574 | --program-transfo=* | --program-transf=* \
575 | --program-trans=* | --program-tran=* \
576 | --progr-tra=* | --program-tr=* | --program-t=*)
577 program_transform_name="$ac_optarg" ;;
579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
580 | -silent | --silent | --silen | --sile | --sil)
583 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
585 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
587 sbindir="$ac_optarg" ;;
589 -sharedstatedir | --sharedstatedir | --sharedstatedi \
590 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
591 | --sharedst | --shareds | --shared | --share | --shar \
593 ac_prev=sharedstatedir ;;
594 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
595 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
596 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
598 sharedstatedir="$ac_optarg" ;;
600 -site | --site | --sit)
602 -site=* | --site=* | --sit=*)
605 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
607 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
608 srcdir="$ac_optarg" ;;
610 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
611 | --syscon | --sysco | --sysc | --sys | --sy)
612 ac_prev=sysconfdir ;;
613 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
614 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
615 sysconfdir="$ac_optarg" ;;
617 -target | --target | --targe | --targ | --tar | --ta | --t)
619 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
620 target="$ac_optarg" ;;
622 -v | -verbose | --verbose | --verbos | --verbo | --verb)
625 -version | --version | --versio | --versi | --vers)
626 echo "configure generated by autoconf version 2.13.1"
630 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
631 # Reject names that are not valid shell variable names.
632 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
633 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
635 ac_package=`echo $ac_package| sed 's/-/_/g'`
640 eval "with_${ac_package}='$ac_optarg'" ;;
642 -without-* | --without-*)
643 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
644 # Reject names that are not valid shell variable names.
645 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
646 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
648 ac_package=`echo $ac_package| sed 's/-/_/g'`
649 eval "with_${ac_package}=no" ;;
652 # Obsolete; use --with-x.
655 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
656 | --x-incl | --x-inc | --x-in | --x-i)
657 ac_prev=x_includes ;;
658 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
659 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
660 x_includes="$ac_optarg" ;;
662 -x-libraries | --x-libraries | --x-librarie | --x-librari \
663 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
664 ac_prev=x_libraries ;;
665 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
666 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
667 x_libraries="$ac_optarg" ;;
669 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
673 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
674 echo "configure: warning: $ac_option: invalid host type" 1>&2
676 if test "x$nonopt" != xNONE; then
677 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
685 if test -n "$ac_prev"; then
686 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
689 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
691 # File descriptor usage:
694 # 2 errors and warnings
695 # 3 some systems may open it to /dev/tty
696 # 4 used on the Kubota Titan
697 # 6 checking for... messages and results
698 # 5 compiler messages saved in config.log
699 if test "$silent" = yes; then
707 This file contains any messages produced by compilers while
708 running configure, to aid debugging if configure makes a mistake.
711 # Strip out --no-create and --no-recursion so they do not pile up.
712 # Also quote any args containing shell metacharacters.
717 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
718 | --no-cr | --no-c) ;;
719 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
720 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
721 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
722 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
723 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
728 # Only set these to C if already set. These must not be set unconditionally
729 # because not all systems understand e.g. LANG=C (notably SCO).
730 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
731 # Non-C LC_CTYPE values break the ctype check.
732 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
733 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
734 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
735 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
737 # confdefs.h avoids OS command line length limits that DEFS can exceed.
738 rm -rf conftest* confdefs.h
739 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
742 # A filename unique to this package, relative to the directory that
743 # configure is in, which we can look for to find out if srcdir is correct.
744 ac_unique_file=build/version.sh
746 # Find the source files, if location was not specified.
747 if test -z "$srcdir"; then
748 ac_srcdir_defaulted=yes
749 # Try the directory containing this script, then its parent.
751 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
752 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
754 if test ! -r $srcdir/$ac_unique_file; then
758 ac_srcdir_defaulted=no
760 if test ! -r $srcdir/$ac_unique_file; then
761 if test "$ac_srcdir_defaulted" = yes; then
762 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
764 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
767 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
769 # Prefer explicitly selected file to automatically selected ones.
770 if test -z "$CONFIG_SITE"; then
771 if test "x$prefix" != xNONE; then
772 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
774 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
777 for ac_site_file in $CONFIG_SITE; do
778 if test -r "$ac_site_file"; then
779 echo "loading site script $ac_site_file"
786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
787 ac_cpp='$CPP $CPPFLAGS'
788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
790 cross_compiling=$ac_cv_prog_cc_cross
794 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
795 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
796 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
803 ac_n= ac_c='\c' ac_t=
807 # set unset (borrowed from autoconf 2.49c)
808 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
814 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
817 for ac_dir in build $srcdir/build; do
818 if test -f $ac_dir/install-sh; then
820 ac_install_sh="$ac_aux_dir/install-sh -c"
822 elif test -f $ac_dir/install.sh; then
824 ac_install_sh="$ac_aux_dir/install.sh -c"
826 elif test -f $ac_dir/shtool; then
828 ac_install_sh="$ac_aux_dir/shtool install -c"
832 if test -z "$ac_aux_dir"; then
833 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
835 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
836 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
837 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
839 eval `$ac_aux_dir/version.sh`
840 if test -z "$OL_STRING"; then
841 { echo "configure: error: could not determine version" 1>&2; exit 1; }
844 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
845 ac_cv_shtool="$ac_aux_dir/shtool"
847 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
850 SHTOOL="$ac_cv_shtool"
852 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
853 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
856 if test -d $ac_aux_dir/CVS; then
857 OPENLDAP_CVS="(from CVS sources) "
860 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
863 echo $ac_n "checking host system type""... $ac_c" 1>&6
864 echo "configure:865: checking host system type" >&5
865 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
867 # Make sure we can run config.sub.
868 if $ac_config_sub sun4 >/dev/null 2>&1; then :
869 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
872 ac_cv_host_alias=$host
873 case "$ac_cv_host_alias" in
877 if ac_cv_host_alias=`$ac_config_guess`; then :
878 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
880 *) ac_cv_host_alias=$nonopt ;;
884 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
885 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
886 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
887 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889 echo $ac_n "(cached) $ac_c" 1>&6
892 echo "$ac_t""$ac_cv_host" 1>&6
895 host_alias=$ac_cv_host_alias
896 host_cpu=$ac_cv_host_cpu
897 host_vendor=$ac_cv_host_vendor
898 host_os=$ac_cv_host_os
904 echo $ac_n "checking target system type""... $ac_c" 1>&6
905 echo "configure:906: checking target system type" >&5
906 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
908 # Make sure we can run config.sub.
909 if $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 ac_cv_target_alias=$target
914 case "$ac_cv_target_alias" in
918 ac_cv_target_alias=$host_alias ;;
920 *) ac_cv_target_alias=$nonopt ;;
924 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
925 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
926 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
927 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
929 echo $ac_n "(cached) $ac_c" 1>&6
932 echo "$ac_t""$ac_cv_target" 1>&6
935 target_alias=$ac_cv_target_alias
936 target_cpu=$ac_cv_target_cpu
937 target_vendor=$ac_cv_target_vendor
938 target_os=$ac_cv_target_os
944 echo $ac_n "checking build system type""... $ac_c" 1>&6
945 echo "configure:946: checking build system type" >&5
946 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
948 # Make sure we can run config.sub.
949 if $ac_config_sub sun4 >/dev/null 2>&1; then :
950 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953 ac_cv_build_alias=$build
954 case "$ac_cv_build_alias" in
958 ac_cv_build_alias=$host_alias ;;
960 *) ac_cv_build_alias=$nonopt ;;
964 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
965 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
969 echo $ac_n "(cached) $ac_c" 1>&6
972 echo "$ac_t""$ac_cv_build" 1>&6
975 build_alias=$ac_cv_build_alias
976 build_cpu=$ac_cv_build_cpu
977 build_vendor=$ac_cv_build_vendor
978 build_os=$ac_cv_build_os
984 # Do some error checking and defaulting for the host and target type.
986 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
989 # 1. You are not allowed to specify --host, --target, and nonopt at the
991 # 2. Host defaults to nonopt.
992 # 3. If nonopt is not specified, then host defaults to the current host,
993 # as determined by config.guess.
994 # 4. Target and build default to nonopt.
995 # 5. If nonopt is not specified, then target and build default to host.
997 # The aliases save the names the user supplied, while $host etc.
998 # will get canonicalized.
999 case $host---$target---$nonopt in
1000 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1001 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1004 test "$host_alias" != "$target_alias" &&
1005 test "$program_prefix$program_suffix$program_transform_name" = \
1007 program_prefix=${target_alias}-
1010 # Find a good install program. We prefer a C program (faster),
1011 # so one script is as good as another. But avoid the broken or
1012 # incompatible versions:
1013 # SysV /etc/install, /usr/sbin/install
1014 # SunOS /usr/etc/install
1015 # IRIX /sbin/install
1017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1020 # ./install, which can be erroneously created by make from ./install.sh.
1021 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1022 echo "configure:1023: checking for a BSD compatible install" >&5
1023 if test -z "$INSTALL"; then
1024 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1028 for ac_dir in $PATH; do
1029 # Account for people who put trailing slashes in PATH elements.
1031 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1033 # OSF1 and SCO ODT 3.0 have their own names for install.
1034 # Don't use installbsd from OSF since it installs stuff as root
1036 for ac_prog in ginstall scoinst install; do
1037 if test -f $ac_dir/$ac_prog; then
1038 if test $ac_prog = install &&
1039 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1040 # AIX install. It has an incompatible calling convention.
1042 elif test $ac_prog = install &&
1043 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1044 # program-specific install script used by HP pwplus--don't use.
1047 ac_cv_path_install="$ac_dir/$ac_prog -c"
1058 if test "${ac_cv_path_install+set}" = set; then
1059 INSTALL="$ac_cv_path_install"
1061 # As a last resort, use the slow shell script. We don't cache a
1062 # path for INSTALL within a source directory, because that will
1063 # break other packages using the cache if that directory is
1064 # removed, or if the path is relative.
1065 INSTALL="$ac_install_sh"
1068 echo "$ac_t""$INSTALL" 1>&6
1070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1071 # It thinks the first close brace ends the variable substitution.
1072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1078 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1079 echo "configure:1080: checking whether build environment is sane" >&5
1082 echo timestamp > conftestfile
1083 # Do `set' in a subshell so we don't clobber the current shell's
1084 # arguments. Must try -L first in case configure is actually a
1085 # symlink; some systems play weird games with the mod time of symlinks
1086 # (eg FreeBSD returns the mod time of the symlink's containing
1089 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1090 if test "$*" = "X"; then
1092 set X `ls -t $srcdir/configure conftestfile`
1094 if test "$*" != "X $srcdir/configure conftestfile" \
1095 && test "$*" != "X conftestfile $srcdir/configure"; then
1097 # If neither matched, then we have a broken ls. This can happen
1098 # if, for instance, CONFIG_SHELL is bash and it inherits a
1099 # broken ls alias from the environment. This has actually
1100 # happened. Such a system could not be considered "sane".
1101 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1102 alias in your environment" 1>&2; exit 1; }
1105 test "$2" = conftestfile
1111 { echo "configure: error: newly created file is older than distributed files!
1112 Check your system clock" 1>&2; exit 1; }
1115 echo "$ac_t""yes" 1>&6
1116 if test "$program_transform_name" = s,x,x,; then
1117 program_transform_name=
1119 # Double any \ or $. echo might interpret backslashes.
1120 cat <<\EOF_SED > conftestsed
1121 s,\\,\\\\,g; s,\$,$$,g
1123 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1126 test "$program_prefix" != NONE &&
1127 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1128 # Use a double $ so make ignores it.
1129 test "$program_suffix" != NONE &&
1130 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1132 # sed with no file args requires a program.
1133 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1135 for ac_prog in mawk gawk nawk awk
1137 # Extract the first word of "$ac_prog", so it can be a program name with args.
1138 set dummy $ac_prog; ac_word=$2
1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140 echo "configure:1141: checking for $ac_word" >&5
1141 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 if test -n "$AWK"; then
1145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1149 for ac_dir in $ac_dummy; do
1150 test -z "$ac_dir" && ac_dir=.
1151 if test -f $ac_dir/$ac_word; then
1152 ac_cv_prog_AWK="$ac_prog"
1159 AWK="$ac_cv_prog_AWK"
1160 if test -n "$AWK"; then
1161 echo "$ac_t""$AWK" 1>&6
1163 echo "$ac_t""no" 1>&6
1166 test -n "$AWK" && break
1169 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether ${MAKE-make} sets \${MAKE}" >&5
1171 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1172 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 cat > conftestmake <<\EOF
1177 @echo 'ac_maketemp="${MAKE}"'
1179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1180 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1181 if test -n "$ac_maketemp"; then
1182 eval ac_cv_prog_make_${ac_make}_set=yes
1184 eval ac_cv_prog_make_${ac_make}_set=no
1188 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1189 echo "$ac_t""yes" 1>&6
1192 echo "$ac_t""no" 1>&6
1193 SET_MAKE="MAKE=${MAKE-make}"
1202 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1203 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1208 missing_dir=`cd $ac_aux_dir && pwd`
1209 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1210 echo "configure:1211: checking for working aclocal" >&5
1211 # Run test in a subshell; some versions of sh will print an error if
1212 # an executable is not found, even if stderr is redirected.
1213 # Redirect stdin to placate older versions of autoconf. Sigh.
1214 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1216 echo "$ac_t""found" 1>&6
1218 ACLOCAL="$missing_dir/missing aclocal"
1219 echo "$ac_t""missing" 1>&6
1222 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1223 echo "configure:1224: checking for working autoconf" >&5
1224 # Run test in a subshell; some versions of sh will print an error if
1225 # an executable is not found, even if stderr is redirected.
1226 # Redirect stdin to placate older versions of autoconf. Sigh.
1227 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1229 echo "$ac_t""found" 1>&6
1231 AUTOCONF="$missing_dir/missing autoconf"
1232 echo "$ac_t""missing" 1>&6
1235 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1236 echo "configure:1237: checking for working automake" >&5
1237 # Run test in a subshell; some versions of sh will print an error if
1238 # an executable is not found, even if stderr is redirected.
1239 # Redirect stdin to placate older versions of autoconf. Sigh.
1240 if (automake --version) < /dev/null > /dev/null 2>&1; then
1242 echo "$ac_t""found" 1>&6
1244 AUTOMAKE="$missing_dir/missing automake"
1245 echo "$ac_t""missing" 1>&6
1248 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1249 echo "configure:1250: checking for working autoheader" >&5
1250 # Run test in a subshell; some versions of sh will print an error if
1251 # an executable is not found, even if stderr is redirected.
1252 # Redirect stdin to placate older versions of autoconf. Sigh.
1253 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1254 AUTOHEADER=autoheader
1255 echo "$ac_t""found" 1>&6
1257 AUTOHEADER="$missing_dir/missing autoheader"
1258 echo "$ac_t""missing" 1>&6
1261 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working makeinfo" >&5
1263 # Run test in a subshell; some versions of sh will print an error if
1264 # an executable is not found, even if stderr is redirected.
1265 # Redirect stdin to placate older versions of autoconf. Sigh.
1266 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1268 echo "$ac_t""found" 1>&6
1270 MAKEINFO="$missing_dir/missing makeinfo"
1271 echo "$ac_t""missing" 1>&6
1274 install_sh="$missing_dir/install-sh"
1275 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1277 for ac_prog in gnutar gtar tar
1279 # Extract the first word of "$ac_prog", so it can be a program name with args.
1280 set dummy $ac_prog; ac_word=$2
1281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1282 echo "configure:1283: checking for $ac_word" >&5
1283 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 if test -n "$AMTAR"; then
1287 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 for ac_dir in $ac_dummy; do
1292 test -z "$ac_dir" && ac_dir=.
1293 if test -f $ac_dir/$ac_word; then
1294 ac_cv_prog_AMTAR="$ac_prog"
1301 AMTAR="$ac_cv_prog_AMTAR"
1302 if test -n "$AMTAR"; then
1303 echo "$ac_t""$AMTAR" 1>&6
1305 echo "$ac_t""no" 1>&6
1308 test -n "$AMTAR" && break
1313 if test -n "$AMTAR"; then
1314 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1319 cat >> confdefs.h <<EOF
1320 #define OPENLDAP_PACKAGE "$PACKAGE"
1323 cat >> confdefs.h <<EOF
1324 #define OPENLDAP_VERSION "$VERSION"
1328 cat >> confdefs.h <<EOF
1329 #define LDAP_VENDOR_VERSION $OL_API_INC
1332 cat >> confdefs.h <<EOF
1333 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1336 cat >> confdefs.h <<EOF
1337 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1345 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1347 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1349 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1353 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1354 echo "configure:1355: checking configure arguments" >&5
1359 ldap_subdir="/openldap"
1361 # Check whether --with-subdir or --without-subdir was given.
1362 if test "${with_subdir+set}" = set; then
1363 withval="$with_subdir"
1370 ldap_subdir="$withval"
1373 ldap_subdir="/$withval"
1380 # OpenLDAP --enable-debug
1381 # Check whether --enable-debug or --disable-debug was given.
1382 if test "${enable_debug+set}" = set; then
1383 enableval="$enable_debug"
1386 for ol_val in auto yes no ; do
1387 if test "$enableval" = "$ol_val" ; then
1391 if test "$ol_arg" = "invalid" ; then
1392 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1394 ol_enable_debug="$ol_arg"
1397 ol_enable_debug="yes"
1399 # end --enable-debug
1400 # OpenLDAP --enable-dynamic
1401 # Check whether --enable-dynamic or --disable-dynamic was given.
1402 if test "${enable_dynamic+set}" = set; then
1403 enableval="$enable_dynamic"
1406 for ol_val in auto yes no ; do
1407 if test "$enableval" = "$ol_val" ; then
1411 if test "$ol_arg" = "invalid" ; then
1412 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1414 ol_enable_dynamic="$ol_arg"
1417 ol_enable_dynamic="no"
1419 # end --enable-dynamic
1420 # OpenLDAP --enable-syslog
1421 # Check whether --enable-syslog or --disable-syslog was given.
1422 if test "${enable_syslog+set}" = set; then
1423 enableval="$enable_syslog"
1426 for ol_val in auto yes no ; do
1427 if test "$enableval" = "$ol_val" ; then
1431 if test "$ol_arg" = "invalid" ; then
1432 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1434 ol_enable_syslog="$ol_arg"
1437 ol_enable_syslog="auto"
1439 # end --enable-syslog
1440 # OpenLDAP --enable-proctitle
1441 # Check whether --enable-proctitle or --disable-proctitle was given.
1442 if test "${enable_proctitle+set}" = set; then
1443 enableval="$enable_proctitle"
1446 for ol_val in auto yes no ; do
1447 if test "$enableval" = "$ol_val" ; then
1451 if test "$ol_arg" = "invalid" ; then
1452 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1454 ol_enable_proctitle="$ol_arg"
1457 ol_enable_proctitle="yes"
1459 # end --enable-proctitle
1460 ol_enable_referrals=${ol_enable_referrals-no}
1461 ol_enable_kbind=${ol_enable_kbind-no}
1462 # OpenLDAP --enable-ipv6
1463 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1464 if test "${enable_ipv6+set}" = set; then
1465 enableval="$enable_ipv6"
1468 for ol_val in auto yes no ; do
1469 if test "$enableval" = "$ol_val" ; then
1473 if test "$ol_arg" = "invalid" ; then
1474 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1476 ol_enable_ipv6="$ol_arg"
1479 ol_enable_ipv6="auto"
1482 # OpenLDAP --enable-local
1483 # Check whether --enable-local or --disable-local was given.
1484 if test "${enable_local+set}" = set; then
1485 enableval="$enable_local"
1488 for ol_val in auto yes no ; do
1489 if test "$enableval" = "$ol_val" ; then
1493 if test "$ol_arg" = "invalid" ; then
1494 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1496 ol_enable_local="$ol_arg"
1499 ol_enable_local="auto"
1501 # end --enable-local
1504 # OpenLDAP --with-cyrus_sasl
1505 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1506 if test "${with_cyrus_sasl+set}" = set; then
1507 withval="$with_cyrus_sasl"
1510 for ol_val in auto yes no ; do
1511 if test "$withval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1518 ol_with_cyrus_sasl="$ol_arg"
1521 ol_with_cyrus_sasl="auto"
1523 # end --with-cyrus_sasl
1525 # OpenLDAP --with-fetch
1526 # Check whether --with-fetch or --without-fetch was given.
1527 if test "${with_fetch+set}" = set; then
1528 withval="$with_fetch"
1531 for ol_val in auto yes no ; do
1532 if test "$withval" = "$ol_val" ; then
1536 if test "$ol_arg" = "invalid" ; then
1537 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1539 ol_with_fetch="$ol_arg"
1542 ol_with_fetch="auto"
1546 ol_with_kerberos=${ol_with_kerberos-auto}
1547 # OpenLDAP --with-threads
1548 # Check whether --with-threads or --without-threads was given.
1549 if test "${with_threads+set}" = set; then
1550 withval="$with_threads"
1553 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1554 if test "$withval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1561 ol_with_threads="$ol_arg"
1564 ol_with_threads="auto"
1566 # end --with-threads
1568 # OpenLDAP --with-tls
1569 # Check whether --with-tls or --without-tls was given.
1570 if test "${with_tls+set}" = set; then
1574 for ol_val in auto ssleay openssl yes no ; do
1575 if test "$withval" = "$ol_val" ; then
1579 if test "$ol_arg" = "invalid" ; then
1580 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1582 ol_with_tls="$ol_arg"
1589 # OpenLDAP --with-yielding_select
1590 # Check whether --with-yielding_select or --without-yielding_select was given.
1591 if test "${with_yielding_select+set}" = set; then
1592 withval="$with_yielding_select"
1595 for ol_val in auto yes no manual ; do
1596 if test "$withval" = "$ol_val" ; then
1600 if test "$ol_arg" = "invalid" ; then
1601 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1603 ol_with_yielding_select="$ol_arg"
1606 ol_with_yielding_select="auto"
1608 # end --with-yielding_select
1612 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1613 if test "${with_xxslapdoptions+set}" = set; then
1614 withval="$with_xxslapdoptions"
1618 # OpenLDAP --enable-slapd
1619 # Check whether --enable-slapd or --disable-slapd was given.
1620 if test "${enable_slapd+set}" = set; then
1621 enableval="$enable_slapd"
1624 for ol_val in auto yes no ; do
1625 if test "$enableval" = "$ol_val" ; then
1629 if test "$ol_arg" = "invalid" ; then
1630 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1632 ol_enable_slapd="$ol_arg"
1635 ol_enable_slapd="yes"
1637 # end --enable-slapd
1638 # OpenLDAP --enable-aci
1639 # Check whether --enable-aci or --disable-aci was given.
1640 if test "${enable_aci+set}" = set; then
1641 enableval="$enable_aci"
1644 for ol_val in auto yes no ; do
1645 if test "$enableval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1652 ol_enable_aci="$ol_arg"
1658 # OpenLDAP --enable-cleartext
1659 # Check whether --enable-cleartext or --disable-cleartext was given.
1660 if test "${enable_cleartext+set}" = set; then
1661 enableval="$enable_cleartext"
1664 for ol_val in auto yes no ; do
1665 if test "$enableval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1672 ol_enable_cleartext="$ol_arg"
1675 ol_enable_cleartext="yes"
1677 # end --enable-cleartext
1678 # OpenLDAP --enable-crypt
1679 # Check whether --enable-crypt or --disable-crypt was given.
1680 if test "${enable_crypt+set}" = set; then
1681 enableval="$enable_crypt"
1684 for ol_val in auto yes no ; do
1685 if test "$enableval" = "$ol_val" ; then
1689 if test "$ol_arg" = "invalid" ; then
1690 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1692 ol_enable_crypt="$ol_arg"
1695 ol_enable_crypt="no"
1697 # end --enable-crypt
1698 # OpenLDAP --enable-lmpasswd
1699 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1700 if test "${enable_lmpasswd+set}" = set; then
1701 enableval="$enable_lmpasswd"
1704 for ol_val in auto yes no ; do
1705 if test "$enableval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1712 ol_enable_lmpasswd="$ol_arg"
1715 ol_enable_lmpasswd="no"
1717 # end --enable-lmpasswd
1718 # OpenLDAP --enable-spasswd
1719 # Check whether --enable-spasswd or --disable-spasswd was given.
1720 if test "${enable_spasswd+set}" = set; then
1721 enableval="$enable_spasswd"
1724 for ol_val in auto yes no ; do
1725 if test "$enableval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1732 ol_enable_spasswd="$ol_arg"
1735 ol_enable_spasswd="no"
1737 # end --enable-spasswd
1738 # OpenLDAP --enable-modules
1739 # Check whether --enable-modules or --disable-modules was given.
1740 if test "${enable_modules+set}" = set; then
1741 enableval="$enable_modules"
1744 for ol_val in auto yes no ; do
1745 if test "$enableval" = "$ol_val" ; then
1749 if test "$ol_arg" = "invalid" ; then
1750 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1752 ol_enable_modules="$ol_arg"
1755 ol_enable_modules="no"
1757 # end --enable-modules
1758 ol_enable_multimaster=${ol_enable_multimaster-no}
1759 # OpenLDAP --enable-rewrite
1760 # Check whether --enable-rewrite or --disable-rewrite was given.
1761 if test "${enable_rewrite+set}" = set; then
1762 enableval="$enable_rewrite"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1773 ol_enable_rewrite="$ol_arg"
1776 ol_enable_rewrite="auto"
1778 # end --enable-rewrite
1779 # OpenLDAP --enable-rlookups
1780 # Check whether --enable-rlookups or --disable-rlookups was given.
1781 if test "${enable_rlookups+set}" = set; then
1782 enableval="$enable_rlookups"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1793 ol_enable_rlookups="$ol_arg"
1796 ol_enable_rlookups="no"
1798 # end --enable-rlookups
1799 # OpenLDAP --enable-slapi
1800 # Check whether --enable-slapi or --disable-slapi was given.
1801 if test "${enable_slapi+set}" = set; then
1802 enableval="$enable_slapi"
1805 for ol_val in auto yes no ; do
1806 if test "$enableval" = "$ol_val" ; then
1810 if test "$ol_arg" = "invalid" ; then
1811 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1813 ol_enable_slapi="$ol_arg"
1816 ol_enable_slapi="no"
1818 # end --enable-slapi
1819 # OpenLDAP --enable-slp
1820 # Check whether --enable-slp or --disable-slp was given.
1821 if test "${enable_slp+set}" = set; then
1822 enableval="$enable_slp"
1825 for ol_val in auto yes no ; do
1826 if test "$enableval" = "$ol_val" ; then
1830 if test "$ol_arg" = "invalid" ; then
1831 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1833 ol_enable_slp="$ol_arg"
1839 # OpenLDAP --enable-wrappers
1840 # Check whether --enable-wrappers or --disable-wrappers was given.
1841 if test "${enable_wrappers+set}" = set; then
1842 enableval="$enable_wrappers"
1845 for ol_val in auto yes no ; do
1846 if test "$enableval" = "$ol_val" ; then
1850 if test "$ol_arg" = "invalid" ; then
1851 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1853 ol_enable_wrappers="$ol_arg"
1856 ol_enable_wrappers="no"
1858 # end --enable-wrappers
1860 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1861 passwd perl shell sql"
1863 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
1864 if test "${with_xxslapoverlays+set}" = set; then
1865 withval="$with_xxslapoverlays"
1870 # OpenLDAP --enable-bdb
1871 # Check whether --enable-bdb or --disable-bdb was given.
1872 if test "${enable_bdb+set}" = set; then
1873 enableval="$enable_bdb"
1876 for ol_val in no yes mod ; do
1877 if test "$enableval" = "$ol_val" ; then
1881 if test "$ol_arg" = "invalid" ; then
1882 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1884 ol_enable_bdb="$ol_arg"
1890 # OpenLDAP --enable-dnssrv
1891 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1892 if test "${enable_dnssrv+set}" = set; then
1893 enableval="$enable_dnssrv"
1896 for ol_val in no yes mod ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1904 ol_enable_dnssrv="$ol_arg"
1907 ol_enable_dnssrv="no"
1909 # end --enable-dnssrv
1910 # OpenLDAP --enable-hdb
1911 # Check whether --enable-hdb or --disable-hdb was given.
1912 if test "${enable_hdb+set}" = set; then
1913 enableval="$enable_hdb"
1916 for ol_val in no yes mod ; do
1917 if test "$enableval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1924 ol_enable_hdb="$ol_arg"
1930 # OpenLDAP --enable-ldap
1931 # Check whether --enable-ldap or --disable-ldap was given.
1932 if test "${enable_ldap+set}" = set; then
1933 enableval="$enable_ldap"
1936 for ol_val in no yes mod ; do
1937 if test "$enableval" = "$ol_val" ; then
1941 if test "$ol_arg" = "invalid" ; then
1942 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1944 ol_enable_ldap="$ol_arg"
1950 # OpenLDAP --enable-ldbm
1951 # Check whether --enable-ldbm or --disable-ldbm was given.
1952 if test "${enable_ldbm+set}" = set; then
1953 enableval="$enable_ldbm"
1956 for ol_val in no yes mod ; do
1957 if test "$enableval" = "$ol_val" ; then
1961 if test "$ol_arg" = "invalid" ; then
1962 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1964 ol_enable_ldbm="$ol_arg"
1970 # OpenLDAP --with-ldbm_api
1971 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1972 if test "${with_ldbm_api+set}" = set; then
1973 withval="$with_ldbm_api"
1976 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1977 if test "$withval" = "$ol_val" ; then
1981 if test "$ol_arg" = "invalid" ; then
1982 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1984 ol_with_ldbm_api="$ol_arg"
1987 ol_with_ldbm_api="auto"
1989 # end --with-ldbm_api
1991 # OpenLDAP --with-ldbm_type
1992 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1993 if test "${with_ldbm_type+set}" = set; then
1994 withval="$with_ldbm_type"
1997 for ol_val in auto btree hash ; do
1998 if test "$withval" = "$ol_val" ; then
2002 if test "$ol_arg" = "invalid" ; then
2003 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2005 ol_with_ldbm_type="$ol_arg"
2008 ol_with_ldbm_type="auto"
2010 # end --with-ldbm_type
2012 # OpenLDAP --enable-meta
2013 # Check whether --enable-meta or --disable-meta was given.
2014 if test "${enable_meta+set}" = set; then
2015 enableval="$enable_meta"
2018 for ol_val in no yes mod ; do
2019 if test "$enableval" = "$ol_val" ; then
2023 if test "$ol_arg" = "invalid" ; then
2024 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2026 ol_enable_meta="$ol_arg"
2032 # OpenLDAP --enable-monitor
2033 # Check whether --enable-monitor or --disable-monitor was given.
2034 if test "${enable_monitor+set}" = set; then
2035 enableval="$enable_monitor"
2038 for ol_val in no yes mod ; do
2039 if test "$enableval" = "$ol_val" ; then
2043 if test "$ol_arg" = "invalid" ; then
2044 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2046 ol_enable_monitor="$ol_arg"
2049 ol_enable_monitor="yes"
2051 # end --enable-monitor
2052 # OpenLDAP --enable-null
2053 # Check whether --enable-null or --disable-null was given.
2054 if test "${enable_null+set}" = set; then
2055 enableval="$enable_null"
2058 for ol_val in no yes mod ; do
2059 if test "$enableval" = "$ol_val" ; then
2063 if test "$ol_arg" = "invalid" ; then
2064 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2066 ol_enable_null="$ol_arg"
2072 # OpenLDAP --enable-passwd
2073 # Check whether --enable-passwd or --disable-passwd was given.
2074 if test "${enable_passwd+set}" = set; then
2075 enableval="$enable_passwd"
2078 for ol_val in no yes mod ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2086 ol_enable_passwd="$ol_arg"
2089 ol_enable_passwd="no"
2091 # end --enable-passwd
2092 # OpenLDAP --enable-perl
2093 # Check whether --enable-perl or --disable-perl was given.
2094 if test "${enable_perl+set}" = set; then
2095 enableval="$enable_perl"
2098 for ol_val in no yes mod ; do
2099 if test "$enableval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2106 ol_enable_perl="$ol_arg"
2112 # OpenLDAP --enable-shell
2113 # Check whether --enable-shell or --disable-shell was given.
2114 if test "${enable_shell+set}" = set; then
2115 enableval="$enable_shell"
2118 for ol_val in no yes mod ; do
2119 if test "$enableval" = "$ol_val" ; then
2123 if test "$ol_arg" = "invalid" ; then
2124 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2126 ol_enable_shell="$ol_arg"
2129 ol_enable_shell="no"
2131 # end --enable-shell
2132 # OpenLDAP --enable-sql
2133 # Check whether --enable-sql or --disable-sql was given.
2134 if test "${enable_sql+set}" = set; then
2135 enableval="$enable_sql"
2138 for ol_val in no yes mod ; do
2139 if test "$enableval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2146 ol_enable_sql="$ol_arg"
2153 Overlays="dyngroup proxycache"
2155 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2156 if test "${with_xxslapoverlays+set}" = set; then
2157 withval="$with_xxslapoverlays"
2162 # OpenLDAP --enable-dyngroup
2163 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2164 if test "${enable_dyngroup+set}" = set; then
2165 enableval="$enable_dyngroup"
2168 for ol_val in no yes mod ; do
2169 if test "$enableval" = "$ol_val" ; then
2173 if test "$ol_arg" = "invalid" ; then
2174 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2176 ol_enable_dyngroup="$ol_arg"
2179 ol_enable_dyngroup="no"
2181 # end --enable-dyngroup
2183 # OpenLDAP --enable-proxycache
2184 # Check whether --enable-proxycache or --disable-proxycache was given.
2185 if test "${enable_proxycache+set}" = set; then
2186 enableval="$enable_proxycache"
2189 for ol_val in no yes mod ; do
2190 if test "$enableval" = "$ol_val" ; then
2194 if test "$ol_arg" = "invalid" ; then
2195 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2197 ol_enable_proxycache="$ol_arg"
2200 ol_enable_proxycache="no"
2202 # end --enable-proxycache
2205 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2206 if test "${with_xxslurpdoptions+set}" = set; then
2207 withval="$with_xxslurpdoptions"
2211 # OpenLDAP --enable-slurpd
2212 # Check whether --enable-slurpd or --disable-slurpd was given.
2213 if test "${enable_slurpd+set}" = set; then
2214 enableval="$enable_slurpd"
2217 for ol_val in auto yes no ; do
2218 if test "$enableval" = "$ol_val" ; then
2222 if test "$ol_arg" = "invalid" ; then
2223 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2225 ol_enable_slurpd="$ol_arg"
2228 ol_enable_slurpd="auto"
2230 # end --enable-slurpd
2232 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2233 if test "${with_xxliboptions+set}" = set; then
2234 withval="$with_xxliboptions"
2238 # Check whether --enable-static or --disable-static was given.
2239 if test "${enable_static+set}" = set; then
2240 enableval="$enable_static"
2241 p=${PACKAGE-default}
2243 yes) enable_static=yes ;;
2244 no) enable_static=no ;;
2247 # Look at the argument we got. We use all the common list separators.
2248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2249 for pkg in $enableval; do
2250 if test "X$pkg" = "X$p"; then
2261 # Check whether --enable-shared or --disable-shared was given.
2262 if test "${enable_shared+set}" = set; then
2263 enableval="$enable_shared"
2264 p=${PACKAGE-default}
2266 yes) enable_shared=yes ;;
2267 no) enable_shared=no ;;
2270 # Look at the argument we got. We use all the common list separators.
2271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2272 for pkg in $enableval; do
2273 if test "X$pkg" = "X$p"; then
2287 if test $ol_enable_slapd = no ; then
2288 if test $ol_enable_slapi = yes ; then
2289 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2291 for i in $Backends; do
2292 eval "ol_tmp=\$ol_enable_$i"
2293 if test $ol_tmp != no ; then
2294 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2295 eval "ol_enable_$i=no"
2298 if test $ol_enable_modules = yes ; then
2299 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2301 if test $ol_enable_multimaster = yes ; then
2302 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2304 if test $ol_enable_wrappers = yes ; then
2305 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2307 if test $ol_enable_rlookups = yes ; then
2308 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2310 if test $ol_enable_aci = yes ; then
2311 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2313 if test $ol_with_ldbm_api != auto ; then
2314 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2316 if test $ol_with_ldbm_type != auto ; then
2317 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2319 if test $ol_enable_slurpd = yes ; then
2320 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2322 if test $ol_enable_rewrite = yes ; then
2323 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2325 for i in $Overlays; do
2326 eval "ol_tmp=\$ol_enable_$i"
2327 if test $ol_tmp != no ; then
2328 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2329 eval "ol_enable_$i=no"
2333 # force settings to no
2336 ol_enable_modules=no
2337 ol_enable_multimaster=no
2338 ol_enable_rlookups=no
2340 ol_enable_wrappers=no
2343 ol_with_ldbm_type=no
2347 ol_enable_rewrite=no
2349 elif test $ol_enable_ldbm = no ; then
2351 if test $ol_with_ldbm_api != auto ; then
2352 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2355 if test $ol_with_ldbm_type != auto ; then
2356 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2359 if test $ol_enable_modules != yes -a \
2360 $ol_enable_bdb = no -a \
2361 $ol_enable_dnssrv = no -a \
2362 $ol_enable_hdb = no -a \
2363 $ol_enable_ldap = no -a \
2364 $ol_enable_meta = no -a \
2365 $ol_enable_monitor = no -a \
2366 $ol_enable_null = no -a \
2367 $ol_enable_passwd = no -a \
2368 $ol_enable_perl = no -a \
2369 $ol_enable_shell = no -a \
2370 $ol_enable_sql = no ; then
2372 if test $ol_enable_slapd = yes ; then
2373 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2375 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2381 ol_with_ldbm_type=no
2383 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2384 ol_with_ldbm_api=berkeley
2388 if test $ol_with_ldbm_api = gdbm -a \
2389 $ol_with_ldbm_type = btree ; then
2390 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2392 if test $ol_with_ldbm_api = mdbm -a \
2393 $ol_with_ldbm_type = btree ; then
2394 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2396 if test $ol_with_ldbm_api = ndbm -a \
2397 $ol_with_ldbm_type = btree ; then
2398 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2401 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2402 if test $ol_with_ldbm_api = auto ; then
2403 ol_with_ldbm_api=berkeley
2404 elif test $ol_with_ldbm_api != berkeley ; then
2405 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2410 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2411 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2414 if test $ol_enable_slurpd = yes ; then
2415 if test $ol_with_threads = no ; then
2416 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2420 if test $ol_enable_lmpasswd = yes ; then
2421 if test $ol_with_tls = no ; then
2422 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2426 if test $ol_enable_kbind = yes ; then
2427 if test $ol_with_kerberos = no ; then
2428 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2429 elif test $ol_with_kerberos = auto ; then
2430 ol_with_kerberos=yes
2433 elif test $ol_enable_kbind = no ; then
2434 if test $ol_with_kerberos = auto ; then
2436 elif test $ol_with_kerberos != no ; then
2437 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2442 if test $ol_enable_spasswd = yes ; then
2443 if test $ol_with_cyrus_sasl = no ; then
2444 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2446 ol_with_cyrus_sasl=yes
2449 echo "$ac_t""done" 1>&6
2483 SLAPD_DYNAMIC_OVERLAYS=
2485 SLAPD_MODULES_LDFLAGS=
2486 SLAPD_MODULES_CPPFLAGS=
2488 SLAPD_STATIC_BACKENDS=
2489 SLAPD_DYNAMIC_BACKENDS=
2512 # Find a good install program. We prefer a C program (faster),
2513 # so one script is as good as another. But avoid the broken or
2514 # incompatible versions:
2515 # SysV /etc/install, /usr/sbin/install
2516 # SunOS /usr/etc/install
2517 # IRIX /sbin/install
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # ./install, which can be erroneously created by make from ./install.sh.
2523 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2524 echo "configure:2525: checking for a BSD compatible install" >&5
2525 if test -z "$INSTALL"; then
2526 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2530 for ac_dir in $PATH; do
2531 # Account for people who put trailing slashes in PATH elements.
2533 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2535 # OSF1 and SCO ODT 3.0 have their own names for install.
2536 # Don't use installbsd from OSF since it installs stuff as root
2538 for ac_prog in ginstall scoinst install; do
2539 if test -f $ac_dir/$ac_prog; then
2540 if test $ac_prog = install &&
2541 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2542 # AIX install. It has an incompatible calling convention.
2544 elif test $ac_prog = install &&
2545 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2546 # program-specific install script used by HP pwplus--don't use.
2549 ac_cv_path_install="$ac_dir/$ac_prog -c"
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL="$ac_cv_path_install"
2563 # As a last resort, use the slow shell script. We don't cache a
2564 # path for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the path is relative.
2567 INSTALL="$ac_install_sh"
2570 echo "$ac_t""$INSTALL" 1>&6
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581 cat >> confdefs.h <<\EOF
2582 #define HAVE_MKVERSION 1
2590 *-*-aix*) if test -z "$CC" ; then
2591 case "$ol_with_threads" in
2592 auto | yes | posix) ol_aix_threads=yes ;;
2598 if test $ol_aix_threads = yes ; then
2599 if test -z "${CC}" ; then
2600 for ac_prog in cc_r xlc_r cc
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2605 echo "configure:2606: checking for $ac_word" >&5
2606 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2614 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 if test -f $ac_dir/$ac_word; then
2617 ac_cv_prog_CC="$ac_prog"
2625 if test -n "$CC"; then
2626 echo "$ac_t""$CC" 1>&6
2628 echo "$ac_t""no" 1>&6
2631 test -n "$CC" && break
2635 if test "$CC" = cc ; then
2636 if test $ol_with_threads != auto ; then
2637 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2639 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2645 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2646 ol_with_threads=posix
2647 ol_cv_pthread_create=yes
2651 if test -z "${CC}"; then
2652 for ac_prog in cc gcc
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_word" >&5
2658 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2666 for ac_dir in $ac_dummy; do
2667 test -z "$ac_dir" && ac_dir=.
2668 if test -f $ac_dir/$ac_word; then
2669 ac_cv_prog_CC="$ac_prog"
2677 if test -n "$CC"; then
2678 echo "$ac_t""$CC" 1>&6
2680 echo "$ac_t""no" 1>&6
2683 test -n "$CC" && break
2685 test -n "$CC" || CC="missing"
2688 if test "${CC}" = "missing" ; then
2689 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2693 if test -z "${AR}"; then
2694 for ac_prog in ar gar
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_word" >&5
2700 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 if test -n "$AR"; then
2704 ac_cv_prog_AR="$AR" # Let the user override the test.
2706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2708 for ac_dir in $ac_dummy; do
2709 test -z "$ac_dir" && ac_dir=.
2710 if test -f $ac_dir/$ac_word; then
2711 ac_cv_prog_AR="$ac_prog"
2719 if test -n "$AR"; then
2720 echo "$ac_t""$AR" 1>&6
2722 echo "$ac_t""no" 1>&6
2725 test -n "$AR" && break
2727 test -n "$AR" || AR="missing"
2730 if test "${AR}" = "missing" ; then
2731 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2737 # Find the correct PATH separator. Usually this is `:', but
2738 # DJGPP uses `;' like DOS.
2739 if test "X${PATH_SEPARATOR+set}" != Xset; then
2740 UNAME=${UNAME-`uname 2>/dev/null`}
2742 *-DOS) lt_cv_sys_path_separator=';' ;;
2743 *) lt_cv_sys_path_separator=':' ;;
2745 PATH_SEPARATOR=$lt_cv_sys_path_separator
2748 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2749 echo "configure:2750: checking for Cygwin environment" >&5
2750 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2760 #define __CYGWIN__ __CYGWIN32__
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2777 echo "$ac_t""$ac_cv_cygwin" 1>&6
2779 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2780 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2781 echo "configure:2782: checking for mingw32 environment" >&5
2782 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2793 if { (eval echo configure:2794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2805 echo "$ac_t""$ac_cv_mingw32" 1>&6
2807 test "$ac_cv_mingw32" = yes && MINGW32=yes
2808 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2809 echo "configure:2810: checking for EMX OS/2 environment" >&5
2810 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2821 if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2833 echo "$ac_t""$ac_cv_emxos2" 1>&6
2835 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2836 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2837 echo "configure:2838: checking how to run the C preprocessor" >&5
2838 # On Suns, sometimes $CPP names a directory.
2839 if test -n "$CPP" && test -d "$CPP"; then
2842 if test -z "$CPP"; then
2843 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 # This must be in double quotes, not single quotes, because CPP may get
2847 # substituted into the Makefile and "${CC-cc}" will confuse make.
2849 # On the NeXT, cc -E runs the code through the compiler's parser,
2850 # not just through cpp.
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2858 { (eval echo configure:2859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2860 if test -z "$ac_err"; then
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 CPP="${CC-cc} -E -traditional-cpp"
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2875 { (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2877 if test -z "$ac_err"; then
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2884 CPP="${CC-cc} -nologo -E"
2885 cat > conftest.$ac_ext <<EOF
2886 #line 2887 "configure"
2887 #include "confdefs.h"
2891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2892 { (eval echo configure:2893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2894 if test -z "$ac_err"; then
2898 echo "configure: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2908 ac_cv_prog_CPP="$CPP"
2910 CPP="$ac_cv_prog_CPP"
2912 ac_cv_prog_CPP="$CPP"
2914 echo "$ac_t""$CPP" 1>&6
2916 # Check whether --enable-fast-install or --disable-fast-install was given.
2917 if test "${enable_fast_install+set}" = set; then
2918 enableval="$enable_fast_install"
2919 p=${PACKAGE-default}
2921 yes) enable_fast_install=yes ;;
2922 no) enable_fast_install=no ;;
2924 enable_fast_install=no
2925 # Look at the argument we got. We use all the common list separators.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2927 for pkg in $enableval; do
2928 if test "X$pkg" = "X$p"; then
2929 enable_fast_install=yes
2936 enable_fast_install=yes
2939 # Extract the first word of "gcc", so it can be a program name with args.
2940 set dummy gcc; ac_word=$2
2941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2942 echo "configure:2943: checking for $ac_word" >&5
2943 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2951 for ac_dir in $ac_dummy; do
2952 test -z "$ac_dir" && ac_dir=.
2953 if test -f $ac_dir/$ac_word; then
2962 if test -n "$CC"; then
2963 echo "$ac_t""$CC" 1>&6
2965 echo "$ac_t""no" 1>&6
2968 if test -z "$CC"; then
2969 # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2972 echo "configure:2973: checking for $ac_word" >&5
2973 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2982 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 if test -f $ac_dir/$ac_word; then
2985 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2986 ac_prog_rejected=yes
2994 if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2998 if test $# -gt 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3003 set dummy "$ac_dir/$ac_word" "$@"
3011 if test -n "$CC"; then
3012 echo "$ac_t""$CC" 1>&6
3014 echo "$ac_t""no" 1>&6
3017 if test -z "$CC"; then
3018 case "`uname -s`" in
3019 *win32* | *WIN32* | *CYGWIN*)
3020 # Extract the first word of "cl", so it can be a program name with args.
3021 set dummy cl; ac_word=$2
3022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_word" >&5
3024 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3032 for ac_dir in $ac_dummy; do
3033 test -z "$ac_dir" && ac_dir=.
3034 if test -f $ac_dir/$ac_word; then
3043 if test -n "$CC"; then
3044 echo "$ac_t""$CC" 1>&6
3046 echo "$ac_t""no" 1>&6
3051 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3054 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3055 echo "configure:3056: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3059 ac_cpp='$CPP $CPPFLAGS'
3060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3062 cross_compiling=$ac_cv_prog_cc_cross
3064 cat > conftest.$ac_ext << EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3072 ac_cv_prog_cc_works=yes
3073 # If we can't run a trivial program, we are probably using a cross compiler.
3074 if (./conftest; exit) 2>/dev/null; then
3075 ac_cv_prog_cc_cross=no
3077 ac_cv_prog_cc_cross=yes
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3082 ac_cv_prog_cc_works=no
3086 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3089 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3090 cross_compiling=$ac_cv_prog_cc_cross
3092 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3093 if test $ac_cv_prog_cc_works = no; then
3094 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3096 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3097 echo "configure:3098: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3098 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3099 cross_compiling=$ac_cv_prog_cc_cross
3101 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3102 echo "configure:3103: checking whether we are using GNU C" >&5
3103 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.c <<EOF
3111 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3118 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3120 if test $ac_cv_prog_gcc = yes; then
3126 ac_test_CFLAGS="${CFLAGS+set}"
3127 ac_save_CFLAGS="$CFLAGS"
3129 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3130 echo "configure:3131: checking whether ${CC-cc} accepts -g" >&5
3131 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 echo 'void f(){}' > conftest.c
3135 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3144 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3145 if test "$ac_test_CFLAGS" = set; then
3146 CFLAGS="$ac_save_CFLAGS"
3147 elif test $ac_cv_prog_cc_g = yes; then
3148 if test "$GCC" = yes; then
3154 if test "$GCC" = yes; then
3161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3162 if test "${with_gnu_ld+set}" = set; then
3163 withval="$with_gnu_ld"
3164 test "$withval" = no || with_gnu_ld=yes
3170 if test "$GCC" = yes; then
3171 # Check if gcc -print-prog-name=ld gives a path.
3172 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3173 echo "configure:3174: checking for ld used by GCC" >&5
3176 # gcc leaves a trailing carriage return which upsets mingw
3177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3182 # Accept absolute paths.
3183 [\\/]* | [A-Za-z]:[\\/]*)
3184 re_direlt='/[^/][^/]*/\.\./'
3185 # Canonicalize the path of ld
3186 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3187 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3188 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3190 test -z "$LD" && LD="$ac_prog"
3193 # If it fails, then pretend we aren't using GCC.
3197 # If it is relative, then search for the first ld in PATH.
3201 elif test "$with_gnu_ld" = yes; then
3202 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3203 echo "configure:3204: checking for GNU ld" >&5
3205 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3206 echo "configure:3207: checking for non-GNU ld" >&5
3208 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -z "$LD"; then
3212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3213 for ac_dir in $PATH; do
3214 test -z "$ac_dir" && ac_dir=.
3215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3216 lt_cv_path_LD="$ac_dir/$ac_prog"
3217 # Check to see if the program is GNU ld. I'd rather use --version,
3218 # but apparently some GNU ld's only accept -v.
3219 # Break only if it was the GNU/non-GNU ld that we prefer.
3220 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3221 test "$with_gnu_ld" != no && break
3223 test "$with_gnu_ld" != yes && break
3229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3234 if test -n "$LD"; then
3235 echo "$ac_t""$LD" 1>&6
3237 echo "$ac_t""no" 1>&6
3239 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3240 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3241 echo "configure:3242: checking if the linker ($LD) is GNU ld" >&5
3242 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3246 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3247 lt_cv_prog_gnu_ld=yes
3249 lt_cv_prog_gnu_ld=no
3253 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3254 with_gnu_ld=$lt_cv_prog_gnu_ld
3257 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $LD option to reload object files" >&5
3259 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 lt_cv_ld_reload_flag='-r'
3265 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3266 reload_flag=$lt_cv_ld_reload_flag
3267 test -n "$reload_flag" && reload_flag=" $reload_flag"
3269 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3270 echo "configure:3271: checking for BSD-compatible nm" >&5
3271 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 if test -n "$NM"; then
3275 # Let the user override the test.
3278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3279 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3280 test -z "$ac_dir" && ac_dir=.
3281 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3282 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3283 # Check to see if the nm accepts a BSD-compat flag.
3284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3285 # nm: unknown option "B" ignored
3286 # Tru64's nm complains that /dev/null is an invalid object file
3287 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3288 lt_cv_path_NM="$tmp_nm -B"
3290 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3291 lt_cv_path_NM="$tmp_nm -p"
3294 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3295 continue # so that we can try to find one that supports BSD flags
3300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3305 echo "$ac_t""$NM" 1>&6
3307 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3308 echo "configure:3309: checking for a sed that does not truncate output" >&5
3309 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 # Loop through the user's path and test for sed and gsed.
3313 # Then use that list of sed's as ones to test for truncation.
3314 as_executable_p="test -f"
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_prog in sed gsed; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3323 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3329 # Create a temporary directory, and hook for its removal unless debugging.
3332 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3333 trap '{ (exit 1); exit 1; }' 1 2 13 15
3336 # Create a (secure) tmp directory for tmp files.
3339 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3340 test -n "$tmp" && test -d "$tmp"
3343 tmp=$TMPDIR/sed$$-$RANDOM
3344 (umask 077 && mkdir $tmp)
3347 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3348 { (exit 1); exit 1; }
3352 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3353 # along with /bin/sed that truncates output.
3354 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3355 test ! -f ${_sed} && break
3356 cat /dev/null > "$tmp/sed.in"
3358 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3359 # Check for GNU sed and select it if it is found.
3360 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3361 lt_cv_path_SED=${_sed}
3365 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3366 mv "$tmp/sed.tmp" "$tmp/sed.in"
3367 cp "$tmp/sed.in" "$tmp/sed.nl"
3368 echo >>"$tmp/sed.nl"
3369 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3370 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3371 # 40000 chars as input seems more than enough
3372 test $_count -gt 10 && break
3373 _count=`expr $_count + 1`
3374 if test $_count -gt $_max; then
3376 lt_cv_path_SED=$_sed
3384 if test "X$SED" != "X"; then
3389 echo "$ac_t""$SED" 1>&6
3391 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3392 echo "configure:3393: checking whether ln -s works" >&5
3393 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3397 if ln -s X conftestdata 2>/dev/null
3400 ac_cv_prog_LN_S="ln -s"
3405 LN_S="$ac_cv_prog_LN_S"
3406 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3407 echo "$ac_t""yes" 1>&6
3409 echo "$ac_t""no" 1>&6
3412 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3413 echo "configure:3414: checking how to recognise dependent libraries" >&5
3414 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 lt_cv_file_magic_cmd='$MAGIC_CMD'
3418 lt_cv_file_magic_test_file=
3419 lt_cv_deplibs_check_method='unknown'
3420 # Need to set the preceding variable on all platforms that support
3421 # interlibrary dependencies.
3422 # 'none' -- dependencies not supported.
3423 # `unknown' -- same as none, but documents that we really don't know.
3424 # 'pass_all' -- all dependencies passed with no checks.
3425 # 'test_compile' -- check by making test program.
3426 # 'file_magic [[regex]]' -- check by looking for files in library path
3427 # which responds to the $file_magic_cmd with a given egrep regex.
3428 # If you have `file' or equivalent on your system and you're not sure
3429 # whether `pass_all' will *always* work, you probably want this one.
3433 lt_cv_deplibs_check_method=pass_all
3437 lt_cv_deplibs_check_method=pass_all
3441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3442 lt_cv_file_magic_cmd='/usr/bin/file -L'
3443 lt_cv_file_magic_test_file=/shlib/libc.so
3446 cygwin* | mingw* | pw32*)
3447 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3448 lt_cv_file_magic_cmd='$OBJDUMP -f'
3451 darwin* | rhapsody*)
3452 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3453 lt_cv_file_magic_cmd='/usr/bin/file -L'
3455 rhapsody* | darwin1.[012])
3456 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3459 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3465 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3468 # Not sure whether the presence of OpenBSD here was a mistake.
3469 # Let's accept both of them until this is cleared up.
3470 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3471 lt_cv_file_magic_cmd=/usr/bin/file
3472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3476 lt_cv_deplibs_check_method=pass_all
3481 lt_cv_deplibs_check_method=pass_all
3485 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3486 lt_cv_file_magic_cmd=/usr/bin/file
3487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3490 irix5* | irix6* | nonstopux*)
3492 irix5* | nonstopux*)
3493 # this will be overridden with pass_all, but let us keep it just in case
3494 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3498 *-32|*"-32 ") libmagic=32-bit;;
3499 *-n32|*"-n32 ") libmagic=N32;;
3500 *-64|*"-64 ") libmagic=64-bit;;
3501 *) libmagic=never-match;;
3503 # this will be overridden with pass_all, but let us keep it just in case
3504 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3507 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3508 lt_cv_deplibs_check_method=pass_all
3511 # This must be Linux ELF.
3514 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3515 lt_cv_deplibs_check_method=pass_all ;;
3517 # glibc up to 2.1.1 does not perform some relocations on ARM
3518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3520 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3527 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3533 lt_cv_file_magic_cmd=/usr/bin/file
3534 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3538 lt_cv_file_magic_cmd=/usr/bin/file
3539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3543 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3548 lt_cv_deplibs_check_method=pass_all
3551 osf3* | osf4* | osf5*)
3552 # this will be overridden with pass_all, but let us keep it just in case
3553 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3554 lt_cv_file_magic_test_file=/shlib/libc.so
3555 lt_cv_deplibs_check_method=pass_all
3559 lt_cv_deplibs_check_method=pass_all
3563 lt_cv_deplibs_check_method=pass_all
3564 lt_cv_file_magic_test_file=/lib/libc.so
3567 sysv5uw[78]* | sysv4*uw2*)
3568 lt_cv_deplibs_check_method=pass_all
3571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3572 case $host_vendor in
3574 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]'
3575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3578 lt_cv_deplibs_check_method=pass_all
3581 lt_cv_file_magic_cmd='/bin/file'
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3585 lt_cv_file_magic_cmd='/bin/file'
3586 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3587 lt_cv_file_magic_test_file=/lib/libc.so
3590 lt_cv_deplibs_check_method=pass_all
3598 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3599 file_magic_cmd=$lt_cv_file_magic_cmd
3600 deplibs_check_method=$lt_cv_deplibs_check_method
3602 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3603 echo "configure:3604: checking for object suffix" >&5
3604 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3608 echo 'int i = 1;' > conftest.$ac_ext
3609 if { (eval echo configure:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3610 for ac_file in conftest.*; do
3613 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3617 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3622 echo "$ac_t""$ac_cv_objext" 1>&6
3623 OBJEXT=$ac_cv_objext
3624 ac_objext=$ac_cv_objext
3629 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3630 echo "configure:3631: checking for executable suffix" >&5
3631 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3638 echo 'int main () { return 0; }' > conftest.$ac_ext
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3641 for file in conftest.*; do
3643 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3644 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3648 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3651 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3656 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3657 echo "$ac_t""${ac_cv_exeext}" 1>&6
3660 if test $host != $build; then
3661 ac_tool_prefix=${host_alias}-
3669 # Check for command to grab the raw symbol name followed by C symbol from nm.
3670 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3671 echo "configure:3672: checking command to parse $NM output" >&5
3672 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3676 # These are sane defaults that work on at least a few old systems.
3677 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3679 # Character class describing NM global symbol codes.
3680 symcode='[BCDEGRST]'
3682 # Regexp to match symbols that can be accessed directly from C.
3683 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3685 # Transform the above into a raw symbol and a C symbol.
3686 symxfrm='\1 \2\3 \3'
3688 # Transform an extracted symbol line into a proper C declaration
3689 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3691 # Transform an extracted symbol line into symbol name and symbol address
3692 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'"
3694 # Define system-specific variables.
3699 cygwin* | mingw* | pw32*)
3700 symcode='[ABCDGISTW]'
3702 hpux*) # Its linker distinguishes data from code symbols
3703 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3704 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'"
3707 symcode='[BCDEGRST]'
3710 symcode='[BCDEGQRST]'
3720 # Handle CRLF in mingw tool chain
3724 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3728 # If we're using GNU nm, then use its standard symbol codes.
3729 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3730 symcode='[ABCDGISTW]'
3733 # Try without a prefix undercore, then with it.
3734 for ac_symprfx in "" "_"; do
3736 # Write the raw and C identifiers.
3737 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3739 # Check to see that the pipe works correctly.
3742 cat > conftest.$ac_ext <<EOF
3747 void nm_test_func(){}
3751 int main(){nm_test_var='a';nm_test_func();return(0);}
3754 if { (eval echo configure:3755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3755 # Now try to grab the symbols.
3757 if { (eval echo configure:3758: \"$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
3758 # Try sorting and uniquifying the output.
3759 if sort "$nlist" | uniq > "$nlist"T; then
3760 mv -f "$nlist"T "$nlist"
3765 # Make sure that we snagged all the symbols we need.
3766 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3767 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3768 cat <<EOF > conftest.$ac_ext
3774 # Now generate the symbol file.
3775 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3777 cat <<EOF >> conftest.$ac_ext
3778 #if defined (__STDC__) && __STDC__
3779 # define lt_ptr void *
3781 # define lt_ptr char *
3785 /* The mapping between symbol names and symbols. */
3790 lt_preloaded_symbols[] =
3793 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3794 cat <<\EOF >> conftest.$ac_ext
3802 # Now try linking the two files.
3803 mv conftest.$ac_objext conftstm.$ac_objext
3805 save_CFLAGS="$CFLAGS"
3806 LIBS="conftstm.$ac_objext"
3807 CFLAGS="$CFLAGS$no_builtin_flag"
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3812 CFLAGS="$save_CFLAGS"
3814 echo "cannot find nm_test_func in $nlist" >&5
3817 echo "cannot find nm_test_var in $nlist" >&5
3820 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3823 echo "$progname: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3826 rm -f conftest* conftst*
3828 # Do not use the global_symbol_pipe unless it works.
3829 if test "$pipe_works" = yes; then
3832 lt_cv_sys_global_symbol_pipe=
3838 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3840 global_symbol_to_cdecl=
3841 global_symbol_to_c_name_address=
3843 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3844 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3846 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3848 echo "$ac_t""failed" 1>&6
3850 echo "$ac_t""ok" 1>&6
3853 for ac_hdr in dlfcn.h
3855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_hdr" >&5
3858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3867 { (eval echo configure:3868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3869 if test -z "$ac_err"; then
3871 eval "ac_cv_header_$ac_safe=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_header_$ac_safe=no"
3881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3884 cat >> confdefs.h <<EOF
3885 #define $ac_tr_hdr 1
3889 echo "$ac_t""no" 1>&6
3898 # Only perform the check for file, if the check method requires it
3899 case $deplibs_check_method in
3901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3902 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
3903 echo "configure:3904: checking for ${ac_tool_prefix}file" >&5
3904 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3912 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3915 ac_save_MAGIC_CMD="$MAGIC_CMD"
3916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3917 ac_dummy="/usr/bin:$PATH"
3918 for ac_dir in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir=.
3920 if test -f $ac_dir/${ac_tool_prefix}file; then
3921 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3922 if test -n "$file_magic_test_file"; then
3923 case $deplibs_check_method in
3925 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3928 egrep "$file_magic_regex" > /dev/null; then
3933 *** Warning: the command libtool uses to detect shared libraries,
3934 *** $file_magic_cmd, produces output that libtool cannot recognize.
3935 *** The result is that libtool may fail to recognize shared libraries
3936 *** as such. This will affect the creation of libtool libraries that
3937 *** depend on shared libraries, but programs linked with such libtool
3938 *** libraries will work regardless of this problem. Nevertheless, you
3939 *** may want to report the problem to your system manager and/or to
3940 *** bug-libtool@gnu.org
3950 MAGIC_CMD="$ac_save_MAGIC_CMD"
3955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3956 if test -n "$MAGIC_CMD"; then
3957 echo "$ac_t""$MAGIC_CMD" 1>&6
3959 echo "$ac_t""no" 1>&6
3962 if test -z "$lt_cv_path_MAGIC_CMD"; then
3963 if test -n "$ac_tool_prefix"; then
3964 echo $ac_n "checking for file""... $ac_c" 1>&6
3965 echo "configure:3966: checking for file" >&5
3966 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3977 ac_save_MAGIC_CMD="$MAGIC_CMD"
3978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3979 ac_dummy="/usr/bin:$PATH"
3980 for ac_dir in $ac_dummy; do
3981 test -z "$ac_dir" && ac_dir=.
3982 if test -f $ac_dir/file; then
3983 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3984 if test -n "$file_magic_test_file"; then
3985 case $deplibs_check_method in
3987 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3990 egrep "$file_magic_regex" > /dev/null; then
3995 *** Warning: the command libtool uses to detect shared libraries,
3996 *** $file_magic_cmd, produces output that libtool cannot recognize.
3997 *** The result is that libtool may fail to recognize shared libraries
3998 *** as such. This will affect the creation of libtool libraries that
3999 *** depend on shared libraries, but programs linked with such libtool
4000 *** libraries will work regardless of this problem. Nevertheless, you
4001 *** may want to report the problem to your system manager and/or to
4002 *** bug-libtool@gnu.org
4012 MAGIC_CMD="$ac_save_MAGIC_CMD"
4017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4018 if test -n "$MAGIC_CMD"; then
4019 echo "$ac_t""$MAGIC_CMD" 1>&6
4021 echo "$ac_t""no" 1>&6
4033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4036 echo "configure:4037: checking for $ac_word" >&5
4037 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 if test -n "$RANLIB"; then
4041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4045 for ac_dir in $ac_dummy; do
4046 test -z "$ac_dir" && ac_dir=.
4047 if test -f $ac_dir/$ac_word; then
4048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4055 RANLIB="$ac_cv_prog_RANLIB"
4056 if test -n "$RANLIB"; then
4057 echo "$ac_t""$RANLIB" 1>&6
4059 echo "$ac_t""no" 1>&6
4063 if test -z "$ac_cv_prog_RANLIB"; then
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "ranlib", so it can be a program name with args.
4066 set dummy ranlib; ac_word=$2
4067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4068 echo "configure:4069: checking for $ac_word" >&5
4069 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 if test -n "$RANLIB"; then
4073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4077 for ac_dir in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir=.
4079 if test -f $ac_dir/$ac_word; then
4080 ac_cv_prog_RANLIB="ranlib"
4085 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4088 RANLIB="$ac_cv_prog_RANLIB"
4089 if test -n "$RANLIB"; then
4090 echo "$ac_t""$RANLIB" 1>&6
4092 echo "$ac_t""no" 1>&6
4100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}strip; ac_word=$2
4102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_word" >&5
4104 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 if test -n "$STRIP"; then
4108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4112 for ac_dir in $ac_dummy; do
4113 test -z "$ac_dir" && ac_dir=.
4114 if test -f $ac_dir/$ac_word; then
4115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4122 STRIP="$ac_cv_prog_STRIP"
4123 if test -n "$STRIP"; then
4124 echo "$ac_t""$STRIP" 1>&6
4126 echo "$ac_t""no" 1>&6
4130 if test -z "$ac_cv_prog_STRIP"; then
4131 if test -n "$ac_tool_prefix"; then
4132 # Extract the first word of "strip", so it can be a program name with args.
4133 set dummy strip; ac_word=$2
4134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_word" >&5
4136 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 if test -n "$STRIP"; then
4140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4144 for ac_dir in $ac_dummy; do
4145 test -z "$ac_dir" && ac_dir=.
4146 if test -f $ac_dir/$ac_word; then
4147 ac_cv_prog_STRIP="strip"
4152 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4155 STRIP="$ac_cv_prog_STRIP"
4156 if test -n "$STRIP"; then
4157 echo "$ac_t""$STRIP" 1>&6
4159 echo "$ac_t""no" 1>&6
4169 enable_win32_dll=yes
4171 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4172 if test "${enable_libtool_lock+set}" = set; then
4173 enableval="$enable_libtool_lock"
4177 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4179 # Some flags need to be propagated to the compiler or linker for good
4183 # Find out which ABI we are using.
4184 echo '#line 4185 "configure"' > conftest.$ac_ext
4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4186 case `/usr/bin/file conftest.$ac_objext` in
4202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4203 SAVE_CFLAGS="$CFLAGS"
4204 CFLAGS="$CFLAGS -belf"
4205 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4206 echo "configure:4207: checking whether the C compiler needs -belf" >&5
4207 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4215 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4216 cross_compiling=$ac_cv_prog_cc_cross
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 lt_cv_cc_needs_belf=yes
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 lt_cv_cc_needs_belf=no
4237 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4240 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4241 cross_compiling=$ac_cv_prog_cc_cross
4245 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4246 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4247 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4248 CFLAGS="$SAVE_CFLAGS"
4252 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4253 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4254 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_word" >&5
4257 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 if test -n "$DLLTOOL"; then
4261 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4265 for ac_dir in $ac_dummy; do
4266 test -z "$ac_dir" && ac_dir=.
4267 if test -f $ac_dir/$ac_word; then
4268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4275 DLLTOOL="$ac_cv_prog_DLLTOOL"
4276 if test -n "$DLLTOOL"; then
4277 echo "$ac_t""$DLLTOOL" 1>&6
4279 echo "$ac_t""no" 1>&6
4283 if test -z "$ac_cv_prog_DLLTOOL"; then
4284 if test -n "$ac_tool_prefix"; then
4285 # Extract the first word of "dlltool", so it can be a program name with args.
4286 set dummy dlltool; ac_word=$2
4287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4288 echo "configure:4289: checking for $ac_word" >&5
4289 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4292 if test -n "$DLLTOOL"; then
4293 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4297 for ac_dir in $ac_dummy; do
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f $ac_dir/$ac_word; then
4300 ac_cv_prog_DLLTOOL="dlltool"
4305 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4308 DLLTOOL="$ac_cv_prog_DLLTOOL"
4309 if test -n "$DLLTOOL"; then
4310 echo "$ac_t""$DLLTOOL" 1>&6
4312 echo "$ac_t""no" 1>&6
4320 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4321 set dummy ${ac_tool_prefix}as; ac_word=$2
4322 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_word" >&5
4324 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 if test -n "$AS"; then
4328 ac_cv_prog_AS="$AS" # Let the user override the test.
4330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4332 for ac_dir in $ac_dummy; do
4333 test -z "$ac_dir" && ac_dir=.
4334 if test -f $ac_dir/$ac_word; then
4335 ac_cv_prog_AS="${ac_tool_prefix}as"
4343 if test -n "$AS"; then
4344 echo "$ac_t""$AS" 1>&6
4346 echo "$ac_t""no" 1>&6
4350 if test -z "$ac_cv_prog_AS"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "as", so it can be a program name with args.
4353 set dummy as; ac_word=$2
4354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_word" >&5
4356 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 if test -n "$AS"; then
4360 ac_cv_prog_AS="$AS" # Let the user override the test.
4362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4364 for ac_dir in $ac_dummy; do
4365 test -z "$ac_dir" && ac_dir=.
4366 if test -f $ac_dir/$ac_word; then
4372 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4376 if test -n "$AS"; then
4377 echo "$ac_t""$AS" 1>&6
4379 echo "$ac_t""no" 1>&6
4387 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4388 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_word" >&5
4391 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 if test -n "$OBJDUMP"; then
4395 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4399 for ac_dir in $ac_dummy; do
4400 test -z "$ac_dir" && ac_dir=.
4401 if test -f $ac_dir/$ac_word; then
4402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4409 OBJDUMP="$ac_cv_prog_OBJDUMP"
4410 if test -n "$OBJDUMP"; then
4411 echo "$ac_t""$OBJDUMP" 1>&6
4413 echo "$ac_t""no" 1>&6
4417 if test -z "$ac_cv_prog_OBJDUMP"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "objdump", so it can be a program name with args.
4420 set dummy objdump; ac_word=$2
4421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4422 echo "configure:4423: checking for $ac_word" >&5
4423 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 if test -n "$OBJDUMP"; then
4427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4431 for ac_dir in $ac_dummy; do
4432 test -z "$ac_dir" && ac_dir=.
4433 if test -f $ac_dir/$ac_word; then
4434 ac_cv_prog_OBJDUMP="objdump"
4439 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4442 OBJDUMP="$ac_cv_prog_OBJDUMP"
4443 if test -n "$OBJDUMP"; then
4444 echo "$ac_t""$OBJDUMP" 1>&6
4446 echo "$ac_t""no" 1>&6
4455 # recent cygwin and mingw systems supply a stub DllMain which the user
4456 # can override, but on older systems we have to supply one
4457 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4458 echo "configure:4459: checking if libtool should supply DllMain function" >&5
4459 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 lt_cv_need_dllmain=no
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 lt_cv_need_dllmain=yes
4483 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4486 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4487 # old mingw systems require "-dll" to link a DLL, while more recent ones
4489 SAVE_CFLAGS="$CFLAGS"
4490 CFLAGS="$CFLAGS -mdll"
4491 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4492 echo "configure:4493: checking how to link DLLs" >&5
4493 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 lt_cv_cc_dll_switch=-mdll
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 lt_cv_cc_dll_switch=-dll
4516 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4517 CFLAGS="$SAVE_CFLAGS" ;;
4518 *-*-cygwin* | *-*-pw32*)
4519 # cygwin systems need to pass --dll to the linker, and not link
4520 # crt.o which will require a WinMain@16 definition.
4521 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4527 # Sed substitution that helps us do robust quoting. It backslashifies
4528 # metacharacters that are still active within double-quoted strings.
4529 Xsed='sed -e s/^X//'
4530 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4532 # Same as above, but do not quote variable references.
4533 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4535 # Sed substitution to delay expansion of an escaped shell variable in a
4536 # double_quote_subst'ed string.
4537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4543 default_ofile=libtool
4544 can_build_shared=yes
4546 # All known linkers require a `.a' archive for static linking (except M$VC,
4547 # which needs '.lib').
4549 ltmain="$ac_aux_dir/ltmain.sh"
4550 ofile="$default_ofile"
4551 with_gnu_ld="$lt_cv_prog_gnu_ld"
4552 need_locks="$enable_libtool_lock"
4555 old_CFLAGS="$CFLAGS"
4557 # Set sane defaults for various variables
4558 test -z "$AR" && AR=ar
4559 test -z "$AR_FLAGS" && AR_FLAGS=cru
4560 test -z "$AS" && AS=as
4561 test -z "$CC" && CC=cc
4562 test -z "$DLLTOOL" && DLLTOOL=dlltool
4563 test -z "$LD" && LD=ld
4564 test -z "$LN_S" && LN_S="ln -s"
4565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4566 test -z "$NM" && NM=nm
4567 test -z "$OBJDUMP" && OBJDUMP=objdump
4568 test -z "$RANLIB" && RANLIB=:
4569 test -z "$STRIP" && STRIP=:
4570 test -z "$ac_objext" && ac_objext=o
4572 if test x"$host" != x"$build"; then
4573 ac_tool_prefix=${host_alias}-
4578 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4581 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4586 # AIX sometimes has problems with the GCC collect2 program. For some
4587 # reason, if we set the COLLECT_NAMES environment variable, the problems
4588 # vanish in a puff of smoke.
4589 if test "X${COLLECT_NAMES+set}" != Xset; then
4591 export COLLECT_NAMES
4596 # Determine commands to create old-style static archives.
4597 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4598 old_postinstall_cmds='chmod 644 $oldlib'
4599 old_postuninstall_cmds=
4601 if test -n "$RANLIB"; then
4604 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4607 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4610 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4613 # Allow CC to be a program name with arguments.
4617 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4618 echo "configure:4619: checking for objdir" >&5
4619 rm -f .libs 2>/dev/null
4620 mkdir .libs 2>/dev/null
4621 if test -d .libs; then
4624 # MS-DOS does not allow filenames that begin with a dot.
4627 rmdir .libs 2>/dev/null
4628 echo "$ac_t""$objdir" 1>&6
4631 # Check whether --with-pic or --without-pic was given.
4632 if test "${with_pic+set}" = set; then
4639 test -z "$pic_mode" && pic_mode=default
4641 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4642 # in isolation, and that seeing it set (from the cache) indicates that
4643 # the associated values are set (in the cache) correctly too.
4644 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4645 echo "configure:4646: checking for $compiler option to produce PIC" >&5
4646 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4647 echo $ac_n "(cached) $ac_c" 1>&6
4650 lt_cv_prog_cc_shlib=
4652 lt_cv_prog_cc_static=
4653 lt_cv_prog_cc_no_builtin=
4654 lt_cv_prog_cc_can_build_shared=$can_build_shared
4656 if test "$GCC" = yes; then
4657 lt_cv_prog_cc_wl='-Wl,'
4658 lt_cv_prog_cc_static='-static'
4662 # Below there is a dirty hack to force normal static linking with -ldl
4663 # The problem is because libdl dynamically linked with both libc and
4664 # libC (AIX C++ library), which obviously doesn't included in libraries
4665 # list by gcc. This cause undefined symbols with -static flags.
4666 # This hack allows C programs to be linked with "-static -ldl", but
4667 # not sure about C++ programs.
4668 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4671 # FIXME: we need at least 68020 code to build shared libraries, but
4672 # adding the `-m68020' flag to GCC prevents building anything better,
4674 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4676 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4677 # PIC is the default for these OSes.
4679 darwin* | rhapsody*)
4680 # PIC is the default on this platform
4681 # Common symbols not allowed in MH_DYLIB files
4682 lt_cv_prog_cc_pic='-fno-common'
4684 cygwin* | mingw* | pw32* | os2*)
4685 # This hack is so that the source file can tell whether it is being
4686 # built for inclusion in a dll (and should export symbols for example).
4687 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4690 if test -d /usr/nec; then
4691 lt_cv_prog_cc_pic=-Kconform_pic
4695 lt_cv_prog_cc_pic='-fPIC'
4699 # PORTME Check for PIC flags for the system compiler.
4701 aix3* | aix4* | aix5*)
4702 lt_cv_prog_cc_wl='-Wl,'
4703 # All AIX code is PIC.
4704 if test "$host_cpu" = ia64; then
4705 # AIX 5 now supports IA64 processor
4706 lt_cv_prog_cc_static='-Bstatic'
4708 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4712 hpux9* | hpux10* | hpux11*)
4713 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4714 lt_cv_prog_cc_wl='-Wl,'
4715 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4716 lt_cv_prog_cc_pic='+Z'
4719 irix5* | irix6* | nonstopux*)
4720 lt_cv_prog_cc_wl='-Wl,'
4721 lt_cv_prog_cc_static='-non_shared'
4722 # PIC (with -KPIC) is the default.
4725 cygwin* | mingw* | pw32* | os2*)
4726 # This hack is so that the source file can tell whether it is being
4727 # built for inclusion in a dll (and should export symbols for example).
4728 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4732 lt_cv_prog_cc_pic='-KPIC'
4733 lt_cv_prog_cc_static='-Bstatic'
4737 # XPLINK code is PIC by default
4740 osf3* | osf4* | osf5*)
4741 # All OSF/1 code is PIC.
4742 lt_cv_prog_cc_wl='-Wl,'
4743 lt_cv_prog_cc_static='-non_shared'
4747 lt_cv_prog_cc_pic='-Kpic'
4748 lt_cv_prog_cc_static='-dn'
4749 lt_cv_prog_cc_shlib='-belf'
4753 lt_cv_prog_cc_pic='-KPIC'
4754 lt_cv_prog_cc_static='-Bstatic'
4755 lt_cv_prog_cc_wl='-Wl,'
4759 lt_cv_prog_cc_pic='-PIC'
4760 lt_cv_prog_cc_static='-Bstatic'
4761 lt_cv_prog_cc_wl='-Qoption ld '
4764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4765 lt_cv_prog_cc_pic='-KPIC'
4766 lt_cv_prog_cc_static='-Bstatic'
4767 lt_cv_prog_cc_wl='-Wl,'
4771 lt_cv_prog_cc_pic='-pic'
4772 lt_cv_prog_cc_static='-Bstatic'
4776 if test -d /usr/nec ;then
4777 lt_cv_prog_cc_pic='-Kconform_pic'
4778 lt_cv_prog_cc_static='-Bstatic'
4783 lt_cv_prog_cc_can_build_shared=no
4790 if test -z "$lt_cv_prog_cc_pic"; then
4791 echo "$ac_t""none" 1>&6
4793 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4795 # Check to make sure the pic_flag actually works.
4796 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4797 echo "configure:4798: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4798 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 save_CFLAGS="$CFLAGS"
4802 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4811 if { (eval echo configure:4812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4814 hpux9* | hpux10* | hpux11*)
4815 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4816 # they create non-PIC objects. So, if there were any warnings, we
4817 # assume that PIC is not supported.
4818 if test -s conftest.err; then
4819 lt_cv_prog_cc_pic_works=no
4821 lt_cv_prog_cc_pic_works=yes
4825 lt_cv_prog_cc_pic_works=yes
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 lt_cv_prog_cc_pic_works=no
4837 CFLAGS="$save_CFLAGS"
4842 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4844 lt_cv_prog_cc_can_build_shared=no
4846 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4849 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
4852 # Check for any special shared library compilation flags.
4853 if test -n "$lt_cv_prog_cc_shlib"; then
4854 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
4855 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4857 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
4858 lt_cv_prog_cc_can_build_shared=no
4862 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
4863 echo "configure:4864: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4864 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 lt_cv_prog_cc_static_works=no
4868 save_LDFLAGS="$LDFLAGS"
4869 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 lt_cv_prog_cc_static_works=yes
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4886 LDFLAGS="$save_LDFLAGS"
4891 # Belt *and* braces to stop my trousers falling down:
4892 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4893 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
4895 pic_flag="$lt_cv_prog_cc_pic"
4896 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4897 wl="$lt_cv_prog_cc_wl"
4898 link_static_flag="$lt_cv_prog_cc_static"
4899 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4900 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4903 # Check to see if options -o and -c are simultaneously supported by compiler
4904 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
4905 echo "configure:4906: checking if $compiler supports -c -o file.$ac_objext" >&5
4906 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4910 $rm -r conftest 2>/dev/null
4913 echo "int some_variable = 0;" > conftest.$ac_ext
4915 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4916 # that will create temporary files in the current directory regardless of
4917 # the output directory. Thus, making CWD read-only will cause this test
4918 # to fail, enabling locking or at least warning the user not to do parallel
4921 save_CFLAGS="$CFLAGS"
4922 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4924 if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4925 # The compiler can only warn and ignore the option if not recognized
4926 # So say no if there are warnings
4927 if test -s out/conftest.err; then
4928 lt_cv_compiler_c_o=no
4930 lt_cv_compiler_c_o=yes
4933 # Append any errors to the config.log.
4934 cat out/conftest.err 1>&5
4935 lt_cv_compiler_c_o=no
4937 CFLAGS="$save_CFLAGS"
4943 $rm -r conftest 2>/dev/null
4947 compiler_c_o=$lt_cv_compiler_c_o
4948 echo "$ac_t""$compiler_c_o" 1>&6
4950 if test x"$compiler_c_o" = x"yes"; then
4951 # Check to see if we can write to a .lo
4952 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
4953 echo "configure:4954: checking if $compiler supports -c -o file.lo" >&5
4954 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4958 lt_cv_compiler_o_lo=no
4959 save_CFLAGS="$CFLAGS"
4960 CFLAGS="$CFLAGS -c -o conftest.lo"
4961 save_objext="$ac_objext"
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4968 int some_variable = 0;
4971 if { (eval echo configure:4972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4973 # The compiler can only warn and ignore the option if not recognized
4974 # So say no if there are warnings
4975 if test -s conftest.err; then
4976 lt_cv_compiler_o_lo=no
4978 lt_cv_compiler_o_lo=yes
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4986 ac_objext="$save_objext"
4987 CFLAGS="$save_CFLAGS"
4991 compiler_o_lo=$lt_cv_compiler_o_lo
4992 echo "$ac_t""$compiler_o_lo" 1>&6
4997 # Check to see if we can do hard links to lock some files if needed
4998 hard_links="nottested"
4999 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5000 # do not overwrite the value of need_locks provided by the user
5001 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5002 echo "configure:5003: checking if we can lock with hard links" >&5
5005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5007 ln conftest.a conftest.b 2>&5 || hard_links=no
5008 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5009 echo "$ac_t""$hard_links" 1>&6
5010 if test "$hard_links" = no; then
5011 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5018 if test "$GCC" = yes; then
5019 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5020 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5021 echo "configure:5022: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5022 echo "int some_variable = 0;" > conftest.$ac_ext
5023 save_CFLAGS="$CFLAGS"
5024 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5025 compiler_rtti_exceptions=no
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5031 int some_variable = 0;
5034 if { (eval echo configure:5035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5036 # The compiler can only warn and ignore the option if not recognized
5037 # So say no if there are warnings
5038 if test -s conftest.err; then
5039 compiler_rtti_exceptions=no
5041 compiler_rtti_exceptions=yes
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5049 CFLAGS="$save_CFLAGS"
5050 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5052 if test "$compiler_rtti_exceptions" = "yes"; then
5053 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5055 no_builtin_flag=' -fno-builtin'
5059 # See if the linker supports building shared libraries.
5060 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5061 echo "configure:5062: checking whether the linker ($LD) supports shared libraries" >&5
5063 allow_undefined_flag=
5065 need_lib_prefix=unknown
5066 need_version=unknown
5067 # when you set need_version to no, make sure it does not cause -set_version
5068 # flags to be left without arguments
5070 archive_expsym_cmds=
5071 old_archive_from_new_cmds=
5072 old_archive_from_expsyms_cmds=
5073 export_dynamic_flag_spec=
5074 whole_archive_flag_spec=
5075 thread_safe_flag_spec=
5076 hardcode_into_libs=no
5077 hardcode_libdir_flag_spec=
5078 hardcode_libdir_separator=
5081 hardcode_shlibpath_var=unsupported
5083 link_all_deplibs=unknown
5084 always_export_symbols=no
5085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5086 # include_expsyms should be a list of space-separated symbols to be *always*
5087 # included in the symbol list
5089 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5092 # as well as any symbol that contains `d'.
5093 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5095 # platforms (ab)use it in PIC code, but their linkers get confused if
5096 # the symbol is explicitly referenced. Since portable code cannot
5097 # rely on this symbol name, it's probably fine to never include it in
5098 # preloaded symbol tables.
5099 extract_expsyms_cmds=
5102 cygwin* | mingw* | pw32*)
5103 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5104 # When not using gcc, we currently assume that we are using
5105 # Microsoft Visual C++.
5106 if test "$GCC" != yes; then
5116 if test "$with_gnu_ld" = yes; then
5117 # If archive_cmds runs LD, not CC, wlarc should be empty
5120 # See if GNU ld supports shared libraries.
5122 aix3* | aix4* | aix5*)
5123 # On AIX, the GNU linker is very broken
5124 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5128 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5129 *** to be unable to reliably create shared libraries on AIX.
5130 *** Therefore, libtool is disabling shared libraries support. If you
5131 *** really care for shared libraries, you may want to modify your PATH
5132 *** so that a non-GNU linker is found, and then restart.
5138 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)'
5139 hardcode_libdir_flag_spec='-L$libdir'
5140 hardcode_minus_L=yes
5142 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5143 # that the semantics of dynamic libraries on AmigaOS, at least up
5144 # to version 4, is to share data among multiple programs linked
5145 # with the same dynamic library. Since this doesn't match the
5146 # behavior of shared libraries on other platforms, we can use
5152 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5153 allow_undefined_flag=unsupported
5154 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5155 # support --undefined. This deserves some investigation. FIXME
5156 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5162 cygwin* | mingw* | pw32*)
5163 # hardcode_libdir_flag_spec is actually meaningless, as there is
5164 # no search path for DLLs.
5165 hardcode_libdir_flag_spec='-L$libdir'
5166 allow_undefined_flag=unsupported
5167 always_export_symbols=yes
5169 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5170 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5171 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5172 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5173 else $CC -o impgen impgen.c ; fi)~
5174 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5176 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5178 # cygwin and mingw dlls have different entry points and sets of symbols
5180 # FIXME: what about values for MSVC?
5181 dll_entry=__cygwin_dll_entry@12
5182 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5186 dll_entry=_DllMainCRTStartup@12
5187 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5191 # mingw and cygwin differ, and it's simplest to just exclude the union
5192 # of the two symbol sets.
5193 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5195 # recent cygwin and mingw systems supply a stub DllMain which the user
5196 # can override, but on older systems we have to supply one (in ltdll.c)
5197 if test "x$lt_cv_need_dllmain" = "xyes"; then
5198 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5199 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~
5200 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5206 # Extract the symbol export list from an `--export-all' def file,
5207 # then regenerate the def file from the symbol export list, so that
5208 # the compiled dll only exports the symbol export list.
5209 # Be careful not to strip the DATA tag left be newer dlltools.
5210 export_symbols_cmds="$ltdll_cmds"'
5211 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5212 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5214 # If the export-symbols file already is a .def file (1st line
5215 # is EXPORTS), use it as is.
5216 # If DATA tags from a recent dlltool are present, honour them!
5217 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5218 cp $export_symbols $output_objdir/$soname-def;
5220 echo EXPORTS > $output_objdir/$soname-def;
5222 cat $export_symbols | while read symbol; do
5225 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5226 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5227 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5229 _lt_hint=`expr 1 + \$_lt_hint`;
5233 $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~
5234 $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~
5235 $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~
5236 $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~
5237 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5245 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5246 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5251 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5256 *** create shared libraries on Solaris systems. Therefore, libtool
5257 *** is disabling shared libraries support. We urge you to upgrade GNU
5258 *** binutils to release 2.9.1 or newer. Another option is to modify
5259 *** your PATH or compiler configuration so that the native linker is
5260 *** used, and then restart.
5263 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5272 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5275 hardcode_shlibpath_var=no
5279 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5288 if test "$ld_shlibs" = yes; then
5289 runpath_var=LD_RUN_PATH
5290 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5291 export_dynamic_flag_spec='${wl}--export-dynamic'
5293 cygwin* | mingw* | pw32*)
5294 # dlltool doesn't understand --whole-archive et. al.
5295 whole_archive_flag_spec=
5298 # ancient GNU ld didn't support --whole-archive et. al.
5299 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5300 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5302 whole_archive_flag_spec=
5308 # PORTME fill in a description of your system's linker (not GNU ld)
5311 allow_undefined_flag=unsupported
5312 always_export_symbols=yes
5313 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'
5314 # Note: this linker hardcodes the directories in LIBPATH if there
5315 # are no directories specified by -L.
5316 hardcode_minus_L=yes
5317 if test "$GCC" = yes && test -z "$link_static_flag"; then
5318 # Neither direct hardcoding nor static linking is supported with a
5320 hardcode_direct=unsupported
5325 if test "$host_cpu" = ia64; then
5326 # On IA64, the linker does run time linking by default, so we don't
5327 # have to do anything special.
5328 aix_use_runtimelinking=no
5329 exp_sym_flag='-Bexport'
5332 aix_use_runtimelinking=no
5334 # Test if we are trying to use run time linking or normal
5335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5336 # need to do runtime linking.
5337 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5338 for ld_flag in $LDFLAGS; do
5341 aix_use_runtimelinking=yes
5348 exp_sym_flag='-bexport'
5349 no_entry_flag='-bnoentry'
5352 # When large executables or shared objects are built, AIX ld can
5353 # have problems creating the table of contents. If linking a library
5354 # or program results in "error TOC overflow" add -mminimal-toc to
5355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5360 hardcode_libdir_separator=':'
5361 if test "$GCC" = yes; then
5362 case $host_os in aix4.[012]|aix4.[012].*)
5363 collect2name=`${CC} -print-prog-name=collect2`
5364 if test -f "$collect2name" && \
5365 strings "$collect2name" | grep resolve_lib_name >/dev/null
5367 # We have reworked collect2
5370 # We have old collect2
5371 hardcode_direct=unsupported
5372 # It fails to find uninstalled libraries when the uninstalled
5373 # path is not listed in the libpath. Setting hardcode_minus_L
5374 # to unsupported forces relinking
5375 hardcode_minus_L=yes
5376 hardcode_libdir_flag_spec='-L$libdir'
5377 hardcode_libdir_separator=
5381 shared_flag='-shared'
5384 if test "$host_cpu" = ia64; then
5385 shared_flag='${wl}-G'
5387 if test "$aix_use_runtimelinking" = yes; then
5388 shared_flag='${wl}-G'
5390 shared_flag='${wl}-bM:SRE'
5395 # It seems that -bexpall can do strange things, so it is better to
5396 # generate a list of symbols to export.
5397 always_export_symbols=yes
5398 if test "$aix_use_runtimelinking" = yes; then
5399 # Warning - without using the other runtime loading flags (-brtl),
5400 # -berok will link without error, but may produce a broken library.
5401 allow_undefined_flag='-berok'
5402 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5403 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"
5405 if test "$host_cpu" = ia64; then
5406 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5407 allow_undefined_flag="-z nodefs"
5408 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"
5410 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5411 # Warning - without using the other run time loading flags,
5412 # -berok will link without error, but may produce a broken library.
5413 allow_undefined_flag='${wl}-berok'
5414 # This is a bit strange, but is similar to how AIX traditionally builds
5415 # it's shared libraries.
5416 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'
5422 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)'
5423 hardcode_libdir_flag_spec='-L$libdir'
5424 hardcode_minus_L=yes
5425 # see comment about different semantics on the GNU ld section
5429 cygwin* | mingw* | pw32*)
5430 # When not using gcc, we currently assume that we are using
5431 # Microsoft Visual C++.
5432 # hardcode_libdir_flag_spec is actually meaningless, as there is
5433 # no search path for DLLs.
5434 hardcode_libdir_flag_spec=' '
5435 allow_undefined_flag=unsupported
5436 # Tell ltmain to make .lib files, not .a files.
5438 # FIXME: Setting linknames here is a bad hack.
5439 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5440 # The linker will automatically build a .lib file if we build a DLL.
5441 old_archive_from_new_cmds='true'
5442 # FIXME: Should let the user specify the lib program.
5443 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5444 fix_srcfile_path='`cygpath -w "$srcfile"`'
5447 darwin* | rhapsody*)
5449 rhapsody* | darwin1.[012])
5450 allow_undefined_flag='-undefined suppress'
5453 allow_undefined_flag='-flat_namespace -undefined suppress'
5456 # FIXME: Relying on posixy $() will cause problems for
5457 # cross-compilation, but unfortunately the echo tests do not
5458 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5459 # `"' quotes if we put them in here... so don't!
5460 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)'
5461 # We need to add '_' to the symbols in $export_symbols first
5462 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5464 hardcode_shlibpath_var=no
5465 whole_archive_flag_spec='-all_load $convenience'
5472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5473 # support. Future versions do this automatically, but an explicit c++rt0.o
5474 # does not break anything, and helps significantly (at the cost of a little
5477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5478 hardcode_libdir_flag_spec='-R$libdir'
5480 hardcode_shlibpath_var=no
5483 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5487 hardcode_minus_L=yes
5488 hardcode_shlibpath_var=no
5491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5493 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5494 hardcode_libdir_flag_spec='-R$libdir'
5496 hardcode_shlibpath_var=no
5499 hpux9* | hpux10* | hpux11*)
5501 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' ;;
5502 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5505 hardcode_libdir_separator=:
5507 hardcode_minus_L=yes # Not in the search PATH, but as the default
5508 # location of the library.
5509 export_dynamic_flag_spec='${wl}-E'
5512 irix5* | irix6* | nonstopux*)
5513 if test "$GCC" = yes; then
5514 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'
5515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5517 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'
5518 hardcode_libdir_flag_spec='-rpath $libdir'
5520 hardcode_libdir_separator=:
5521 link_all_deplibs=yes
5525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5528 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5530 hardcode_libdir_flag_spec='-R$libdir'
5532 hardcode_shlibpath_var=no
5536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5539 hardcode_libdir_separator=:
5540 hardcode_shlibpath_var=no
5545 hardcode_shlibpath_var=no
5546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5549 export_dynamic_flag_spec='${wl}-E'
5552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5554 hardcode_libdir_flag_spec='-R$libdir'
5557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5565 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5566 cp \$linknames \$output_objdir && linknames=''"
5567 export_dynamic_flag_spec="-Wl,DLL"
5571 hardcode_libdir_flag_spec='-L$libdir'
5572 hardcode_minus_L=yes
5573 allow_undefined_flag=unsupported
5574 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'
5575 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5579 if test "$GCC" = yes; then
5580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5581 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'
5583 allow_undefined_flag=' -expect_unresolved \*'
5584 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'
5586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5587 hardcode_libdir_separator=:
5590 osf4* | osf5*) # as osf3* with the addition of -msym flag
5591 if test "$GCC" = yes; then
5592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5593 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'
5594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5596 allow_undefined_flag=' -expect_unresolved \*'
5597 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'
5598 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5599 $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'
5601 #Both c and cxx compiler support -rpath directly
5602 hardcode_libdir_flag_spec='-rpath $libdir'
5604 hardcode_libdir_separator=:
5608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5609 hardcode_shlibpath_var=no
5610 runpath_var=LD_RUN_PATH
5611 hardcode_runpath_var=yes
5612 export_dynamic_flag_spec='${wl}-Bexport'
5616 # gcc --version < 3.0 without binutils cannot create self contained
5617 # shared libraries reliably, requiring libgcc.a to resolve some of
5618 # the object symbols generated in some cases. Libraries that use
5619 # assert need libgcc.a to resolve __eprintf, for example. Linking
5620 # a copy of libgcc.a into every shared library to guarantee resolving
5621 # such symbols causes other problems: According to Tim Van Holder
5622 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5623 # (to the application) exception stack for one thing.
5624 no_undefined_flag=' -z defs'
5625 if test "$GCC" = yes; then
5626 case `$CC --version 2>/dev/null` in
5630 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5631 *** create self contained shared libraries on Solaris systems, without
5632 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5633 *** -no-undefined support, which will at least allow you to build shared
5634 *** libraries. However, you may find that when you link such libraries
5635 *** into an application without using GCC, you have to manually add
5636 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5637 *** upgrade to a newer version of GCC. Another option is to rebuild your
5638 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5645 # $CC -shared without GNU ld will not create a library from C++
5646 # object files and a static libstdc++, better avoid it by now
5647 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5648 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5649 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5650 hardcode_libdir_flag_spec='-R$libdir'
5651 hardcode_shlibpath_var=no
5653 solaris2.[0-5] | solaris2.[0-5].*) ;;
5654 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5657 link_all_deplibs=yes
5661 if test "x$host_vendor" = xsequent; then
5662 # Use $CC to link under sequent, because it throws in some extra .o
5663 # files that make .init and .fini sections work.
5664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5668 hardcode_libdir_flag_spec='-L$libdir'
5670 hardcode_minus_L=yes
5671 hardcode_shlibpath_var=no
5675 case $host_vendor in
5677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5678 hardcode_direct=yes # is this really true???
5681 ## LD is ld it makes a PLAMLIB
5682 ## CC just makes a GrossModule.
5683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5684 reload_cmds='$CC -r -o $output$reload_objs'
5688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5692 runpath_var='LD_RUN_PATH'
5693 hardcode_shlibpath_var=no
5697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5698 hardcode_shlibpath_var=no
5699 export_dynamic_flag_spec='-Bexport'
5703 no_undefined_flag=' -z text'
5704 # $CC -shared without GNU ld will not create a library from C++
5705 # object files and a static libstdc++, better avoid it by now
5706 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5707 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5709 hardcode_libdir_flag_spec=
5710 hardcode_shlibpath_var=no
5711 runpath_var='LD_RUN_PATH'
5715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5716 hardcode_libdir_flag_spec='-L$libdir'
5717 hardcode_shlibpath_var=no
5721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5722 hardcode_libdir_flag_spec='-L$libdir'
5723 hardcode_shlibpath_var=no
5727 if test -d /usr/nec; then
5728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5729 hardcode_shlibpath_var=no
5730 runpath_var=LD_RUN_PATH
5731 hardcode_runpath_var=yes
5737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5740 hardcode_shlibpath_var=no
5741 hardcode_runpath_var=yes
5742 runpath_var=LD_RUN_PATH
5745 sysv5uw7* | unixware7*)
5746 no_undefined_flag='${wl}-z ${wl}text'
5747 if test "$GCC" = yes; then
5748 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5750 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5752 runpath_var='LD_RUN_PATH'
5753 hardcode_shlibpath_var=no
5761 echo "$ac_t""$ld_shlibs" 1>&6
5762 test "$ld_shlibs" = no && can_build_shared=no
5764 # Check hardcoding attributes.
5765 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5766 echo "configure:5767: checking how to hardcode library paths into programs" >&5
5768 if test -n "$hardcode_libdir_flag_spec" || \
5769 test -n "$runpath_var"; then
5771 # We can hardcode non-existant directories.
5772 if test "$hardcode_direct" != no &&
5773 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5774 # have to relink, otherwise we might link with an installed library
5775 # when we should be linking with a yet-to-be-installed one
5776 ## test "$hardcode_shlibpath_var" != no &&
5777 test "$hardcode_minus_L" != no; then
5778 # Linking always hardcodes the temporary library directory.
5779 hardcode_action=relink
5781 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5782 hardcode_action=immediate
5785 # We cannot hardcode anything, or else we can only hardcode existing
5787 hardcode_action=unsupported
5789 echo "$ac_t""$hardcode_action" 1>&6
5793 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5794 echo "configure:5795: checking whether stripping libraries is possible" >&5
5795 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5796 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5797 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5798 echo "$ac_t""yes" 1>&6
5800 echo "$ac_t""no" 1>&6
5803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5806 # PORTME Fill in your ld.so characteristics
5807 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5808 echo "configure:5809: checking dynamic linker characteristics" >&5
5810 libname_spec='lib$name'
5817 shlibpath_overrides_runpath=unknown
5819 dynamic_linker="$host_os ld.so"
5820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5826 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5827 shlibpath_var=LIBPATH
5829 # AIX has no versioning support, so we append a major version to the name.
5830 soname_spec='${libname}${release}.so$major'
5837 hardcode_into_libs=yes
5838 if test "$host_cpu" = ia64; then
5839 # AIX 5 supports IA64
5840 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5841 shlibpath_var=LD_LIBRARY_PATH
5843 # With GCC up to 2.95.x, collect2 would create an import file
5844 # for dependence libraries. The import file would start with
5845 # the line `#! .'. This would cause the generated library to
5846 # depend on `.', always an invalid library. This was fixed in
5847 # development snapshots of GCC prior to 3.0.
5849 aix4 | aix4.[01] | aix4.[01].*)
5850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5859 # AIX (on Power*) has no versioning support, so currently we can
5860 # not hardcode correct soname into executable. Probably we can
5861 # add versioning support to collect2, so additional links can
5862 # be useful in future.
5863 if test "$aix_use_runtimelinking" = yes; then
5864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5865 # instead of lib<name>.a to let people know that these are not
5866 # typical AIX shared libraries.
5867 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5869 # We preserve .a as extension for shared libraries through AIX4.2
5870 # and later when we are not doing run time linking.
5871 library_names_spec='${libname}${release}.a $libname.a'
5872 soname_spec='${libname}${release}.so$major'
5874 shlibpath_var=LIBPATH
5876 hardcode_into_libs=yes
5880 library_names_spec='$libname.ixlibrary $libname.a'
5881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5882 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'
5886 library_names_spec='${libname}.so'
5887 dynamic_linker="$host_os ld.so"
5888 shlibpath_var=LIBRARY_PATH
5894 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5895 soname_spec='${libname}${release}.so$major'
5896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5897 shlibpath_var=LD_LIBRARY_PATH
5898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5900 export_dynamic_flag_spec=-rdynamic
5901 # the default ld.so.conf also contains /usr/contrib/lib and
5902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5903 # libtool to hard-code these into programs
5906 cygwin* | mingw* | pw32*)
5907 version_type=windows
5910 case $GCC,$host_os in
5912 library_names_spec='$libname.dll.a'
5913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5914 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5915 dldir=$destdir/`dirname \$dlpath`~
5916 test -d \$dldir || mkdir -p \$dldir~
5917 $install_prog .libs/$dlname \$dldir/$dlname'
5918 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5919 dlpath=$dir/\$dldll~
5923 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5924 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5930 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5933 dynamic_linker='Win32 ld.exe'
5934 # FIXME: first we should search . and the directory the executable is in
5938 darwin* | rhapsody*)
5939 dynamic_linker="$host_os dyld"
5943 # FIXME: Relying on posixy $() will cause problems for
5944 # cross-compilation, but unfortunately the echo tests do not
5945 # yet detect zsh echo's removal of \ escapes.
5946 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)'
5947 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5948 shlibpath_overrides_runpath=yes
5949 shlibpath_var=DYLD_LIBRARY_PATH
5957 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5958 version_type=freebsd-$objformat
5959 case $version_type in
5961 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5966 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5970 shlibpath_var=LD_LIBRARY_PATH
5973 shlibpath_overrides_runpath=yes
5976 shlibpath_overrides_runpath=no
5977 hardcode_into_libs=yes
5986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5987 soname_spec='${libname}${release}.so$major'
5988 shlibpath_var=LD_LIBRARY_PATH
5989 hardcode_into_libs=yes
5992 hpux9* | hpux10* | hpux11*)
5993 # Give a soname corresponding to the major version so that dld.sl refuses to
5994 # link against other versions.
5995 dynamic_linker="$host_os dld.sl"
5999 shlibpath_var=SHLIB_PATH
6000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6001 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6002 soname_spec='${libname}${release}.sl$major'
6003 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6004 postinstall_cmds='chmod 555 $lib'
6007 irix5* | irix6* | nonstopux*)
6009 nonstopux*) version_type=nonstopux ;;
6010 *) version_type=irix ;;
6014 soname_spec='${libname}${release}.so$major'
6015 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6017 irix5* | nonstopux*)
6021 case $LD in # libtool.m4 will add one of these switches to LD
6022 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6023 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6024 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6025 *) libsuff= shlibsuff= libmagic=never-match;;
6029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6030 shlibpath_overrides_runpath=no
6031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6035 # No shared lib support for Linux oldld, aout, or coff.
6036 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6040 # This must be Linux ELF.
6045 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6046 soname_spec='${libname}${release}.so$major'
6047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6048 shlibpath_var=LD_LIBRARY_PATH
6049 shlibpath_overrides_runpath=no
6050 # This implies no fast_install, which is unacceptable.
6051 # Some rework will be needed to allow for fast_install
6052 # before this can be enabled.
6053 hardcode_into_libs=yes
6055 # We used to test for /lib/ld.so.1 and disable shared libraries on
6056 # powerpc, because MkLinux only supported shared libraries with the
6057 # GNU dynamic linker. Since this was broken with cross compilers,
6058 # most powerpc-linux boxes support dynamic linking these days and
6059 # people can always --disable-shared, the test was removed, and we
6060 # assume the GNU/Linux dynamic linker is in use.
6061 dynamic_linker='GNU/Linux ld.so'
6068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6069 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6071 dynamic_linker='NetBSD (a.out) ld.so'
6073 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6074 soname_spec='${libname}${release}.so$major'
6075 dynamic_linker='NetBSD ld.elf_so'
6077 shlibpath_var=LD_LIBRARY_PATH
6078 shlibpath_overrides_runpath=yes
6079 hardcode_into_libs=yes
6084 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6085 shlibpath_var=LD_LIBRARY_PATH
6086 shlibpath_overrides_runpath=yes
6093 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6095 openbsd2.[89] | openbsd2.[89].*)
6096 shlibpath_overrides_runpath=no
6099 shlibpath_overrides_runpath=yes
6103 shlibpath_overrides_runpath=yes
6105 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6107 shlibpath_var=LD_LIBRARY_PATH
6113 shlibpath_overrides_runpath=yes
6114 shlibpath_var=LIBPATH
6115 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6116 # the library's exports are in libname.x; this is the file that must
6117 # actually be linked with to use a DLL.
6118 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6122 libname_spec='$name'
6124 library_names_spec='$libname.dll $libname.a'
6125 dynamic_linker='OS/2 ld.exe'
6126 shlibpath_var=LIBPATH
6129 osf3* | osf4* | osf5*)
6132 soname_spec='${libname}${release}.so$major'
6133 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6134 shlibpath_var=LD_LIBRARY_PATH
6135 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6136 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6137 hardcode_into_libs=yes
6142 soname_spec='${libname}${release}.so$major'
6143 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6144 shlibpath_var=LD_LIBRARY_PATH
6151 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152 soname_spec='${libname}${release}.so$major'
6153 shlibpath_var=LD_LIBRARY_PATH
6154 shlibpath_overrides_runpath=yes
6155 hardcode_into_libs=yes
6156 # ldd complains unless libraries are executable
6157 postinstall_cmds='chmod +x $lib'
6162 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6164 shlibpath_var=LD_LIBRARY_PATH
6165 shlibpath_overrides_runpath=yes
6166 if test "$with_gnu_ld" = yes; then
6172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6174 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6175 soname_spec='${libname}${release}.so$major'
6176 shlibpath_var=LD_LIBRARY_PATH
6177 case $host_vendor in
6179 shlibpath_overrides_runpath=no
6181 export_dynamic_flag_spec='${wl}-Blargedynsym'
6182 runpath_var=LD_RUN_PATH
6190 shlibpath_overrides_runpath=no
6191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6199 soname_spec='${libname}${release}.so$major'
6200 shlibpath_var=LD_LIBRARY_PATH
6207 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6208 soname_spec='${libname}${release}.so$major'
6209 shlibpath_var=LD_LIBRARY_PATH
6213 if test -d /usr/nec ;then
6215 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6216 soname_spec='$libname.so.$major'
6217 shlibpath_var=LD_LIBRARY_PATH
6225 echo "$ac_t""$dynamic_linker" 1>&6
6226 test "$dynamic_linker" = no && can_build_shared=no
6228 # Report the final consequences.
6229 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6230 echo "configure:6231: checking if libtool supports shared libraries" >&5
6231 echo "$ac_t""$can_build_shared" 1>&6
6233 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6234 echo "configure:6235: checking whether to build shared libraries" >&5
6235 test "$can_build_shared" = "no" && enable_shared=no
6237 # On AIX, shared libraries and static libraries use the same namespace, and
6238 # are all built from PIC.
6241 test "$enable_shared" = yes && enable_static=no
6242 if test -n "$RANLIB"; then
6243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6244 postinstall_cmds='$RANLIB $lib'
6249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6250 test "$enable_shared" = yes && enable_static=no
6254 echo "$ac_t""$enable_shared" 1>&6
6256 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6257 echo "configure:6258: checking whether to build static libraries" >&5
6258 # Make sure either enable_shared or enable_static is yes.
6259 test "$enable_shared" = yes || enable_static=yes
6260 echo "$ac_t""$enable_static" 1>&6
6262 if test "$hardcode_action" = relink; then
6263 # Fast installation is not supported
6264 enable_fast_install=no
6265 elif test "$shlibpath_overrides_runpath" = yes ||
6266 test "$enable_shared" = no; then
6267 # Fast installation is not necessary
6268 enable_fast_install=needless
6271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6272 if test "$GCC" = yes; then
6273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6276 if test "x$enable_dlopen" != xyes; then
6277 enable_dlopen=unknown
6278 enable_dlopen_self=unknown
6279 enable_dlopen_self_static=unknown
6286 lt_cv_dlopen="load_add_on"
6288 lt_cv_dlopen_self=yes
6291 cygwin* | mingw* | pw32*)
6292 lt_cv_dlopen="LoadLibrary"
6297 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6298 echo "configure:6299: checking for dllload" >&5
6299 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char dllload(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6316 /* The GNU C library defines this for functions which it implements
6317 to always fail with ENOSYS. Some functions are actually named
6318 something starting with __ and the normal name is an alias. */
6319 #if defined (__stub_dllload) || defined (__stub___dllload)
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6329 eval "ac_cv_func_dllload=yes"
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 eval "ac_cv_func_dllload=no"
6339 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6340 echo "$ac_t""yes" 1>&6
6341 lt_cv_dlopen="dllload"
6343 echo "$ac_t""no" 1>&6
6344 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6345 echo "configure:6346: checking for shl_load" >&5
6346 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353 which can conflict with char shl_load(); below. */
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6376 eval "ac_cv_func_shl_load=yes"
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 eval "ac_cv_func_shl_load=no"
6386 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 lt_cv_dlopen="shl_load"
6390 echo "$ac_t""no" 1>&6
6391 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6392 echo "configure:6393: checking for shl_load in -ldld" >&5
6393 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6394 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 ac_save_LIBS="$LIBS"
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_lib_$ac_lib_var=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_lib_$ac_lib_var=no"
6421 LIBS="$ac_save_LIBS"
6424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6428 echo "$ac_t""no" 1>&6
6429 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6430 echo "configure:6431: checking for dlopen" >&5
6431 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 cat > conftest.$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* System header to define __stub macros and hopefully few prototypes,
6438 which can conflict with char dlopen(); below. */
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6448 /* The GNU C library defines this for functions which it implements
6449 to always fail with ENOSYS. Some functions are actually named
6450 something starting with __ and the normal name is an alias. */
6451 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6459 if { (eval echo configure:6460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6461 eval "ac_cv_func_dlopen=yes"
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 eval "ac_cv_func_dlopen=no"
6471 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6472 echo "$ac_t""yes" 1>&6
6473 lt_cv_dlopen="dlopen"
6475 echo "$ac_t""no" 1>&6
6476 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6477 echo "configure:6478: checking for dlopen in -ldl" >&5
6478 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 ac_save_LIBS="$LIBS"
6484 cat > conftest.$ac_ext <<EOF
6485 #line 6486 "configure"
6486 #include "confdefs.h"
6487 /* Override any gcc2 internal prototype to avoid an error. */
6488 /* We use char because int might match the return type of a gcc2
6489 builtin and then its argument prototype would still apply. */
6496 if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6498 eval "ac_cv_lib_$ac_lib_var=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.$ac_ext >&5
6503 eval "ac_cv_lib_$ac_lib_var=no"
6506 LIBS="$ac_save_LIBS"
6509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6510 echo "$ac_t""yes" 1>&6
6511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6513 echo "$ac_t""no" 1>&6
6514 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6515 echo "configure:6516: checking for dlopen in -lsvld" >&5
6516 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6517 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 ac_save_LIBS="$LIBS"
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6536 eval "ac_cv_lib_$ac_lib_var=yes"
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 eval "ac_cv_lib_$ac_lib_var=no"
6544 LIBS="$ac_save_LIBS"
6547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6548 echo "$ac_t""yes" 1>&6
6549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6551 echo "$ac_t""no" 1>&6
6552 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6553 echo "configure:6554: checking for dld_link in -ldld" >&5
6554 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6556 echo $ac_n "(cached) $ac_c" 1>&6
6558 ac_save_LIBS="$LIBS"
6560 cat > conftest.$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 /* We use char because int might match the return type of a gcc2
6565 builtin and then its argument prototype would still apply. */
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6574 eval "ac_cv_lib_$ac_lib_var=yes"
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6579 eval "ac_cv_lib_$ac_lib_var=no"
6582 LIBS="$ac_save_LIBS"
6585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6587 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6589 echo "$ac_t""no" 1>&6
6613 if test "x$lt_cv_dlopen" != xno; then
6619 case $lt_cv_dlopen in
6621 save_CPPFLAGS="$CPPFLAGS"
6622 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6624 save_LDFLAGS="$LDFLAGS"
6625 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6628 LIBS="$lt_cv_dlopen_libs $LIBS"
6630 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6631 echo "configure:6632: checking whether a program can dlopen itself" >&5
6632 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 if test "$cross_compiling" = yes; then :
6636 lt_cv_dlopen_self=cross
6638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6639 lt_status=$lt_dlunknown
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6651 # define LT_DLGLOBAL RTLD_GLOBAL
6654 # define LT_DLGLOBAL DL_GLOBAL
6656 # define LT_DLGLOBAL 0
6660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6661 find out it does not work in some platform. */
6662 #ifndef LT_DLLAZY_OR_NOW
6664 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6667 # define LT_DLLAZY_OR_NOW DL_LAZY
6670 # define LT_DLLAZY_OR_NOW RTLD_NOW
6673 # define LT_DLLAZY_OR_NOW DL_NOW
6675 # define LT_DLLAZY_OR_NOW 0
6683 extern "C" void exit (int);
6686 void fnord() { int i=42;}
6689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6690 int status = $lt_dlunknown;
6694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6696 /* dlclose (self); */
6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6703 (./conftest; exit; ) 2>/dev/null
6706 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6707 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6708 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6711 # compilation failed
6712 lt_cv_dlopen_self=no
6720 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6722 if test "x$lt_cv_dlopen_self" = xyes; then
6723 LDFLAGS="$LDFLAGS $link_static_flag"
6724 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6725 echo "configure:6726: checking whether a statically linked program can dlopen itself" >&5
6726 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6727 echo $ac_n "(cached) $ac_c" 1>&6
6729 if test "$cross_compiling" = yes; then :
6730 lt_cv_dlopen_self_static=cross
6732 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6733 lt_status=$lt_dlunknown
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6745 # define LT_DLGLOBAL RTLD_GLOBAL
6748 # define LT_DLGLOBAL DL_GLOBAL
6750 # define LT_DLGLOBAL 0
6754 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6755 find out it does not work in some platform. */
6756 #ifndef LT_DLLAZY_OR_NOW
6758 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6761 # define LT_DLLAZY_OR_NOW DL_LAZY
6764 # define LT_DLLAZY_OR_NOW RTLD_NOW
6767 # define LT_DLLAZY_OR_NOW DL_NOW
6769 # define LT_DLLAZY_OR_NOW 0
6777 extern "C" void exit (int);
6780 void fnord() { int i=42;}
6783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6784 int status = $lt_dlunknown;
6788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6789 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6790 /* dlclose (self); */
6796 if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6797 (./conftest; exit; ) 2>/dev/null
6800 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6801 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6802 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6805 # compilation failed
6806 lt_cv_dlopen_self_static=no
6814 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6817 CPPFLAGS="$save_CPPFLAGS"
6818 LDFLAGS="$save_LDFLAGS"
6823 case $lt_cv_dlopen_self in
6824 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6825 *) enable_dlopen_self=unknown ;;
6828 case $lt_cv_dlopen_self_static in
6829 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6830 *) enable_dlopen_self_static=unknown ;;
6835 if test "$enable_shared" = yes && test "$GCC" = yes; then
6836 case $archive_cmds in
6838 # FIXME: we may have to deal with multi-command sequences.
6841 # Test whether the compiler implicitly links with -lc since on some
6842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6843 # to ld, don't add -lc before -lgcc.
6844 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6845 echo "configure:6846: checking whether -lc should be explicitly linked in" >&5
6846 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6847 echo $ac_n "(cached) $ac_c" 1>&6
6850 echo 'static int dummy;' > conftest.$ac_ext
6852 if { (eval echo configure:6853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6855 libobjs=conftest.$ac_objext
6857 wl=$lt_cv_prog_cc_wl
6863 save_allow_undefined_flag=$allow_undefined_flag
6864 allow_undefined_flag=
6865 if { (eval echo configure:6866: \"$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; }
6867 lt_cv_archive_cmds_need_lc=no
6869 lt_cv_archive_cmds_need_lc=yes
6871 allow_undefined_flag=$save_allow_undefined_flag
6873 cat conftest.err 1>&5
6877 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
6881 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6883 # The second clause should only fire when bootstrapping the
6884 # libtool distribution, otherwise you forgot to ship ltmain.sh
6885 # with your package, and you will get complaints that there are
6886 # no rules to generate ltmain.sh.
6887 if test -f "$ltmain"; then
6890 # If there is no Makefile yet, we rely on a make rule to execute
6891 # `config.status --recheck' to rerun these tests and create the
6892 # libtool script then.
6893 test -f Makefile && make "$ltmain"
6896 if test -f "$ltmain"; then
6897 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6900 echo creating $ofile
6902 # Now quote all the things that may contain metacharacters while being
6903 # careful not to overquote the AC_SUBSTed values. We take copies of the
6904 # variables and quote the copies for generation of the libtool script.
6905 for var in echo old_CC old_CFLAGS SED \
6906 AR AR_FLAGS CC LD LN_S NM SHELL \
6907 reload_flag reload_cmds wl \
6908 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6909 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6910 library_names_spec soname_spec \
6911 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6912 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6913 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6914 old_striplib striplib file_magic_cmd export_symbols_cmds \
6915 deplibs_check_method allow_undefined_flag no_undefined_flag \
6916 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6917 global_symbol_to_c_name_address \
6918 hardcode_libdir_flag_spec hardcode_libdir_separator \
6919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6920 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6923 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6924 old_postinstall_cmds | old_postuninstall_cmds | \
6925 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6926 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6927 postinstall_cmds | postuninstall_cmds | \
6928 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6929 # Double-quote double-evaled strings.
6930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6938 cat <<__EOF__ > "${ofile}T"
6941 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6942 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6943 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6945 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6946 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6948 # This program is free software; you can redistribute it and/or modify
6949 # it under the terms of the GNU General Public License as published by
6950 # the Free Software Foundation; either version 2 of the License, or
6951 # (at your option) any later version.
6953 # This program is distributed in the hope that it will be useful, but
6954 # WITHOUT ANY WARRANTY; without even the implied warranty of
6955 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6956 # General Public License for more details.
6958 # You should have received a copy of the GNU General Public License
6959 # along with this program; if not, write to the Free Software
6960 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6962 # As a special exception to the GNU General Public License, if you
6963 # distribute this file as part of a program that contains a
6964 # configuration script generated by Autoconf, you may include it under
6965 # the same distribution terms that you use for the rest of that program.
6967 # A sed that does not truncate output.
6970 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6971 Xsed="${SED} -e s/^X//"
6973 # The HP-UX ksh and POSIX shell print the target directory to stdout
6975 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6977 # ### BEGIN LIBTOOL CONFIG
6979 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6981 # Shell to use when invoking shell scripts.
6984 # Whether or not to build shared libraries.
6985 build_libtool_libs=$enable_shared
6987 # Whether or not to build static libraries.
6988 build_old_libs=$enable_static
6990 # Whether or not to add -lc for building shared libraries.
6991 build_libtool_need_lc=$need_lc
6993 # Whether or not to optimize for fast installation.
6994 fast_install=$enable_fast_install
6997 host_alias=$host_alias
7000 # An echo program that does not interpret backslashes.
7005 AR_FLAGS=$lt_AR_FLAGS
7007 # The default C compiler.
7010 # Is the compiler the GNU C compiler?
7013 # The linker used to build libraries.
7016 # Whether we need hard or soft links.
7019 # A BSD-compatible nm program.
7022 # A symbol stripping program
7025 # Used to examine libraries when file_magic_cmd begins "file"
7026 MAGIC_CMD=$MAGIC_CMD
7028 # Used on cygwin: DLL creation program.
7031 # Used on cygwin: object dumper.
7034 # Used on cygwin: assembler.
7037 # The name of the directory that contains temporary libtool files.
7040 # How to create reloadable object files.
7041 reload_flag=$lt_reload_flag
7042 reload_cmds=$lt_reload_cmds
7044 # How to pass a linker flag through the compiler.
7047 # Object file suffix (normally "o").
7050 # Old archive suffix (normally "a").
7053 # Executable file suffix (normally "").
7056 # Additional compiler flags for building library objects.
7057 pic_flag=$lt_pic_flag
7060 # Does compiler simultaneously support -c and -o options?
7061 compiler_c_o=$lt_compiler_c_o
7063 # Can we write directly to a .lo ?
7064 compiler_o_lo=$lt_compiler_o_lo
7066 # Must we lock files when doing compilation ?
7067 need_locks=$lt_need_locks
7069 # Do we need the lib prefix for modules?
7070 need_lib_prefix=$need_lib_prefix
7072 # Do we need a version for libraries?
7073 need_version=$need_version
7075 # Whether dlopen is supported.
7076 dlopen_support=$enable_dlopen
7078 # Whether dlopen of programs is supported.
7079 dlopen_self=$enable_dlopen_self
7081 # Whether dlopen of statically linked programs is supported.
7082 dlopen_self_static=$enable_dlopen_self_static
7084 # Compiler flag to prevent dynamic linking.
7085 link_static_flag=$lt_link_static_flag
7087 # Compiler flag to turn off builtin functions.
7088 no_builtin_flag=$lt_no_builtin_flag
7090 # Compiler flag to allow reflexive dlopens.
7091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7093 # Compiler flag to generate shared objects directly from archives.
7094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7096 # Compiler flag to generate thread-safe objects.
7097 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7099 # Library versioning type.
7100 version_type=$version_type
7102 # Format of library name prefix.
7103 libname_spec=$lt_libname_spec
7105 # List of archive names. First name is the real one, the rest are links.
7106 # The last name is the one that the linker finds with -lNAME.
7107 library_names_spec=$lt_library_names_spec
7109 # The coded name of the library, if different from the real name.
7110 soname_spec=$lt_soname_spec
7112 # Commands used to build and install an old-style archive.
7114 old_archive_cmds=$lt_old_archive_cmds
7115 old_postinstall_cmds=$lt_old_postinstall_cmds
7116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7118 # Create an old-style archive from a shared archive.
7119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7121 # Create a temporary old-style archive to link instead of a shared archive.
7122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7124 # Commands used to build and install a shared archive.
7125 archive_cmds=$lt_archive_cmds
7126 archive_expsym_cmds=$lt_archive_expsym_cmds
7127 postinstall_cmds=$lt_postinstall_cmds
7128 postuninstall_cmds=$lt_postuninstall_cmds
7130 # Commands to strip libraries.
7131 old_striplib=$lt_old_striplib
7132 striplib=$lt_striplib
7134 # Method to check whether dependent libraries are shared objects.
7135 deplibs_check_method=$lt_deplibs_check_method
7137 # Command to use when deplibs_check_method == file_magic.
7138 file_magic_cmd=$lt_file_magic_cmd
7140 # Flag that allows shared libraries with undefined symbols to be built.
7141 allow_undefined_flag=$lt_allow_undefined_flag
7143 # Flag that forces no undefined symbols.
7144 no_undefined_flag=$lt_no_undefined_flag
7146 # Commands used to finish a libtool library installation in a directory.
7147 finish_cmds=$lt_finish_cmds
7149 # Same as above, but a single script fragment to be evaled but not shown.
7150 finish_eval=$lt_finish_eval
7152 # Take the output of nm and produce a listing of raw symbols and C names.
7153 global_symbol_pipe=$lt_global_symbol_pipe
7155 # Transform the output of nm in a proper C declaration
7156 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7158 # Transform the output of nm in a C name address pair
7159 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7161 # This is the shared library runtime path variable.
7162 runpath_var=$runpath_var
7164 # This is the shared library path variable.
7165 shlibpath_var=$shlibpath_var
7167 # Is shlibpath searched before the hard-coded library search path?
7168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7170 # How to hardcode a shared library path into an executable.
7171 hardcode_action=$hardcode_action
7173 # Whether we should hardcode library paths into libraries.
7174 hardcode_into_libs=$hardcode_into_libs
7176 # Flag to hardcode \$libdir into a binary during linking.
7177 # This must work even if \$libdir does not exist.
7178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7180 # Whether we need a single -rpath flag with a separated argument.
7181 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7183 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7185 hardcode_direct=$hardcode_direct
7187 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7189 hardcode_minus_L=$hardcode_minus_L
7191 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7192 # the resulting binary.
7193 hardcode_shlibpath_var=$hardcode_shlibpath_var
7195 # Variables whose values should be saved in libtool wrapper scripts and
7196 # restored at relink time.
7197 variables_saved_for_relink="$variables_saved_for_relink"
7199 # Whether libtool must link a program against all its dependency libraries.
7200 link_all_deplibs=$link_all_deplibs
7202 # Compile-time system search path for libraries
7203 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7205 # Run-time system search path for libraries
7206 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7208 # Fix the shell variable \$srcfile for the compiler.
7209 fix_srcfile_path="$fix_srcfile_path"
7211 # Set to yes if exported symbols are required.
7212 always_export_symbols=$always_export_symbols
7214 # The commands to list exported symbols.
7215 export_symbols_cmds=$lt_export_symbols_cmds
7217 # The commands to extract the exported symbol list from a shared archive.
7218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7220 # Symbols that should not be listed in the preloaded symbols.
7221 exclude_expsyms=$lt_exclude_expsyms
7223 # Symbols that must always be exported.
7224 include_expsyms=$lt_include_expsyms
7226 # ### END LIBTOOL CONFIG
7232 cat <<\EOF >> "${ofile}T"
7234 # AIX sometimes has problems with the GCC collect2 program. For some
7235 # reason, if we set the COLLECT_NAMES environment variable, the problems
7236 # vanish in a puff of smoke.
7237 if test "X${COLLECT_NAMES+set}" != Xset; then
7239 export COLLECT_NAMES
7246 cygwin* | mingw* | pw32* | os2*)
7247 cat <<'EOF' >> "${ofile}T"
7248 # This is a source program that is used to create dlls on Windows
7249 # Don't remove nor modify the starting and closing comments
7250 # /* ltdll.c starts here */
7251 # #define WIN32_LEAN_AND_MEAN
7252 # #include <windows.h>
7253 # #undef WIN32_LEAN_AND_MEAN
7254 # #include <stdio.h>
7256 # #ifndef __CYGWIN__
7257 # # ifdef __CYGWIN32__
7258 # # define __CYGWIN__ __CYGWIN32__
7262 # #ifdef __cplusplus
7265 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7266 # #ifdef __cplusplus
7271 # #include <cygwin/cygwin_dll.h>
7272 # DECLARE_CYGWIN_DLL( DllMain );
7274 # HINSTANCE __hDllInstance_base;
7277 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7279 # __hDllInstance_base = hInst;
7282 # /* ltdll.c ends here */
7283 # This is a source program that is used to create import libraries
7284 # on Windows for dlls which lack them. Don't remove nor modify the
7285 # starting and closing comments
7286 # /* impgen.c starts here */
7287 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7289 # This file is part of GNU libtool.
7291 # This program is free software; you can redistribute it and/or modify
7292 # it under the terms of the GNU General Public License as published by
7293 # the Free Software Foundation; either version 2 of the License, or
7294 # (at your option) any later version.
7296 # This program is distributed in the hope that it will be useful,
7297 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7299 # GNU General Public License for more details.
7301 # You should have received a copy of the GNU General Public License
7302 # along with this program; if not, write to the Free Software
7303 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7306 # #include <stdio.h> /* for printf() */
7307 # #include <unistd.h> /* for open(), lseek(), read() */
7308 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7309 # #include <string.h> /* for strdup() */
7311 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7313 # #define O_BINARY 0
7316 # static unsigned int
7317 # pe_get16 (fd, offset)
7321 # unsigned char b[2];
7322 # lseek (fd, offset, SEEK_SET);
7324 # return b[0] + (b[1]<<8);
7327 # static unsigned int
7328 # pe_get32 (fd, offset)
7332 # unsigned char b[4];
7333 # lseek (fd, offset, SEEK_SET);
7335 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7338 # static unsigned int
7342 # unsigned char *b = ptr;
7343 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7352 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7353 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7354 # unsigned long name_rvas, nexp;
7355 # unsigned char *expdata, *erva;
7356 # char *filename, *dll_name;
7358 # filename = argv[1];
7360 # dll = open(filename, O_RDONLY|O_BINARY);
7364 # dll_name = filename;
7366 # for (i=0; filename[i]; i++)
7367 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7368 # dll_name = filename + i +1;
7370 # pe_header_offset = pe_get32 (dll, 0x3c);
7371 # opthdr_ofs = pe_header_offset + 4 + 20;
7372 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7374 # if (num_entries < 1) /* no exports */
7377 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7378 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7379 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7380 # secptr = (pe_header_offset + 4 + 20 +
7381 # pe_get16 (dll, pe_header_offset + 4 + 16));
7384 # for (i = 0; i < nsections; i++)
7387 # unsigned long secptr1 = secptr + 40 * i;
7388 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7389 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7390 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7391 # lseek(dll, secptr1, SEEK_SET);
7392 # read(dll, sname, 8);
7393 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7395 # expptr = fptr + (export_rva - vaddr);
7396 # if (export_rva + export_size > vaddr + vsize)
7397 # export_size = vsize - (export_rva - vaddr);
7402 # expdata = (unsigned char*)malloc(export_size);
7403 # lseek (dll, expptr, SEEK_SET);
7404 # read (dll, expdata, export_size);
7405 # erva = expdata - export_rva;
7407 # nexp = pe_as32 (expdata+24);
7408 # name_rvas = pe_as32 (expdata+32);
7410 # printf ("EXPORTS\n");
7411 # for (i = 0; i<nexp; i++)
7413 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7414 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7419 # /* impgen.c ends here */
7425 # We use sed instead of cat because bash on DJGPP gets confused if
7426 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7427 # text mode, it properly converts lines to CR/LF. This bash problem
7428 # is reportedly fixed, but why not run on old versions too?
7429 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7431 mv -f "${ofile}T" "$ofile" || \
7432 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7440 # This can be used to rebuild libtool when needed
7441 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7443 # Always use our own libtool.
7444 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7446 # Prevent multiple expansion
7450 # test for ln hardlink support
7451 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7452 echo "configure:7453: checking whether ln works" >&5
7453 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 rm -f conftest.src conftest.dst
7457 echo "conftest" > conftest.src
7458 if ln conftest.src conftest.dst 2>/dev/null
7460 ol_cv_prog_LN_H="ln"
7462 ol_cv_prog_LN_H="cp"
7464 rm -f conftest.src conftest.dst
7467 LN_H="$ol_cv_prog_LN_H"
7468 if test "$ol_cv_prog_LN_H" = "ln"; then
7469 echo "$ac_t""yes" 1>&6
7471 echo "$ac_t""no" 1>&6
7474 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7475 echo "configure:7476: checking whether ln -s works" >&5
7476 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7477 echo $ac_n "(cached) $ac_c" 1>&6
7480 if ln -s X conftestdata 2>/dev/null
7483 ac_cv_prog_LN_S="ln -s"
7488 LN_S="$ac_cv_prog_LN_S"
7489 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7490 echo "$ac_t""yes" 1>&6
7492 echo "$ac_t""no" 1>&6
7497 if test $ol_enable_perl != no ; then
7498 # Extract the first word of "perl", so it can be a program name with args.
7499 set dummy perl; ac_word=$2
7500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_word" >&5
7502 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7507 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7510 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7515 for ac_dir in $ac_dummy; do
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f $ac_dir/$ac_word; then
7518 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7523 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7527 PERLBIN="$ac_cv_path_PERLBIN"
7528 if test -n "$PERLBIN"; then
7529 echo "$ac_t""$PERLBIN" 1>&6
7531 echo "$ac_t""no" 1>&6
7535 if test "no$PERLBIN" = "no" ; then
7536 if test $ol_enable_perl = yes ; then
7537 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7541 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7542 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7544 if test x"$ol_enable_perl" = "xyes" ; then
7545 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7547 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7553 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7554 echo "configure:7555: checking how to run the C preprocessor" >&5
7555 # On Suns, sometimes $CPP names a directory.
7556 if test -n "$CPP" && test -d "$CPP"; then
7559 if test -z "$CPP"; then
7560 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7563 # This must be in double quotes, not single quotes, because CPP may get
7564 # substituted into the Makefile and "${CC-cc}" will confuse make.
7566 # On the NeXT, cc -E runs the code through the compiler's parser,
7567 # not just through cpp.
7568 cat > conftest.$ac_ext <<EOF
7569 #line 7570 "configure"
7570 #include "confdefs.h"
7574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7575 { (eval echo configure:7576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7577 if test -z "$ac_err"; then
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 CPP="${CC-cc} -E -traditional-cpp"
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7592 { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7594 if test -z "$ac_err"; then
7598 echo "configure: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7601 CPP="${CC-cc} -nologo -E"
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7609 { (eval echo configure:7610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7611 if test -z "$ac_err"; then
7615 echo "configure: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7625 ac_cv_prog_CPP="$CPP"
7627 CPP="$ac_cv_prog_CPP"
7629 ac_cv_prog_CPP="$CPP"
7631 echo "$ac_t""$CPP" 1>&6
7635 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7636 echo "configure:7637: checking for Cygwin environment" >&5
7637 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7647 #define __CYGWIN__ __CYGWIN32__
7652 if { (eval echo configure:7653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7656 echo "configure: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7664 echo "$ac_t""$ac_cv_cygwin" 1>&6
7666 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7667 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7668 echo "configure:7669: checking for mingw32 environment" >&5
7669 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure"
7674 #include "confdefs.h"
7680 if { (eval echo configure:7681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7692 echo "$ac_t""$ac_cv_mingw32" 1>&6
7694 test "$ac_cv_mingw32" = yes && MINGW32=yes
7698 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7699 echo "configure:7700: checking for executable suffix" >&5
7700 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7707 echo 'int main () { return 0; }' > conftest.$ac_ext
7709 if { (eval echo configure:7710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7710 for file in conftest.*; do
7712 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7713 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7717 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7720 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7725 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7726 echo "$ac_t""${ac_cv_exeext}" 1>&6
7729 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7730 echo "configure:7731: checking for object suffix" >&5
7731 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7735 echo 'int i = 1;' > conftest.$ac_ext
7736 if { (eval echo configure:7737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7737 for ac_file in conftest.*; do
7740 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7744 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7749 echo "$ac_t""$ac_cv_objext" 1>&6
7750 OBJEXT=$ac_cv_objext
7751 ac_objext=$ac_cv_objext
7754 cat >> confdefs.h <<EOF
7755 #define EXEEXT "${EXEEXT}"
7759 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7760 echo "configure:7761: checking for be_app in -lbe" >&5
7761 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7765 ac_save_LIBS="$LIBS"
7766 LIBS="-lbe -lroot -lnet $LIBS"
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* Override any gcc2 internal prototype to avoid an error. */
7771 /* We use char because int might match the return type of a gcc2
7772 builtin and then its argument prototype would still apply. */
7779 if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7781 eval "ac_cv_lib_$ac_lib_var=yes"
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 eval "ac_cv_lib_$ac_lib_var=no"
7789 LIBS="$ac_save_LIBS"
7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7793 echo "$ac_t""yes" 1>&6
7794 LIBS="$LIBS -lbe -lroot -lnet"
7796 echo "$ac_t""no" 1>&6
7804 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7805 echo "configure:7806: checking for ${CC-cc} option to accept ANSI C" >&5
7806 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 am_cv_prog_cc_stdc=no
7811 # Don't try gcc -ansi; that turns off useful extensions and
7812 # breaks some systems' header files.
7813 # AIX -qlanglvl=ansi
7814 # Ultrix and OSF/1 -std1
7815 # HP-UX 10.20 and later -Ae
7816 # HP-UX older versions -Aa -D_HPUX_SOURCE
7817 # SVR4 -Xc -D__EXTENSIONS__
7818 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7820 CC="$ac_save_CC $ac_arg"
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7826 #include <sys/types.h>
7827 #include <sys/stat.h>
7828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7829 struct buf { int x; };
7830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7831 static char *e (p, i)
7837 static char *f (char * (*g) (char **, int), char **p, ...)
7842 s = g (p, va_arg (v,int));
7846 int test (int i, double x);
7847 struct s1 {int (*f) (int a);};
7848 struct s2 {int (*f) (double a);};
7849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7859 if { (eval echo configure:7860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7861 am_cv_prog_cc_stdc="$ac_arg"; break
7863 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7872 if test -z "$am_cv_prog_cc_stdc"; then
7873 echo "$ac_t""none needed" 1>&6
7875 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
7877 case "x$am_cv_prog_cc_stdc" in
7879 *) CC="$CC $am_cv_prog_cc_stdc" ;;
7882 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
7883 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
7886 # test for make depend flag
7889 if test -z "${MKDEP}"; then
7891 if test -z "${MKDEP_FLAGS}"; then
7892 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
7893 echo "configure:7894: checking for ${OL_MKDEP} depend flag" >&5
7894 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7899 for flag in "-M" "-xM"; do
7900 cat > conftest.c <<EOF
7903 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:7904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
7904 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
7906 if test ! -f conftest."${ac_object}" ; then
7908 OL_MKDEP_FLAGS="$flag"
7917 echo "$ac_t""$ol_cv_mkdep" 1>&6
7920 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7925 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7930 if test "${ol_cv_mkdep}" = no ; then
7931 # this will soon become an error
7932 echo "configure: warning: do not know how to generate dependencies" 1>&2
7935 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
7936 echo "configure:7937: checking for afopen in -ls" >&5
7937 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
7938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 ac_save_LIBS="$LIBS"
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7957 eval "ac_cv_lib_$ac_lib_var=yes"
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 eval "ac_cv_lib_$ac_lib_var=no"
7965 LIBS="$ac_save_LIBS"
7968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7969 echo "$ac_t""yes" 1>&6
7972 cat >> confdefs.h <<\EOF
7973 #define HAVE_AIX_SECURITY 1
7978 echo "$ac_t""no" 1>&6
7984 ac_cv_func_getopt=no
7985 cat >> confdefs.h <<\EOF
7986 #define BOTH_STRINGS_H 1
7993 if test $ol_enable_modules != no ; then
7994 for ac_hdr in ltdl.h
7996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7998 echo "configure:7999: checking for $ac_hdr" >&5
7999 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8008 { (eval echo configure:8009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8010 if test -z "$ac_err"; then
8012 eval "ac_cv_header_$ac_safe=yes"
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8018 eval "ac_cv_header_$ac_safe=no"
8022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8025 cat >> confdefs.h <<EOF
8026 #define $ac_tr_hdr 1
8030 echo "$ac_t""no" 1>&6
8035 if test $ac_cv_header_ltdl_h = no ; then
8036 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8039 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8040 echo "configure:8041: checking for lt_dlinit in -lltdl" >&5
8041 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8043 echo $ac_n "(cached) $ac_c" 1>&6
8045 ac_save_LIBS="$LIBS"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 /* We use char because int might match the return type of a gcc2
8052 builtin and then its argument prototype would still apply. */
8059 if { (eval echo configure:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8061 eval "ac_cv_lib_$ac_lib_var=yes"
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8066 eval "ac_cv_lib_$ac_lib_var=no"
8069 LIBS="$ac_save_LIBS"
8072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8076 cat >> confdefs.h <<\EOF
8077 #define HAVE_LIBLTDL 1
8082 echo "$ac_t""no" 1>&6
8086 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8087 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8092 for i in $Backends; do
8093 eval "ol_tmp=\$ol_enable_$i"
8094 if test $ol_tmp = mod ; then
8095 echo "configure: warning: building static $i backend" 1>&2
8096 eval "ol_enable_$i=yes"
8099 for i in $Overlays; do
8100 eval "ol_tmp=\$ol_enable_$i"
8101 if test $ol_tmp = mod ; then
8102 echo "configure: warning: building static $i overlay" 1>&2
8103 eval "ol_enable_$i=yes"
8109 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8110 echo "configure:8111: checking for EBCDIC" >&5
8111 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8115 cat > conftest.$ac_ext <<EOF
8116 #line 8117 "configure"
8117 #include "confdefs.h"
8120 #include <__ASCII__/generate_error.h>
8124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8129 ol_cv_cpp_ebcdic=yes
8132 echo "configure: failed program was:" >&5
8133 cat conftest.$ac_ext >&5
8140 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8141 if test $ol_cv_cpp_ebcdic = yes ; then
8142 cat >> confdefs.h <<\EOF
8143 #define HAVE_EBCDIC 1
8148 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8149 echo "configure:8150: checking for ANSI C header files" >&5
8150 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure:8163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8164 if test -z "$ac_err"; then
8166 ol_cv_header_stdc=yes
8169 echo "configure: failed program was:" >&5
8170 cat conftest.$ac_ext >&5
8172 ol_cv_header_stdc=no
8176 if test $ol_cv_header_stdc = yes; then
8177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8184 egrep "memchr" >/dev/null 2>&1; then
8188 ol_cv_header_stdc=no
8194 if test $ol_cv_header_stdc = yes; then
8195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8202 egrep "free" >/dev/null 2>&1; then
8206 ol_cv_header_stdc=no
8212 if test $ol_cv_header_stdc = yes; then
8213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8214 if test "$cross_compiling" = yes; then
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8225 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8226 || ('j' <= (c) && (c) <= 'r') \
8227 || ('s' <= (c) && (c) <= 'z'))
8228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8230 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8231 int main () { int i; for (i = 0; i < 256; i++)
8232 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 ol_cv_header_stdc=no
8251 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8252 if test $ol_cv_header_stdc = yes; then
8253 cat >> confdefs.h <<\EOF
8254 #define STDC_HEADERS 1
8258 ac_cv_header_stdc=disable
8261 if test $ol_cv_header_stdc != yes; then
8262 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8266 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8269 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8270 echo "configure:8271: checking for $ac_hdr that defines DIR" >&5
8271 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 #include <sys/types.h>
8283 if { (eval echo configure:8284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8285 eval "ac_cv_header_dirent_$ac_safe=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_header_dirent_$ac_safe=no"
8294 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_hdr 1
8300 ac_header_dirent=$ac_hdr; break
8302 echo "$ac_t""no" 1>&6
8305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8306 if test $ac_header_dirent = dirent.h; then
8307 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8308 echo "configure:8309: checking for opendir in -ldir" >&5
8309 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 ac_save_LIBS="$LIBS"
8315 cat > conftest.$ac_ext <<EOF
8316 #line 8317 "configure"
8317 #include "confdefs.h"
8318 /* Override any gcc2 internal prototype to avoid an error. */
8319 /* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */
8327 if { (eval echo configure:8328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8329 eval "ac_cv_lib_$ac_lib_var=yes"
8331 echo "configure: failed program was:" >&5
8332 cat conftest.$ac_ext >&5
8334 eval "ac_cv_lib_$ac_lib_var=no"
8337 LIBS="$ac_save_LIBS"
8340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8341 echo "$ac_t""yes" 1>&6
8344 echo "$ac_t""no" 1>&6
8348 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8349 echo "configure:8350: checking for opendir in -lx" >&5
8350 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8352 echo $ac_n "(cached) $ac_c" 1>&6
8354 ac_save_LIBS="$LIBS"
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8368 if { (eval echo configure:8369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8370 eval "ac_cv_lib_$ac_lib_var=yes"
8372 echo "configure: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8375 eval "ac_cv_lib_$ac_lib_var=no"
8378 LIBS="$ac_save_LIBS"
8381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8382 echo "$ac_t""yes" 1>&6
8385 echo "$ac_t""no" 1>&6
8390 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8391 echo "configure:8392: checking for sys/wait.h that is POSIX.1 compatible" >&5
8392 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 #include <sys/types.h>
8399 #include <sys/wait.h>
8401 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8404 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8409 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8412 if { (eval echo configure:8413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8414 ac_cv_header_sys_wait_h=yes
8416 echo "configure: failed program was:" >&5
8417 cat conftest.$ac_ext >&5
8419 ac_cv_header_sys_wait_h=no
8424 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8425 if test $ac_cv_header_sys_wait_h = yes; then
8426 cat >> confdefs.h <<\EOF
8427 #define HAVE_SYS_WAIT_H 1
8432 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8433 echo "configure:8434: checking POSIX termios" >&5
8434 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 #include <sys/types.h>
8442 #include <termios.h>
8444 /* SunOS 4.0.3 has termios.h but not the library calls. */
8448 if { (eval echo configure:8449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8450 am_cv_sys_posix_termios=yes
8452 echo "configure: failed program was:" >&5
8453 cat conftest.$ac_ext >&5
8455 am_cv_sys_posix_termios=no
8460 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8463 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8464 echo "configure:8465: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8465 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8470 gwinsz_in_termios_h=no
8471 if test $am_cv_sys_posix_termios = yes; then
8472 cat > conftest.$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 #include <sys/types.h>
8476 # include <termios.h>
8482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483 egrep "yes" >/dev/null 2>&1; then
8485 gwinsz_in_termios_h=yes
8491 if test $gwinsz_in_termios_h = no; then
8492 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure"
8494 #include "confdefs.h"
8495 #include <sys/types.h>
8496 # include <sys/ioctl.h>
8502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8503 egrep "yes" >/dev/null 2>&1; then
8505 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8513 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8514 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8515 cat >> confdefs.h <<\EOF
8516 #define GWINSZ_IN_SYS_IOCTL 1
8521 if test $am_cv_sys_posix_termios = yes ; then
8522 cat >> confdefs.h <<\EOF
8523 #define HAVE_POSIX_TERMIOS 1
8579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8581 echo "configure:8582: checking for $ac_hdr" >&5
8582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8591 { (eval echo configure:8592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8593 if test -z "$ac_err"; then
8595 eval "ac_cv_header_$ac_safe=yes"
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8601 eval "ac_cv_header_$ac_safe=no"
8605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8606 echo "$ac_t""yes" 1>&6
8607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8608 cat >> confdefs.h <<EOF
8609 #define $ac_tr_hdr 1
8613 echo "$ac_t""no" 1>&6
8620 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8621 echo "configure:8622: checking for sigset in -lV3" >&5
8622 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8626 ac_save_LIBS="$LIBS"
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8631 /* Override any gcc2 internal prototype to avoid an error. */
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8640 if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8642 eval "ac_cv_lib_$ac_lib_var=yes"
8644 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8647 eval "ac_cv_lib_$ac_lib_var=no"
8650 LIBS="$ac_save_LIBS"
8653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8654 echo "$ac_t""yes" 1>&6
8655 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8657 cat >> confdefs.h <<EOF
8658 #define $ac_tr_lib 1
8664 echo "$ac_t""no" 1>&6
8668 if test "$ac_cv_header_winsock_h" = yes; then
8669 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8670 echo "configure:8671: checking for winsock" >&5
8671 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8675 for curlib in ws2_32 wsock32; do
8676 LIBS="$LIBS -l$curlib"
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8680 #include <winsock.h>
8685 select(0,NULL,NULL,NULL,NULL);
8687 gethostname(NULL,0);
8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8702 if test $ol_cv_winsock = yes; then
8703 cat >> confdefs.h <<\EOF
8704 #define HAVE_WINSOCK 1
8707 ac_cv_func_socket=yes
8708 ac_cv_func_select=yes
8709 ac_cv_func_closesocket=yes
8710 ac_cv_func_gethostname=yes
8711 if test $curlib = ws2_32; then
8712 ol_cv_winsock=winsock2
8713 cat >> confdefs.h <<\EOF
8714 #define HAVE_WINSOCK2 1
8724 echo "$ac_t""$ol_cv_winsock" 1>&6
8728 echo $ac_n "checking for socket""... $ac_c" 1>&6
8729 echo "configure:8730: checking for socket" >&5
8730 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8733 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure"
8735 #include "confdefs.h"
8736 /* System header to define __stub macros and hopefully few prototypes,
8737 which can conflict with char socket(); below. */
8739 /* Override any gcc2 internal prototype to avoid an error. */
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8747 /* The GNU C library defines this for functions which it implements
8748 to always fail with ENOSYS. Some functions are actually named
8749 something starting with __ and the normal name is an alias. */
8750 #if defined (__stub_socket) || defined (__stub___socket)
8758 if { (eval echo configure:8759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8760 eval "ac_cv_func_socket=yes"
8762 echo "configure: failed program was:" >&5
8763 cat conftest.$ac_ext >&5
8765 eval "ac_cv_func_socket=no"
8770 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8771 echo "$ac_t""yes" 1>&6
8774 echo "$ac_t""no" 1>&6
8776 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8777 echo "configure:8778: checking for main in -lsocket" >&5
8778 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8779 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8782 ac_save_LIBS="$LIBS"
8783 LIBS="-lsocket $LIBS"
8784 cat > conftest.$ac_ext <<EOF
8785 #line 8786 "configure"
8786 #include "confdefs.h"
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8794 eval "ac_cv_lib_$ac_lib_var=yes"
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8799 eval "ac_cv_lib_$ac_lib_var=no"
8802 LIBS="$ac_save_LIBS"
8805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8806 echo "$ac_t""yes" 1>&6
8807 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8809 cat >> confdefs.h <<EOF
8810 #define $ac_tr_lib 1
8813 LIBS="-lsocket $LIBS"
8816 echo "$ac_t""no" 1>&6
8819 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8820 echo "configure:8821: checking for main in -lnet" >&5
8821 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8822 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8825 ac_save_LIBS="$LIBS"
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8835 if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8837 eval "ac_cv_lib_$ac_lib_var=yes"
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 eval "ac_cv_lib_$ac_lib_var=no"
8845 LIBS="$ac_save_LIBS"
8848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8849 echo "$ac_t""yes" 1>&6
8850 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8851 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8852 cat >> confdefs.h <<EOF
8853 #define $ac_tr_lib 1
8859 echo "$ac_t""no" 1>&6
8862 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
8863 echo "configure:8864: checking for main in -lnsl_s" >&5
8864 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
8865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8866 echo $ac_n "(cached) $ac_c" 1>&6
8868 ac_save_LIBS="$LIBS"
8869 LIBS="-lnsl_s $LIBS"
8870 cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8878 if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8880 eval "ac_cv_lib_$ac_lib_var=yes"
8882 echo "configure: failed program was:" >&5
8883 cat conftest.$ac_ext >&5
8885 eval "ac_cv_lib_$ac_lib_var=no"
8888 LIBS="$ac_save_LIBS"
8891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8893 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8895 cat >> confdefs.h <<EOF
8896 #define $ac_tr_lib 1
8899 LIBS="-lnsl_s $LIBS"
8902 echo "$ac_t""no" 1>&6
8905 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8906 echo "configure:8907: checking for main in -lnsl" >&5
8907 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
8908 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8909 echo $ac_n "(cached) $ac_c" 1>&6
8911 ac_save_LIBS="$LIBS"
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8921 if { (eval echo configure:8922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8923 eval "ac_cv_lib_$ac_lib_var=yes"
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 eval "ac_cv_lib_$ac_lib_var=no"
8931 LIBS="$ac_save_LIBS"
8934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8935 echo "$ac_t""yes" 1>&6
8936 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8938 cat >> confdefs.h <<EOF
8939 #define $ac_tr_lib 1
8945 echo "$ac_t""no" 1>&6
8948 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8949 echo "configure:8950: checking for socket in -linet" >&5
8950 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
8951 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8954 ac_save_LIBS="$LIBS"
8956 cat > conftest.$ac_ext <<EOF
8957 #line 8958 "configure"
8958 #include "confdefs.h"
8959 /* Override any gcc2 internal prototype to avoid an error. */
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8968 if { (eval echo configure:8969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8970 eval "ac_cv_lib_$ac_lib_var=yes"
8972 echo "configure: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8975 eval "ac_cv_lib_$ac_lib_var=no"
8978 LIBS="$ac_save_LIBS"
8981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8982 echo "$ac_t""yes" 1>&6
8983 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8985 cat >> confdefs.h <<EOF
8986 #define $ac_tr_lib 1
8992 echo "$ac_t""no" 1>&6
8995 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
8996 echo "configure:8997: checking for main in -lgen" >&5
8997 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
8998 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9001 ac_save_LIBS="$LIBS"
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9011 if { (eval echo configure:9012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9013 eval "ac_cv_lib_$ac_lib_var=yes"
9015 echo "configure: failed program was:" >&5
9016 cat conftest.$ac_ext >&5
9018 eval "ac_cv_lib_$ac_lib_var=no"
9021 LIBS="$ac_save_LIBS"
9024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9025 echo "$ac_t""yes" 1>&6
9026 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9027 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9028 cat >> confdefs.h <<EOF
9029 #define $ac_tr_lib 1
9035 echo "$ac_t""no" 1>&6
9042 echo $ac_n "checking for select""... $ac_c" 1>&6
9043 echo "configure:9044: checking for select" >&5
9044 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9047 cat > conftest.$ac_ext <<EOF
9048 #line 9049 "configure"
9049 #include "confdefs.h"
9050 /* System header to define __stub macros and hopefully few prototypes,
9051 which can conflict with char select(); below. */
9053 /* Override any gcc2 internal prototype to avoid an error. */
9054 /* We use char because int might match the return type of a gcc2
9055 builtin and then its argument prototype would still apply. */
9061 /* The GNU C library defines this for functions which it implements
9062 to always fail with ENOSYS. Some functions are actually named
9063 something starting with __ and the normal name is an alias. */
9064 #if defined (__stub_select) || defined (__stub___select)
9072 if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9074 eval "ac_cv_func_select=yes"
9076 echo "configure: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9079 eval "ac_cv_func_select=no"
9084 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9085 echo "$ac_t""yes" 1>&6
9088 echo "$ac_t""no" 1>&6
9089 { echo "configure: error: select() required." 1>&2; exit 1; }
9093 if test "${ac_cv_header_winsock_h}" != yes; then
9094 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9095 echo "configure:9096: checking types of arguments for select()" >&5
9096 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9099 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9100 echo $ac_n "(cached) $ac_c" 1>&6
9102 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9105 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9106 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9107 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9108 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure"
9110 #include "confdefs.h"
9111 #ifdef HAVE_SYS_TYPES_H
9112 #include <sys/types.h>
9114 #ifdef HAVE_SYS_TIME_H
9115 #include <sys/time.h>
9117 #ifdef HAVE_SYS_SELECT_H
9118 #include <sys/select.h>
9120 #ifdef HAVE_SYS_SOCKET_H
9121 #include <sys/socket.h>
9123 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);
9128 if { (eval echo configure:9129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9130 ac_not_found=no ; break 3
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9147 if test "$ac_not_found" = yes; then
9148 ac_cv_func_select_arg1=int
9149 ac_cv_func_select_arg234='int *'
9150 ac_cv_func_select_arg5='struct timeval *'
9152 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9153 cat >> confdefs.h <<EOF
9154 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9157 cat >> confdefs.h <<EOF
9158 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9161 cat >> confdefs.h <<EOF
9162 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9169 for ac_hdr in regex.h
9171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9173 echo "configure:9174: checking for $ac_hdr" >&5
9174 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9177 cat > conftest.$ac_ext <<EOF
9178 #line 9179 "configure"
9179 #include "confdefs.h"
9182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9183 { (eval echo configure:9184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9185 if test -z "$ac_err"; then
9187 eval "ac_cv_header_$ac_safe=yes"
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9193 eval "ac_cv_header_$ac_safe=no"
9197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9198 echo "$ac_t""yes" 1>&6
9199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9200 cat >> confdefs.h <<EOF
9201 #define $ac_tr_hdr 1
9205 echo "$ac_t""no" 1>&6
9209 if test "$ac_cv_header_regex_h" != yes ; then
9210 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9213 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9214 echo "configure:9215: checking for library containing regfree" >&5
9215 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9218 ac_func_search_save_LIBS="$LIBS"
9219 ac_cv_search_regfree="no"
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9223 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9232 if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9234 ac_cv_search_regfree="none required"
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9240 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9256 ac_cv_search_regfree="-l$ac_lib"
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9264 LIBS="$ac_func_search_save_LIBS"
9267 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9268 if test "$ac_cv_search_regfree" != "no"; then
9269 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9272 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9276 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9277 echo "configure:9278: checking for compatible POSIX regex" >&5
9278 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9279 echo $ac_n "(cached) $ac_c" 1>&6
9282 if test "$cross_compiling" = yes; then
9283 ol_cv_c_posix_regex=cross
9285 cat > conftest.$ac_ext <<EOF
9286 #line 9287 "configure"
9287 #include "confdefs.h"
9289 #include <sys/types.h>
9291 static char *pattern, *string;
9299 if(regcomp(&re, pattern, 0)) {
9303 string = "ALL MATCH";
9305 rc = regexec(&re, string, 0, (void*)0, 0);
9312 if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9314 ol_cv_c_posix_regex=yes
9316 echo "configure: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9319 ol_cv_c_posix_regex=no
9326 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9328 if test "$ol_cv_c_posix_regex" = no ; then
9329 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9334 for ac_hdr in sys/uuid.h
9336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9338 echo "configure:9339: checking for $ac_hdr" >&5
9339 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
9342 cat > conftest.$ac_ext <<EOF
9343 #line 9344 "configure"
9344 #include "confdefs.h"
9347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9348 { (eval echo configure:9349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9350 if test -z "$ac_err"; then
9352 eval "ac_cv_header_$ac_safe=yes"
9355 echo "configure: failed program was:" >&5
9356 cat conftest.$ac_ext >&5
9358 eval "ac_cv_header_$ac_safe=no"
9362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9363 echo "$ac_t""yes" 1>&6
9364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9365 cat >> confdefs.h <<EOF
9366 #define $ac_tr_hdr 1
9370 echo "$ac_t""no" 1>&6
9374 if test $ac_cv_header_sys_uuid_h = yes ; then
9377 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9378 echo "configure:9379: checking for library containing uuid_to_str" >&5
9379 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9380 echo $ac_n "(cached) $ac_c" 1>&6
9382 ac_func_search_save_LIBS="$LIBS"
9383 ac_cv_search_uuid_to_str="no"
9384 cat > conftest.$ac_ext <<EOF
9385 #line 9386 "configure"
9386 #include "confdefs.h"
9387 /* Override any gcc2 internal prototype to avoid an error. */
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9396 if { (eval echo configure:9397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9398 ac_cv_search_uuid_to_str="none required"
9400 echo "configure: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9404 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9409 /* Override any gcc2 internal prototype to avoid an error. */
9410 /* We use char because int might match the return type of a gcc2
9411 builtin and then its argument prototype would still apply. */
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420 ac_cv_search_uuid_to_str="-l$ac_lib"
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9428 LIBS="$ac_func_search_save_LIBS"
9431 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9432 if test "$ac_cv_search_uuid_to_str" != "no"; then
9433 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9440 if test have_uuid = yes ; then
9441 cat >> confdefs.h <<\EOF
9442 #define HAVE_UUID_TO_STR 1
9446 test "$ac_cv_search_uuid_to_str" = "none required" || \
9447 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9451 if test $have_uuid = no ; then
9452 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9453 echo "configure:9454: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9455 LIBS="$LIBS -lrpcrt4"
9456 cat > conftest.$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9460 int __stdcall UuidCreate(void *);
9461 int __stdcall UuidToStringA(void *,void **);
9470 if { (eval echo configure:9471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9474 echo "configure: failed program was:" >&5
9475 cat conftest.$ac_ext >&5
9480 if test $need_rpcrt = yes; then
9481 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9484 echo "$ac_t""$need_rpcrt" 1>&6
9488 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9489 echo "configure:9490: checking for res_query" >&5
9490 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9491 echo $ac_n "(cached) $ac_c" 1>&6
9493 cat > conftest.$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9496 /* System header to define __stub macros and hopefully few prototypes,
9497 which can conflict with char res_query(); below. */
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_res_query) || defined (__stub___res_query)
9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9520 eval "ac_cv_func_res_query=yes"
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9525 eval "ac_cv_func_res_query=no"
9530 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9531 echo "$ac_t""yes" 1>&6
9534 echo "$ac_t""no" 1>&6
9537 if test $ac_cv_func_res_query = no ; then
9538 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9539 echo "configure:9540: checking for __res_query" >&5
9540 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 /* System header to define __stub macros and hopefully few prototypes,
9547 which can conflict with char __res_query(); below. */
9549 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9557 /* The GNU C library defines this for functions which it implements
9558 to always fail with ENOSYS. Some functions are actually named
9559 something starting with __ and the normal name is an alias. */
9560 #if defined (__stub___res_query) || defined (__stub_____res_query)
9568 if { (eval echo configure:9569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9570 eval "ac_cv_func___res_query=yes"
9572 echo "configure: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9575 eval "ac_cv_func___res_query=no"
9580 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9581 echo "$ac_t""yes" 1>&6
9584 echo "$ac_t""no" 1>&6
9587 ac_cv_func_res_query=$ac_cv_func___res_query
9590 if test $ac_cv_func_res_query = no ; then
9591 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9592 echo "configure:9593: checking for res_query in -lbind" >&5
9593 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9594 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9597 ac_save_LIBS="$LIBS"
9599 cat > conftest.$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9602 /* Override any gcc2 internal prototype to avoid an error. */
9603 /* We use char because int might match the return type of a gcc2
9604 builtin and then its argument prototype would still apply. */
9611 if { (eval echo configure:9612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9613 eval "ac_cv_lib_$ac_lib_var=yes"
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9618 eval "ac_cv_lib_$ac_lib_var=no"
9621 LIBS="$ac_save_LIBS"
9624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9625 echo "$ac_t""yes" 1>&6
9626 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9628 cat >> confdefs.h <<EOF
9629 #define $ac_tr_lib 1
9635 echo "$ac_t""no" 1>&6
9638 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9641 if test $ac_cv_func_res_query = no ; then
9642 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9643 echo "configure:9644: checking for __res_query in -lbind" >&5
9644 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9648 ac_save_LIBS="$LIBS"
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9653 /* Override any gcc2 internal prototype to avoid an error. */
9654 /* We use char because int might match the return type of a gcc2
9655 builtin and then its argument prototype would still apply. */
9662 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9664 eval "ac_cv_lib_$ac_lib_var=yes"
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9669 eval "ac_cv_lib_$ac_lib_var=no"
9672 LIBS="$ac_save_LIBS"
9675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9676 echo "$ac_t""yes" 1>&6
9677 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9678 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9679 cat >> confdefs.h <<EOF
9680 #define $ac_tr_lib 1
9686 echo "$ac_t""no" 1>&6
9689 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9692 if test $ac_cv_func_res_query = no ; then
9693 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9694 echo "configure:9695: checking for res_query in -lresolv" >&5
9695 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9699 ac_save_LIBS="$LIBS"
9700 LIBS="-lresolv $LIBS"
9701 cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 /* Override any gcc2 internal prototype to avoid an error. */
9705 /* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9713 if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9715 eval "ac_cv_lib_$ac_lib_var=yes"
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9720 eval "ac_cv_lib_$ac_lib_var=no"
9723 LIBS="$ac_save_LIBS"
9726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9727 echo "$ac_t""yes" 1>&6
9728 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9730 cat >> confdefs.h <<EOF
9731 #define $ac_tr_lib 1
9734 LIBS="-lresolv $LIBS"
9737 echo "$ac_t""no" 1>&6
9740 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9743 if test $ac_cv_func_res_query = no ; then
9744 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9745 echo "configure:9746: checking for __res_query in -lresolv" >&5
9746 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9747 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9750 ac_save_LIBS="$LIBS"
9751 LIBS="-lresolv $LIBS"
9752 cat > conftest.$ac_ext <<EOF
9753 #line 9754 "configure"
9754 #include "confdefs.h"
9755 /* Override any gcc2 internal prototype to avoid an error. */
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9764 if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9766 eval "ac_cv_lib_$ac_lib_var=yes"
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9771 eval "ac_cv_lib_$ac_lib_var=no"
9774 LIBS="$ac_save_LIBS"
9777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9778 echo "$ac_t""yes" 1>&6
9779 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9781 cat >> confdefs.h <<EOF
9782 #define $ac_tr_lib 1
9785 LIBS="-lresolv $LIBS"
9788 echo "$ac_t""no" 1>&6
9791 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9794 if test $ac_cv_func_res_query = no ; then
9795 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
9796 echo "configure:9797: checking for _res_9_query in -lresolv" >&5
9797 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
9798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9799 echo $ac_n "(cached) $ac_c" 1>&6
9801 ac_save_LIBS="$LIBS"
9802 LIBS="-lresolv $LIBS"
9803 cat > conftest.$ac_ext <<EOF
9804 #line 9805 "configure"
9805 #include "confdefs.h"
9806 /* Override any gcc2 internal prototype to avoid an error. */
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9809 char _res_9_query();
9815 if { (eval echo configure:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9817 eval "ac_cv_lib_$ac_lib_var=yes"
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9822 eval "ac_cv_lib_$ac_lib_var=no"
9825 LIBS="$ac_save_LIBS"
9828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9829 echo "$ac_t""yes" 1>&6
9830 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9832 cat >> confdefs.h <<EOF
9833 #define $ac_tr_lib 1
9836 LIBS="-lresolv $LIBS"
9839 echo "$ac_t""no" 1>&6
9842 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
9845 if test "$ac_cv_func_res_query" = yes ; then
9846 cat >> confdefs.h <<\EOF
9847 #define HAVE_RES_QUERY 1
9851 if test $ol_enable_dnssrv != no ; then
9856 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9857 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9860 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9863 echo "configure:9864: checking for $ac_func" >&5
9864 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9870 /* System header to define __stub macros and hopefully few prototypes,
9871 which can conflict with char $ac_func(); below. */
9873 /* Override any gcc2 internal prototype to avoid an error. */
9874 /* We use char because int might match the return type of a gcc2
9875 builtin and then its argument prototype would still apply. */
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9892 if { (eval echo configure:9893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9894 eval "ac_cv_func_$ac_func=yes"
9896 echo "configure: failed program was:" >&5
9897 cat conftest.$ac_ext >&5
9899 eval "ac_cv_func_$ac_func=no"
9904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9905 echo "$ac_t""yes" 1>&6
9906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9907 cat >> confdefs.h <<EOF
9908 #define $ac_tr_func 1
9912 echo "$ac_t""no" 1>&6
9918 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
9919 if test $ol_enable_ipv6 = yes ; then
9920 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
9922 elif test $ol_enable_ipv6 != no ; then
9923 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
9924 echo "configure:9925: checking INET6_ADDRSTRLEN" >&5
9925 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
9926 echo $ac_n "(cached) $ac_c" 1>&6
9929 cat > conftest.$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9933 # include <netinet/in.h>
9934 # ifdef INET6_ADDRSTRLEN
9935 __has_inet6_addrstrlen__;
9939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
9942 ol_cv_inet6_addrstrlen=yes
9945 ol_cv_inet6_addrstrlen=no
9951 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
9954 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
9955 echo "configure:9956: checking struct sockaddr_storage" >&5
9956 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9964 #include <sys/types.h>
9965 #include <sys/socket.h>
9969 struct sockaddr_storage ss;
9973 if { (eval echo configure:9974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 ol_cv_struct_sockaddr_storage=yes
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9980 ol_cv_struct_sockaddr_storage=no
9985 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
9987 if test $ol_cv_inet6_addrstrlen = yes \
9988 -a $ol_cv_struct_sockaddr_storage = yes ; then
9990 elif test $ol_enable_ipv6 = yes \
9991 -a $ol_cv_inet6_addrstrlen = no ; then
9992 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
9993 elif test $ol_enable_ipv6 = yes \
9994 -a $ol_cv_struct_sockaddr_storage = no ; then
9995 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
9999 if test $ol_enable_local != no ; then
10000 for ac_hdr in sys/un.h
10002 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10004 echo "configure:10005: checking for $ac_hdr" >&5
10005 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10014 { (eval echo configure:10015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10016 if test -z "$ac_err"; then
10018 eval "ac_cv_header_$ac_safe=yes"
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10024 eval "ac_cv_header_$ac_safe=no"
10028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10029 echo "$ac_t""yes" 1>&6
10030 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10031 cat >> confdefs.h <<EOF
10032 #define $ac_tr_hdr 1
10036 echo "$ac_t""no" 1>&6
10041 if test $ol_enable_local = auto ; then
10042 ol_enable_local=$ac_cv_header_sys_un_h
10043 elif test $ac_cv_header_sys_un_h = no ; then
10044 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10052 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10053 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10054 -o $ol_with_kerberos = k425 ; then
10056 for ac_hdr in krb5.h
10058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10060 echo "configure:10061: checking for $ac_hdr" >&5
10061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10062 echo $ac_n "(cached) $ac_c" 1>&6
10064 cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10070 { (eval echo configure:10071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10072 if test -z "$ac_err"; then
10074 eval "ac_cv_header_$ac_safe=yes"
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 eval "ac_cv_header_$ac_safe=no"
10084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10085 echo "$ac_t""yes" 1>&6
10086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10087 cat >> confdefs.h <<EOF
10088 #define $ac_tr_hdr 1
10092 echo "$ac_t""no" 1>&6
10097 if test $ac_cv_header_krb5_h = yes ; then
10098 for ac_hdr in heim_err.h
10100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10102 echo "configure:10103: checking for $ac_hdr" >&5
10103 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10104 echo $ac_n "(cached) $ac_c" 1>&6
10106 cat > conftest.$ac_ext <<EOF
10107 #line 10108 "configure"
10108 #include "confdefs.h"
10111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10112 { (eval echo configure:10113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10114 if test -z "$ac_err"; then
10116 eval "ac_cv_header_$ac_safe=yes"
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10122 eval "ac_cv_header_$ac_safe=no"
10126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10127 echo "$ac_t""yes" 1>&6
10128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10129 cat >> confdefs.h <<EOF
10130 #define $ac_tr_hdr 1
10134 echo "$ac_t""no" 1>&6
10138 if test $ac_cv_header_heim_err_h = yes ; then
10144 if test $krb5_impl = mit; then
10145 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10146 echo "configure:10147: checking for main in -lk5crypto" >&5
10147 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10148 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10151 ac_save_LIBS="$LIBS"
10152 LIBS="-lk5crypto $LIBS"
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10161 if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163 eval "ac_cv_lib_$ac_lib_var=yes"
10165 echo "configure: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10168 eval "ac_cv_lib_$ac_lib_var=no"
10171 LIBS="$ac_save_LIBS"
10174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10175 echo "$ac_t""yes" 1>&6
10176 krb5crypto=k5crypto
10178 echo "$ac_t""no" 1>&6
10183 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10184 echo "configure:10185: checking for main in -lkrb5" >&5
10185 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10189 ac_save_LIBS="$LIBS"
10190 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure"
10193 #include "confdefs.h"
10199 if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 eval "ac_cv_lib_$ac_lib_var=yes"
10203 echo "configure: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10206 eval "ac_cv_lib_$ac_lib_var=no"
10209 LIBS="$ac_save_LIBS"
10212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10213 echo "$ac_t""yes" 1>&6
10215 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10217 echo "$ac_t""no" 1>&6
10222 elif test $krb5_impl = heimdal; then
10223 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10224 echo "configure:10225: checking for main in -ldes" >&5
10225 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10227 echo $ac_n "(cached) $ac_c" 1>&6
10229 ac_save_LIBS="$LIBS"
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10239 if { (eval echo configure:10240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10241 eval "ac_cv_lib_$ac_lib_var=yes"
10243 echo "configure: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10246 eval "ac_cv_lib_$ac_lib_var=no"
10249 LIBS="$ac_save_LIBS"
10252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10253 echo "$ac_t""yes" 1>&6
10256 echo "$ac_t""no" 1>&6
10261 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10262 echo "configure:10263: checking for main in -lkrb5" >&5
10263 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10264 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10265 echo $ac_n "(cached) $ac_c" 1>&6
10267 ac_save_LIBS="$LIBS"
10268 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10277 if { (eval echo configure:10278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10279 eval "ac_cv_lib_$ac_lib_var=yes"
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10284 eval "ac_cv_lib_$ac_lib_var=no"
10287 LIBS="$ac_save_LIBS"
10290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10293 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10295 echo "$ac_t""no" 1>&6
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_HEIMDAL_KERBEROS 1
10307 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10310 if test $have_krb5 = yes ; then
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_KRB5 1
10318 if test $ol_with_kerberos = k5only ; then
10319 ol_with_kerberos=found
10322 elif test $ol_with_kerberos != auto ; then
10323 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10329 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10330 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10332 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10336 echo "configure:10337: checking for $ac_hdr" >&5
10337 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10338 echo $ac_n "(cached) $ac_c" 1>&6
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10346 { (eval echo configure:10347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10348 if test -z "$ac_err"; then
10350 eval "ac_cv_header_$ac_safe=yes"
10353 echo "configure: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10356 eval "ac_cv_header_$ac_safe=no"
10360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10363 cat >> confdefs.h <<EOF
10364 #define $ac_tr_hdr 1
10368 echo "$ac_t""no" 1>&6
10373 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10374 if test $krb5_impl = mit; then
10375 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10376 echo "configure:10377: checking for main in -lkrb4" >&5
10377 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10378 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10381 ac_save_LIBS="$LIBS"
10382 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10391 if { (eval echo configure:10392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10393 eval "ac_cv_lib_$ac_lib_var=yes"
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10398 eval "ac_cv_lib_$ac_lib_var=no"
10401 LIBS="$ac_save_LIBS"
10404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10405 echo "$ac_t""yes" 1>&6
10407 KRB4_LIBS="-lkrb4 -ldes425"
10409 echo "$ac_t""no" 1>&6
10414 elif test $krb5_impl = heimdal; then
10415 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10416 echo "configure:10417: checking for main in -lkrb4" >&5
10417 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10421 ac_save_LIBS="$LIBS"
10422 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10433 eval "ac_cv_lib_$ac_lib_var=yes"
10435 echo "configure: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10438 eval "ac_cv_lib_$ac_lib_var=no"
10441 LIBS="$ac_save_LIBS"
10444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10449 echo "$ac_t""no" 1>&6
10456 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10459 if test $have_k425 = yes ; then
10460 ol_with_kerberos=found
10463 cat >> confdefs.h <<\EOF
10464 #define HAVE_KRB425 1
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_KRB4 1
10472 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10473 echo "configure:10474: checking for des_debug in Kerberos libraries" >&5
10474 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10479 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10484 #include <kerberosIV/krb.h>
10485 #include <kerberosIV/des.h>
10486 extern int des_debug;
10494 if { (eval echo configure:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10496 ol_cv_var_des_debug=yes
10498 echo "configure: failed program was:" >&5
10499 cat conftest.$ac_ext >&5
10501 ol_cv_var_des_debug=no
10508 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10510 if test $ol_cv_var_des_debug = yes ; then
10511 cat >> confdefs.h <<\EOF
10512 #define HAVE_DES_DEBUG 1
10522 if test $ol_link_krb5 = yes ; then
10523 ol_with_kerberos=found
10526 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10527 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10529 for ac_hdr in krb.h des.h krb-archaeology.h
10531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10533 echo "configure:10534: checking for $ac_hdr" >&5
10534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10535 echo $ac_n "(cached) $ac_c" 1>&6
10537 cat > conftest.$ac_ext <<EOF
10538 #line 10539 "configure"
10539 #include "confdefs.h"
10542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10543 { (eval echo configure:10544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10545 if test -z "$ac_err"; then
10547 eval "ac_cv_header_$ac_safe=yes"
10550 echo "configure: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10553 eval "ac_cv_header_$ac_safe=no"
10557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10558 echo "$ac_t""yes" 1>&6
10559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10560 cat >> confdefs.h <<EOF
10561 #define $ac_tr_hdr 1
10565 echo "$ac_t""no" 1>&6
10570 if test $ac_cv_header_krb_h = yes ; then
10571 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10572 echo "configure:10573: checking for main in -lkrb" >&5
10573 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10575 echo $ac_n "(cached) $ac_c" 1>&6
10577 ac_save_LIBS="$LIBS"
10578 LIBS="-lkrb -ldes $LIBS"
10579 cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10587 if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10589 eval "ac_cv_lib_$ac_lib_var=yes"
10591 echo "configure: failed program was:" >&5
10592 cat conftest.$ac_ext >&5
10594 eval "ac_cv_lib_$ac_lib_var=no"
10597 LIBS="$ac_save_LIBS"
10600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10601 echo "$ac_t""yes" 1>&6
10604 echo "$ac_t""no" 1>&6
10609 if test $have_k4 = yes ; then
10610 ol_with_kerberos=found
10613 cat >> confdefs.h <<\EOF
10614 #define HAVE_KRB4 1
10618 KRB4_LIBS="-lkrb -ldes"
10620 if test $ac_cv_header_krb_archaeology_h = yes ; then
10621 cat >> confdefs.h <<\EOF
10622 #define HAVE_KTH_KERBEROS 1
10630 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10633 elif test $ol_enable_kbind = yes ; then
10634 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10637 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10638 cat >> confdefs.h <<\EOF
10639 #define HAVE_KERBEROS 1
10643 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10644 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10648 if test $ol_with_tls != no ; then
10649 for ac_hdr in openssl/ssl.h ssl.h
10651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10653 echo "configure:10654: checking for $ac_hdr" >&5
10654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10655 echo $ac_n "(cached) $ac_c" 1>&6
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10663 { (eval echo configure:10664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10665 if test -z "$ac_err"; then
10667 eval "ac_cv_header_$ac_safe=yes"
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10673 eval "ac_cv_header_$ac_safe=no"
10677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10678 echo "$ac_t""yes" 1>&6
10679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10680 cat >> confdefs.h <<EOF
10681 #define $ac_tr_hdr 1
10685 echo "$ac_t""no" 1>&6
10690 if test $ac_cv_header_openssl_ssl_h = yes \
10691 -o $ac_cv_header_ssl_h = yes ; then
10692 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10693 echo "configure:10694: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10694 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10695 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10696 echo $ac_n "(cached) $ac_c" 1>&6
10698 ac_save_LIBS="$LIBS"
10699 LIBS="-lssl -lcrypto $LIBS"
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703 /* Override any gcc2 internal prototype to avoid an error. */
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10706 char SSLeay_add_ssl_algorithms();
10709 SSLeay_add_ssl_algorithms()
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10714 eval "ac_cv_lib_$ac_lib_var=yes"
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10719 eval "ac_cv_lib_$ac_lib_var=no"
10722 LIBS="$ac_save_LIBS"
10725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10726 echo "$ac_t""yes" 1>&6
10730 echo "$ac_t""no" 1>&6
10735 if test $have_ssleay = no ; then
10736 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10737 echo "configure:10738: checking for SSL_library_init in -lssl" >&5
10738 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10742 ac_save_LIBS="$LIBS"
10743 LIBS="-lssl -lcrypto $LIBS"
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10747 /* Override any gcc2 internal prototype to avoid an error. */
10748 /* We use char because int might match the return type of a gcc2
10749 builtin and then its argument prototype would still apply. */
10750 char SSL_library_init();
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10758 eval "ac_cv_lib_$ac_lib_var=yes"
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10763 eval "ac_cv_lib_$ac_lib_var=no"
10766 LIBS="$ac_save_LIBS"
10769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10770 echo "$ac_t""yes" 1>&6
10774 echo "$ac_t""no" 1>&6
10780 if test $have_ssleay = no ; then
10781 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10782 echo "configure:10783: checking for ssl3_accept in -lssl" >&5
10783 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10784 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10785 echo $ac_n "(cached) $ac_c" 1>&6
10787 ac_save_LIBS="$LIBS"
10788 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 /* Override any gcc2 internal prototype to avoid an error. */
10793 /* We use char because int might match the return type of a gcc2
10794 builtin and then its argument prototype would still apply. */
10795 char ssl3_accept();
10801 if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 eval "ac_cv_lib_$ac_lib_var=yes"
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 eval "ac_cv_lib_$ac_lib_var=no"
10811 LIBS="$ac_save_LIBS"
10814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10815 echo "$ac_t""yes" 1>&6
10819 echo "$ac_t""no" 1>&6
10825 if test $have_ssleay = yes ; then
10829 cat >> confdefs.h <<\EOF
10830 #define HAVE_SSLEAY 1
10834 if test $need_rsaref = yes; then
10835 cat >> confdefs.h <<\EOF
10836 #define HAVE_RSAREF 1
10840 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10842 TLS_LIBS="-lssl -lcrypto"
10848 echo "configure: warning: TLS data protection not supported!" 1>&2
10852 if test $ol_link_tls = yes ; then
10853 cat >> confdefs.h <<\EOF
10859 elif test $ol_with_tls = auto ; then
10860 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10861 echo "configure: warning: TLS data protection not supported!" 1>&2
10863 elif test $ol_with_tls != no ; then
10864 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10867 if test $ol_enable_lmpasswd != no; then
10868 if test $ol_link_tls != yes ; then
10869 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10872 cat >> confdefs.h <<\EOF
10873 #define SLAPD_LMHASH 1
10880 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10881 -o $ol_with_threads = nt ; then
10884 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10885 echo "configure:10886: checking for _beginthread" >&5
10886 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char _beginthread(); below. */
10894 #include <assert.h>
10895 /* Override any gcc2 internal prototype to avoid an error. */
10896 /* We use char because int might match the return type of a gcc2
10897 builtin and then its argument prototype would still apply. */
10898 char _beginthread();
10903 /* The GNU C library defines this for functions which it implements
10904 to always fail with ENOSYS. Some functions are actually named
10905 something starting with __ and the normal name is an alias. */
10906 #if defined (__stub__beginthread) || defined (__stub____beginthread)
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10916 eval "ac_cv_func__beginthread=yes"
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10921 eval "ac_cv_func__beginthread=no"
10926 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
10927 echo "$ac_t""yes" 1>&6
10930 echo "$ac_t""no" 1>&6
10934 if test $ac_cv_func__beginthread = yes ; then
10935 cat >> confdefs.h <<\EOF
10936 #define HAVE_NT_THREADS 1
10939 ol_cv_nt_threads=yes
10943 if test "$ol_cv_nt_threads" = yes ; then
10945 ol_with_threads=found
10946 ol_with_yielding_select=yes
10948 cat >> confdefs.h <<\EOF
10949 #define HAVE_NT_SERVICE_MANAGER 1
10952 cat >> confdefs.h <<\EOF
10953 #define HAVE_NT_EVENT_LOG 1
10958 if test $ol_with_threads = nt ; then
10959 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
10963 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10964 -o $ol_with_threads = posix ; then
10966 for ac_hdr in pthread.h
10968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10970 echo "configure:10971: checking for $ac_hdr" >&5
10971 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10972 echo $ac_n "(cached) $ac_c" 1>&6
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10980 { (eval echo configure:10981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10982 if test -z "$ac_err"; then
10984 eval "ac_cv_header_$ac_safe=yes"
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10990 eval "ac_cv_header_$ac_safe=no"
10994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10995 echo "$ac_t""yes" 1>&6
10996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10997 cat >> confdefs.h <<EOF
10998 #define $ac_tr_hdr 1
11002 echo "$ac_t""no" 1>&6
11007 if test $ac_cv_header_pthread_h = yes ; then
11008 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11009 echo "configure:11010: checking POSIX thread version" >&5
11010 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11011 echo $ac_n "(cached) $ac_c" 1>&6
11014 cat > conftest.$ac_ext <<EOF
11015 #line 11016 "configure"
11016 #include "confdefs.h"
11018 # include <pthread.h>
11022 int i = PTHREAD_CREATE_JOINABLE;
11026 if { (eval echo configure:11027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 #include <pthread.h>
11034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11035 egrep "pthread_detach" >/dev/null 2>&1; then
11037 ol_cv_pthread_version=10
11040 ol_cv_pthread_version=8
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11049 cat > conftest.$ac_ext <<EOF
11050 #line 11051 "configure"
11051 #include "confdefs.h"
11053 # include <pthread.h>
11054 # ifdef PTHREAD_CREATE_UNDETACHED
11059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11060 egrep "draft7" >/dev/null 2>&1; then
11062 ol_cv_pthread_version=7
11066 cat > conftest.$ac_ext <<EOF
11067 #line 11068 "configure"
11068 #include "confdefs.h"
11069 #include <pthread.h>
11071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11072 egrep "pthread_attr_init" >/dev/null 2>&1; then
11074 ol_cv_pthread_version=6
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11082 # include <pthread.h>
11083 #ifdef PTHREAD_MUTEX_INITIALIZER
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089 egrep "draft5" >/dev/null 2>&1; then
11091 ol_cv_pthread_version=5
11094 ol_cv_pthread_version=4
11109 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11112 if test $ol_cv_pthread_version != 0 ; then
11113 cat >> confdefs.h <<EOF
11114 #define HAVE_PTHREADS $ol_cv_pthread_version
11118 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11121 # consider threads found
11122 ol_with_threads=found
11125 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11126 echo "configure:11127: checking for LinuxThreads pthread.h" >&5
11127 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11128 echo $ac_n "(cached) $ac_c" 1>&6
11130 cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11133 #include <pthread.h>
11135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11136 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11138 ol_cv_header_linux_threads=yes
11141 ol_cv_header_linux_threads=no
11148 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11149 if test $ol_cv_header_linux_threads = yes; then
11150 cat >> confdefs.h <<\EOF
11151 #define HAVE_LINUX_THREADS 1
11157 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11158 echo "configure:11159: checking for GNU Pth pthread.h" >&5
11159 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11160 echo $ac_n "(cached) $ac_c" 1>&6
11162 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure"
11164 #include "confdefs.h"
11165 #include <pthread.h>
11166 #ifdef _POSIX_THREAD_IS_GNU_PTH
11171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11172 egrep "__gnu_pth__" >/dev/null 2>&1; then
11174 ol_cv_header_gnu_pth_pthread_h=yes
11177 ol_cv_header_gnu_pth_pthread_h=no
11184 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11187 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11188 for ac_hdr in sched.h
11190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11192 echo "configure:11193: checking for $ac_hdr" >&5
11193 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11198 "configure"
11198 #include "confdefs.h"
11201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11202 { (eval echo configure:11203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11204 if test -z "$ac_err"; then
11206 eval "ac_cv_header_$ac_safe=yes"
11209 echo "configure: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11212 eval "ac_cv_header_$ac_safe=no"
11216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11217 echo "$ac_t""yes" 1>&6
11218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11219 cat >> confdefs.h <<EOF
11220 #define $ac_tr_hdr 1
11224 echo "$ac_t""no" 1>&6
11231 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11232 echo "configure:11233: checking for pthread_create in default libraries" >&5
11233 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11237 if test "$cross_compiling" = yes; then
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11241 /* pthread test headers */
11242 #include <pthread.h>
11243 #if HAVE_PTHREADS < 7
11247 #define NULL (void*)0
11250 static void *task(p)
11253 return (void *) (p == NULL);
11258 /* pthread test function */
11259 #ifndef PTHREAD_CREATE_DETACHED
11260 #define PTHREAD_CREATE_DETACHED 1
11264 int detach = PTHREAD_CREATE_DETACHED;
11266 #if HAVE_PTHREADS > 4
11267 /* Final pthreads */
11268 pthread_attr_t attr;
11270 status = pthread_attr_init(&attr);
11271 if( status ) return status;
11273 #if HAVE_PTHREADS < 7
11274 status = pthread_attr_setdetachstate(&attr, &detach);
11275 if( status < 0 ) status = errno;
11277 status = pthread_attr_setdetachstate(&attr, detach);
11279 if( status ) return status;
11280 status = pthread_create( &t, &attr, task, NULL );
11281 #if HAVE_PTHREADS < 7
11282 if( status < 0 ) status = errno;
11284 if( status ) return status;
11286 /* Draft 4 pthreads */
11287 status = pthread_create( &t, pthread_attr_default, task, NULL );
11288 if( status ) return errno;
11290 /* give thread a chance to complete */
11291 /* it should remain joinable and hence detachable */
11294 status = pthread_detach( &t );
11295 if( status ) return errno;
11298 #ifdef HAVE_LINUX_THREADS
11299 pthread_kill_other_threads_np();
11306 if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 ol_cv_pthread_create=yes
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11313 ol_cv_pthread_create=no
11317 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure"
11319 #include "confdefs.h"
11320 /* pthread test headers */
11321 #include <pthread.h>
11322 #if HAVE_PTHREADS < 7
11326 #define NULL (void*)0
11329 static void *task(p)
11332 return (void *) (p == NULL);
11336 int main(argc, argv)
11341 /* pthread test function */
11342 #ifndef PTHREAD_CREATE_DETACHED
11343 #define PTHREAD_CREATE_DETACHED 1
11347 int detach = PTHREAD_CREATE_DETACHED;
11349 #if HAVE_PTHREADS > 4
11350 /* Final pthreads */
11351 pthread_attr_t attr;
11353 status = pthread_attr_init(&attr);
11354 if( status ) return status;
11356 #if HAVE_PTHREADS < 7
11357 status = pthread_attr_setdetachstate(&attr, &detach);
11358 if( status < 0 ) status = errno;
11360 status = pthread_attr_setdetachstate(&attr, detach);
11362 if( status ) return status;
11363 status = pthread_create( &t, &attr, task, NULL );
11364 #if HAVE_PTHREADS < 7
11365 if( status < 0 ) status = errno;
11367 if( status ) return status;
11369 /* Draft 4 pthreads */
11370 status = pthread_create( &t, pthread_attr_default, task, NULL );
11371 if( status ) return errno;
11373 /* give thread a chance to complete */
11374 /* it should remain joinable and hence detachable */
11377 status = pthread_detach( &t );
11378 if( status ) return errno;
11381 #ifdef HAVE_LINUX_THREADS
11382 pthread_kill_other_threads_np();
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11392 ol_cv_pthread_create=yes
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 ol_cv_pthread_create=no
11404 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11406 if test $ol_cv_pthread_create != no ; then
11407 ol_link_threads=posix
11408 ol_link_pthreads=""
11411 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11412 if test "$ol_link_threads" = no ; then
11414 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11415 echo "configure:11416: checking for pthread link with -kthread" >&5
11416 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11422 LIBS="-kthread $LIBS"
11424 if test "$cross_compiling" = yes; then
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11428 /* pthread test headers */
11429 #include <pthread.h>
11430 #if HAVE_PTHREADS < 7
11434 #define NULL (void*)0
11437 static void *task(p)
11440 return (void *) (p == NULL);
11445 /* pthread test function */
11446 #ifndef PTHREAD_CREATE_DETACHED
11447 #define PTHREAD_CREATE_DETACHED 1
11451 int detach = PTHREAD_CREATE_DETACHED;
11453 #if HAVE_PTHREADS > 4
11454 /* Final pthreads */
11455 pthread_attr_t attr;
11457 status = pthread_attr_init(&attr);
11458 if( status ) return status;
11460 #if HAVE_PTHREADS < 7
11461 status = pthread_attr_setdetachstate(&attr, &detach);
11462 if( status < 0 ) status = errno;
11464 status = pthread_attr_setdetachstate(&attr, detach);
11466 if( status ) return status;
11467 status = pthread_create( &t, &attr, task, NULL );
11468 #if HAVE_PTHREADS < 7
11469 if( status < 0 ) status = errno;
11471 if( status ) return status;
11473 /* Draft 4 pthreads */
11474 status = pthread_create( &t, pthread_attr_default, task, NULL );
11475 if( status ) return errno;
11477 /* give thread a chance to complete */
11478 /* it should remain joinable and hence detachable */
11481 status = pthread_detach( &t );
11482 if( status ) return errno;
11485 #ifdef HAVE_LINUX_THREADS
11486 pthread_kill_other_threads_np();
11493 if { (eval echo configure:11494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11495 ol_cv_pthread_kthread=yes
11497 echo "configure: failed program was:" >&5
11498 cat conftest.$ac_ext >&5
11500 ol_cv_pthread_kthread=no
11504 cat > conftest.$ac_ext <<EOF
11505 #line 11506 "configure"
11506 #include "confdefs.h"
11507 /* pthread test headers */
11508 #include <pthread.h>
11509 #if HAVE_PTHREADS < 7
11513 #define NULL (void*)0
11516 static void *task(p)
11519 return (void *) (p == NULL);
11523 int main(argc, argv)
11528 /* pthread test function */
11529 #ifndef PTHREAD_CREATE_DETACHED
11530 #define PTHREAD_CREATE_DETACHED 1
11534 int detach = PTHREAD_CREATE_DETACHED;
11536 #if HAVE_PTHREADS > 4
11537 /* Final pthreads */
11538 pthread_attr_t attr;
11540 status = pthread_attr_init(&attr);
11541 if( status ) return status;
11543 #if HAVE_PTHREADS < 7
11544 status = pthread_attr_setdetachstate(&attr, &detach);
11545 if( status < 0 ) status = errno;
11547 status = pthread_attr_setdetachstate(&attr, detach);
11549 if( status ) return status;
11550 status = pthread_create( &t, &attr, task, NULL );
11551 #if HAVE_PTHREADS < 7
11552 if( status < 0 ) status = errno;
11554 if( status ) return status;
11556 /* Draft 4 pthreads */
11557 status = pthread_create( &t, pthread_attr_default, task, NULL );
11558 if( status ) return errno;
11560 /* give thread a chance to complete */
11561 /* it should remain joinable and hence detachable */
11564 status = pthread_detach( &t );
11565 if( status ) return errno;
11568 #ifdef HAVE_LINUX_THREADS
11569 pthread_kill_other_threads_np();
11577 if { (eval echo configure:11578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11579 ol_cv_pthread_kthread=yes
11581 echo "configure: failed program was:" >&5
11582 cat conftest.$ac_ext >&5
11584 ol_cv_pthread_kthread=no
11595 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11597 if test $ol_cv_pthread_kthread = yes ; then
11598 ol_link_pthreads="-kthread"
11599 ol_link_threads=posix
11603 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11604 if test "$ol_link_threads" = no ; then
11606 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11607 echo "configure:11608: checking for pthread link with -pthread" >&5
11608 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11614 LIBS="-pthread $LIBS"
11616 if test "$cross_compiling" = yes; then
11617 cat > conftest.$ac_ext <<EOF
11618 #line 11619 "configure"
11619 #include "confdefs.h"
11620 /* pthread test headers */
11621 #include <pthread.h>
11622 #if HAVE_PTHREADS < 7
11626 #define NULL (void*)0
11629 static void *task(p)
11632 return (void *) (p == NULL);
11637 /* pthread test function */
11638 #ifndef PTHREAD_CREATE_DETACHED
11639 #define PTHREAD_CREATE_DETACHED 1
11643 int detach = PTHREAD_CREATE_DETACHED;
11645 #if HAVE_PTHREADS > 4
11646 /* Final pthreads */
11647 pthread_attr_t attr;
11649 status = pthread_attr_init(&attr);
11650 if( status ) return status;
11652 #if HAVE_PTHREADS < 7
11653 status = pthread_attr_setdetachstate(&attr, &detach);
11654 if( status < 0 ) status = errno;
11656 status = pthread_attr_setdetachstate(&attr, detach);
11658 if( status ) return status;
11659 status = pthread_create( &t, &attr, task, NULL );
11660 #if HAVE_PTHREADS < 7
11661 if( status < 0 ) status = errno;
11663 if( status ) return status;
11665 /* Draft 4 pthreads */
11666 status = pthread_create( &t, pthread_attr_default, task, NULL );
11667 if( status ) return errno;
11669 /* give thread a chance to complete */
11670 /* it should remain joinable and hence detachable */
11673 status = pthread_detach( &t );
11674 if( status ) return errno;
11677 #ifdef HAVE_LINUX_THREADS
11678 pthread_kill_other_threads_np();
11685 if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 ol_cv_pthread_pthread=yes
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11692 ol_cv_pthread_pthread=no
11696 cat > conftest.$ac_ext <<EOF
11697 #line 11698 "configure"
11698 #include "confdefs.h"
11699 /* pthread test headers */
11700 #include <pthread.h>
11701 #if HAVE_PTHREADS < 7
11705 #define NULL (void*)0
11708 static void *task(p)
11711 return (void *) (p == NULL);
11715 int main(argc, argv)
11720 /* pthread test function */
11721 #ifndef PTHREAD_CREATE_DETACHED
11722 #define PTHREAD_CREATE_DETACHED 1
11726 int detach = PTHREAD_CREATE_DETACHED;
11728 #if HAVE_PTHREADS > 4
11729 /* Final pthreads */
11730 pthread_attr_t attr;
11732 status = pthread_attr_init(&attr);
11733 if( status ) return status;
11735 #if HAVE_PTHREADS < 7
11736 status = pthread_attr_setdetachstate(&attr, &detach);
11737 if( status < 0 ) status = errno;
11739 status = pthread_attr_setdetachstate(&attr, detach);
11741 if( status ) return status;
11742 status = pthread_create( &t, &attr, task, NULL );
11743 #if HAVE_PTHREADS < 7
11744 if( status < 0 ) status = errno;
11746 if( status ) return status;
11748 /* Draft 4 pthreads */
11749 status = pthread_create( &t, pthread_attr_default, task, NULL );
11750 if( status ) return errno;
11752 /* give thread a chance to complete */
11753 /* it should remain joinable and hence detachable */
11756 status = pthread_detach( &t );
11757 if( status ) return errno;
11760 #ifdef HAVE_LINUX_THREADS
11761 pthread_kill_other_threads_np();
11769 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11771 ol_cv_pthread_pthread=yes
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11776 ol_cv_pthread_pthread=no
11787 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11789 if test $ol_cv_pthread_pthread = yes ; then
11790 ol_link_pthreads="-pthread"
11791 ol_link_threads=posix
11795 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11796 if test "$ol_link_threads" = no ; then
11798 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11799 echo "configure:11800: checking for pthread link with -pthreads" >&5
11800 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11801 echo $ac_n "(cached) $ac_c" 1>&6
11806 LIBS="-pthreads $LIBS"
11808 if test "$cross_compiling" = yes; then
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11812 /* pthread test headers */
11813 #include <pthread.h>
11814 #if HAVE_PTHREADS < 7
11818 #define NULL (void*)0
11821 static void *task(p)
11824 return (void *) (p == NULL);
11829 /* pthread test function */
11830 #ifndef PTHREAD_CREATE_DETACHED
11831 #define PTHREAD_CREATE_DETACHED 1
11835 int detach = PTHREAD_CREATE_DETACHED;
11837 #if HAVE_PTHREADS > 4
11838 /* Final pthreads */
11839 pthread_attr_t attr;
11841 status = pthread_attr_init(&attr);
11842 if( status ) return status;
11844 #if HAVE_PTHREADS < 7
11845 status = pthread_attr_setdetachstate(&attr, &detach);
11846 if( status < 0 ) status = errno;
11848 status = pthread_attr_setdetachstate(&attr, detach);
11850 if( status ) return status;
11851 status = pthread_create( &t, &attr, task, NULL );
11852 #if HAVE_PTHREADS < 7
11853 if( status < 0 ) status = errno;
11855 if( status ) return status;
11857 /* Draft 4 pthreads */
11858 status = pthread_create( &t, pthread_attr_default, task, NULL );
11859 if( status ) return errno;
11861 /* give thread a chance to complete */
11862 /* it should remain joinable and hence detachable */
11865 status = pthread_detach( &t );
11866 if( status ) return errno;
11869 #ifdef HAVE_LINUX_THREADS
11870 pthread_kill_other_threads_np();
11877 if { (eval echo configure:11878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11879 ol_cv_pthread_pthreads=yes
11881 echo "configure: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11884 ol_cv_pthread_pthreads=no
11888 cat > conftest.$ac_ext <<EOF
11889 #line 11890 "configure"
11890 #include "confdefs.h"
11891 /* pthread test headers */
11892 #include <pthread.h>
11893 #if HAVE_PTHREADS < 7
11897 #define NULL (void*)0
11900 static void *task(p)
11903 return (void *) (p == NULL);
11907 int main(argc, argv)
11912 /* pthread test function */
11913 #ifndef PTHREAD_CREATE_DETACHED
11914 #define PTHREAD_CREATE_DETACHED 1
11918 int detach = PTHREAD_CREATE_DETACHED;
11920 #if HAVE_PTHREADS > 4
11921 /* Final pthreads */
11922 pthread_attr_t attr;
11924 status = pthread_attr_init(&attr);
11925 if( status ) return status;
11927 #if HAVE_PTHREADS < 7
11928 status = pthread_attr_setdetachstate(&attr, &detach);
11929 if( status < 0 ) status = errno;
11931 status = pthread_attr_setdetachstate(&attr, detach);
11933 if( status ) return status;
11934 status = pthread_create( &t, &attr, task, NULL );
11935 #if HAVE_PTHREADS < 7
11936 if( status < 0 ) status = errno;
11938 if( status ) return status;
11940 /* Draft 4 pthreads */
11941 status = pthread_create( &t, pthread_attr_default, task, NULL );
11942 if( status ) return errno;
11944 /* give thread a chance to complete */
11945 /* it should remain joinable and hence detachable */
11948 status = pthread_detach( &t );
11949 if( status ) return errno;
11952 #ifdef HAVE_LINUX_THREADS
11953 pthread_kill_other_threads_np();
11961 if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11963 ol_cv_pthread_pthreads=yes
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11968 ol_cv_pthread_pthreads=no
11979 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
11981 if test $ol_cv_pthread_pthreads = yes ; then
11982 ol_link_pthreads="-pthreads"
11983 ol_link_threads=posix
11987 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11988 if test "$ol_link_threads" = no ; then
11990 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
11991 echo "configure:11992: checking for pthread link with -mthreads" >&5
11992 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
11993 echo $ac_n "(cached) $ac_c" 1>&6
11998 LIBS="-mthreads $LIBS"
12000 if test "$cross_compiling" = yes; then
12001 cat > conftest.$ac_ext <<EOF
12002 #line 12003 "configure"
12003 #include "confdefs.h"
12004 /* pthread test headers */
12005 #include <pthread.h>
12006 #if HAVE_PTHREADS < 7
12010 #define NULL (void*)0
12013 static void *task(p)
12016 return (void *) (p == NULL);
12021 /* pthread test function */
12022 #ifndef PTHREAD_CREATE_DETACHED
12023 #define PTHREAD_CREATE_DETACHED 1
12027 int detach = PTHREAD_CREATE_DETACHED;
12029 #if HAVE_PTHREADS > 4
12030 /* Final pthreads */
12031 pthread_attr_t attr;
12033 status = pthread_attr_init(&attr);
12034 if( status ) return status;
12036 #if HAVE_PTHREADS < 7
12037 status = pthread_attr_setdetachstate(&attr, &detach);
12038 if( status < 0 ) status = errno;
12040 status = pthread_attr_setdetachstate(&attr, detach);
12042 if( status ) return status;
12043 status = pthread_create( &t, &attr, task, NULL );
12044 #if HAVE_PTHREADS < 7
12045 if( status < 0 ) status = errno;
12047 if( status ) return status;
12049 /* Draft 4 pthreads */
12050 status = pthread_create( &t, pthread_attr_default, task, NULL );
12051 if( status ) return errno;
12053 /* give thread a chance to complete */
12054 /* it should remain joinable and hence detachable */
12057 status = pthread_detach( &t );
12058 if( status ) return errno;
12061 #ifdef HAVE_LINUX_THREADS
12062 pthread_kill_other_threads_np();
12069 if { (eval echo configure:12070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12071 ol_cv_pthread_mthreads=yes
12073 echo "configure: failed program was:" >&5
12074 cat conftest.$ac_ext >&5
12076 ol_cv_pthread_mthreads=no
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 /* pthread test headers */
12084 #include <pthread.h>
12085 #if HAVE_PTHREADS < 7
12089 #define NULL (void*)0
12092 static void *task(p)
12095 return (void *) (p == NULL);
12099 int main(argc, argv)
12104 /* pthread test function */
12105 #ifndef PTHREAD_CREATE_DETACHED
12106 #define PTHREAD_CREATE_DETACHED 1
12110 int detach = PTHREAD_CREATE_DETACHED;
12112 #if HAVE_PTHREADS > 4
12113 /* Final pthreads */
12114 pthread_attr_t attr;
12116 status = pthread_attr_init(&attr);
12117 if( status ) return status;
12119 #if HAVE_PTHREADS < 7
12120 status = pthread_attr_setdetachstate(&attr, &detach);
12121 if( status < 0 ) status = errno;
12123 status = pthread_attr_setdetachstate(&attr, detach);
12125 if( status ) return status;
12126 status = pthread_create( &t, &attr, task, NULL );
12127 #if HAVE_PTHREADS < 7
12128 if( status < 0 ) status = errno;
12130 if( status ) return status;
12132 /* Draft 4 pthreads */
12133 status = pthread_create( &t, pthread_attr_default, task, NULL );
12134 if( status ) return errno;
12136 /* give thread a chance to complete */
12137 /* it should remain joinable and hence detachable */
12140 status = pthread_detach( &t );
12141 if( status ) return errno;
12144 #ifdef HAVE_LINUX_THREADS
12145 pthread_kill_other_threads_np();
12153 if { (eval echo configure:12154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12155 ol_cv_pthread_mthreads=yes
12157 echo "configure: failed program was:" >&5
12158 cat conftest.$ac_ext >&5
12160 ol_cv_pthread_mthreads=no
12171 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12173 if test $ol_cv_pthread_mthreads = yes ; then
12174 ol_link_pthreads="-mthreads"
12175 ol_link_threads=posix
12179 # Pthread try link: -thread (ol_cv_pthread_thread)
12180 if test "$ol_link_threads" = no ; then
12182 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12183 echo "configure:12184: checking for pthread link with -thread" >&5
12184 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12185 echo $ac_n "(cached) $ac_c" 1>&6
12190 LIBS="-thread $LIBS"
12192 if test "$cross_compiling" = yes; then
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure"
12195 #include "confdefs.h"
12196 /* pthread test headers */
12197 #include <pthread.h>
12198 #if HAVE_PTHREADS < 7
12202 #define NULL (void*)0
12205 static void *task(p)
12208 return (void *) (p == NULL);
12213 /* pthread test function */
12214 #ifndef PTHREAD_CREATE_DETACHED
12215 #define PTHREAD_CREATE_DETACHED 1
12219 int detach = PTHREAD_CREATE_DETACHED;
12221 #if HAVE_PTHREADS > 4
12222 /* Final pthreads */
12223 pthread_attr_t attr;
12225 status = pthread_attr_init(&attr);
12226 if( status ) return status;
12228 #if HAVE_PTHREADS < 7
12229 status = pthread_attr_setdetachstate(&attr, &detach);
12230 if( status < 0 ) status = errno;
12232 status = pthread_attr_setdetachstate(&attr, detach);
12234 if( status ) return status;
12235 status = pthread_create( &t, &attr, task, NULL );
12236 #if HAVE_PTHREADS < 7
12237 if( status < 0 ) status = errno;
12239 if( status ) return status;
12241 /* Draft 4 pthreads */
12242 status = pthread_create( &t, pthread_attr_default, task, NULL );
12243 if( status ) return errno;
12245 /* give thread a chance to complete */
12246 /* it should remain joinable and hence detachable */
12249 status = pthread_detach( &t );
12250 if( status ) return errno;
12253 #ifdef HAVE_LINUX_THREADS
12254 pthread_kill_other_threads_np();
12261 if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12263 ol_cv_pthread_thread=yes
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12268 ol_cv_pthread_thread=no
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12275 /* pthread test headers */
12276 #include <pthread.h>
12277 #if HAVE_PTHREADS < 7
12281 #define NULL (void*)0
12284 static void *task(p)
12287 return (void *) (p == NULL);
12291 int main(argc, argv)
12296 /* pthread test function */
12297 #ifndef PTHREAD_CREATE_DETACHED
12298 #define PTHREAD_CREATE_DETACHED 1
12302 int detach = PTHREAD_CREATE_DETACHED;
12304 #if HAVE_PTHREADS > 4
12305 /* Final pthreads */
12306 pthread_attr_t attr;
12308 status = pthread_attr_init(&attr);
12309 if( status ) return status;
12311 #if HAVE_PTHREADS < 7
12312 status = pthread_attr_setdetachstate(&attr, &detach);
12313 if( status < 0 ) status = errno;
12315 status = pthread_attr_setdetachstate(&attr, detach);
12317 if( status ) return status;
12318 status = pthread_create( &t, &attr, task, NULL );
12319 #if HAVE_PTHREADS < 7
12320 if( status < 0 ) status = errno;
12322 if( status ) return status;
12324 /* Draft 4 pthreads */
12325 status = pthread_create( &t, pthread_attr_default, task, NULL );
12326 if( status ) return errno;
12328 /* give thread a chance to complete */
12329 /* it should remain joinable and hence detachable */
12332 status = pthread_detach( &t );
12333 if( status ) return errno;
12336 #ifdef HAVE_LINUX_THREADS
12337 pthread_kill_other_threads_np();
12345 if { (eval echo configure:12346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12347 ol_cv_pthread_thread=yes
12349 echo "configure: failed program was:" >&5
12350 cat conftest.$ac_ext >&5
12352 ol_cv_pthread_thread=no
12363 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12365 if test $ol_cv_pthread_thread = yes ; then
12366 ol_link_pthreads="-thread"
12367 ol_link_threads=posix
12372 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12373 if test "$ol_link_threads" = no ; then
12374 # try -lpthread -lmach -lexc -lc_r
12375 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12376 echo "configure:12377: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12377 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12378 echo $ac_n "(cached) $ac_c" 1>&6
12383 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12385 if test "$cross_compiling" = yes; then
12386 cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 /* pthread test headers */
12390 #include <pthread.h>
12391 #if HAVE_PTHREADS < 7
12395 #define NULL (void*)0
12398 static void *task(p)
12401 return (void *) (p == NULL);
12406 /* pthread test function */
12407 #ifndef PTHREAD_CREATE_DETACHED
12408 #define PTHREAD_CREATE_DETACHED 1
12412 int detach = PTHREAD_CREATE_DETACHED;
12414 #if HAVE_PTHREADS > 4
12415 /* Final pthreads */
12416 pthread_attr_t attr;
12418 status = pthread_attr_init(&attr);
12419 if( status ) return status;
12421 #if HAVE_PTHREADS < 7
12422 status = pthread_attr_setdetachstate(&attr, &detach);
12423 if( status < 0 ) status = errno;
12425 status = pthread_attr_setdetachstate(&attr, detach);
12427 if( status ) return status;
12428 status = pthread_create( &t, &attr, task, NULL );
12429 #if HAVE_PTHREADS < 7
12430 if( status < 0 ) status = errno;
12432 if( status ) return status;
12434 /* Draft 4 pthreads */
12435 status = pthread_create( &t, pthread_attr_default, task, NULL );
12436 if( status ) return errno;
12438 /* give thread a chance to complete */
12439 /* it should remain joinable and hence detachable */
12442 status = pthread_detach( &t );
12443 if( status ) return errno;
12446 #ifdef HAVE_LINUX_THREADS
12447 pthread_kill_other_threads_np();
12454 if { (eval echo configure:12455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12456 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12458 echo "configure: failed program was:" >&5
12459 cat conftest.$ac_ext >&5
12461 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12465 cat > conftest.$ac_ext <<EOF
12466 #line 12467 "configure"
12467 #include "confdefs.h"
12468 /* pthread test headers */
12469 #include <pthread.h>
12470 #if HAVE_PTHREADS < 7
12474 #define NULL (void*)0
12477 static void *task(p)
12480 return (void *) (p == NULL);
12484 int main(argc, argv)
12489 /* pthread test function */
12490 #ifndef PTHREAD_CREATE_DETACHED
12491 #define PTHREAD_CREATE_DETACHED 1
12495 int detach = PTHREAD_CREATE_DETACHED;
12497 #if HAVE_PTHREADS > 4
12498 /* Final pthreads */
12499 pthread_attr_t attr;
12501 status = pthread_attr_init(&attr);
12502 if( status ) return status;
12504 #if HAVE_PTHREADS < 7
12505 status = pthread_attr_setdetachstate(&attr, &detach);
12506 if( status < 0 ) status = errno;
12508 status = pthread_attr_setdetachstate(&attr, detach);
12510 if( status ) return status;
12511 status = pthread_create( &t, &attr, task, NULL );
12512 #if HAVE_PTHREADS < 7
12513 if( status < 0 ) status = errno;
12515 if( status ) return status;
12517 /* Draft 4 pthreads */
12518 status = pthread_create( &t, pthread_attr_default, task, NULL );
12519 if( status ) return errno;
12521 /* give thread a chance to complete */
12522 /* it should remain joinable and hence detachable */
12525 status = pthread_detach( &t );
12526 if( status ) return errno;
12529 #ifdef HAVE_LINUX_THREADS
12530 pthread_kill_other_threads_np();
12538 if { (eval echo configure:12539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12540 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12545 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12556 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12558 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12559 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12560 ol_link_threads=posix
12564 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12565 if test "$ol_link_threads" = no ; then
12566 # try -lpthread -lmach -lexc
12567 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12568 echo "configure:12569: checking for pthread link with -lpthread -lmach -lexc" >&5
12569 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12575 LIBS="-lpthread -lmach -lexc $LIBS"
12577 if test "$cross_compiling" = yes; then
12578 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure"
12580 #include "confdefs.h"
12581 /* pthread test headers */
12582 #include <pthread.h>
12583 #if HAVE_PTHREADS < 7
12587 #define NULL (void*)0
12590 static void *task(p)
12593 return (void *) (p == NULL);
12598 /* pthread test function */
12599 #ifndef PTHREAD_CREATE_DETACHED
12600 #define PTHREAD_CREATE_DETACHED 1
12604 int detach = PTHREAD_CREATE_DETACHED;
12606 #if HAVE_PTHREADS > 4
12607 /* Final pthreads */
12608 pthread_attr_t attr;
12610 status = pthread_attr_init(&attr);
12611 if( status ) return status;
12613 #if HAVE_PTHREADS < 7
12614 status = pthread_attr_setdetachstate(&attr, &detach);
12615 if( status < 0 ) status = errno;
12617 status = pthread_attr_setdetachstate(&attr, detach);
12619 if( status ) return status;
12620 status = pthread_create( &t, &attr, task, NULL );
12621 #if HAVE_PTHREADS < 7
12622 if( status < 0 ) status = errno;
12624 if( status ) return status;
12626 /* Draft 4 pthreads */
12627 status = pthread_create( &t, pthread_attr_default, task, NULL );
12628 if( status ) return errno;
12630 /* give thread a chance to complete */
12631 /* it should remain joinable and hence detachable */
12634 status = pthread_detach( &t );
12635 if( status ) return errno;
12638 #ifdef HAVE_LINUX_THREADS
12639 pthread_kill_other_threads_np();
12646 if { (eval echo configure:12647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12648 ol_cv_pthread_lpthread_lmach_lexc=yes
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12653 ol_cv_pthread_lpthread_lmach_lexc=no
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure"
12659 #include "confdefs.h"
12660 /* pthread test headers */
12661 #include <pthread.h>
12662 #if HAVE_PTHREADS < 7
12666 #define NULL (void*)0
12669 static void *task(p)
12672 return (void *) (p == NULL);
12676 int main(argc, argv)
12681 /* pthread test function */
12682 #ifndef PTHREAD_CREATE_DETACHED
12683 #define PTHREAD_CREATE_DETACHED 1
12687 int detach = PTHREAD_CREATE_DETACHED;
12689 #if HAVE_PTHREADS > 4
12690 /* Final pthreads */
12691 pthread_attr_t attr;
12693 status = pthread_attr_init(&attr);
12694 if( status ) return status;
12696 #if HAVE_PTHREADS < 7
12697 status = pthread_attr_setdetachstate(&attr, &detach);
12698 if( status < 0 ) status = errno;
12700 status = pthread_attr_setdetachstate(&attr, detach);
12702 if( status ) return status;
12703 status = pthread_create( &t, &attr, task, NULL );
12704 #if HAVE_PTHREADS < 7
12705 if( status < 0 ) status = errno;
12707 if( status ) return status;
12709 /* Draft 4 pthreads */
12710 status = pthread_create( &t, pthread_attr_default, task, NULL );
12711 if( status ) return errno;
12713 /* give thread a chance to complete */
12714 /* it should remain joinable and hence detachable */
12717 status = pthread_detach( &t );
12718 if( status ) return errno;
12721 #ifdef HAVE_LINUX_THREADS
12722 pthread_kill_other_threads_np();
12730 if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12732 ol_cv_pthread_lpthread_lmach_lexc=yes
12734 echo "configure: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12737 ol_cv_pthread_lpthread_lmach_lexc=no
12748 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12750 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12751 ol_link_pthreads="-lpthread -lmach -lexc"
12752 ol_link_threads=posix
12757 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12758 if test "$ol_link_threads" = no ; then
12759 # try -lpthread -Wl,-woff,85
12760 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12761 echo "configure:12762: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12762 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12768 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12770 if test "$cross_compiling" = yes; then
12771 cat > conftest.$ac_ext <<EOF
12772 #line 12773 "configure"
12773 #include "confdefs.h"
12774 /* pthread test headers */
12775 #include <pthread.h>
12776 #if HAVE_PTHREADS < 7
12780 #define NULL (void*)0
12783 static void *task(p)
12786 return (void *) (p == NULL);
12791 /* pthread test function */
12792 #ifndef PTHREAD_CREATE_DETACHED
12793 #define PTHREAD_CREATE_DETACHED 1
12797 int detach = PTHREAD_CREATE_DETACHED;
12799 #if HAVE_PTHREADS > 4
12800 /* Final pthreads */
12801 pthread_attr_t attr;
12803 status = pthread_attr_init(&attr);
12804 if( status ) return status;
12806 #if HAVE_PTHREADS < 7
12807 status = pthread_attr_setdetachstate(&attr, &detach);
12808 if( status < 0 ) status = errno;
12810 status = pthread_attr_setdetachstate(&attr, detach);
12812 if( status ) return status;
12813 status = pthread_create( &t, &attr, task, NULL );
12814 #if HAVE_PTHREADS < 7
12815 if( status < 0 ) status = errno;
12817 if( status ) return status;
12819 /* Draft 4 pthreads */
12820 status = pthread_create( &t, pthread_attr_default, task, NULL );
12821 if( status ) return errno;
12823 /* give thread a chance to complete */
12824 /* it should remain joinable and hence detachable */
12827 status = pthread_detach( &t );
12828 if( status ) return errno;
12831 #ifdef HAVE_LINUX_THREADS
12832 pthread_kill_other_threads_np();
12839 if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12841 ol_cv_pthread_lib_lpthread_woff=yes
12843 echo "configure: failed program was:" >&5
12844 cat conftest.$ac_ext >&5
12846 ol_cv_pthread_lib_lpthread_woff=no
12850 cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12853 /* pthread test headers */
12854 #include <pthread.h>
12855 #if HAVE_PTHREADS < 7
12859 #define NULL (void*)0
12862 static void *task(p)
12865 return (void *) (p == NULL);
12869 int main(argc, argv)
12874 /* pthread test function */
12875 #ifndef PTHREAD_CREATE_DETACHED
12876 #define PTHREAD_CREATE_DETACHED 1
12880 int detach = PTHREAD_CREATE_DETACHED;
12882 #if HAVE_PTHREADS > 4
12883 /* Final pthreads */
12884 pthread_attr_t attr;
12886 status = pthread_attr_init(&attr);
12887 if( status ) return status;
12889 #if HAVE_PTHREADS < 7
12890 status = pthread_attr_setdetachstate(&attr, &detach);
12891 if( status < 0 ) status = errno;
12893 status = pthread_attr_setdetachstate(&attr, detach);
12895 if( status ) return status;
12896 status = pthread_create( &t, &attr, task, NULL );
12897 #if HAVE_PTHREADS < 7
12898 if( status < 0 ) status = errno;
12900 if( status ) return status;
12902 /* Draft 4 pthreads */
12903 status = pthread_create( &t, pthread_attr_default, task, NULL );
12904 if( status ) return errno;
12906 /* give thread a chance to complete */
12907 /* it should remain joinable and hence detachable */
12910 status = pthread_detach( &t );
12911 if( status ) return errno;
12914 #ifdef HAVE_LINUX_THREADS
12915 pthread_kill_other_threads_np();
12923 if { (eval echo configure:12924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12925 ol_cv_pthread_lib_lpthread_woff=yes
12927 echo "configure: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12930 ol_cv_pthread_lib_lpthread_woff=no
12941 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
12943 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12944 ol_link_pthreads="-lpthread -Wl,-woff,85"
12945 ol_link_threads=posix
12950 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12951 if test "$ol_link_threads" = no ; then
12953 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
12954 echo "configure:12955: checking for pthread link with -lpthread" >&5
12955 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
12956 echo $ac_n "(cached) $ac_c" 1>&6
12961 LIBS="-lpthread $LIBS"
12963 if test "$cross_compiling" = yes; then
12964 cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure"
12966 #include "confdefs.h"
12967 /* pthread test headers */
12968 #include <pthread.h>
12969 #if HAVE_PTHREADS < 7
12973 #define NULL (void*)0
12976 static void *task(p)
12979 return (void *) (p == NULL);
12984 /* pthread test function */
12985 #ifndef PTHREAD_CREATE_DETACHED
12986 #define PTHREAD_CREATE_DETACHED 1
12990 int detach = PTHREAD_CREATE_DETACHED;
12992 #if HAVE_PTHREADS > 4
12993 /* Final pthreads */
12994 pthread_attr_t attr;
12996 status = pthread_attr_init(&attr);
12997 if( status ) return status;
12999 #if HAVE_PTHREADS < 7
13000 status = pthread_attr_setdetachstate(&attr, &detach);
13001 if( status < 0 ) status = errno;
13003 status = pthread_attr_setdetachstate(&attr, detach);
13005 if( status ) return status;
13006 status = pthread_create( &t, &attr, task, NULL );
13007 #if HAVE_PTHREADS < 7
13008 if( status < 0 ) status = errno;
13010 if( status ) return status;
13012 /* Draft 4 pthreads */
13013 status = pthread_create( &t, pthread_attr_default, task, NULL );
13014 if( status ) return errno;
13016 /* give thread a chance to complete */
13017 /* it should remain joinable and hence detachable */
13020 status = pthread_detach( &t );
13021 if( status ) return errno;
13024 #ifdef HAVE_LINUX_THREADS
13025 pthread_kill_other_threads_np();
13032 if { (eval echo configure:13033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13034 ol_cv_pthread_lpthread=yes
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13039 ol_cv_pthread_lpthread=no
13043 cat > conftest.$ac_ext <<EOF
13044 #line 13045 "configure"
13045 #include "confdefs.h"
13046 /* pthread test headers */
13047 #include <pthread.h>
13048 #if HAVE_PTHREADS < 7
13052 #define NULL (void*)0
13055 static void *task(p)
13058 return (void *) (p == NULL);
13062 int main(argc, argv)
13067 /* pthread test function */
13068 #ifndef PTHREAD_CREATE_DETACHED
13069 #define PTHREAD_CREATE_DETACHED 1
13073 int detach = PTHREAD_CREATE_DETACHED;
13075 #if HAVE_PTHREADS > 4
13076 /* Final pthreads */
13077 pthread_attr_t attr;
13079 status = pthread_attr_init(&attr);
13080 if( status ) return status;
13082 #if HAVE_PTHREADS < 7
13083 status = pthread_attr_setdetachstate(&attr, &detach);
13084 if( status < 0 ) status = errno;
13086 status = pthread_attr_setdetachstate(&attr, detach);
13088 if( status ) return status;
13089 status = pthread_create( &t, &attr, task, NULL );
13090 #if HAVE_PTHREADS < 7
13091 if( status < 0 ) status = errno;
13093 if( status ) return status;
13095 /* Draft 4 pthreads */
13096 status = pthread_create( &t, pthread_attr_default, task, NULL );
13097 if( status ) return errno;
13099 /* give thread a chance to complete */
13100 /* it should remain joinable and hence detachable */
13103 status = pthread_detach( &t );
13104 if( status ) return errno;
13107 #ifdef HAVE_LINUX_THREADS
13108 pthread_kill_other_threads_np();
13116 if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13118 ol_cv_pthread_lpthread=yes
13120 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13123 ol_cv_pthread_lpthread=no
13134 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13136 if test $ol_cv_pthread_lpthread = yes ; then
13137 ol_link_pthreads="-lpthread"
13138 ol_link_threads=posix
13142 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13143 if test "$ol_link_threads" = no ; then
13145 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13146 echo "configure:13147: checking for pthread link with -lc_r" >&5
13147 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13148 echo $ac_n "(cached) $ac_c" 1>&6
13155 if test "$cross_compiling" = yes; then
13156 cat > conftest.$ac_ext <<EOF
13157 #line 13158 "configure"
13158 #include "confdefs.h"
13159 /* pthread test headers */
13160 #include <pthread.h>
13161 #if HAVE_PTHREADS < 7
13165 #define NULL (void*)0
13168 static void *task(p)
13171 return (void *) (p == NULL);
13176 /* pthread test function */
13177 #ifndef PTHREAD_CREATE_DETACHED
13178 #define PTHREAD_CREATE_DETACHED 1
13182 int detach = PTHREAD_CREATE_DETACHED;
13184 #if HAVE_PTHREADS > 4
13185 /* Final pthreads */
13186 pthread_attr_t attr;
13188 status = pthread_attr_init(&attr);
13189 if( status ) return status;
13191 #if HAVE_PTHREADS < 7
13192 status = pthread_attr_setdetachstate(&attr, &detach);
13193 if( status < 0 ) status = errno;
13195 status = pthread_attr_setdetachstate(&attr, detach);
13197 if( status ) return status;
13198 status = pthread_create( &t, &attr, task, NULL );
13199 #if HAVE_PTHREADS < 7
13200 if( status < 0 ) status = errno;
13202 if( status ) return status;
13204 /* Draft 4 pthreads */
13205 status = pthread_create( &t, pthread_attr_default, task, NULL );
13206 if( status ) return errno;
13208 /* give thread a chance to complete */
13209 /* it should remain joinable and hence detachable */
13212 status = pthread_detach( &t );
13213 if( status ) return errno;
13216 #ifdef HAVE_LINUX_THREADS
13217 pthread_kill_other_threads_np();
13224 if { (eval echo configure:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13226 ol_cv_pthread_lc_r=yes
13228 echo "configure: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13231 ol_cv_pthread_lc_r=no
13235 cat > conftest.$ac_ext <<EOF
13236 #line 13237 "configure"
13237 #include "confdefs.h"
13238 /* pthread test headers */
13239 #include <pthread.h>
13240 #if HAVE_PTHREADS < 7
13244 #define NULL (void*)0
13247 static void *task(p)
13250 return (void *) (p == NULL);
13254 int main(argc, argv)
13259 /* pthread test function */
13260 #ifndef PTHREAD_CREATE_DETACHED
13261 #define PTHREAD_CREATE_DETACHED 1
13265 int detach = PTHREAD_CREATE_DETACHED;
13267 #if HAVE_PTHREADS > 4
13268 /* Final pthreads */
13269 pthread_attr_t attr;
13271 status = pthread_attr_init(&attr);
13272 if( status ) return status;
13274 #if HAVE_PTHREADS < 7
13275 status = pthread_attr_setdetachstate(&attr, &detach);
13276 if( status < 0 ) status = errno;
13278 status = pthread_attr_setdetachstate(&attr, detach);
13280 if( status ) return status;
13281 status = pthread_create( &t, &attr, task, NULL );
13282 #if HAVE_PTHREADS < 7
13283 if( status < 0 ) status = errno;
13285 if( status ) return status;
13287 /* Draft 4 pthreads */
13288 status = pthread_create( &t, pthread_attr_default, task, NULL );
13289 if( status ) return errno;
13291 /* give thread a chance to complete */
13292 /* it should remain joinable and hence detachable */
13295 status = pthread_detach( &t );
13296 if( status ) return errno;
13299 #ifdef HAVE_LINUX_THREADS
13300 pthread_kill_other_threads_np();
13308 if { (eval echo configure:13309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13310 ol_cv_pthread_lc_r=yes
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13315 ol_cv_pthread_lc_r=no
13326 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13328 if test $ol_cv_pthread_lc_r = yes ; then
13329 ol_link_pthreads="-lc_r"
13330 ol_link_threads=posix
13335 # Pthread try link: -threads (ol_cv_pthread_threads)
13336 if test "$ol_link_threads" = no ; then
13338 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13339 echo "configure:13340: checking for pthread link with -threads" >&5
13340 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13341 echo $ac_n "(cached) $ac_c" 1>&6
13346 LIBS="-threads $LIBS"
13348 if test "$cross_compiling" = yes; then
13349 cat > conftest.$ac_ext <<EOF
13350 #line 13351 "configure"
13351 #include "confdefs.h"
13352 /* pthread test headers */
13353 #include <pthread.h>
13354 #if HAVE_PTHREADS < 7
13358 #define NULL (void*)0
13361 static void *task(p)
13364 return (void *) (p == NULL);
13369 /* pthread test function */
13370 #ifndef PTHREAD_CREATE_DETACHED
13371 #define PTHREAD_CREATE_DETACHED 1
13375 int detach = PTHREAD_CREATE_DETACHED;
13377 #if HAVE_PTHREADS > 4
13378 /* Final pthreads */
13379 pthread_attr_t attr;
13381 status = pthread_attr_init(&attr);
13382 if( status ) return status;
13384 #if HAVE_PTHREADS < 7
13385 status = pthread_attr_setdetachstate(&attr, &detach);
13386 if( status < 0 ) status = errno;
13388 status = pthread_attr_setdetachstate(&attr, detach);
13390 if( status ) return status;
13391 status = pthread_create( &t, &attr, task, NULL );
13392 #if HAVE_PTHREADS < 7
13393 if( status < 0 ) status = errno;
13395 if( status ) return status;
13397 /* Draft 4 pthreads */
13398 status = pthread_create( &t, pthread_attr_default, task, NULL );
13399 if( status ) return errno;
13401 /* give thread a chance to complete */
13402 /* it should remain joinable and hence detachable */
13405 status = pthread_detach( &t );
13406 if( status ) return errno;
13409 #ifdef HAVE_LINUX_THREADS
13410 pthread_kill_other_threads_np();
13417 if { (eval echo configure:13418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13419 ol_cv_pthread_threads=yes
13421 echo "configure: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13424 ol_cv_pthread_threads=no
13428 cat > conftest.$ac_ext <<EOF
13429 #line 13430 "configure"
13430 #include "confdefs.h"
13431 /* pthread test headers */
13432 #include <pthread.h>
13433 #if HAVE_PTHREADS < 7
13437 #define NULL (void*)0
13440 static void *task(p)
13443 return (void *) (p == NULL);
13447 int main(argc, argv)
13452 /* pthread test function */
13453 #ifndef PTHREAD_CREATE_DETACHED
13454 #define PTHREAD_CREATE_DETACHED 1
13458 int detach = PTHREAD_CREATE_DETACHED;
13460 #if HAVE_PTHREADS > 4
13461 /* Final pthreads */
13462 pthread_attr_t attr;
13464 status = pthread_attr_init(&attr);
13465 if( status ) return status;
13467 #if HAVE_PTHREADS < 7
13468 status = pthread_attr_setdetachstate(&attr, &detach);
13469 if( status < 0 ) status = errno;
13471 status = pthread_attr_setdetachstate(&attr, detach);
13473 if( status ) return status;
13474 status = pthread_create( &t, &attr, task, NULL );
13475 #if HAVE_PTHREADS < 7
13476 if( status < 0 ) status = errno;
13478 if( status ) return status;
13480 /* Draft 4 pthreads */
13481 status = pthread_create( &t, pthread_attr_default, task, NULL );
13482 if( status ) return errno;
13484 /* give thread a chance to complete */
13485 /* it should remain joinable and hence detachable */
13488 status = pthread_detach( &t );
13489 if( status ) return errno;
13492 #ifdef HAVE_LINUX_THREADS
13493 pthread_kill_other_threads_np();
13501 if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13503 ol_cv_pthread_threads=yes
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13508 ol_cv_pthread_threads=no
13519 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13521 if test $ol_cv_pthread_threads = yes ; then
13522 ol_link_pthreads="-threads"
13523 ol_link_threads=posix
13528 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13529 if test "$ol_link_threads" = no ; then
13530 # try -lpthreads -lmach -lexc -lc_r
13531 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13532 echo "configure:13533: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13533 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13534 echo $ac_n "(cached) $ac_c" 1>&6
13539 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13541 if test "$cross_compiling" = yes; then
13542 cat > conftest.$ac_ext <<EOF
13543 #line 13544 "configure"
13544 #include "confdefs.h"
13545 /* pthread test headers */
13546 #include <pthread.h>
13547 #if HAVE_PTHREADS < 7
13551 #define NULL (void*)0
13554 static void *task(p)
13557 return (void *) (p == NULL);
13562 /* pthread test function */
13563 #ifndef PTHREAD_CREATE_DETACHED
13564 #define PTHREAD_CREATE_DETACHED 1
13568 int detach = PTHREAD_CREATE_DETACHED;
13570 #if HAVE_PTHREADS > 4
13571 /* Final pthreads */
13572 pthread_attr_t attr;
13574 status = pthread_attr_init(&attr);
13575 if( status ) return status;
13577 #if HAVE_PTHREADS < 7
13578 status = pthread_attr_setdetachstate(&attr, &detach);
13579 if( status < 0 ) status = errno;
13581 status = pthread_attr_setdetachstate(&attr, detach);
13583 if( status ) return status;
13584 status = pthread_create( &t, &attr, task, NULL );
13585 #if HAVE_PTHREADS < 7
13586 if( status < 0 ) status = errno;
13588 if( status ) return status;
13590 /* Draft 4 pthreads */
13591 status = pthread_create( &t, pthread_attr_default, task, NULL );
13592 if( status ) return errno;
13594 /* give thread a chance to complete */
13595 /* it should remain joinable and hence detachable */
13598 status = pthread_detach( &t );
13599 if( status ) return errno;
13602 #ifdef HAVE_LINUX_THREADS
13603 pthread_kill_other_threads_np();
13610 if { (eval echo configure:13611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13612 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13614 echo "configure: failed program was:" >&5
13615 cat conftest.$ac_ext >&5
13617 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13621 cat > conftest.$ac_ext <<EOF
13622 #line 13623 "configure"
13623 #include "confdefs.h"
13624 /* pthread test headers */
13625 #include <pthread.h>
13626 #if HAVE_PTHREADS < 7
13630 #define NULL (void*)0
13633 static void *task(p)
13636 return (void *) (p == NULL);
13640 int main(argc, argv)
13645 /* pthread test function */
13646 #ifndef PTHREAD_CREATE_DETACHED
13647 #define PTHREAD_CREATE_DETACHED 1
13651 int detach = PTHREAD_CREATE_DETACHED;
13653 #if HAVE_PTHREADS > 4
13654 /* Final pthreads */
13655 pthread_attr_t attr;
13657 status = pthread_attr_init(&attr);
13658 if( status ) return status;
13660 #if HAVE_PTHREADS < 7
13661 status = pthread_attr_setdetachstate(&attr, &detach);
13662 if( status < 0 ) status = errno;
13664 status = pthread_attr_setdetachstate(&attr, detach);
13666 if( status ) return status;
13667 status = pthread_create( &t, &attr, task, NULL );
13668 #if HAVE_PTHREADS < 7
13669 if( status < 0 ) status = errno;
13671 if( status ) return status;
13673 /* Draft 4 pthreads */
13674 status = pthread_create( &t, pthread_attr_default, task, NULL );
13675 if( status ) return errno;
13677 /* give thread a chance to complete */
13678 /* it should remain joinable and hence detachable */
13681 status = pthread_detach( &t );
13682 if( status ) return errno;
13685 #ifdef HAVE_LINUX_THREADS
13686 pthread_kill_other_threads_np();
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13696 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13698 echo "configure: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13701 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13712 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13714 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13715 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13716 ol_link_threads=posix
13720 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13721 if test "$ol_link_threads" = no ; then
13722 # try -lpthreads -lmach -lexc
13723 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13724 echo "configure:13725: checking for pthread link with -lpthreads -lmach -lexc" >&5
13725 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13726 echo $ac_n "(cached) $ac_c" 1>&6
13731 LIBS="-lpthreads -lmach -lexc $LIBS"
13733 if test "$cross_compiling" = yes; then
13734 cat > conftest.$ac_ext <<EOF
13735 #line 13736 "configure"
13736 #include "confdefs.h"
13737 /* pthread test headers */
13738 #include <pthread.h>
13739 #if HAVE_PTHREADS < 7
13743 #define NULL (void*)0
13746 static void *task(p)
13749 return (void *) (p == NULL);
13754 /* pthread test function */
13755 #ifndef PTHREAD_CREATE_DETACHED
13756 #define PTHREAD_CREATE_DETACHED 1
13760 int detach = PTHREAD_CREATE_DETACHED;
13762 #if HAVE_PTHREADS > 4
13763 /* Final pthreads */
13764 pthread_attr_t attr;
13766 status = pthread_attr_init(&attr);
13767 if( status ) return status;
13769 #if HAVE_PTHREADS < 7
13770 status = pthread_attr_setdetachstate(&attr, &detach);
13771 if( status < 0 ) status = errno;
13773 status = pthread_attr_setdetachstate(&attr, detach);
13775 if( status ) return status;
13776 status = pthread_create( &t, &attr, task, NULL );
13777 #if HAVE_PTHREADS < 7
13778 if( status < 0 ) status = errno;
13780 if( status ) return status;
13782 /* Draft 4 pthreads */
13783 status = pthread_create( &t, pthread_attr_default, task, NULL );
13784 if( status ) return errno;
13786 /* give thread a chance to complete */
13787 /* it should remain joinable and hence detachable */
13790 status = pthread_detach( &t );
13791 if( status ) return errno;
13794 #ifdef HAVE_LINUX_THREADS
13795 pthread_kill_other_threads_np();
13802 if { (eval echo configure:13803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13804 ol_cv_pthread_lpthreads_lmach_lexc=yes
13806 echo "configure: failed program was:" >&5
13807 cat conftest.$ac_ext >&5
13809 ol_cv_pthread_lpthreads_lmach_lexc=no
13813 cat > conftest.$ac_ext <<EOF
13814 #line 13815 "configure"
13815 #include "confdefs.h"
13816 /* pthread test headers */
13817 #include <pthread.h>
13818 #if HAVE_PTHREADS < 7
13822 #define NULL (void*)0
13825 static void *task(p)
13828 return (void *) (p == NULL);
13832 int main(argc, argv)
13837 /* pthread test function */
13838 #ifndef PTHREAD_CREATE_DETACHED
13839 #define PTHREAD_CREATE_DETACHED 1
13843 int detach = PTHREAD_CREATE_DETACHED;
13845 #if HAVE_PTHREADS > 4
13846 /* Final pthreads */
13847 pthread_attr_t attr;
13849 status = pthread_attr_init(&attr);
13850 if( status ) return status;
13852 #if HAVE_PTHREADS < 7
13853 status = pthread_attr_setdetachstate(&attr, &detach);
13854 if( status < 0 ) status = errno;
13856 status = pthread_attr_setdetachstate(&attr, detach);
13858 if( status ) return status;
13859 status = pthread_create( &t, &attr, task, NULL );
13860 #if HAVE_PTHREADS < 7
13861 if( status < 0 ) status = errno;
13863 if( status ) return status;
13865 /* Draft 4 pthreads */
13866 status = pthread_create( &t, pthread_attr_default, task, NULL );
13867 if( status ) return errno;
13869 /* give thread a chance to complete */
13870 /* it should remain joinable and hence detachable */
13873 status = pthread_detach( &t );
13874 if( status ) return errno;
13877 #ifdef HAVE_LINUX_THREADS
13878 pthread_kill_other_threads_np();
13886 if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13888 ol_cv_pthread_lpthreads_lmach_lexc=yes
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13893 ol_cv_pthread_lpthreads_lmach_lexc=no
13904 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
13906 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13907 ol_link_pthreads="-lpthreads -lmach -lexc"
13908 ol_link_threads=posix
13912 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13913 if test "$ol_link_threads" = no ; then
13914 # try -lpthreads -lexc
13915 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
13916 echo "configure:13917: checking for pthread link with -lpthreads -lexc" >&5
13917 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
13918 echo $ac_n "(cached) $ac_c" 1>&6
13923 LIBS="-lpthreads -lexc $LIBS"
13925 if test "$cross_compiling" = yes; then
13926 cat > conftest.$ac_ext <<EOF
13927 #line 13928 "configure"
13928 #include "confdefs.h"
13929 /* pthread test headers */
13930 #include <pthread.h>
13931 #if HAVE_PTHREADS < 7
13935 #define NULL (void*)0
13938 static void *task(p)
13941 return (void *) (p == NULL);
13946 /* pthread test function */
13947 #ifndef PTHREAD_CREATE_DETACHED
13948 #define PTHREAD_CREATE_DETACHED 1
13952 int detach = PTHREAD_CREATE_DETACHED;
13954 #if HAVE_PTHREADS > 4
13955 /* Final pthreads */
13956 pthread_attr_t attr;
13958 status = pthread_attr_init(&attr);
13959 if( status ) return status;
13961 #if HAVE_PTHREADS < 7
13962 status = pthread_attr_setdetachstate(&attr, &detach);
13963 if( status < 0 ) status = errno;
13965 status = pthread_attr_setdetachstate(&attr, detach);
13967 if( status ) return status;
13968 status = pthread_create( &t, &attr, task, NULL );
13969 #if HAVE_PTHREADS < 7
13970 if( status < 0 ) status = errno;
13972 if( status ) return status;
13974 /* Draft 4 pthreads */
13975 status = pthread_create( &t, pthread_attr_default, task, NULL );
13976 if( status ) return errno;
13978 /* give thread a chance to complete */
13979 /* it should remain joinable and hence detachable */
13982 status = pthread_detach( &t );
13983 if( status ) return errno;
13986 #ifdef HAVE_LINUX_THREADS
13987 pthread_kill_other_threads_np();
13994 if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13996 ol_cv_pthread_lpthreads_lexc=yes
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14001 ol_cv_pthread_lpthreads_lexc=no
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 /* pthread test headers */
14009 #include <pthread.h>
14010 #if HAVE_PTHREADS < 7
14014 #define NULL (void*)0
14017 static void *task(p)
14020 return (void *) (p == NULL);
14024 int main(argc, argv)
14029 /* pthread test function */
14030 #ifndef PTHREAD_CREATE_DETACHED
14031 #define PTHREAD_CREATE_DETACHED 1
14035 int detach = PTHREAD_CREATE_DETACHED;
14037 #if HAVE_PTHREADS > 4
14038 /* Final pthreads */
14039 pthread_attr_t attr;
14041 status = pthread_attr_init(&attr);
14042 if( status ) return status;
14044 #if HAVE_PTHREADS < 7
14045 status = pthread_attr_setdetachstate(&attr, &detach);
14046 if( status < 0 ) status = errno;
14048 status = pthread_attr_setdetachstate(&attr, detach);
14050 if( status ) return status;
14051 status = pthread_create( &t, &attr, task, NULL );
14052 #if HAVE_PTHREADS < 7
14053 if( status < 0 ) status = errno;
14055 if( status ) return status;
14057 /* Draft 4 pthreads */
14058 status = pthread_create( &t, pthread_attr_default, task, NULL );
14059 if( status ) return errno;
14061 /* give thread a chance to complete */
14062 /* it should remain joinable and hence detachable */
14065 status = pthread_detach( &t );
14066 if( status ) return errno;
14069 #ifdef HAVE_LINUX_THREADS
14070 pthread_kill_other_threads_np();
14078 if { (eval echo configure:14079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14080 ol_cv_pthread_lpthreads_lexc=yes
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14085 ol_cv_pthread_lpthreads_lexc=no
14096 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14098 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14099 ol_link_pthreads="-lpthreads -lexc"
14100 ol_link_threads=posix
14105 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14106 if test "$ol_link_threads" = no ; then
14108 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14109 echo "configure:14110: checking for pthread link with -lpthreads" >&5
14110 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14111 echo $ac_n "(cached) $ac_c" 1>&6
14116 LIBS="-lpthreads $LIBS"
14118 if test "$cross_compiling" = yes; then
14119 cat > conftest.$ac_ext <<EOF
14120 #line 14121 "configure"
14121 #include "confdefs.h"
14122 /* pthread test headers */
14123 #include <pthread.h>
14124 #if HAVE_PTHREADS < 7
14128 #define NULL (void*)0
14131 static void *task(p)
14134 return (void *) (p == NULL);
14139 /* pthread test function */
14140 #ifndef PTHREAD_CREATE_DETACHED
14141 #define PTHREAD_CREATE_DETACHED 1
14145 int detach = PTHREAD_CREATE_DETACHED;
14147 #if HAVE_PTHREADS > 4
14148 /* Final pthreads */
14149 pthread_attr_t attr;
14151 status = pthread_attr_init(&attr);
14152 if( status ) return status;
14154 #if HAVE_PTHREADS < 7
14155 status = pthread_attr_setdetachstate(&attr, &detach);
14156 if( status < 0 ) status = errno;
14158 status = pthread_attr_setdetachstate(&attr, detach);
14160 if( status ) return status;
14161 status = pthread_create( &t, &attr, task, NULL );
14162 #if HAVE_PTHREADS < 7
14163 if( status < 0 ) status = errno;
14165 if( status ) return status;
14167 /* Draft 4 pthreads */
14168 status = pthread_create( &t, pthread_attr_default, task, NULL );
14169 if( status ) return errno;
14171 /* give thread a chance to complete */
14172 /* it should remain joinable and hence detachable */
14175 status = pthread_detach( &t );
14176 if( status ) return errno;
14179 #ifdef HAVE_LINUX_THREADS
14180 pthread_kill_other_threads_np();
14187 if { (eval echo configure:14188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14189 ol_cv_pthread_lib_lpthreads=yes
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14194 ol_cv_pthread_lib_lpthreads=no
14198 cat > conftest.$ac_ext <<EOF
14199 #line 14200 "configure"
14200 #include "confdefs.h"
14201 /* pthread test headers */
14202 #include <pthread.h>
14203 #if HAVE_PTHREADS < 7
14207 #define NULL (void*)0
14210 static void *task(p)
14213 return (void *) (p == NULL);
14217 int main(argc, argv)
14222 /* pthread test function */
14223 #ifndef PTHREAD_CREATE_DETACHED
14224 #define PTHREAD_CREATE_DETACHED 1
14228 int detach = PTHREAD_CREATE_DETACHED;
14230 #if HAVE_PTHREADS > 4
14231 /* Final pthreads */
14232 pthread_attr_t attr;
14234 status = pthread_attr_init(&attr);
14235 if( status ) return status;
14237 #if HAVE_PTHREADS < 7
14238 status = pthread_attr_setdetachstate(&attr, &detach);
14239 if( status < 0 ) status = errno;
14241 status = pthread_attr_setdetachstate(&attr, detach);
14243 if( status ) return status;
14244 status = pthread_create( &t, &attr, task, NULL );
14245 #if HAVE_PTHREADS < 7
14246 if( status < 0 ) status = errno;
14248 if( status ) return status;
14250 /* Draft 4 pthreads */
14251 status = pthread_create( &t, pthread_attr_default, task, NULL );
14252 if( status ) return errno;
14254 /* give thread a chance to complete */
14255 /* it should remain joinable and hence detachable */
14258 status = pthread_detach( &t );
14259 if( status ) return errno;
14262 #ifdef HAVE_LINUX_THREADS
14263 pthread_kill_other_threads_np();
14271 if { (eval echo configure:14272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14273 ol_cv_pthread_lib_lpthreads=yes
14275 echo "configure: failed program was:" >&5
14276 cat conftest.$ac_ext >&5
14278 ol_cv_pthread_lib_lpthreads=no
14289 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14291 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14292 ol_link_pthreads="-lpthreads"
14293 ol_link_threads=posix
14298 if test $ol_link_threads != no ; then
14299 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14301 save_CPPFLAGS="$CPPFLAGS"
14303 LIBS="$LTHREAD_LIBS $LIBS"
14305 for ac_func in sched_yield pthread_yield thr_yield
14307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14308 echo "configure:14309: checking for $ac_func" >&5
14309 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 /* System header to define __stub macros and hopefully few prototypes,
14316 which can conflict with char $ac_func(); below. */
14317 #include <assert.h>
14318 /* Override any gcc2 internal prototype to avoid an error. */
14319 /* We use char because int might match the return type of a gcc2
14320 builtin and then its argument prototype would still apply. */
14326 /* The GNU C library defines this for functions which it implements
14327 to always fail with ENOSYS. Some functions are actually named
14328 something starting with __ and the normal name is an alias. */
14329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14337 if { (eval echo configure:14338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14339 eval "ac_cv_func_$ac_func=yes"
14341 echo "configure: failed program was:" >&5
14342 cat conftest.$ac_ext >&5
14344 eval "ac_cv_func_$ac_func=no"
14349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14350 echo "$ac_t""yes" 1>&6
14351 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14352 cat >> confdefs.h <<EOF
14353 #define $ac_tr_func 1
14357 echo "$ac_t""no" 1>&6
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 $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14366 echo "configure:14367: checking for sched_yield in -lrt" >&5
14367 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14369 echo $ac_n "(cached) $ac_c" 1>&6
14371 ac_save_LIBS="$LIBS"
14373 cat > conftest.$ac_ext <<EOF
14374 #line 14375 "configure"
14375 #include "confdefs.h"
14376 /* Override any gcc2 internal prototype to avoid an error. */
14377 /* We use char because int might match the return type of a gcc2
14378 builtin and then its argument prototype would still apply. */
14379 char sched_yield();
14385 if { (eval echo configure:14386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14387 eval "ac_cv_lib_$ac_lib_var=yes"
14389 echo "configure: failed program was:" >&5
14390 cat conftest.$ac_ext >&5
14392 eval "ac_cv_lib_$ac_lib_var=no"
14395 LIBS="$ac_save_LIBS"
14398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14399 echo "$ac_t""yes" 1>&6
14400 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14401 cat >> confdefs.h <<\EOF
14402 #define HAVE_SCHED_YIELD 1
14405 ac_cv_func_sched_yield=yes
14407 echo "$ac_t""no" 1>&6
14408 ac_cv_func_sched_yield=no
14412 if test $ac_cv_func_sched_yield = no -a \
14413 $ac_cv_func_pthread_yield = no -a \
14414 "$ac_cv_func_thr_yield" = no ; then
14415 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14418 for ac_func in pthread_kill pthread_rwlock_destroy
14420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14421 echo "configure:14422: checking for $ac_func" >&5
14422 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14423 echo $ac_n "(cached) $ac_c" 1>&6
14425 cat > conftest.$ac_ext <<EOF
14426 #line 14427 "configure"
14427 #include "confdefs.h"
14428 /* System header to define __stub macros and hopefully few prototypes,
14429 which can conflict with char $ac_func(); below. */
14430 #include <assert.h>
14431 /* Override any gcc2 internal prototype to avoid an error. */
14432 /* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14439 /* The GNU C library defines this for functions which it implements
14440 to always fail with ENOSYS. Some functions are actually named
14441 something starting with __ and the normal name is an alias. */
14442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14452 eval "ac_cv_func_$ac_func=yes"
14454 echo "configure: failed program was:" >&5
14455 cat conftest.$ac_ext >&5
14457 eval "ac_cv_func_$ac_func=no"
14462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14463 echo "$ac_t""yes" 1>&6
14464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14465 cat >> confdefs.h <<EOF
14466 #define $ac_tr_func 1
14470 echo "$ac_t""no" 1>&6
14475 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14476 echo "configure:14477: checking for pthread_detach with <pthread.h>" >&5
14477 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14478 echo $ac_n "(cached) $ac_c" 1>&6
14481 cat > conftest.$ac_ext <<EOF
14482 #line 14483 "configure"
14483 #include "confdefs.h"
14485 #include <pthread.h>
14487 #define NULL (void*)0
14491 pthread_detach(NULL);
14494 if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14496 ol_cv_func_pthread_detach=yes
14498 echo "configure: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14501 ol_cv_func_pthread_detach=no
14507 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14509 if test $ol_cv_func_pthread_detach = no ; then
14510 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14513 cat >> confdefs.h <<\EOF
14514 #define HAVE_PTHREAD_DETACH 1
14519 pthread_setconcurrency \
14520 pthread_getconcurrency \
14521 thr_setconcurrency \
14522 thr_getconcurrency \
14525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14526 echo "configure:14527: checking for $ac_func" >&5
14527 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14528 echo $ac_n "(cached) $ac_c" 1>&6
14530 cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure"
14532 #include "confdefs.h"
14533 /* System header to define __stub macros and hopefully few prototypes,
14534 which can conflict with char $ac_func(); below. */
14535 #include <assert.h>
14536 /* Override any gcc2 internal prototype to avoid an error. */
14537 /* We use char because int might match the return type of a gcc2
14538 builtin and then its argument prototype would still apply. */
14544 /* The GNU C library defines this for functions which it implements
14545 to always fail with ENOSYS. Some functions are actually named
14546 something starting with __ and the normal name is an alias. */
14547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14555 if { (eval echo configure:14556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14557 eval "ac_cv_func_$ac_func=yes"
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14562 eval "ac_cv_func_$ac_func=no"
14567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14568 echo "$ac_t""yes" 1>&6
14569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14570 cat >> confdefs.h <<EOF
14571 #define $ac_tr_func 1
14575 echo "$ac_t""no" 1>&6
14581 for ac_func in pthread_kill_other_threads_np
14583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14584 echo "configure:14585: checking for $ac_func" >&5
14585 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14586 echo $ac_n "(cached) $ac_c" 1>&6
14588 cat > conftest.$ac_ext <<EOF
14589 #line 14590 "configure"
14590 #include "confdefs.h"
14591 /* System header to define __stub macros and hopefully few prototypes,
14592 which can conflict with char $ac_func(); below. */
14593 #include <assert.h>
14594 /* Override any gcc2 internal prototype to avoid an error. */
14595 /* We use char because int might match the return type of a gcc2
14596 builtin and then its argument prototype would still apply. */
14602 /* The GNU C library defines this for functions which it implements
14603 to always fail with ENOSYS. Some functions are actually named
14604 something starting with __ and the normal name is an alias. */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14613 if { (eval echo configure:14614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14615 eval "ac_cv_func_$ac_func=yes"
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14620 eval "ac_cv_func_$ac_func=no"
14625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14626 echo "$ac_t""yes" 1>&6
14627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14628 cat >> confdefs.h <<EOF
14629 #define $ac_tr_func 1
14633 echo "$ac_t""no" 1>&6
14637 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14638 echo "configure:14639: checking for LinuxThreads implementation" >&5
14639 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14642 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14645 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14650 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14651 echo "configure:14652: checking for LinuxThreads consistency" >&5
14652 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14653 echo $ac_n "(cached) $ac_c" 1>&6
14656 if test $ol_cv_header_linux_threads = yes -a \
14657 $ol_cv_sys_linux_threads = yes; then
14658 ol_cv_linux_threads=yes
14659 elif test $ol_cv_header_linux_threads = no -a \
14660 $ol_cv_sys_linux_threads = no; then
14661 ol_cv_linux_threads=no
14663 ol_cv_linux_threads=error
14668 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14671 if test $ol_cv_linux_threads = error; then
14672 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14675 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14676 echo "configure:14677: checking if pthread_create() works" >&5
14677 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14678 echo $ac_n "(cached) $ac_c" 1>&6
14681 if test "$cross_compiling" = yes; then
14682 ol_cv_pthread_create_works=yes
14684 cat > conftest.$ac_ext <<EOF
14685 #line 14686 "configure"
14686 #include "confdefs.h"
14687 /* pthread test headers */
14688 #include <pthread.h>
14689 #if HAVE_PTHREADS < 7
14693 #define NULL (void*)0
14696 static void *task(p)
14699 return (void *) (p == NULL);
14703 int main(argc, argv)
14708 /* pthread test function */
14709 #ifndef PTHREAD_CREATE_DETACHED
14710 #define PTHREAD_CREATE_DETACHED 1
14714 int detach = PTHREAD_CREATE_DETACHED;
14716 #if HAVE_PTHREADS > 4
14717 /* Final pthreads */
14718 pthread_attr_t attr;
14720 status = pthread_attr_init(&attr);
14721 if( status ) return status;
14723 #if HAVE_PTHREADS < 7
14724 status = pthread_attr_setdetachstate(&attr, &detach);
14725 if( status < 0 ) status = errno;
14727 status = pthread_attr_setdetachstate(&attr, detach);
14729 if( status ) return status;
14730 status = pthread_create( &t, &attr, task, NULL );
14731 #if HAVE_PTHREADS < 7
14732 if( status < 0 ) status = errno;
14734 if( status ) return status;
14736 /* Draft 4 pthreads */
14737 status = pthread_create( &t, pthread_attr_default, task, NULL );
14738 if( status ) return errno;
14740 /* give thread a chance to complete */
14741 /* it should remain joinable and hence detachable */
14744 status = pthread_detach( &t );
14745 if( status ) return errno;
14748 #ifdef HAVE_LINUX_THREADS
14749 pthread_kill_other_threads_np();
14757 if { (eval echo configure:14758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14759 ol_cv_pthread_create_works=yes
14761 echo "configure: failed program was:" >&5
14762 cat conftest.$ac_ext >&5
14764 ol_cv_pthread_create_works=no
14771 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14773 if test $ol_cv_pthread_create_works = no ; then
14774 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14777 if test $ol_with_yielding_select = auto ; then
14778 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14779 echo "configure:14780: checking if select yields when using pthreads" >&5
14780 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14781 echo $ac_n "(cached) $ac_c" 1>&6
14784 if test "$cross_compiling" = yes; then
14785 ol_cv_pthread_select_yields=cross
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14791 #include <sys/types.h>
14792 #include <sys/time.h>
14793 #include <unistd.h>
14794 #include <pthread.h>
14796 #define NULL (void*) 0
14799 static int fildes[2];
14801 static void *task(p)
14813 FD_SET(fildes[0], &rfds);
14815 /* we're not interested in any fds */
14816 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14823 exit(0); /* if we exit here, the select blocked the whole process */
14826 int main(argc, argv)
14832 /* create a pipe to select */
14833 if(pipe(&fildes[0])) {
14838 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14839 (void) pthread_setconcurrency(2);
14841 #ifdef HAVE_THR_SETCONCURRENCY
14842 /* Set Solaris LWP concurrency to 2 */
14843 thr_setconcurrency(2);
14847 #if HAVE_PTHREADS < 6
14848 pthread_create(&t, pthread_attr_default, task, NULL);
14850 pthread_create(&t, NULL, task, NULL);
14853 /* make sure task runs first */
14856 #elif defined( HAVE_SCHED_YIELD )
14858 #elif defined( HAVE_PTHREAD_YIELD )
14865 if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14867 ol_cv_pthread_select_yields=no
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14872 ol_cv_pthread_select_yields=yes
14879 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14881 if test $ol_cv_pthread_select_yields = cross ; then
14882 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14885 if test $ol_cv_pthread_select_yields = yes ; then
14886 ol_with_yielding_select=yes
14890 CPPFLAGS="$save_CPPFLAGS"
14893 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
14897 if test $ol_with_threads = posix ; then
14898 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
14902 if test $ol_with_threads = auto -o $ol_with_threads = yes \
14903 -o $ol_with_threads = mach ; then
14905 for ac_hdr in mach/cthreads.h cthreads.h
14907 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14908 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14909 echo "configure:14910: checking for $ac_hdr" >&5
14910 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14911 echo $ac_n "(cached) $ac_c" 1>&6
14913 cat > conftest.$ac_ext <<EOF
14914 #line 14915 "configure"
14915 #include "confdefs.h"
14918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14919 { (eval echo configure:14920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14921 if test -z "$ac_err"; then
14923 eval "ac_cv_header_$ac_safe=yes"
14926 echo "configure: failed program was:" >&5
14927 cat conftest.$ac_ext >&5
14929 eval "ac_cv_header_$ac_safe=no"
14933 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14934 echo "$ac_t""yes" 1>&6
14935 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14936 cat >> confdefs.h <<EOF
14937 #define $ac_tr_hdr 1
14941 echo "$ac_t""no" 1>&6
14945 if test $ac_cv_header_mach_cthreads_h = yes ; then
14946 ol_with_threads=found
14948 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
14949 echo "configure:14950: checking for cthread_fork" >&5
14950 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
14951 echo $ac_n "(cached) $ac_c" 1>&6
14953 cat > conftest.$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char cthread_fork(); below. */
14958 #include <assert.h>
14959 /* Override any gcc2 internal prototype to avoid an error. */
14960 /* We use char because int might match the return type of a gcc2
14961 builtin and then its argument prototype would still apply. */
14962 char cthread_fork();
14967 /* The GNU C library defines this for functions which it implements
14968 to always fail with ENOSYS. Some functions are actually named
14969 something starting with __ and the normal name is an alias. */
14970 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
14978 if { (eval echo configure:14979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 eval "ac_cv_func_cthread_fork=yes"
14982 echo "configure: failed program was:" >&5
14983 cat conftest.$ac_ext >&5
14985 eval "ac_cv_func_cthread_fork=no"
14990 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
14991 echo "$ac_t""yes" 1>&6
14992 ol_link_threads=yes
14994 echo "$ac_t""no" 1>&6
14998 if test $ol_link_threads = no ; then
14999 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15000 echo "configure:15001: checking for cthread_fork with -all_load" >&5
15001 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15002 echo $ac_n "(cached) $ac_c" 1>&6
15006 LIBS="-all_load $LIBS"
15007 cat > conftest.$ac_ext <<EOF
15008 #line 15009 "configure"
15009 #include "confdefs.h"
15010 #include <mach/cthreads.h>
15013 cthread_fork((void *)0, (void *)0);
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15019 ol_cv_cthread_all_load=yes
15021 echo "configure: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15024 ol_cv_cthread_all_load=no
15031 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15033 if test $ol_cv_cthread_all_load = yes ; then
15034 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15035 ol_link_threads=mach
15036 ol_with_threads=found
15040 elif test $ac_cv_header_cthreads_h = yes ; then
15042 ol_with_threads=found
15045 LIBS="$LIBS -lthreads"
15046 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15047 echo "configure:15048: checking for cthread_fork" >&5
15048 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15049 echo $ac_n "(cached) $ac_c" 1>&6
15051 cat > conftest.$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054 /* System header to define __stub macros and hopefully few prototypes,
15055 which can conflict with char cthread_fork(); below. */
15056 #include <assert.h>
15057 /* Override any gcc2 internal prototype to avoid an error. */
15058 /* We use char because int might match the return type of a gcc2
15059 builtin and then its argument prototype would still apply. */
15060 char cthread_fork();
15065 /* The GNU C library defines this for functions which it implements
15066 to always fail with ENOSYS. Some functions are actually named
15067 something starting with __ and the normal name is an alias. */
15068 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15076 if { (eval echo configure:15077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15078 eval "ac_cv_func_cthread_fork=yes"
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15083 eval "ac_cv_func_cthread_fork=no"
15088 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15089 echo "$ac_t""yes" 1>&6
15090 ol_link_threads=yes
15092 echo "$ac_t""no" 1>&6
15097 if test $ol_link_threads = yes ; then
15098 LTHREAD_LIBS="-lthreads"
15099 ol_link_threads=mach
15100 ol_with_threads=found
15102 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15105 elif test $ol_with_threads = mach ; then
15106 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15109 if test $ol_link_threads = mach ; then
15110 cat >> confdefs.h <<\EOF
15111 #define HAVE_MACH_CTHREADS 1
15114 elif test $ol_with_threads = found ; then
15115 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15119 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15120 -o $ol_with_threads = pth ; then
15122 for ac_hdr in pth.h
15124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15126 echo "configure:15127: checking for $ac_hdr" >&5
15127 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15128 echo $ac_n "(cached) $ac_c" 1>&6
15130 cat > conftest.$ac_ext <<EOF
15131 #line 15132 "configure"
15132 #include "confdefs.h"
15135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15136 { (eval echo configure:15137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15138 if test -z "$ac_err"; then
15140 eval "ac_cv_header_$ac_safe=yes"
15143 echo "configure: failed program was:" >&5
15144 cat conftest.$ac_ext >&5
15146 eval "ac_cv_header_$ac_safe=no"
15150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15151 echo "$ac_t""yes" 1>&6
15152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15153 cat >> confdefs.h <<EOF
15154 #define $ac_tr_hdr 1
15158 echo "$ac_t""no" 1>&6
15163 if test $ac_cv_header_pth_h = yes ; then
15164 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15165 echo "configure:15166: checking for pth_version in -lpth" >&5
15166 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15168 echo $ac_n "(cached) $ac_c" 1>&6
15170 ac_save_LIBS="$LIBS"
15172 cat > conftest.$ac_ext <<EOF
15173 #line 15174 "configure"
15174 #include "confdefs.h"
15175 /* Override any gcc2 internal prototype to avoid an error. */
15176 /* We use char because int might match the return type of a gcc2
15177 builtin and then its argument prototype would still apply. */
15178 char pth_version();
15184 if { (eval echo configure:15185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15186 eval "ac_cv_lib_$ac_lib_var=yes"
15188 echo "configure: failed program was:" >&5
15189 cat conftest.$ac_ext >&5
15191 eval "ac_cv_lib_$ac_lib_var=no"
15194 LIBS="$ac_save_LIBS"
15197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15198 echo "$ac_t""yes" 1>&6
15201 echo "$ac_t""no" 1>&6
15206 if test $have_pth = yes ; then
15207 cat >> confdefs.h <<\EOF
15208 #define HAVE_GNU_PTH 1
15211 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15212 ol_link_threads=pth
15213 ol_with_threads=found
15215 if test $ol_with_yielding_select = auto ; then
15216 ol_with_yielding_select=yes
15222 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15223 -o $ol_with_threads = lwp ; then
15225 for ac_hdr in thread.h synch.h
15227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15229 echo "configure:15230: checking for $ac_hdr" >&5
15230 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15233 cat > conftest.$ac_ext <<EOF
15234 #line 15235 "configure"
15235 #include "confdefs.h"
15238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15239 { (eval echo configure:15240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15241 if test -z "$ac_err"; then
15243 eval "ac_cv_header_$ac_safe=yes"
15246 echo "configure: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15249 eval "ac_cv_header_$ac_safe=no"
15253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15254 echo "$ac_t""yes" 1>&6
15255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15256 cat >> confdefs.h <<EOF
15257 #define $ac_tr_hdr 1
15261 echo "$ac_t""no" 1>&6
15265 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15266 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15267 echo "configure:15268: checking for thr_create in -lthread" >&5
15268 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15270 echo $ac_n "(cached) $ac_c" 1>&6
15272 ac_save_LIBS="$LIBS"
15273 LIBS="-lthread $LIBS"
15274 cat > conftest.$ac_ext <<EOF
15275 #line 15276 "configure"
15276 #include "confdefs.h"
15277 /* Override any gcc2 internal prototype to avoid an error. */
15278 /* We use char because int might match the return type of a gcc2
15279 builtin and then its argument prototype would still apply. */
15286 if { (eval echo configure:15287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15288 eval "ac_cv_lib_$ac_lib_var=yes"
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15293 eval "ac_cv_lib_$ac_lib_var=no"
15296 LIBS="$ac_save_LIBS"
15299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15300 echo "$ac_t""yes" 1>&6
15303 echo "$ac_t""no" 1>&6
15308 if test $have_thr = yes ; then
15309 cat >> confdefs.h <<\EOF
15313 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15314 ol_link_threads=thr
15316 if test $ol_with_yielding_select = auto ; then
15317 ol_with_yielding_select=yes
15321 thr_setconcurrency \
15322 thr_getconcurrency \
15325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15326 echo "configure:15327: checking for $ac_func" >&5
15327 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15328 echo $ac_n "(cached) $ac_c" 1>&6
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15333 /* System header to define __stub macros and hopefully few prototypes,
15334 which can conflict with char $ac_func(); below. */
15335 #include <assert.h>
15336 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15344 /* The GNU C library defines this for functions which it implements
15345 to always fail with ENOSYS. Some functions are actually named
15346 something starting with __ and the normal name is an alias. */
15347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15355 if { (eval echo configure:15356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15357 eval "ac_cv_func_$ac_func=yes"
15359 echo "configure: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15362 eval "ac_cv_func_$ac_func=no"
15367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15368 echo "$ac_t""yes" 1>&6
15369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15370 cat >> confdefs.h <<EOF
15371 #define $ac_tr_func 1
15375 echo "$ac_t""no" 1>&6
15382 for ac_hdr in lwp/lwp.h
15384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15386 echo "configure:15387: checking for $ac_hdr" >&5
15387 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15388 echo $ac_n "(cached) $ac_c" 1>&6
15390 cat > conftest.$ac_ext <<EOF
15391 #line 15392 "configure"
15392 #include "confdefs.h"
15395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15396 { (eval echo configure:15397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15398 if test -z "$ac_err"; then
15400 eval "ac_cv_header_$ac_safe=yes"
15403 echo "configure: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15406 eval "ac_cv_header_$ac_safe=no"
15410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15411 echo "$ac_t""yes" 1>&6
15412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15413 cat >> confdefs.h <<EOF
15414 #define $ac_tr_hdr 1
15418 echo "$ac_t""no" 1>&6
15422 if test $ac_cv_header_lwp_lwp_h = yes ; then
15423 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15424 echo "configure:15425: checking for lwp_create in -llwp" >&5
15425 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15426 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15427 echo $ac_n "(cached) $ac_c" 1>&6
15429 ac_save_LIBS="$LIBS"
15431 cat > conftest.$ac_ext <<EOF
15432 #line 15433 "configure"
15433 #include "confdefs.h"
15434 /* Override any gcc2 internal prototype to avoid an error. */
15435 /* We use char because int might match the return type of a gcc2
15436 builtin and then its argument prototype would still apply. */
15443 if { (eval echo configure:15444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15445 eval "ac_cv_lib_$ac_lib_var=yes"
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15450 eval "ac_cv_lib_$ac_lib_var=no"
15453 LIBS="$ac_save_LIBS"
15456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15460 echo "$ac_t""no" 1>&6
15465 if test $have_lwp = yes ; then
15466 cat >> confdefs.h <<\EOF
15470 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15471 ol_link_threads=lwp
15473 if test $ol_with_yielding_select = auto ; then
15474 ol_with_yielding_select=no
15480 if test $ol_with_yielding_select = yes ; then
15481 cat >> confdefs.h <<\EOF
15482 #define HAVE_YIELDING_SELECT 1
15487 if test $ol_with_threads = manual ; then
15488 ol_link_threads=yes
15490 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15492 for ac_hdr in pthread.h sched.h
15494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15496 echo "configure:15497: checking for $ac_hdr" >&5
15497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15498 echo $ac_n "(cached) $ac_c" 1>&6
15500 cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15506 { (eval echo configure:15507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15508 if test -z "$ac_err"; then
15510 eval "ac_cv_header_$ac_safe=yes"
15513 echo "configure: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15516 eval "ac_cv_header_$ac_safe=no"
15520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15521 echo "$ac_t""yes" 1>&6
15522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15523 cat >> confdefs.h <<EOF
15524 #define $ac_tr_hdr 1
15528 echo "$ac_t""no" 1>&6
15532 for ac_func in sched_yield pthread_yield
15534 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15535 echo "configure:15536: checking for $ac_func" >&5
15536 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15537 echo $ac_n "(cached) $ac_c" 1>&6
15539 cat > conftest.$ac_ext <<EOF
15540 #line 15541 "configure"
15541 #include "confdefs.h"
15542 /* System header to define __stub macros and hopefully few prototypes,
15543 which can conflict with char $ac_func(); below. */
15544 #include <assert.h>
15545 /* Override any gcc2 internal prototype to avoid an error. */
15546 /* We use char because int might match the return type of a gcc2
15547 builtin and then its argument prototype would still apply. */
15553 /* The GNU C library defines this for functions which it implements
15554 to always fail with ENOSYS. Some functions are actually named
15555 something starting with __ and the normal name is an alias. */
15556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15564 if { (eval echo configure:15565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15566 eval "ac_cv_func_$ac_func=yes"
15568 echo "configure: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15571 eval "ac_cv_func_$ac_func=no"
15576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15577 echo "$ac_t""yes" 1>&6
15578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15579 cat >> confdefs.h <<EOF
15580 #define $ac_tr_func 1
15584 echo "$ac_t""no" 1>&6
15589 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15590 echo "configure:15591: checking for LinuxThreads pthread.h" >&5
15591 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15592 echo $ac_n "(cached) $ac_c" 1>&6
15594 cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <pthread.h>
15599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15600 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15602 ol_cv_header_linux_threads=yes
15605 ol_cv_header_linux_threads=no
15612 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15613 if test $ol_cv_header_linux_threads = yes; then
15614 cat >> confdefs.h <<\EOF
15615 #define HAVE_LINUX_THREADS 1
15621 for ac_hdr in mach/cthreads.h
15623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15625 echo "configure:15626: checking for $ac_hdr" >&5
15626 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15627 echo $ac_n "(cached) $ac_c" 1>&6
15629 cat > conftest.$ac_ext <<EOF
15630 #line 15631 "configure"
15631 #include "confdefs.h"
15634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15635 { (eval echo configure:15636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15637 if test -z "$ac_err"; then
15639 eval "ac_cv_header_$ac_safe=yes"
15642 echo "configure: failed program was:" >&5
15643 cat conftest.$ac_ext >&5
15645 eval "ac_cv_header_$ac_safe=no"
15649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15650 echo "$ac_t""yes" 1>&6
15651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15652 cat >> confdefs.h <<EOF
15653 #define $ac_tr_hdr 1
15657 echo "$ac_t""no" 1>&6
15661 for ac_hdr in lwp/lwp.h
15663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15665 echo "configure:15666: checking for $ac_hdr" >&5
15666 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15667 echo $ac_n "(cached) $ac_c" 1>&6
15669 cat > conftest.$ac_ext <<EOF
15670 #line 15671 "configure"
15671 #include "confdefs.h"
15674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15675 { (eval echo configure:15676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15677 if test -z "$ac_err"; then
15679 eval "ac_cv_header_$ac_safe=yes"
15682 echo "configure: failed program was:" >&5
15683 cat conftest.$ac_ext >&5
15685 eval "ac_cv_header_$ac_safe=no"
15689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15690 echo "$ac_t""yes" 1>&6
15691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15692 cat >> confdefs.h <<EOF
15693 #define $ac_tr_hdr 1
15697 echo "$ac_t""no" 1>&6
15701 for ac_hdr in thread.h synch.h
15703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15705 echo "configure:15706: checking for $ac_hdr" >&5
15706 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15707 echo $ac_n "(cached) $ac_c" 1>&6
15709 cat > conftest.$ac_ext <<EOF
15710 #line 15711 "configure"
15711 #include "confdefs.h"
15714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15715 { (eval echo configure:15716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15717 if test -z "$ac_err"; then
15719 eval "ac_cv_header_$ac_safe=yes"
15722 echo "configure: failed program was:" >&5
15723 cat conftest.$ac_ext >&5
15725 eval "ac_cv_header_$ac_safe=no"
15729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15730 echo "$ac_t""yes" 1>&6
15731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15732 cat >> confdefs.h <<EOF
15733 #define $ac_tr_hdr 1
15737 echo "$ac_t""no" 1>&6
15743 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15744 cat >> confdefs.h <<\EOF
15745 #define REENTRANT 1
15748 cat >> confdefs.h <<\EOF
15749 #define _REENTRANT 1
15752 cat >> confdefs.h <<\EOF
15753 #define THREAD_SAFE 1
15756 cat >> confdefs.h <<\EOF
15757 #define _THREAD_SAFE 1
15760 cat >> confdefs.h <<\EOF
15761 #define THREADSAFE 1
15764 cat >> confdefs.h <<\EOF
15765 #define _THREADSAFE 1
15768 cat >> confdefs.h <<\EOF
15769 #define _SGI_MP_SOURCE 1
15773 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15774 echo "configure:15775: checking for thread specific errno" >&5
15775 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15776 echo $ac_n "(cached) $ac_c" 1>&6
15779 cat > conftest.$ac_ext <<EOF
15780 #line 15781 "configure"
15781 #include "confdefs.h"
15787 if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15789 ol_cv_errno_thread_specific=yes
15791 echo "configure: failed program was:" >&5
15792 cat conftest.$ac_ext >&5
15794 ol_cv_errno_thread_specific=no
15800 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15802 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15803 echo "configure:15804: checking for thread specific h_errno" >&5
15804 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15805 echo $ac_n "(cached) $ac_c" 1>&6
15808 cat > conftest.$ac_ext <<EOF
15809 #line 15810 "configure"
15810 #include "confdefs.h"
15816 if { (eval echo configure:15817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15818 ol_cv_h_errno_thread_specific=yes
15820 echo "configure: failed program was:" >&5
15821 cat conftest.$ac_ext >&5
15823 ol_cv_h_errno_thread_specific=no
15829 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15831 if test $ol_cv_errno_thread_specific != yes \
15832 -o $ol_cv_h_errno_thread_specific != yes ; then
15833 LIBS="$LTHREAD_LIBS $LIBS"
15839 if test $ol_link_threads = no ; then
15840 if test $ol_with_threads = yes ; then
15841 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15844 if test $ol_with_threads = auto ; then
15845 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15849 cat >> confdefs.h <<\EOF
15850 #define NO_THREADS 1
15856 if test $ol_link_threads != no ; then
15857 cat >> confdefs.h <<\EOF
15858 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15865 gethostbyname_r gethostbyaddr_r \
15868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15869 echo "configure:15870: checking for $ac_func" >&5
15870 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15871 echo $ac_n "(cached) $ac_c" 1>&6
15873 cat > conftest.$ac_ext <<EOF
15874 #line 15875 "configure"
15875 #include "confdefs.h"
15876 /* System header to define __stub macros and hopefully few prototypes,
15877 which can conflict with char $ac_func(); below. */
15878 #include <assert.h>
15879 /* Override any gcc2 internal prototype to avoid an error. */
15880 /* We use char because int might match the return type of a gcc2
15881 builtin and then its argument prototype would still apply. */
15887 /* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15898 if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15900 eval "ac_cv_func_$ac_func=yes"
15902 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15905 eval "ac_cv_func_$ac_func=no"
15910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15911 echo "$ac_t""yes" 1>&6
15912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15913 cat >> confdefs.h <<EOF
15914 #define $ac_tr_func 1
15918 echo "$ac_t""no" 1>&6
15923 if test "$ac_cv_func_ctime_r" = no ; then
15924 ol_cv_func_ctime_r_nargs=0
15926 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
15927 echo "configure:15928: checking number of arguments of ctime_r" >&5
15928 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
15929 echo $ac_n "(cached) $ac_c" 1>&6
15931 cat > conftest.$ac_ext <<EOF
15932 #line 15933 "configure"
15933 #include "confdefs.h"
15936 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
15939 if { (eval echo configure:15940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15941 ol_cv_func_ctime_r_nargs3=yes
15943 echo "configure: failed program was:" >&5
15944 cat conftest.$ac_ext >&5
15946 ol_cv_func_ctime_r_nargs3=no
15950 cat > conftest.$ac_ext <<EOF
15951 #line 15952 "configure"
15952 #include "confdefs.h"
15955 time_t ti; char *buffer; ctime_r(&ti,buffer);
15958 if { (eval echo configure:15959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15960 ol_cv_func_ctime_r_nargs2=yes
15962 echo "configure: failed program was:" >&5
15963 cat conftest.$ac_ext >&5
15965 ol_cv_func_ctime_r_nargs2=no
15969 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
15970 $ol_cv_func_ctime_r_nargs2 = no ; then
15972 ol_cv_func_ctime_r_nargs=3
15974 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
15975 $ol_cv_func_ctime_r_nargs2 = yes ; then
15977 ol_cv_func_ctime_r_nargs=2
15980 ol_cv_func_ctime_r_nargs=0
15985 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
15987 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
15988 cat >> confdefs.h <<EOF
15989 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
15996 if test "$ac_cv_func_gethostbyname_r" = yes ; then
15997 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
15998 echo "configure:15999: checking number of arguments of gethostbyname_r" >&5
15999 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16000 echo $ac_n "(cached) $ac_c" 1>&6
16002 cat > conftest.$ac_ext <<EOF
16003 #line 16004 "configure"
16004 #include "confdefs.h"
16005 #include <sys/types.h>
16006 #include <sys/socket.h>
16007 #include <netinet/in.h>
16009 #define BUFSIZE (sizeof(struct hostent)+10)
16011 struct hostent hent; char buffer[BUFSIZE];
16012 int bufsize=BUFSIZE;int h_errno;
16013 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16014 buffer, bufsize, &h_errno);
16017 if { (eval echo configure:16018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16019 ol_cv_func_gethostbyname_r_nargs5=yes
16021 echo "configure: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16024 ol_cv_func_gethostbyname_r_nargs5=no
16028 cat > conftest.$ac_ext <<EOF
16029 #line 16030 "configure"
16030 #include "confdefs.h"
16031 #include <sys/types.h>
16032 #include <sys/socket.h>
16033 #include <netinet/in.h>
16035 #define BUFSIZE (sizeof(struct hostent)+10)
16037 struct hostent hent;struct hostent *rhent;
16038 char buffer[BUFSIZE];
16039 int bufsize=BUFSIZE;int h_errno;
16040 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16044 if { (eval echo configure:16045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16046 ol_cv_func_gethostbyname_r_nargs6=yes
16048 echo "configure: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16051 ol_cv_func_gethostbyname_r_nargs6=no
16055 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16056 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16058 ol_cv_func_gethostbyname_r_nargs=5
16060 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16061 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16063 ol_cv_func_gethostbyname_r_nargs=6
16066 ol_cv_func_gethostbyname_r_nargs=0
16071 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16072 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16073 cat >> confdefs.h <<EOF
16074 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16080 ol_cv_func_gethostbyname_r_nargs=0
16083 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16084 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16085 echo "configure:16086: checking number of arguments of gethostbyaddr_r" >&5
16086 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16087 echo $ac_n "(cached) $ac_c" 1>&6
16089 cat > conftest.$ac_ext <<EOF
16090 #line 16091 "configure"
16091 #include "confdefs.h"
16092 #include <sys/types.h>
16093 #include <sys/socket.h>
16094 #include <netinet/in.h>
16096 #define BUFSIZE (sizeof(struct hostent)+10)
16098 struct hostent hent; char buffer[BUFSIZE];
16099 struct in_addr add;
16100 size_t alen=sizeof(struct in_addr);
16101 int bufsize=BUFSIZE;int h_errno;
16102 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16103 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16106 if { (eval echo configure:16107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16108 ol_cv_func_gethostbyaddr_r_nargs7=yes
16110 echo "configure: failed program was:" >&5
16111 cat conftest.$ac_ext >&5
16113 ol_cv_func_gethostbyaddr_r_nargs7=no
16117 cat > conftest.$ac_ext <<EOF
16118 #line 16119 "configure"
16119 #include "confdefs.h"
16120 #include <sys/types.h>
16121 #include <sys/socket.h>
16122 #include <netinet/in.h>
16124 #define BUFSIZE (sizeof(struct hostent)+10)
16126 struct hostent hent;
16127 struct hostent *rhent; char buffer[BUFSIZE];
16128 struct in_addr add;
16129 size_t alen=sizeof(struct in_addr);
16130 int bufsize=BUFSIZE;int h_errno;
16131 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16132 alen, AF_INET, &hent, buffer, bufsize,
16136 if { (eval echo configure:16137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16138 ol_cv_func_gethostbyaddr_r_nargs8=yes
16140 echo "configure: failed program was:" >&5
16141 cat conftest.$ac_ext >&5
16143 ol_cv_func_gethostbyaddr_r_nargs8=no
16147 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16148 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16150 ol_cv_func_gethostbyaddr_r_nargs=7
16152 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16153 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16155 ol_cv_func_gethostbyaddr_r_nargs=8
16158 ol_cv_func_gethostbyaddr_r_nargs=0
16163 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16164 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16165 cat >> confdefs.h <<EOF
16166 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16172 ol_cv_func_gethostbyaddr_r_nargs=0
16177 if test $ol_with_ldbm_api = auto \
16178 -o $ol_with_ldbm_api = berkeley \
16179 -o $ol_with_ldbm_api = bcompat ; then
16181 if test $ol_with_ldbm_api = bcompat; then \
16182 for ac_hdr in db_185.h db.h
16184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16186 echo "configure:16187: checking for $ac_hdr" >&5
16187 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16188 echo $ac_n "(cached) $ac_c" 1>&6
16190 cat > conftest.$ac_ext <<EOF
16191 #line 16192 "configure"
16192 #include "confdefs.h"
16195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16196 { (eval echo configure:16197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16198 if test -z "$ac_err"; then
16200 eval "ac_cv_header_$ac_safe=yes"
16203 echo "configure: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16206 eval "ac_cv_header_$ac_safe=no"
16210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16211 echo "$ac_t""yes" 1>&6
16212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16213 cat >> confdefs.h <<EOF
16214 #define $ac_tr_hdr 1
16218 echo "$ac_t""no" 1>&6
16222 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16223 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16224 echo "configure:16225: checking if Berkeley DB header compatibility" >&5
16225 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16226 echo $ac_n "(cached) $ac_c" 1>&6
16229 cat > conftest.$ac_ext <<EOF
16230 #line 16231 "configure"
16231 #include "confdefs.h"
16234 # include <db_185.h>
16239 /* this check could be improved */
16240 #ifndef DB_VERSION_MAJOR
16241 # define DB_VERSION_MAJOR 1
16244 #if DB_VERSION_MAJOR == 1
16249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16250 egrep "__db_version_1" >/dev/null 2>&1; then
16252 ol_cv_header_db1=yes
16255 ol_cv_header_db1=no
16261 echo "$ac_t""$ol_cv_header_db1" 1>&6
16263 if test $ol_cv_header_db1 = yes ; then
16265 if test $ol_cv_lib_db = no ; then
16266 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16267 echo "configure:16268: checking for Berkeley DB link (default)" >&5
16268 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16269 echo $ac_n "(cached) $ac_c" 1>&6
16274 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16276 cat > conftest.$ac_ext <<EOF
16277 #line 16278 "configure"
16278 #include "confdefs.h"
16280 #ifdef HAVE_DB_185_H
16281 # include <db_185.h>
16286 #ifndef DB_VERSION_MAJOR
16287 # define DB_VERSION_MAJOR 1
16291 #define NULL ((void*)0)
16296 #if DB_VERSION_MAJOR > 1
16299 int major, minor, patch;
16301 version = db_version( &major, &minor, &patch );
16303 if( major != DB_VERSION_MAJOR ||
16304 minor < DB_VERSION_MINOR )
16306 printf("Berkeley DB version mismatch\n"
16307 "\theader: %s\n\tlibrary: %s\n",
16308 DB_VERSION_STRING, version);
16314 #if DB_VERSION_MAJOR > 2
16315 db_env_create( NULL, 0 );
16316 #elif DB_VERSION_MAJOR > 1
16317 db_appexit( NULL );
16319 (void) dbopen( NULL, 0, 0, 0, NULL);
16324 if { (eval echo configure:16325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16328 echo "configure: failed program was:" >&5
16329 cat conftest.$ac_ext >&5
16339 echo "$ac_t""$ol_cv_db_none" 1>&6
16341 if test $ol_cv_db_none = yes ; then
16346 if test $ol_cv_lib_db = no ; then
16347 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
16348 echo "configure:16349: checking for Berkeley DB link (-ldb43)" >&5
16349 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
16350 echo $ac_n "(cached) $ac_c" 1>&6
16355 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16357 cat > conftest.$ac_ext <<EOF
16358 #line 16359 "configure"
16359 #include "confdefs.h"
16361 #ifdef HAVE_DB_185_H
16362 # include <db_185.h>
16367 #ifndef DB_VERSION_MAJOR
16368 # define DB_VERSION_MAJOR 1
16372 #define NULL ((void*)0)
16377 #if DB_VERSION_MAJOR > 1
16380 int major, minor, patch;
16382 version = db_version( &major, &minor, &patch );
16384 if( major != DB_VERSION_MAJOR ||
16385 minor < DB_VERSION_MINOR )
16387 printf("Berkeley DB version mismatch\n"
16388 "\theader: %s\n\tlibrary: %s\n",
16389 DB_VERSION_STRING, version);
16395 #if DB_VERSION_MAJOR > 2
16396 db_env_create( NULL, 0 );
16397 #elif DB_VERSION_MAJOR > 1
16398 db_appexit( NULL );
16400 (void) dbopen( NULL, 0, 0, 0, NULL);
16405 if { (eval echo configure:16406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16420 echo "$ac_t""$ol_cv_db_db43" 1>&6
16422 if test $ol_cv_db_db43 = yes ; then
16423 ol_cv_lib_db=-ldb43
16427 if test $ol_cv_lib_db = no ; then
16428 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
16429 echo "configure:16430: checking for Berkeley DB link (-ldb-43)" >&5
16430 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
16431 echo $ac_n "(cached) $ac_c" 1>&6
16436 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16438 cat > conftest.$ac_ext <<EOF
16439 #line 16440 "configure"
16440 #include "confdefs.h"
16442 #ifdef HAVE_DB_185_H
16443 # include <db_185.h>
16448 #ifndef DB_VERSION_MAJOR
16449 # define DB_VERSION_MAJOR 1
16453 #define NULL ((void*)0)
16458 #if DB_VERSION_MAJOR > 1
16461 int major, minor, patch;
16463 version = db_version( &major, &minor, &patch );
16465 if( major != DB_VERSION_MAJOR ||
16466 minor < DB_VERSION_MINOR )
16468 printf("Berkeley DB version mismatch\n"
16469 "\theader: %s\n\tlibrary: %s\n",
16470 DB_VERSION_STRING, version);
16476 #if DB_VERSION_MAJOR > 2
16477 db_env_create( NULL, 0 );
16478 #elif DB_VERSION_MAJOR > 1
16479 db_appexit( NULL );
16481 (void) dbopen( NULL, 0, 0, 0, NULL);
16486 if { (eval echo configure:16487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16490 echo "configure: failed program was:" >&5
16491 cat conftest.$ac_ext >&5
16501 echo "$ac_t""$ol_cv_db_db_43" 1>&6
16503 if test $ol_cv_db_db_43 = yes ; then
16504 ol_cv_lib_db=-ldb-43
16508 if test $ol_cv_lib_db = no ; then
16509 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
16510 echo "configure:16511: checking for Berkeley DB link (-ldb-4.3)" >&5
16511 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
16512 echo $ac_n "(cached) $ac_c" 1>&6
16517 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16519 cat > conftest.$ac_ext <<EOF
16520 #line 16521 "configure"
16521 #include "confdefs.h"
16523 #ifdef HAVE_DB_185_H
16524 # include <db_185.h>
16529 #ifndef DB_VERSION_MAJOR
16530 # define DB_VERSION_MAJOR 1
16534 #define NULL ((void*)0)
16539 #if DB_VERSION_MAJOR > 1
16542 int major, minor, patch;
16544 version = db_version( &major, &minor, &patch );
16546 if( major != DB_VERSION_MAJOR ||
16547 minor < DB_VERSION_MINOR )
16549 printf("Berkeley DB version mismatch\n"
16550 "\theader: %s\n\tlibrary: %s\n",
16551 DB_VERSION_STRING, version);
16557 #if DB_VERSION_MAJOR > 2
16558 db_env_create( NULL, 0 );
16559 #elif DB_VERSION_MAJOR > 1
16560 db_appexit( NULL );
16562 (void) dbopen( NULL, 0, 0, 0, NULL);
16567 if { (eval echo configure:16568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16569 ol_cv_db_db_4_dot_3=yes
16571 echo "configure: failed program was:" >&5
16572 cat conftest.$ac_ext >&5
16574 ol_cv_db_db_4_dot_3=no
16582 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
16584 if test $ol_cv_db_db_4_dot_3 = yes ; then
16585 ol_cv_lib_db=-ldb-4.3
16589 if test $ol_cv_lib_db = no ; then
16590 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
16591 echo "configure:16592: checking for Berkeley DB link (-ldb-4-3)" >&5
16592 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
16598 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16600 cat > conftest.$ac_ext <<EOF
16601 #line 16602 "configure"
16602 #include "confdefs.h"
16604 #ifdef HAVE_DB_185_H
16605 # include <db_185.h>
16610 #ifndef DB_VERSION_MAJOR
16611 # define DB_VERSION_MAJOR 1
16615 #define NULL ((void*)0)
16620 #if DB_VERSION_MAJOR > 1
16623 int major, minor, patch;
16625 version = db_version( &major, &minor, &patch );
16627 if( major != DB_VERSION_MAJOR ||
16628 minor < DB_VERSION_MINOR )
16630 printf("Berkeley DB version mismatch\n"
16631 "\theader: %s\n\tlibrary: %s\n",
16632 DB_VERSION_STRING, version);
16638 #if DB_VERSION_MAJOR > 2
16639 db_env_create( NULL, 0 );
16640 #elif DB_VERSION_MAJOR > 1
16641 db_appexit( NULL );
16643 (void) dbopen( NULL, 0, 0, 0, NULL);
16648 if { (eval echo configure:16649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16650 ol_cv_db_db_4_3=yes
16652 echo "configure: failed program was:" >&5
16653 cat conftest.$ac_ext >&5
16663 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
16665 if test $ol_cv_db_db_4_3 = yes ; then
16666 ol_cv_lib_db=-ldb-4-3
16670 if test $ol_cv_lib_db = no ; then
16671 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16672 echo "configure:16673: checking for Berkeley DB link (-ldb42)" >&5
16673 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16674 echo $ac_n "(cached) $ac_c" 1>&6
16679 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16681 cat > conftest.$ac_ext <<EOF
16682 #line 16683 "configure"
16683 #include "confdefs.h"
16685 #ifdef HAVE_DB_185_H
16686 # include <db_185.h>
16691 #ifndef DB_VERSION_MAJOR
16692 # define DB_VERSION_MAJOR 1
16696 #define NULL ((void*)0)
16701 #if DB_VERSION_MAJOR > 1
16704 int major, minor, patch;
16706 version = db_version( &major, &minor, &patch );
16708 if( major != DB_VERSION_MAJOR ||
16709 minor < DB_VERSION_MINOR )
16711 printf("Berkeley DB version mismatch\n"
16712 "\theader: %s\n\tlibrary: %s\n",
16713 DB_VERSION_STRING, version);
16719 #if DB_VERSION_MAJOR > 2
16720 db_env_create( NULL, 0 );
16721 #elif DB_VERSION_MAJOR > 1
16722 db_appexit( NULL );
16724 (void) dbopen( NULL, 0, 0, 0, NULL);
16729 if { (eval echo configure:16730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16733 echo "configure: failed program was:" >&5
16734 cat conftest.$ac_ext >&5
16744 echo "$ac_t""$ol_cv_db_db42" 1>&6
16746 if test $ol_cv_db_db42 = yes ; then
16747 ol_cv_lib_db=-ldb42
16751 if test $ol_cv_lib_db = no ; then
16752 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16753 echo "configure:16754: checking for Berkeley DB link (-ldb-42)" >&5
16754 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16755 echo $ac_n "(cached) $ac_c" 1>&6
16760 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16762 cat > conftest.$ac_ext <<EOF
16763 #line 16764 "configure"
16764 #include "confdefs.h"
16766 #ifdef HAVE_DB_185_H
16767 # include <db_185.h>
16772 #ifndef DB_VERSION_MAJOR
16773 # define DB_VERSION_MAJOR 1
16777 #define NULL ((void*)0)
16782 #if DB_VERSION_MAJOR > 1
16785 int major, minor, patch;
16787 version = db_version( &major, &minor, &patch );
16789 if( major != DB_VERSION_MAJOR ||
16790 minor < DB_VERSION_MINOR )
16792 printf("Berkeley DB version mismatch\n"
16793 "\theader: %s\n\tlibrary: %s\n",
16794 DB_VERSION_STRING, version);
16800 #if DB_VERSION_MAJOR > 2
16801 db_env_create( NULL, 0 );
16802 #elif DB_VERSION_MAJOR > 1
16803 db_appexit( NULL );
16805 (void) dbopen( NULL, 0, 0, 0, NULL);
16810 if { (eval echo configure:16811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16814 echo "configure: failed program was:" >&5
16815 cat conftest.$ac_ext >&5
16825 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16827 if test $ol_cv_db_db_42 = yes ; then
16828 ol_cv_lib_db=-ldb-42
16832 if test $ol_cv_lib_db = no ; then
16833 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16834 echo "configure:16835: checking for Berkeley DB link (-ldb-4.2)" >&5
16835 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16836 echo $ac_n "(cached) $ac_c" 1>&6
16841 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16843 cat > conftest.$ac_ext <<EOF
16844 #line 16845 "configure"
16845 #include "confdefs.h"
16847 #ifdef HAVE_DB_185_H
16848 # include <db_185.h>
16853 #ifndef DB_VERSION_MAJOR
16854 # define DB_VERSION_MAJOR 1
16858 #define NULL ((void*)0)
16863 #if DB_VERSION_MAJOR > 1
16866 int major, minor, patch;
16868 version = db_version( &major, &minor, &patch );
16870 if( major != DB_VERSION_MAJOR ||
16871 minor < DB_VERSION_MINOR )
16873 printf("Berkeley DB version mismatch\n"
16874 "\theader: %s\n\tlibrary: %s\n",
16875 DB_VERSION_STRING, version);
16881 #if DB_VERSION_MAJOR > 2
16882 db_env_create( NULL, 0 );
16883 #elif DB_VERSION_MAJOR > 1
16884 db_appexit( NULL );
16886 (void) dbopen( NULL, 0, 0, 0, NULL);
16891 if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16893 ol_cv_db_db_4_dot_2=yes
16895 echo "configure: failed program was:" >&5
16896 cat conftest.$ac_ext >&5
16898 ol_cv_db_db_4_dot_2=no
16906 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16908 if test $ol_cv_db_db_4_dot_2 = yes ; then
16909 ol_cv_lib_db=-ldb-4.2
16913 if test $ol_cv_lib_db = no ; then
16914 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16915 echo "configure:16916: checking for Berkeley DB link (-ldb-4-2)" >&5
16916 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16917 echo $ac_n "(cached) $ac_c" 1>&6
16922 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16928 #ifdef HAVE_DB_185_H
16929 # include <db_185.h>
16934 #ifndef DB_VERSION_MAJOR
16935 # define DB_VERSION_MAJOR 1
16939 #define NULL ((void*)0)
16944 #if DB_VERSION_MAJOR > 1
16947 int major, minor, patch;
16949 version = db_version( &major, &minor, &patch );
16951 if( major != DB_VERSION_MAJOR ||
16952 minor < DB_VERSION_MINOR )
16954 printf("Berkeley DB version mismatch\n"
16955 "\theader: %s\n\tlibrary: %s\n",
16956 DB_VERSION_STRING, version);
16962 #if DB_VERSION_MAJOR > 2
16963 db_env_create( NULL, 0 );
16964 #elif DB_VERSION_MAJOR > 1
16965 db_appexit( NULL );
16967 (void) dbopen( NULL, 0, 0, 0, NULL);
16972 if { (eval echo configure:16973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16974 ol_cv_db_db_4_2=yes
16976 echo "configure: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16987 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16989 if test $ol_cv_db_db_4_2 = yes ; then
16990 ol_cv_lib_db=-ldb-4-2
16994 if test $ol_cv_lib_db = no ; then
16995 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16996 echo "configure:16997: checking for Berkeley DB link (-ldb-4)" >&5
16997 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16998 echo $ac_n "(cached) $ac_c" 1>&6
17003 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17005 cat > conftest.$ac_ext <<EOF
17006 #line 17007 "configure"
17007 #include "confdefs.h"
17009 #ifdef HAVE_DB_185_H
17010 # include <db_185.h>
17015 #ifndef DB_VERSION_MAJOR
17016 # define DB_VERSION_MAJOR 1
17020 #define NULL ((void*)0)
17025 #if DB_VERSION_MAJOR > 1
17028 int major, minor, patch;
17030 version = db_version( &major, &minor, &patch );
17032 if( major != DB_VERSION_MAJOR ||
17033 minor < DB_VERSION_MINOR )
17035 printf("Berkeley DB version mismatch\n"
17036 "\theader: %s\n\tlibrary: %s\n",
17037 DB_VERSION_STRING, version);
17043 #if DB_VERSION_MAJOR > 2
17044 db_env_create( NULL, 0 );
17045 #elif DB_VERSION_MAJOR > 1
17046 db_appexit( NULL );
17048 (void) dbopen( NULL, 0, 0, 0, NULL);
17053 if { (eval echo configure:17054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17057 echo "configure: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17068 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17070 if test $ol_cv_db_db_4 = yes ; then
17071 ol_cv_lib_db=-ldb-4
17075 if test $ol_cv_lib_db = no ; then
17076 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17077 echo "configure:17078: checking for Berkeley DB link (-ldb4)" >&5
17078 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17079 echo $ac_n "(cached) $ac_c" 1>&6
17084 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17088 "configure"
17088 #include "confdefs.h"
17090 #ifdef HAVE_DB_185_H
17091 # include <db_185.h>
17096 #ifndef DB_VERSION_MAJOR
17097 # define DB_VERSION_MAJOR 1
17101 #define NULL ((void*)0)
17106 #if DB_VERSION_MAJOR > 1
17109 int major, minor, patch;
17111 version = db_version( &major, &minor, &patch );
17113 if( major != DB_VERSION_MAJOR ||
17114 minor < DB_VERSION_MINOR )
17116 printf("Berkeley DB version mismatch\n"
17117 "\theader: %s\n\tlibrary: %s\n",
17118 DB_VERSION_STRING, version);
17124 #if DB_VERSION_MAJOR > 2
17125 db_env_create( NULL, 0 );
17126 #elif DB_VERSION_MAJOR > 1
17127 db_appexit( NULL );
17129 (void) dbopen( NULL, 0, 0, 0, NULL);
17134 if { (eval echo configure:17135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17138 echo "configure: failed program was:" >&5
17139 cat conftest.$ac_ext >&5
17149 echo "$ac_t""$ol_cv_db_db4" 1>&6
17151 if test $ol_cv_db_db4 = yes ; then
17156 if test $ol_cv_lib_db = no ; then
17157 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17158 echo "configure:17159: checking for Berkeley DB link (-ldb)" >&5
17159 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17160 echo $ac_n "(cached) $ac_c" 1>&6
17165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17167 cat > conftest.$ac_ext <<EOF
17168 #line 17169 "configure"
17169 #include "confdefs.h"
17171 #ifdef HAVE_DB_185_H
17172 # include <db_185.h>
17177 #ifndef DB_VERSION_MAJOR
17178 # define DB_VERSION_MAJOR 1
17182 #define NULL ((void*)0)
17187 #if DB_VERSION_MAJOR > 1
17190 int major, minor, patch;
17192 version = db_version( &major, &minor, &patch );
17194 if( major != DB_VERSION_MAJOR ||
17195 minor < DB_VERSION_MINOR )
17197 printf("Berkeley DB version mismatch\n"
17198 "\theader: %s\n\tlibrary: %s\n",
17199 DB_VERSION_STRING, version);
17205 #if DB_VERSION_MAJOR > 2
17206 db_env_create( NULL, 0 );
17207 #elif DB_VERSION_MAJOR > 1
17208 db_appexit( NULL );
17210 (void) dbopen( NULL, 0, 0, 0, NULL);
17215 if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17219 echo "configure: failed program was:" >&5
17220 cat conftest.$ac_ext >&5
17230 echo "$ac_t""$ol_cv_db_db" 1>&6
17232 if test $ol_cv_db_db = yes ; then
17237 if test $ol_cv_lib_db = no ; then
17238 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17239 echo "configure:17240: checking for Berkeley DB link (-ldb41)" >&5
17240 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17241 echo $ac_n "(cached) $ac_c" 1>&6
17246 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17252 #ifdef HAVE_DB_185_H
17253 # include <db_185.h>
17258 #ifndef DB_VERSION_MAJOR
17259 # define DB_VERSION_MAJOR 1
17263 #define NULL ((void*)0)
17268 #if DB_VERSION_MAJOR > 1
17271 int major, minor, patch;
17273 version = db_version( &major, &minor, &patch );
17275 if( major != DB_VERSION_MAJOR ||
17276 minor < DB_VERSION_MINOR )
17278 printf("Berkeley DB version mismatch\n"
17279 "\theader: %s\n\tlibrary: %s\n",
17280 DB_VERSION_STRING, version);
17286 #if DB_VERSION_MAJOR > 2
17287 db_env_create( NULL, 0 );
17288 #elif DB_VERSION_MAJOR > 1
17289 db_appexit( NULL );
17291 (void) dbopen( NULL, 0, 0, 0, NULL);
17296 if { (eval echo configure:17297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17300 echo "configure: failed program was:" >&5
17301 cat conftest.$ac_ext >&5
17311 echo "$ac_t""$ol_cv_db_db41" 1>&6
17313 if test $ol_cv_db_db41 = yes ; then
17314 ol_cv_lib_db=-ldb41
17318 if test $ol_cv_lib_db = no ; then
17319 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17320 echo "configure:17321: checking for Berkeley DB link (-ldb-41)" >&5
17321 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17322 echo $ac_n "(cached) $ac_c" 1>&6
17327 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17329 cat > conftest.$ac_ext <<EOF
17330 #line 17331 "configure"
17331 #include "confdefs.h"
17333 #ifdef HAVE_DB_185_H
17334 # include <db_185.h>
17339 #ifndef DB_VERSION_MAJOR
17340 # define DB_VERSION_MAJOR 1
17344 #define NULL ((void*)0)
17349 #if DB_VERSION_MAJOR > 1
17352 int major, minor, patch;
17354 version = db_version( &major, &minor, &patch );
17356 if( major != DB_VERSION_MAJOR ||
17357 minor < DB_VERSION_MINOR )
17359 printf("Berkeley DB version mismatch\n"
17360 "\theader: %s\n\tlibrary: %s\n",
17361 DB_VERSION_STRING, version);
17367 #if DB_VERSION_MAJOR > 2
17368 db_env_create( NULL, 0 );
17369 #elif DB_VERSION_MAJOR > 1
17370 db_appexit( NULL );
17372 (void) dbopen( NULL, 0, 0, 0, NULL);
17377 if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17392 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17394 if test $ol_cv_db_db_41 = yes ; then
17395 ol_cv_lib_db=-ldb-41
17399 if test $ol_cv_lib_db = no ; then
17400 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17401 echo "configure:17402: checking for Berkeley DB link (-ldb-4.1)" >&5
17402 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17403 echo $ac_n "(cached) $ac_c" 1>&6
17408 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17410 cat > conftest.$ac_ext <<EOF
17411 #line 17412 "configure"
17412 #include "confdefs.h"
17414 #ifdef HAVE_DB_185_H
17415 # include <db_185.h>
17420 #ifndef DB_VERSION_MAJOR
17421 # define DB_VERSION_MAJOR 1
17425 #define NULL ((void*)0)
17430 #if DB_VERSION_MAJOR > 1
17433 int major, minor, patch;
17435 version = db_version( &major, &minor, &patch );
17437 if( major != DB_VERSION_MAJOR ||
17438 minor < DB_VERSION_MINOR )
17440 printf("Berkeley DB version mismatch\n"
17441 "\theader: %s\n\tlibrary: %s\n",
17442 DB_VERSION_STRING, version);
17448 #if DB_VERSION_MAJOR > 2
17449 db_env_create( NULL, 0 );
17450 #elif DB_VERSION_MAJOR > 1
17451 db_appexit( NULL );
17453 (void) dbopen( NULL, 0, 0, 0, NULL);
17458 if { (eval echo configure:17459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17460 ol_cv_db_db_4_dot_1=yes
17462 echo "configure: failed program was:" >&5
17463 cat conftest.$ac_ext >&5
17465 ol_cv_db_db_4_dot_1=no
17473 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17475 if test $ol_cv_db_db_4_dot_1 = yes ; then
17476 ol_cv_lib_db=-ldb-4.1
17480 if test $ol_cv_lib_db = no ; then
17481 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17482 echo "configure:17483: checking for Berkeley DB link (-ldb-4-1)" >&5
17483 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17484 echo $ac_n "(cached) $ac_c" 1>&6
17489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17491 cat > conftest.$ac_ext <<EOF
17492 #line 17493 "configure"
17493 #include "confdefs.h"
17495 #ifdef HAVE_DB_185_H
17496 # include <db_185.h>
17501 #ifndef DB_VERSION_MAJOR
17502 # define DB_VERSION_MAJOR 1
17506 #define NULL ((void*)0)
17511 #if DB_VERSION_MAJOR > 1
17514 int major, minor, patch;
17516 version = db_version( &major, &minor, &patch );
17518 if( major != DB_VERSION_MAJOR ||
17519 minor < DB_VERSION_MINOR )
17521 printf("Berkeley DB version mismatch\n"
17522 "\theader: %s\n\tlibrary: %s\n",
17523 DB_VERSION_STRING, version);
17529 #if DB_VERSION_MAJOR > 2
17530 db_env_create( NULL, 0 );
17531 #elif DB_VERSION_MAJOR > 1
17532 db_appexit( NULL );
17534 (void) dbopen( NULL, 0, 0, 0, NULL);
17539 if { (eval echo configure:17540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17541 ol_cv_db_db_4_1=yes
17543 echo "configure: failed program was:" >&5
17544 cat conftest.$ac_ext >&5
17554 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17556 if test $ol_cv_db_db_4_1 = yes ; then
17557 ol_cv_lib_db=-ldb-4-1
17561 if test $ol_cv_lib_db = no ; then
17562 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17563 echo "configure:17564: checking for Berkeley DB link (-ldb3)" >&5
17564 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17565 echo $ac_n "(cached) $ac_c" 1>&6
17570 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17572 cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17576 #ifdef HAVE_DB_185_H
17577 # include <db_185.h>
17582 #ifndef DB_VERSION_MAJOR
17583 # define DB_VERSION_MAJOR 1
17587 #define NULL ((void*)0)
17592 #if DB_VERSION_MAJOR > 1
17595 int major, minor, patch;
17597 version = db_version( &major, &minor, &patch );
17599 if( major != DB_VERSION_MAJOR ||
17600 minor < DB_VERSION_MINOR )
17602 printf("Berkeley DB version mismatch\n"
17603 "\theader: %s\n\tlibrary: %s\n",
17604 DB_VERSION_STRING, version);
17610 #if DB_VERSION_MAJOR > 2
17611 db_env_create( NULL, 0 );
17612 #elif DB_VERSION_MAJOR > 1
17613 db_appexit( NULL );
17615 (void) dbopen( NULL, 0, 0, 0, NULL);
17620 if { (eval echo configure:17621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17624 echo "configure: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17635 echo "$ac_t""$ol_cv_db_db3" 1>&6
17637 if test $ol_cv_db_db3 = yes ; then
17642 if test $ol_cv_lib_db = no ; then
17643 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17644 echo "configure:17645: checking for Berkeley DB link (-ldb-3)" >&5
17645 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17646 echo $ac_n "(cached) $ac_c" 1>&6
17651 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17653 cat > conftest.$ac_ext <<EOF
17654 #line 17655 "configure"
17655 #include "confdefs.h"
17657 #ifdef HAVE_DB_185_H
17658 # include <db_185.h>
17663 #ifndef DB_VERSION_MAJOR
17664 # define DB_VERSION_MAJOR 1
17668 #define NULL ((void*)0)
17673 #if DB_VERSION_MAJOR > 1
17676 int major, minor, patch;
17678 version = db_version( &major, &minor, &patch );
17680 if( major != DB_VERSION_MAJOR ||
17681 minor < DB_VERSION_MINOR )
17683 printf("Berkeley DB version mismatch\n"
17684 "\theader: %s\n\tlibrary: %s\n",
17685 DB_VERSION_STRING, version);
17691 #if DB_VERSION_MAJOR > 2
17692 db_env_create( NULL, 0 );
17693 #elif DB_VERSION_MAJOR > 1
17694 db_appexit( NULL );
17696 (void) dbopen( NULL, 0, 0, 0, NULL);
17701 if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17716 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17718 if test $ol_cv_db_db_3 = yes ; then
17719 ol_cv_lib_db=-ldb-3
17723 if test $ol_cv_lib_db = no ; then
17724 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17725 echo "configure:17726: checking for Berkeley DB link (-ldb2)" >&5
17726 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17727 echo $ac_n "(cached) $ac_c" 1>&6
17732 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17734 cat > conftest.$ac_ext <<EOF
17735 #line 17736 "configure"
17736 #include "confdefs.h"
17738 #ifdef HAVE_DB_185_H
17739 # include <db_185.h>
17744 #ifndef DB_VERSION_MAJOR
17745 # define DB_VERSION_MAJOR 1
17749 #define NULL ((void*)0)
17754 #if DB_VERSION_MAJOR > 1
17757 int major, minor, patch;
17759 version = db_version( &major, &minor, &patch );
17761 if( major != DB_VERSION_MAJOR ||
17762 minor < DB_VERSION_MINOR )
17764 printf("Berkeley DB version mismatch\n"
17765 "\theader: %s\n\tlibrary: %s\n",
17766 DB_VERSION_STRING, version);
17772 #if DB_VERSION_MAJOR > 2
17773 db_env_create( NULL, 0 );
17774 #elif DB_VERSION_MAJOR > 1
17775 db_appexit( NULL );
17777 (void) dbopen( NULL, 0, 0, 0, NULL);
17782 if { (eval echo configure:17783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17786 echo "configure: failed program was:" >&5
17787 cat conftest.$ac_ext >&5
17797 echo "$ac_t""$ol_cv_db_db2" 1>&6
17799 if test $ol_cv_db_db2 = yes ; then
17804 if test $ol_cv_lib_db = no ; then
17805 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17806 echo "configure:17807: checking for Berkeley DB link (-ldb-2)" >&5
17807 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17808 echo $ac_n "(cached) $ac_c" 1>&6
17813 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17815 cat > conftest.$ac_ext <<EOF
17816 #line 17817 "configure"
17817 #include "confdefs.h"
17819 #ifdef HAVE_DB_185_H
17820 # include <db_185.h>
17825 #ifndef DB_VERSION_MAJOR
17826 # define DB_VERSION_MAJOR 1
17830 #define NULL ((void*)0)
17835 #if DB_VERSION_MAJOR > 1
17838 int major, minor, patch;
17840 version = db_version( &major, &minor, &patch );
17842 if( major != DB_VERSION_MAJOR ||
17843 minor < DB_VERSION_MINOR )
17845 printf("Berkeley DB version mismatch\n"
17846 "\theader: %s\n\tlibrary: %s\n",
17847 DB_VERSION_STRING, version);
17853 #if DB_VERSION_MAJOR > 2
17854 db_env_create( NULL, 0 );
17855 #elif DB_VERSION_MAJOR > 1
17856 db_appexit( NULL );
17858 (void) dbopen( NULL, 0, 0, 0, NULL);
17863 if { (eval echo configure:17864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17867 echo "configure: failed program was:" >&5
17868 cat conftest.$ac_ext >&5
17878 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17880 if test $ol_cv_db_db_2 = yes ; then
17881 ol_cv_lib_db=-ldb-2
17885 if test $ol_cv_lib_db = no ; then
17886 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17887 echo "configure:17888: checking for Berkeley DB link (-ldb1)" >&5
17888 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17889 echo $ac_n "(cached) $ac_c" 1>&6
17894 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17896 cat > conftest.$ac_ext <<EOF
17897 #line 17898 "configure"
17898 #include "confdefs.h"
17900 #ifdef HAVE_DB_185_H
17901 # include <db_185.h>
17906 #ifndef DB_VERSION_MAJOR
17907 # define DB_VERSION_MAJOR 1
17911 #define NULL ((void*)0)
17916 #if DB_VERSION_MAJOR > 1
17919 int major, minor, patch;
17921 version = db_version( &major, &minor, &patch );
17923 if( major != DB_VERSION_MAJOR ||
17924 minor < DB_VERSION_MINOR )
17926 printf("Berkeley DB version mismatch\n"
17927 "\theader: %s\n\tlibrary: %s\n",
17928 DB_VERSION_STRING, version);
17934 #if DB_VERSION_MAJOR > 2
17935 db_env_create( NULL, 0 );
17936 #elif DB_VERSION_MAJOR > 1
17937 db_appexit( NULL );
17939 (void) dbopen( NULL, 0, 0, 0, NULL);
17944 if { (eval echo configure:17945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17948 echo "configure: failed program was:" >&5
17949 cat conftest.$ac_ext >&5
17959 echo "$ac_t""$ol_cv_db_db1" 1>&6
17961 if test $ol_cv_db_db1 = yes ; then
17966 if test $ol_cv_lib_db = no ; then
17967 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17968 echo "configure:17969: checking for Berkeley DB link (-ldb-1)" >&5
17969 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17970 echo $ac_n "(cached) $ac_c" 1>&6
17975 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17977 cat > conftest.$ac_ext <<EOF
17978 #line 17979 "configure"
17979 #include "confdefs.h"
17981 #ifdef HAVE_DB_185_H
17982 # include <db_185.h>
17987 #ifndef DB_VERSION_MAJOR
17988 # define DB_VERSION_MAJOR 1
17992 #define NULL ((void*)0)
17997 #if DB_VERSION_MAJOR > 1
18000 int major, minor, patch;
18002 version = db_version( &major, &minor, &patch );
18004 if( major != DB_VERSION_MAJOR ||
18005 minor < DB_VERSION_MINOR )
18007 printf("Berkeley DB version mismatch\n"
18008 "\theader: %s\n\tlibrary: %s\n",
18009 DB_VERSION_STRING, version);
18015 #if DB_VERSION_MAJOR > 2
18016 db_env_create( NULL, 0 );
18017 #elif DB_VERSION_MAJOR > 1
18018 db_appexit( NULL );
18020 (void) dbopen( NULL, 0, 0, 0, NULL);
18025 if { (eval echo configure:18026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18029 echo "configure: failed program was:" >&5
18030 cat conftest.$ac_ext >&5
18040 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18042 if test $ol_cv_db_db_1 = yes ; then
18043 ol_cv_lib_db=-ldb-1
18048 if test "$ol_cv_lib_db" != no ; then
18049 ol_cv_berkeley_db=yes
18055 ol_cv_berkeley_db=no
18058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18060 echo "configure:18061: checking for $ac_hdr" >&5
18061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18062 echo $ac_n "(cached) $ac_c" 1>&6
18064 cat > conftest.$ac_ext <<EOF
18065 #line 18066 "configure"
18066 #include "confdefs.h"
18069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18070 { (eval echo configure:18071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18072 if test -z "$ac_err"; then
18074 eval "ac_cv_header_$ac_safe=yes"
18077 echo "configure: failed program was:" >&5
18078 cat conftest.$ac_ext >&5
18080 eval "ac_cv_header_$ac_safe=no"
18084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18085 echo "$ac_t""yes" 1>&6
18086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18087 cat >> confdefs.h <<EOF
18088 #define $ac_tr_hdr 1
18092 echo "$ac_t""no" 1>&6
18096 if test $ac_cv_header_db_h = yes; then
18098 if test $ol_cv_lib_db = no ; then
18099 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18100 echo "configure:18101: checking for Berkeley DB link (default)" >&5
18101 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18102 echo $ac_n "(cached) $ac_c" 1>&6
18107 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18109 cat > conftest.$ac_ext <<EOF
18110 #line 18111 "configure"
18111 #include "confdefs.h"
18113 #ifdef HAVE_DB_185_H
18114 # include <db_185.h>
18119 #ifndef DB_VERSION_MAJOR
18120 # define DB_VERSION_MAJOR 1
18124 #define NULL ((void*)0)
18129 #if DB_VERSION_MAJOR > 1
18132 int major, minor, patch;
18134 version = db_version( &major, &minor, &patch );
18136 if( major != DB_VERSION_MAJOR ||
18137 minor < DB_VERSION_MINOR )
18139 printf("Berkeley DB version mismatch\n"
18140 "\theader: %s\n\tlibrary: %s\n",
18141 DB_VERSION_STRING, version);
18147 #if DB_VERSION_MAJOR > 2
18148 db_env_create( NULL, 0 );
18149 #elif DB_VERSION_MAJOR > 1
18150 db_appexit( NULL );
18152 (void) dbopen( NULL, 0, 0, 0, NULL);
18157 if { (eval echo configure:18158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18161 echo "configure: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18172 echo "$ac_t""$ol_cv_db_none" 1>&6
18174 if test $ol_cv_db_none = yes ; then
18179 if test $ol_cv_lib_db = no ; then
18180 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18181 echo "configure:18182: checking for Berkeley DB link (-ldb43)" >&5
18182 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18183 echo $ac_n "(cached) $ac_c" 1>&6
18188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18190 cat > conftest.$ac_ext <<EOF
18191 #line 18192 "configure"
18192 #include "confdefs.h"
18194 #ifdef HAVE_DB_185_H
18195 # include <db_185.h>
18200 #ifndef DB_VERSION_MAJOR
18201 # define DB_VERSION_MAJOR 1
18205 #define NULL ((void*)0)
18210 #if DB_VERSION_MAJOR > 1
18213 int major, minor, patch;
18215 version = db_version( &major, &minor, &patch );
18217 if( major != DB_VERSION_MAJOR ||
18218 minor < DB_VERSION_MINOR )
18220 printf("Berkeley DB version mismatch\n"
18221 "\theader: %s\n\tlibrary: %s\n",
18222 DB_VERSION_STRING, version);
18228 #if DB_VERSION_MAJOR > 2
18229 db_env_create( NULL, 0 );
18230 #elif DB_VERSION_MAJOR > 1
18231 db_appexit( NULL );
18233 (void) dbopen( NULL, 0, 0, 0, NULL);
18238 if { (eval echo configure:18239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18242 echo "configure: failed program was:" >&5
18243 cat conftest.$ac_ext >&5
18253 echo "$ac_t""$ol_cv_db_db43" 1>&6
18255 if test $ol_cv_db_db43 = yes ; then
18256 ol_cv_lib_db=-ldb43
18260 if test $ol_cv_lib_db = no ; then
18261 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
18262 echo "configure:18263: checking for Berkeley DB link (-ldb-43)" >&5
18263 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
18264 echo $ac_n "(cached) $ac_c" 1>&6
18269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18271 cat > conftest.$ac_ext <<EOF
18272 #line 18273 "configure"
18273 #include "confdefs.h"
18275 #ifdef HAVE_DB_185_H
18276 # include <db_185.h>
18281 #ifndef DB_VERSION_MAJOR
18282 # define DB_VERSION_MAJOR 1
18286 #define NULL ((void*)0)
18291 #if DB_VERSION_MAJOR > 1
18294 int major, minor, patch;
18296 version = db_version( &major, &minor, &patch );
18298 if( major != DB_VERSION_MAJOR ||
18299 minor < DB_VERSION_MINOR )
18301 printf("Berkeley DB version mismatch\n"
18302 "\theader: %s\n\tlibrary: %s\n",
18303 DB_VERSION_STRING, version);
18309 #if DB_VERSION_MAJOR > 2
18310 db_env_create( NULL, 0 );
18311 #elif DB_VERSION_MAJOR > 1
18312 db_appexit( NULL );
18314 (void) dbopen( NULL, 0, 0, 0, NULL);
18319 if { (eval echo configure:18320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18323 echo "configure: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18334 echo "$ac_t""$ol_cv_db_db_43" 1>&6
18336 if test $ol_cv_db_db_43 = yes ; then
18337 ol_cv_lib_db=-ldb-43
18341 if test $ol_cv_lib_db = no ; then
18342 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
18343 echo "configure:18344: checking for Berkeley DB link (-ldb-4.3)" >&5
18344 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
18345 echo $ac_n "(cached) $ac_c" 1>&6
18350 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18356 #ifdef HAVE_DB_185_H
18357 # include <db_185.h>
18362 #ifndef DB_VERSION_MAJOR
18363 # define DB_VERSION_MAJOR 1
18367 #define NULL ((void*)0)
18372 #if DB_VERSION_MAJOR > 1
18375 int major, minor, patch;
18377 version = db_version( &major, &minor, &patch );
18379 if( major != DB_VERSION_MAJOR ||
18380 minor < DB_VERSION_MINOR )
18382 printf("Berkeley DB version mismatch\n"
18383 "\theader: %s\n\tlibrary: %s\n",
18384 DB_VERSION_STRING, version);
18390 #if DB_VERSION_MAJOR > 2
18391 db_env_create( NULL, 0 );
18392 #elif DB_VERSION_MAJOR > 1
18393 db_appexit( NULL );
18395 (void) dbopen( NULL, 0, 0, 0, NULL);
18400 if { (eval echo configure:18401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18402 ol_cv_db_db_4_dot_3=yes
18404 echo "configure: failed program was:" >&5
18405 cat conftest.$ac_ext >&5
18407 ol_cv_db_db_4_dot_3=no
18415 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
18417 if test $ol_cv_db_db_4_dot_3 = yes ; then
18418 ol_cv_lib_db=-ldb-4.3
18422 if test $ol_cv_lib_db = no ; then
18423 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
18424 echo "configure:18425: checking for Berkeley DB link (-ldb-4-3)" >&5
18425 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
18426 echo $ac_n "(cached) $ac_c" 1>&6
18431 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18433 cat > conftest.$ac_ext <<EOF
18434 #line 18435 "configure"
18435 #include "confdefs.h"
18437 #ifdef HAVE_DB_185_H
18438 # include <db_185.h>
18443 #ifndef DB_VERSION_MAJOR
18444 # define DB_VERSION_MAJOR 1
18448 #define NULL ((void*)0)
18453 #if DB_VERSION_MAJOR > 1
18456 int major, minor, patch;
18458 version = db_version( &major, &minor, &patch );
18460 if( major != DB_VERSION_MAJOR ||
18461 minor < DB_VERSION_MINOR )
18463 printf("Berkeley DB version mismatch\n"
18464 "\theader: %s\n\tlibrary: %s\n",
18465 DB_VERSION_STRING, version);
18471 #if DB_VERSION_MAJOR > 2
18472 db_env_create( NULL, 0 );
18473 #elif DB_VERSION_MAJOR > 1
18474 db_appexit( NULL );
18476 (void) dbopen( NULL, 0, 0, 0, NULL);
18481 if { (eval echo configure:18482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18483 ol_cv_db_db_4_3=yes
18485 echo "configure: failed program was:" >&5
18486 cat conftest.$ac_ext >&5
18496 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
18498 if test $ol_cv_db_db_4_3 = yes ; then
18499 ol_cv_lib_db=-ldb-4-3
18503 if test $ol_cv_lib_db = no ; then
18504 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18505 echo "configure:18506: checking for Berkeley DB link (-ldb42)" >&5
18506 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18507 echo $ac_n "(cached) $ac_c" 1>&6
18512 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18514 cat > conftest.$ac_ext <<EOF
18515 #line 18516 "configure"
18516 #include "confdefs.h"
18518 #ifdef HAVE_DB_185_H
18519 # include <db_185.h>
18524 #ifndef DB_VERSION_MAJOR
18525 # define DB_VERSION_MAJOR 1
18529 #define NULL ((void*)0)
18534 #if DB_VERSION_MAJOR > 1
18537 int major, minor, patch;
18539 version = db_version( &major, &minor, &patch );
18541 if( major != DB_VERSION_MAJOR ||
18542 minor < DB_VERSION_MINOR )
18544 printf("Berkeley DB version mismatch\n"
18545 "\theader: %s\n\tlibrary: %s\n",
18546 DB_VERSION_STRING, version);
18552 #if DB_VERSION_MAJOR > 2
18553 db_env_create( NULL, 0 );
18554 #elif DB_VERSION_MAJOR > 1
18555 db_appexit( NULL );
18557 (void) dbopen( NULL, 0, 0, 0, NULL);
18562 if { (eval echo configure:18563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18566 echo "configure: failed program was:" >&5
18567 cat conftest.$ac_ext >&5
18577 echo "$ac_t""$ol_cv_db_db42" 1>&6
18579 if test $ol_cv_db_db42 = yes ; then
18580 ol_cv_lib_db=-ldb42
18584 if test $ol_cv_lib_db = no ; then
18585 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18586 echo "configure:18587: checking for Berkeley DB link (-ldb-42)" >&5
18587 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18588 echo $ac_n "(cached) $ac_c" 1>&6
18593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18595 cat > conftest.$ac_ext <<EOF
18596 #line 18597 "configure"
18597 #include "confdefs.h"
18599 #ifdef HAVE_DB_185_H
18600 # include <db_185.h>
18605 #ifndef DB_VERSION_MAJOR
18606 # define DB_VERSION_MAJOR 1
18610 #define NULL ((void*)0)
18615 #if DB_VERSION_MAJOR > 1
18618 int major, minor, patch;
18620 version = db_version( &major, &minor, &patch );
18622 if( major != DB_VERSION_MAJOR ||
18623 minor < DB_VERSION_MINOR )
18625 printf("Berkeley DB version mismatch\n"
18626 "\theader: %s\n\tlibrary: %s\n",
18627 DB_VERSION_STRING, version);
18633 #if DB_VERSION_MAJOR > 2
18634 db_env_create( NULL, 0 );
18635 #elif DB_VERSION_MAJOR > 1
18636 db_appexit( NULL );
18638 (void) dbopen( NULL, 0, 0, 0, NULL);
18643 if { (eval echo configure:18644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18647 echo "configure: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18658 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18660 if test $ol_cv_db_db_42 = yes ; then
18661 ol_cv_lib_db=-ldb-42
18665 if test $ol_cv_lib_db = no ; then
18666 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18667 echo "configure:18668: checking for Berkeley DB link (-ldb-4.2)" >&5
18668 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18669 echo $ac_n "(cached) $ac_c" 1>&6
18674 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18676 cat > conftest.$ac_ext <<EOF
18677 #line 18678 "configure"
18678 #include "confdefs.h"
18680 #ifdef HAVE_DB_185_H
18681 # include <db_185.h>
18686 #ifndef DB_VERSION_MAJOR
18687 # define DB_VERSION_MAJOR 1
18691 #define NULL ((void*)0)
18696 #if DB_VERSION_MAJOR > 1
18699 int major, minor, patch;
18701 version = db_version( &major, &minor, &patch );
18703 if( major != DB_VERSION_MAJOR ||
18704 minor < DB_VERSION_MINOR )
18706 printf("Berkeley DB version mismatch\n"
18707 "\theader: %s\n\tlibrary: %s\n",
18708 DB_VERSION_STRING, version);
18714 #if DB_VERSION_MAJOR > 2
18715 db_env_create( NULL, 0 );
18716 #elif DB_VERSION_MAJOR > 1
18717 db_appexit( NULL );
18719 (void) dbopen( NULL, 0, 0, 0, NULL);
18724 if { (eval echo configure:18725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18726 ol_cv_db_db_4_dot_2=yes
18728 echo "configure: failed program was:" >&5
18729 cat conftest.$ac_ext >&5
18731 ol_cv_db_db_4_dot_2=no
18739 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18741 if test $ol_cv_db_db_4_dot_2 = yes ; then
18742 ol_cv_lib_db=-ldb-4.2
18746 if test $ol_cv_lib_db = no ; then
18747 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18748 echo "configure:18749: checking for Berkeley DB link (-ldb-4-2)" >&5
18749 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18750 echo $ac_n "(cached) $ac_c" 1>&6
18755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18757 cat > conftest.$ac_ext <<EOF
18758 #line 18759 "configure"
18759 #include "confdefs.h"
18761 #ifdef HAVE_DB_185_H
18762 # include <db_185.h>
18767 #ifndef DB_VERSION_MAJOR
18768 # define DB_VERSION_MAJOR 1
18772 #define NULL ((void*)0)
18777 #if DB_VERSION_MAJOR > 1
18780 int major, minor, patch;
18782 version = db_version( &major, &minor, &patch );
18784 if( major != DB_VERSION_MAJOR ||
18785 minor < DB_VERSION_MINOR )
18787 printf("Berkeley DB version mismatch\n"
18788 "\theader: %s\n\tlibrary: %s\n",
18789 DB_VERSION_STRING, version);
18795 #if DB_VERSION_MAJOR > 2
18796 db_env_create( NULL, 0 );
18797 #elif DB_VERSION_MAJOR > 1
18798 db_appexit( NULL );
18800 (void) dbopen( NULL, 0, 0, 0, NULL);
18805 if { (eval echo configure:18806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18807 ol_cv_db_db_4_2=yes
18809 echo "configure: failed program was:" >&5
18810 cat conftest.$ac_ext >&5
18820 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18822 if test $ol_cv_db_db_4_2 = yes ; then
18823 ol_cv_lib_db=-ldb-4-2
18827 if test $ol_cv_lib_db = no ; then
18828 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18829 echo "configure:18830: checking for Berkeley DB link (-ldb-4)" >&5
18830 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18831 echo $ac_n "(cached) $ac_c" 1>&6
18836 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18838 cat > conftest.$ac_ext <<EOF
18839 #line 18840 "configure"
18840 #include "confdefs.h"
18842 #ifdef HAVE_DB_185_H
18843 # include <db_185.h>
18848 #ifndef DB_VERSION_MAJOR
18849 # define DB_VERSION_MAJOR 1
18853 #define NULL ((void*)0)
18858 #if DB_VERSION_MAJOR > 1
18861 int major, minor, patch;
18863 version = db_version( &major, &minor, &patch );
18865 if( major != DB_VERSION_MAJOR ||
18866 minor < DB_VERSION_MINOR )
18868 printf("Berkeley DB version mismatch\n"
18869 "\theader: %s\n\tlibrary: %s\n",
18870 DB_VERSION_STRING, version);
18876 #if DB_VERSION_MAJOR > 2
18877 db_env_create( NULL, 0 );
18878 #elif DB_VERSION_MAJOR > 1
18879 db_appexit( NULL );
18881 (void) dbopen( NULL, 0, 0, 0, NULL);
18886 if { (eval echo configure:18887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18890 echo "configure: failed program was:" >&5
18891 cat conftest.$ac_ext >&5
18901 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18903 if test $ol_cv_db_db_4 = yes ; then
18904 ol_cv_lib_db=-ldb-4
18908 if test $ol_cv_lib_db = no ; then
18909 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18910 echo "configure:18911: checking for Berkeley DB link (-ldb4)" >&5
18911 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18912 echo $ac_n "(cached) $ac_c" 1>&6
18917 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18919 cat > conftest.$ac_ext <<EOF
18920 #line 18921 "configure"
18921 #include "confdefs.h"
18923 #ifdef HAVE_DB_185_H
18924 # include <db_185.h>
18929 #ifndef DB_VERSION_MAJOR
18930 # define DB_VERSION_MAJOR 1
18934 #define NULL ((void*)0)
18939 #if DB_VERSION_MAJOR > 1
18942 int major, minor, patch;
18944 version = db_version( &major, &minor, &patch );
18946 if( major != DB_VERSION_MAJOR ||
18947 minor < DB_VERSION_MINOR )
18949 printf("Berkeley DB version mismatch\n"
18950 "\theader: %s\n\tlibrary: %s\n",
18951 DB_VERSION_STRING, version);
18957 #if DB_VERSION_MAJOR > 2
18958 db_env_create( NULL, 0 );
18959 #elif DB_VERSION_MAJOR > 1
18960 db_appexit( NULL );
18962 (void) dbopen( NULL, 0, 0, 0, NULL);
18967 if { (eval echo configure:18968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18971 echo "configure: failed program was:" >&5
18972 cat conftest.$ac_ext >&5
18982 echo "$ac_t""$ol_cv_db_db4" 1>&6
18984 if test $ol_cv_db_db4 = yes ; then
18989 if test $ol_cv_lib_db = no ; then
18990 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18991 echo "configure:18992: checking for Berkeley DB link (-ldb)" >&5
18992 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18993 echo $ac_n "(cached) $ac_c" 1>&6
18998 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19000 cat > conftest.$ac_ext <<EOF
19001 #line 19002 "configure"
19002 #include "confdefs.h"
19004 #ifdef HAVE_DB_185_H
19005 # include <db_185.h>
19010 #ifndef DB_VERSION_MAJOR
19011 # define DB_VERSION_MAJOR 1
19015 #define NULL ((void*)0)
19020 #if DB_VERSION_MAJOR > 1
19023 int major, minor, patch;
19025 version = db_version( &major, &minor, &patch );
19027 if( major != DB_VERSION_MAJOR ||
19028 minor < DB_VERSION_MINOR )
19030 printf("Berkeley DB version mismatch\n"
19031 "\theader: %s\n\tlibrary: %s\n",
19032 DB_VERSION_STRING, version);
19038 #if DB_VERSION_MAJOR > 2
19039 db_env_create( NULL, 0 );
19040 #elif DB_VERSION_MAJOR > 1
19041 db_appexit( NULL );
19043 (void) dbopen( NULL, 0, 0, 0, NULL);
19048 if { (eval echo configure:19049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19052 echo "configure: failed program was:" >&5
19053 cat conftest.$ac_ext >&5
19063 echo "$ac_t""$ol_cv_db_db" 1>&6
19065 if test $ol_cv_db_db = yes ; then
19070 if test $ol_cv_lib_db = no ; then
19071 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19072 echo "configure:19073: checking for Berkeley DB link (-ldb41)" >&5
19073 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19074 echo $ac_n "(cached) $ac_c" 1>&6
19079 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19081 cat > conftest.$ac_ext <<EOF
19082 #line 19083 "configure"
19083 #include "confdefs.h"
19085 #ifdef HAVE_DB_185_H
19086 # include <db_185.h>
19091 #ifndef DB_VERSION_MAJOR
19092 # define DB_VERSION_MAJOR 1
19096 #define NULL ((void*)0)
19101 #if DB_VERSION_MAJOR > 1
19104 int major, minor, patch;
19106 version = db_version( &major, &minor, &patch );
19108 if( major != DB_VERSION_MAJOR ||
19109 minor < DB_VERSION_MINOR )
19111 printf("Berkeley DB version mismatch\n"
19112 "\theader: %s\n\tlibrary: %s\n",
19113 DB_VERSION_STRING, version);
19119 #if DB_VERSION_MAJOR > 2
19120 db_env_create( NULL, 0 );
19121 #elif DB_VERSION_MAJOR > 1
19122 db_appexit( NULL );
19124 (void) dbopen( NULL, 0, 0, 0, NULL);
19129 if { (eval echo configure:19130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19133 echo "configure: failed program was:" >&5
19134 cat conftest.$ac_ext >&5
19144 echo "$ac_t""$ol_cv_db_db41" 1>&6
19146 if test $ol_cv_db_db41 = yes ; then
19147 ol_cv_lib_db=-ldb41
19151 if test $ol_cv_lib_db = no ; then
19152 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19153 echo "configure:19154: checking for Berkeley DB link (-ldb-41)" >&5
19154 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19155 echo $ac_n "(cached) $ac_c" 1>&6
19160 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19162 cat > conftest.$ac_ext <<EOF
19163 #line 19164 "configure"
19164 #include "confdefs.h"
19166 #ifdef HAVE_DB_185_H
19167 # include <db_185.h>
19172 #ifndef DB_VERSION_MAJOR
19173 # define DB_VERSION_MAJOR 1
19177 #define NULL ((void*)0)
19182 #if DB_VERSION_MAJOR > 1
19185 int major, minor, patch;
19187 version = db_version( &major, &minor, &patch );
19189 if( major != DB_VERSION_MAJOR ||
19190 minor < DB_VERSION_MINOR )
19192 printf("Berkeley DB version mismatch\n"
19193 "\theader: %s\n\tlibrary: %s\n",
19194 DB_VERSION_STRING, version);
19200 #if DB_VERSION_MAJOR > 2
19201 db_env_create( NULL, 0 );
19202 #elif DB_VERSION_MAJOR > 1
19203 db_appexit( NULL );
19205 (void) dbopen( NULL, 0, 0, 0, NULL);
19210 if { (eval echo configure:19211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19214 echo "configure: failed program was:" >&5
19215 cat conftest.$ac_ext >&5
19225 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19227 if test $ol_cv_db_db_41 = yes ; then
19228 ol_cv_lib_db=-ldb-41
19232 if test $ol_cv_lib_db = no ; then
19233 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19234 echo "configure:19235: checking for Berkeley DB link (-ldb-4.1)" >&5
19235 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19236 echo $ac_n "(cached) $ac_c" 1>&6
19241 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19243 cat > conftest.$ac_ext <<EOF
19244 #line 19245 "configure"
19245 #include "confdefs.h"
19247 #ifdef HAVE_DB_185_H
19248 # include <db_185.h>
19253 #ifndef DB_VERSION_MAJOR
19254 # define DB_VERSION_MAJOR 1
19258 #define NULL ((void*)0)
19263 #if DB_VERSION_MAJOR > 1
19266 int major, minor, patch;
19268 version = db_version( &major, &minor, &patch );
19270 if( major != DB_VERSION_MAJOR ||
19271 minor < DB_VERSION_MINOR )
19273 printf("Berkeley DB version mismatch\n"
19274 "\theader: %s\n\tlibrary: %s\n",
19275 DB_VERSION_STRING, version);
19281 #if DB_VERSION_MAJOR > 2
19282 db_env_create( NULL, 0 );
19283 #elif DB_VERSION_MAJOR > 1
19284 db_appexit( NULL );
19286 (void) dbopen( NULL, 0, 0, 0, NULL);
19291 if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19293 ol_cv_db_db_4_dot_1=yes
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19298 ol_cv_db_db_4_dot_1=no
19306 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19308 if test $ol_cv_db_db_4_dot_1 = yes ; then
19309 ol_cv_lib_db=-ldb-4.1
19313 if test $ol_cv_lib_db = no ; then
19314 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19315 echo "configure:19316: checking for Berkeley DB link (-ldb-4-1)" >&5
19316 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19317 echo $ac_n "(cached) $ac_c" 1>&6
19322 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19324 cat > conftest.$ac_ext <<EOF
19325 #line 19326 "configure"
19326 #include "confdefs.h"
19328 #ifdef HAVE_DB_185_H
19329 # include <db_185.h>
19334 #ifndef DB_VERSION_MAJOR
19335 # define DB_VERSION_MAJOR 1
19339 #define NULL ((void*)0)
19344 #if DB_VERSION_MAJOR > 1
19347 int major, minor, patch;
19349 version = db_version( &major, &minor, &patch );
19351 if( major != DB_VERSION_MAJOR ||
19352 minor < DB_VERSION_MINOR )
19354 printf("Berkeley DB version mismatch\n"
19355 "\theader: %s\n\tlibrary: %s\n",
19356 DB_VERSION_STRING, version);
19362 #if DB_VERSION_MAJOR > 2
19363 db_env_create( NULL, 0 );
19364 #elif DB_VERSION_MAJOR > 1
19365 db_appexit( NULL );
19367 (void) dbopen( NULL, 0, 0, 0, NULL);
19372 if { (eval echo configure:19373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19374 ol_cv_db_db_4_1=yes
19376 echo "configure: failed program was:" >&5
19377 cat conftest.$ac_ext >&5
19387 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19389 if test $ol_cv_db_db_4_1 = yes ; then
19390 ol_cv_lib_db=-ldb-4-1
19394 if test $ol_cv_lib_db = no ; then
19395 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19396 echo "configure:19397: checking for Berkeley DB link (-ldb3)" >&5
19397 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19398 echo $ac_n "(cached) $ac_c" 1>&6
19403 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19405 cat > conftest.$ac_ext <<EOF
19406 #line 19407 "configure"
19407 #include "confdefs.h"
19409 #ifdef HAVE_DB_185_H
19410 # include <db_185.h>
19415 #ifndef DB_VERSION_MAJOR
19416 # define DB_VERSION_MAJOR 1
19420 #define NULL ((void*)0)
19425 #if DB_VERSION_MAJOR > 1
19428 int major, minor, patch;
19430 version = db_version( &major, &minor, &patch );
19432 if( major != DB_VERSION_MAJOR ||
19433 minor < DB_VERSION_MINOR )
19435 printf("Berkeley DB version mismatch\n"
19436 "\theader: %s\n\tlibrary: %s\n",
19437 DB_VERSION_STRING, version);
19443 #if DB_VERSION_MAJOR > 2
19444 db_env_create( NULL, 0 );
19445 #elif DB_VERSION_MAJOR > 1
19446 db_appexit( NULL );
19448 (void) dbopen( NULL, 0, 0, 0, NULL);
19453 if { (eval echo configure:19454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19457 echo "configure: failed program was:" >&5
19458 cat conftest.$ac_ext >&5
19468 echo "$ac_t""$ol_cv_db_db3" 1>&6
19470 if test $ol_cv_db_db3 = yes ; then
19475 if test $ol_cv_lib_db = no ; then
19476 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19477 echo "configure:19478: checking for Berkeley DB link (-ldb-3)" >&5
19478 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19479 echo $ac_n "(cached) $ac_c" 1>&6
19484 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19486 cat > conftest.$ac_ext <<EOF
19487 #line 19488 "configure"
19488 #include "confdefs.h"
19490 #ifdef HAVE_DB_185_H
19491 # include <db_185.h>
19496 #ifndef DB_VERSION_MAJOR
19497 # define DB_VERSION_MAJOR 1
19501 #define NULL ((void*)0)
19506 #if DB_VERSION_MAJOR > 1
19509 int major, minor, patch;
19511 version = db_version( &major, &minor, &patch );
19513 if( major != DB_VERSION_MAJOR ||
19514 minor < DB_VERSION_MINOR )
19516 printf("Berkeley DB version mismatch\n"
19517 "\theader: %s\n\tlibrary: %s\n",
19518 DB_VERSION_STRING, version);
19524 #if DB_VERSION_MAJOR > 2
19525 db_env_create( NULL, 0 );
19526 #elif DB_VERSION_MAJOR > 1
19527 db_appexit( NULL );
19529 (void) dbopen( NULL, 0, 0, 0, NULL);
19534 if { (eval echo configure:19535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19538 echo "configure: failed program was:" >&5
19539 cat conftest.$ac_ext >&5
19549 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19551 if test $ol_cv_db_db_3 = yes ; then
19552 ol_cv_lib_db=-ldb-3
19556 if test $ol_cv_lib_db = no ; then
19557 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19558 echo "configure:19559: checking for Berkeley DB link (-ldb2)" >&5
19559 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19560 echo $ac_n "(cached) $ac_c" 1>&6
19565 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19567 cat > conftest.$ac_ext <<EOF
19568 #line 19569 "configure"
19569 #include "confdefs.h"
19571 #ifdef HAVE_DB_185_H
19572 # include <db_185.h>
19577 #ifndef DB_VERSION_MAJOR
19578 # define DB_VERSION_MAJOR 1
19582 #define NULL ((void*)0)
19587 #if DB_VERSION_MAJOR > 1
19590 int major, minor, patch;
19592 version = db_version( &major, &minor, &patch );
19594 if( major != DB_VERSION_MAJOR ||
19595 minor < DB_VERSION_MINOR )
19597 printf("Berkeley DB version mismatch\n"
19598 "\theader: %s\n\tlibrary: %s\n",
19599 DB_VERSION_STRING, version);
19605 #if DB_VERSION_MAJOR > 2
19606 db_env_create( NULL, 0 );
19607 #elif DB_VERSION_MAJOR > 1
19608 db_appexit( NULL );
19610 (void) dbopen( NULL, 0, 0, 0, NULL);
19615 if { (eval echo configure:19616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19619 echo "configure: failed program was:" >&5
19620 cat conftest.$ac_ext >&5
19630 echo "$ac_t""$ol_cv_db_db2" 1>&6
19632 if test $ol_cv_db_db2 = yes ; then
19637 if test $ol_cv_lib_db = no ; then
19638 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19639 echo "configure:19640: checking for Berkeley DB link (-ldb-2)" >&5
19640 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19641 echo $ac_n "(cached) $ac_c" 1>&6
19646 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19648 cat > conftest.$ac_ext <<EOF
19649 #line 19650 "configure"
19650 #include "confdefs.h"
19652 #ifdef HAVE_DB_185_H
19653 # include <db_185.h>
19658 #ifndef DB_VERSION_MAJOR
19659 # define DB_VERSION_MAJOR 1
19663 #define NULL ((void*)0)
19668 #if DB_VERSION_MAJOR > 1
19671 int major, minor, patch;
19673 version = db_version( &major, &minor, &patch );
19675 if( major != DB_VERSION_MAJOR ||
19676 minor < DB_VERSION_MINOR )
19678 printf("Berkeley DB version mismatch\n"
19679 "\theader: %s\n\tlibrary: %s\n",
19680 DB_VERSION_STRING, version);
19686 #if DB_VERSION_MAJOR > 2
19687 db_env_create( NULL, 0 );
19688 #elif DB_VERSION_MAJOR > 1
19689 db_appexit( NULL );
19691 (void) dbopen( NULL, 0, 0, 0, NULL);
19696 if { (eval echo configure:19697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19700 echo "configure: failed program was:" >&5
19701 cat conftest.$ac_ext >&5
19711 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19713 if test $ol_cv_db_db_2 = yes ; then
19714 ol_cv_lib_db=-ldb-2
19718 if test $ol_cv_lib_db = no ; then
19719 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19720 echo "configure:19721: checking for Berkeley DB link (-ldb1)" >&5
19721 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19722 echo $ac_n "(cached) $ac_c" 1>&6
19727 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19729 cat > conftest.$ac_ext <<EOF
19730 #line 19731 "configure"
19731 #include "confdefs.h"
19733 #ifdef HAVE_DB_185_H
19734 # include <db_185.h>
19739 #ifndef DB_VERSION_MAJOR
19740 # define DB_VERSION_MAJOR 1
19744 #define NULL ((void*)0)
19749 #if DB_VERSION_MAJOR > 1
19752 int major, minor, patch;
19754 version = db_version( &major, &minor, &patch );
19756 if( major != DB_VERSION_MAJOR ||
19757 minor < DB_VERSION_MINOR )
19759 printf("Berkeley DB version mismatch\n"
19760 "\theader: %s\n\tlibrary: %s\n",
19761 DB_VERSION_STRING, version);
19767 #if DB_VERSION_MAJOR > 2
19768 db_env_create( NULL, 0 );
19769 #elif DB_VERSION_MAJOR > 1
19770 db_appexit( NULL );
19772 (void) dbopen( NULL, 0, 0, 0, NULL);
19777 if { (eval echo configure:19778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19781 echo "configure: failed program was:" >&5
19782 cat conftest.$ac_ext >&5
19792 echo "$ac_t""$ol_cv_db_db1" 1>&6
19794 if test $ol_cv_db_db1 = yes ; then
19799 if test $ol_cv_lib_db = no ; then
19800 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19801 echo "configure:19802: checking for Berkeley DB link (-ldb-1)" >&5
19802 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19803 echo $ac_n "(cached) $ac_c" 1>&6
19808 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19810 cat > conftest.$ac_ext <<EOF
19811 #line 19812 "configure"
19812 #include "confdefs.h"
19814 #ifdef HAVE_DB_185_H
19815 # include <db_185.h>
19820 #ifndef DB_VERSION_MAJOR
19821 # define DB_VERSION_MAJOR 1
19825 #define NULL ((void*)0)
19830 #if DB_VERSION_MAJOR > 1
19833 int major, minor, patch;
19835 version = db_version( &major, &minor, &patch );
19837 if( major != DB_VERSION_MAJOR ||
19838 minor < DB_VERSION_MINOR )
19840 printf("Berkeley DB version mismatch\n"
19841 "\theader: %s\n\tlibrary: %s\n",
19842 DB_VERSION_STRING, version);
19848 #if DB_VERSION_MAJOR > 2
19849 db_env_create( NULL, 0 );
19850 #elif DB_VERSION_MAJOR > 1
19851 db_appexit( NULL );
19853 (void) dbopen( NULL, 0, 0, 0, NULL);
19858 if { (eval echo configure:19859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19862 echo "configure: failed program was:" >&5
19863 cat conftest.$ac_ext >&5
19873 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19875 if test $ol_cv_db_db_1 = yes ; then
19876 ol_cv_lib_db=-ldb-1
19881 if test "$ol_cv_lib_db" != no ; then
19882 ol_cv_berkeley_db=yes
19883 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
19884 echo "configure:19885: checking for Berkeley DB version match" >&5
19885 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
19886 echo $ac_n "(cached) $ac_c" 1>&6
19890 LIBS="$LTHREAD_LIBS $LIBS"
19891 if test $ol_cv_lib_db != yes ; then
19892 LIBS="$ol_cv_lib_db $LIBS"
19895 if test "$cross_compiling" = yes; then
19896 ol_cv_berkeley_db_version=cross
19898 cat > conftest.$ac_ext <<EOF
19899 #line 19900 "configure"
19900 #include "confdefs.h"
19902 #ifdef HAVE_DB_185_H
19907 #ifndef DB_VERSION_MAJOR
19908 # define DB_VERSION_MAJOR 1
19911 #define NULL ((void *)0)
19915 #if DB_VERSION_MAJOR > 1
19917 int major, minor, patch;
19919 version = db_version( &major, &minor, &patch );
19921 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
19922 printf("Berkeley DB version mismatch\n"
19923 "\theader: %s\n\tlibrary: %s\n",
19924 DB_VERSION_STRING, version);
19932 if { (eval echo configure:19933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19934 ol_cv_berkeley_db_version=yes
19936 echo "configure: failed program was:" >&5
19937 cat conftest.$ac_ext >&5
19939 ol_cv_berkeley_db_version=no
19949 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
19951 if test $ol_cv_berkeley_db_version = no ; then
19952 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
19955 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19956 echo "configure:19957: checking for Berkeley DB thread support" >&5
19957 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19958 echo $ac_n "(cached) $ac_c" 1>&6
19962 LIBS="$LTHREAD_LIBS $LIBS"
19963 if test $ol_cv_lib_db != yes ; then
19964 LIBS="$ol_cv_lib_db $LIBS"
19967 if test "$cross_compiling" = yes; then
19968 ol_cv_berkeley_db_thread=cross
19970 cat > conftest.$ac_ext <<EOF
19971 #line 19972 "configure"
19972 #include "confdefs.h"
19974 #ifdef HAVE_DB_185_H
19980 #define NULL ((void *)0)
19985 u_int32_t flags = DB_CREATE |
19991 #if DB_VERSION_MAJOR > 2
19992 DB_ENV *env = NULL;
19994 rc = db_env_create( &env, 0 );
19996 flags |= DB_INIT_MPOOL;
19997 #ifdef DB_MPOOL_PRIVATE
19998 flags |= DB_MPOOL_PRIVATE;
20002 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20006 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20007 rc = env->open( env, NULL, flags, 0 );
20009 rc = env->open( env, NULL, NULL, flags, 0 );
20013 rc = env->close( env, 0 );
20017 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20023 memset( &env, '\0', sizeof(env) );
20025 rc = db_appinit( NULL, NULL, &env, flags );
20028 db_appexit( &env );
20031 unlink("__db_mpool.share");
20032 unlink("__db_lock.share");
20038 if { (eval echo configure:20039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20040 ol_cv_berkeley_db_thread=yes
20042 echo "configure: failed program was:" >&5
20043 cat conftest.$ac_ext >&5
20045 ol_cv_berkeley_db_thread=no
20055 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20057 if test $ol_cv_berkeley_db_thread != no ; then
20058 cat >> confdefs.h <<\EOF
20059 #define HAVE_BERKELEY_DB_THREAD 1
20069 if test $ol_cv_berkeley_db != no ; then
20070 cat >> confdefs.h <<\EOF
20071 #define HAVE_BERKELEY_DB 1
20075 ol_link_ldbm=berkeley
20076 ol_with_ldbm_api=berkeley
20078 if test $ol_with_ldbm_type = hash ; then
20079 cat >> confdefs.h <<\EOF
20080 #define LDBM_USE_DBHASH 1
20084 cat >> confdefs.h <<\EOF
20085 #define LDBM_USE_DBBTREE 1
20090 if test $ol_cv_lib_db != yes ; then
20091 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20096 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20097 if test $ol_link_ldbm != berkeley ; then
20098 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20100 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20101 echo "configure:20102: checking Berkeley DB version for BDB backend" >&5
20102 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20103 echo $ac_n "(cached) $ac_c" 1>&6
20106 cat > conftest.$ac_ext <<EOF
20107 #line 20108 "configure"
20108 #include "confdefs.h"
20112 /* this check could be improved */
20113 #ifndef DB_VERSION_MAJOR
20114 # define DB_VERSION_MAJOR 1
20116 #ifndef DB_VERSION_MINOR
20117 # define DB_VERSION_MINOR 0
20120 /* require 4.2 or later */
20121 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20122 __db_version_compat
20126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20127 egrep "__db_version_compat" >/dev/null 2>&1; then
20129 ol_cv_bdb_compat=yes
20132 ol_cv_bdb_compat=no
20138 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20141 if test $ol_cv_bdb_compat != yes ; then
20142 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20147 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20148 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20149 ol_with_ldbm_api=none
20152 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20153 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20154 echo "configure:20155: checking for MDBM library" >&5
20155 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20159 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20160 echo "configure:20161: checking for mdbm_set_chain" >&5
20161 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20162 echo $ac_n "(cached) $ac_c" 1>&6
20164 cat > conftest.$ac_ext <<EOF
20165 #line 20166 "configure"
20166 #include "confdefs.h"
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char mdbm_set_chain(); below. */
20169 #include <assert.h>
20170 /* Override any gcc2 internal prototype to avoid an error. */
20171 /* We use char because int might match the return type of a gcc2
20172 builtin and then its argument prototype would still apply. */
20173 char mdbm_set_chain();
20178 /* The GNU C library defines this for functions which it implements
20179 to always fail with ENOSYS. Some functions are actually named
20180 something starting with __ and the normal name is an alias. */
20181 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20184 f = mdbm_set_chain;
20189 if { (eval echo configure:20190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20191 eval "ac_cv_func_mdbm_set_chain=yes"
20193 echo "configure: failed program was:" >&5
20194 cat conftest.$ac_ext >&5
20196 eval "ac_cv_func_mdbm_set_chain=no"
20201 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20202 echo "$ac_t""yes" 1>&6
20205 echo "$ac_t""no" 1>&6
20207 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20208 echo "configure:20209: checking for mdbm_set_chain in -lmdbm" >&5
20209 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20210 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20211 echo $ac_n "(cached) $ac_c" 1>&6
20213 ac_save_LIBS="$LIBS"
20214 LIBS="-lmdbm $LIBS"
20215 cat > conftest.$ac_ext <<EOF
20216 #line 20217 "configure"
20217 #include "confdefs.h"
20218 /* Override any gcc2 internal prototype to avoid an error. */
20219 /* We use char because int might match the return type of a gcc2
20220 builtin and then its argument prototype would still apply. */
20221 char mdbm_set_chain();
20227 if { (eval echo configure:20228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20229 eval "ac_cv_lib_$ac_lib_var=yes"
20231 echo "configure: failed program was:" >&5
20232 cat conftest.$ac_ext >&5
20234 eval "ac_cv_lib_$ac_lib_var=no"
20237 LIBS="$ac_save_LIBS"
20240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20241 echo "$ac_t""yes" 1>&6
20242 ol_cv_lib_mdbm=-lmdbm
20244 echo "$ac_t""no" 1>&6
20255 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20258 for ac_hdr in mdbm.h
20260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20262 echo "configure:20263: checking for $ac_hdr" >&5
20263 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20264 echo $ac_n "(cached) $ac_c" 1>&6
20266 cat > conftest.$ac_ext <<EOF
20267 #line 20268 "configure"
20268 #include "confdefs.h"
20271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20272 { (eval echo configure:20273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20274 if test -z "$ac_err"; then
20276 eval "ac_cv_header_$ac_safe=yes"
20279 echo "configure: failed program was:" >&5
20280 cat conftest.$ac_ext >&5
20282 eval "ac_cv_header_$ac_safe=no"
20286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20287 echo "$ac_t""yes" 1>&6
20288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20289 cat >> confdefs.h <<EOF
20290 #define $ac_tr_hdr 1
20294 echo "$ac_t""no" 1>&6
20298 echo $ac_n "checking for db""... $ac_c" 1>&6
20299 echo "configure:20300: checking for db" >&5
20300 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20301 echo $ac_n "(cached) $ac_c" 1>&6
20304 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20312 echo "$ac_t""$ol_cv_mdbm" 1>&6
20313 if test $ol_cv_mdbm = yes ; then
20314 cat >> confdefs.h <<\EOF
20315 #define HAVE_MDBM 1
20321 if test $ol_cv_mdbm = yes ; then
20323 ol_with_ldbm_api=mdbm
20324 if test $ol_cv_lib_mdbm != yes ; then
20325 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20330 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20331 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20332 echo "configure:20333: checking for GDBM library" >&5
20333 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20334 echo $ac_n "(cached) $ac_c" 1>&6
20337 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20338 echo "configure:20339: checking for gdbm_open" >&5
20339 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20340 echo $ac_n "(cached) $ac_c" 1>&6
20342 cat > conftest.$ac_ext <<EOF
20343 #line 20344 "configure"
20344 #include "confdefs.h"
20345 /* System header to define __stub macros and hopefully few prototypes,
20346 which can conflict with char gdbm_open(); below. */
20347 #include <assert.h>
20348 /* Override any gcc2 internal prototype to avoid an error. */
20349 /* We use char because int might match the return type of a gcc2
20350 builtin and then its argument prototype would still apply. */
20356 /* The GNU C library defines this for functions which it implements
20357 to always fail with ENOSYS. Some functions are actually named
20358 something starting with __ and the normal name is an alias. */
20359 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20367 if { (eval echo configure:20368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20369 eval "ac_cv_func_gdbm_open=yes"
20371 echo "configure: failed program was:" >&5
20372 cat conftest.$ac_ext >&5
20374 eval "ac_cv_func_gdbm_open=no"
20379 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20380 echo "$ac_t""yes" 1>&6
20383 echo "$ac_t""no" 1>&6
20385 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20386 echo "configure:20387: checking for gdbm_open in -lgdbm" >&5
20387 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20388 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20389 echo $ac_n "(cached) $ac_c" 1>&6
20391 ac_save_LIBS="$LIBS"
20392 LIBS="-lgdbm $LIBS"
20393 cat > conftest.$ac_ext <<EOF
20394 #line 20395 "configure"
20395 #include "confdefs.h"
20396 /* Override any gcc2 internal prototype to avoid an error. */
20397 /* We use char because int might match the return type of a gcc2
20398 builtin and then its argument prototype would still apply. */
20405 if { (eval echo configure:20406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20407 eval "ac_cv_lib_$ac_lib_var=yes"
20409 echo "configure: failed program was:" >&5
20410 cat conftest.$ac_ext >&5
20412 eval "ac_cv_lib_$ac_lib_var=no"
20415 LIBS="$ac_save_LIBS"
20418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20419 echo "$ac_t""yes" 1>&6
20420 ol_cv_lib_gdbm=-lgdbm
20422 echo "$ac_t""no" 1>&6
20433 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20436 for ac_hdr in gdbm.h
20438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20440 echo "configure:20441: checking for $ac_hdr" >&5
20441 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20442 echo $ac_n "(cached) $ac_c" 1>&6
20444 cat > conftest.$ac_ext <<EOF
20445 #line 20446 "configure"
20446 #include "confdefs.h"
20449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20450 { (eval echo configure:20451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20452 if test -z "$ac_err"; then
20454 eval "ac_cv_header_$ac_safe=yes"
20457 echo "configure: failed program was:" >&5
20458 cat conftest.$ac_ext >&5
20460 eval "ac_cv_header_$ac_safe=no"
20464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20465 echo "$ac_t""yes" 1>&6
20466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20467 cat >> confdefs.h <<EOF
20468 #define $ac_tr_hdr 1
20472 echo "$ac_t""no" 1>&6
20476 echo $ac_n "checking for db""... $ac_c" 1>&6
20477 echo "configure:20478: checking for db" >&5
20478 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20479 echo $ac_n "(cached) $ac_c" 1>&6
20482 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20490 echo "$ac_t""$ol_cv_gdbm" 1>&6
20491 if test $ol_cv_gdbm = yes ; then
20492 cat >> confdefs.h <<\EOF
20493 #define HAVE_GDBM 1
20499 if test $ol_cv_gdbm = yes ; then
20501 ol_with_ldbm_api=gdbm
20503 if test $ol_cv_lib_gdbm != yes ; then
20504 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20509 if test $ol_with_ldbm_api = ndbm ; then
20510 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20511 echo "configure:20512: checking for NDBM library" >&5
20512 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20513 echo $ac_n "(cached) $ac_c" 1>&6
20516 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20517 echo "configure:20518: checking for dbm_open" >&5
20518 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20519 echo $ac_n "(cached) $ac_c" 1>&6
20521 cat > conftest.$ac_ext <<EOF
20522 #line 20523 "configure"
20523 #include "confdefs.h"
20524 /* System header to define __stub macros and hopefully few prototypes,
20525 which can conflict with char dbm_open(); below. */
20526 #include <assert.h>
20527 /* Override any gcc2 internal prototype to avoid an error. */
20528 /* We use char because int might match the return type of a gcc2
20529 builtin and then its argument prototype would still apply. */
20535 /* The GNU C library defines this for functions which it implements
20536 to always fail with ENOSYS. Some functions are actually named
20537 something starting with __ and the normal name is an alias. */
20538 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20546 if { (eval echo configure:20547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20548 eval "ac_cv_func_dbm_open=yes"
20550 echo "configure: failed program was:" >&5
20551 cat conftest.$ac_ext >&5
20553 eval "ac_cv_func_dbm_open=no"
20558 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20559 echo "$ac_t""yes" 1>&6
20562 echo "$ac_t""no" 1>&6
20564 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20565 echo "configure:20566: checking for dbm_open in -lndbm" >&5
20566 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20567 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20568 echo $ac_n "(cached) $ac_c" 1>&6
20570 ac_save_LIBS="$LIBS"
20571 LIBS="-lndbm $LIBS"
20572 cat > conftest.$ac_ext <<EOF
20573 #line 20574 "configure"
20574 #include "confdefs.h"
20575 /* Override any gcc2 internal prototype to avoid an error. */
20576 /* We use char because int might match the return type of a gcc2
20577 builtin and then its argument prototype would still apply. */
20584 if { (eval echo configure:20585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20586 eval "ac_cv_lib_$ac_lib_var=yes"
20588 echo "configure: failed program was:" >&5
20589 cat conftest.$ac_ext >&5
20591 eval "ac_cv_lib_$ac_lib_var=no"
20594 LIBS="$ac_save_LIBS"
20597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20598 echo "$ac_t""yes" 1>&6
20599 ol_cv_lib_ndbm=-lndbm
20601 echo "$ac_t""no" 1>&6
20603 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20604 echo "configure:20605: checking for dbm_open in -ldbm" >&5
20605 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20606 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20607 echo $ac_n "(cached) $ac_c" 1>&6
20609 ac_save_LIBS="$LIBS"
20611 cat > conftest.$ac_ext <<EOF
20612 #line 20613 "configure"
20613 #include "confdefs.h"
20614 /* Override any gcc2 internal prototype to avoid an error. */
20615 /* We use char because int might match the return type of a gcc2
20616 builtin and then its argument prototype would still apply. */
20623 if { (eval echo configure:20624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20625 eval "ac_cv_lib_$ac_lib_var=yes"
20627 echo "configure: failed program was:" >&5
20628 cat conftest.$ac_ext >&5
20630 eval "ac_cv_lib_$ac_lib_var=no"
20633 LIBS="$ac_save_LIBS"
20636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20637 echo "$ac_t""yes" 1>&6
20638 ol_cv_lib_ndbm=-ldbm
20640 echo "$ac_t""no" 1>&6
20653 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20656 for ac_hdr in ndbm.h
20658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20660 echo "configure:20661: checking for $ac_hdr" >&5
20661 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20662 echo $ac_n "(cached) $ac_c" 1>&6
20664 cat > conftest.$ac_ext <<EOF
20665 #line 20666 "configure"
20666 #include "confdefs.h"
20669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20670 { (eval echo configure:20671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20672 if test -z "$ac_err"; then
20674 eval "ac_cv_header_$ac_safe=yes"
20677 echo "configure: failed program was:" >&5
20678 cat conftest.$ac_ext >&5
20680 eval "ac_cv_header_$ac_safe=no"
20684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20685 echo "$ac_t""yes" 1>&6
20686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20687 cat >> confdefs.h <<EOF
20688 #define $ac_tr_hdr 1
20692 echo "$ac_t""no" 1>&6
20696 echo $ac_n "checking for db""... $ac_c" 1>&6
20697 echo "configure:20698: checking for db" >&5
20698 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20699 echo $ac_n "(cached) $ac_c" 1>&6
20702 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20710 echo "$ac_t""$ol_cv_ndbm" 1>&6
20711 if test $ol_cv_ndbm = yes ; then
20712 cat >> confdefs.h <<\EOF
20713 #define HAVE_NDBM 1
20719 if test $ol_cv_ndbm = yes ; then
20721 ol_with_ldbm_api=ndbm
20723 if test $ol_cv_lib_ndbm != yes ; then
20724 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20729 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20730 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20731 if test $ol_enable_ldbm = yes ; then
20732 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20735 echo "configure: warning: disabling LDBM" 1>&2
20739 if test $ol_enable_bdb = yes -o \
20740 $ol_enable_hdb = yes -o \
20741 $ol_enable_ldbm = yes ; then
20742 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
20746 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20747 BUILD_LIBS_DYNAMIC=shared
20748 cat >> confdefs.h <<\EOF
20749 #define LDAP_LIBS_DYNAMIC 1
20754 BUILD_LIBS_DYNAMIC=static
20758 if test $ol_enable_wrappers != no ; then
20759 for ac_hdr in tcpd.h
20761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20763 echo "configure:20764: checking for $ac_hdr" >&5
20764 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20765 echo $ac_n "(cached) $ac_c" 1>&6
20767 cat > conftest.$ac_ext <<EOF
20768 #line 20769 "configure"
20769 #include "confdefs.h"
20772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20773 { (eval echo configure:20774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20775 if test -z "$ac_err"; then
20777 eval "ac_cv_header_$ac_safe=yes"
20780 echo "configure: failed program was:" >&5
20781 cat conftest.$ac_ext >&5
20783 eval "ac_cv_header_$ac_safe=no"
20787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20788 echo "$ac_t""yes" 1>&6
20789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20790 cat >> confdefs.h <<EOF
20791 #define $ac_tr_hdr 1
20794 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20795 echo "configure:20796: checking for TCP wrappers library" >&5
20797 LIBS="$LIBS -lwrap"
20798 cat > conftest.$ac_ext <<EOF
20799 #line 20800 "configure"
20800 #include "confdefs.h"
20803 int allow_severity = 0;
20804 int deny_severity = 0;
20806 struct request_info *req;
20814 if { (eval echo configure:20815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20816 echo "$ac_t""-lwrap" 1>&6
20820 echo "configure: failed program was:" >&5
20821 cat conftest.$ac_ext >&5
20825 cat > conftest.$ac_ext <<EOF
20826 #line 20827 "configure"
20827 #include "confdefs.h"
20830 int allow_severity = 0;
20831 int deny_severity = 0;
20833 struct request_info *req;
20841 if { (eval echo configure:20842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20843 echo "$ac_t""-lwrap -lnsl" 1>&6
20845 LIBS="$save_LIBS -lnsl"
20847 echo "configure: failed program was:" >&5
20848 cat conftest.$ac_ext >&5
20851 echo "$ac_t""no" 1>&6
20859 echo "$ac_t""no" 1>&6
20865 if test $have_wrappers = yes ; then
20866 cat >> confdefs.h <<\EOF
20867 #define HAVE_TCPD 1
20871 elif test $ol_enable_wrappers = yes ; then
20872 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20874 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20879 if test $ol_enable_syslog != no ; then
20880 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20881 echo "configure:20882: checking for openlog" >&5
20882 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20883 echo $ac_n "(cached) $ac_c" 1>&6
20885 cat > conftest.$ac_ext <<EOF
20886 #line 20887 "configure"
20887 #include "confdefs.h"
20888 /* System header to define __stub macros and hopefully few prototypes,
20889 which can conflict with char openlog(); below. */
20890 #include <assert.h>
20891 /* Override any gcc2 internal prototype to avoid an error. */
20892 /* We use char because int might match the return type of a gcc2
20893 builtin and then its argument prototype would still apply. */
20899 /* The GNU C library defines this for functions which it implements
20900 to always fail with ENOSYS. Some functions are actually named
20901 something starting with __ and the normal name is an alias. */
20902 #if defined (__stub_openlog) || defined (__stub___openlog)
20910 if { (eval echo configure:20911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20912 eval "ac_cv_func_openlog=yes"
20914 echo "configure: failed program was:" >&5
20915 cat conftest.$ac_ext >&5
20917 eval "ac_cv_func_openlog=no"
20922 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20923 echo "$ac_t""yes" 1>&6
20926 echo "$ac_t""no" 1>&6
20929 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20930 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20932 ol_enable_syslog=$ac_cv_func_openlog
20937 if test $ol_enable_sql != no ; then
20938 for ac_hdr in sql.h sqlext.h
20940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20942 echo "configure:20943: checking for $ac_hdr" >&5
20943 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20944 echo $ac_n "(cached) $ac_c" 1>&6
20946 cat > conftest.$ac_ext <<EOF
20947 #line 20948 "configure"
20948 #include "confdefs.h"
20951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20952 { (eval echo configure:20953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20954 if test -z "$ac_err"; then
20956 eval "ac_cv_header_$ac_safe=yes"
20959 echo "configure: failed program was:" >&5
20960 cat conftest.$ac_ext >&5
20962 eval "ac_cv_header_$ac_safe=no"
20966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20967 echo "$ac_t""yes" 1>&6
20968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20969 cat >> confdefs.h <<EOF
20970 #define $ac_tr_hdr 1
20974 echo "$ac_t""no" 1>&6
20975 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20981 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20982 echo "configure:20983: checking for SQLDriverConnect in -liodbc" >&5
20983 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20985 echo $ac_n "(cached) $ac_c" 1>&6
20987 ac_save_LIBS="$LIBS"
20988 LIBS="-liodbc $LIBS"
20989 cat > conftest.$ac_ext <<EOF
20990 #line 20991 "configure"
20991 #include "confdefs.h"
20992 /* Override any gcc2 internal prototype to avoid an error. */
20993 /* We use char because int might match the return type of a gcc2
20994 builtin and then its argument prototype would still apply. */
20995 char SQLDriverConnect();
21001 if { (eval echo configure:21002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21003 eval "ac_cv_lib_$ac_lib_var=yes"
21005 echo "configure: failed program was:" >&5
21006 cat conftest.$ac_ext >&5
21008 eval "ac_cv_lib_$ac_lib_var=no"
21011 LIBS="$ac_save_LIBS"
21014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21015 echo "$ac_t""yes" 1>&6
21018 echo "$ac_t""no" 1>&6
21022 if test $have_iodbc = yes ; then
21023 ol_link_sql="-liodbc"
21025 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21026 echo "configure:21027: checking for SQLDriverConnect in -lodbc" >&5
21027 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21029 echo $ac_n "(cached) $ac_c" 1>&6
21031 ac_save_LIBS="$LIBS"
21032 LIBS="-lodbc $LIBS"
21033 cat > conftest.$ac_ext <<EOF
21034 #line 21035 "configure"
21035 #include "confdefs.h"
21036 /* Override any gcc2 internal prototype to avoid an error. */
21037 /* We use char because int might match the return type of a gcc2
21038 builtin and then its argument prototype would still apply. */
21039 char SQLDriverConnect();
21045 if { (eval echo configure:21046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21047 eval "ac_cv_lib_$ac_lib_var=yes"
21049 echo "configure: failed program was:" >&5
21050 cat conftest.$ac_ext >&5
21052 eval "ac_cv_lib_$ac_lib_var=no"
21055 LIBS="$ac_save_LIBS"
21058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21059 echo "$ac_t""yes" 1>&6
21062 echo "$ac_t""no" 1>&6
21066 if test $have_odbc = yes ; then
21067 ol_link_sql="-lodbc"
21071 if test $ol_link_sql != no ; then
21072 SLAPD_SQL_LIBS="$ol_link_sql"
21074 elif test $ol_enable_sql != auto ; then
21075 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21081 if test $ol_with_cyrus_sasl != no ; then
21082 for ac_hdr in sasl/sasl.h sasl.h
21084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21086 echo "configure:21087: checking for $ac_hdr" >&5
21087 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21088 echo $ac_n "(cached) $ac_c" 1>&6
21090 cat > conftest.$ac_ext <<EOF
21091 #line 21092 "configure"
21092 #include "confdefs.h"
21095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21096 { (eval echo configure:21097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21098 if test -z "$ac_err"; then
21100 eval "ac_cv_header_$ac_safe=yes"
21103 echo "configure: failed program was:" >&5
21104 cat conftest.$ac_ext >&5
21106 eval "ac_cv_header_$ac_safe=no"
21110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21111 echo "$ac_t""yes" 1>&6
21112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21113 cat >> confdefs.h <<EOF
21114 #define $ac_tr_hdr 1
21118 echo "$ac_t""no" 1>&6
21123 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21124 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21125 echo "configure:21126: checking for sasl_client_init in -lsasl2" >&5
21126 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21127 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21128 echo $ac_n "(cached) $ac_c" 1>&6
21130 ac_save_LIBS="$LIBS"
21131 LIBS="-lsasl2 $LIBS"
21132 cat > conftest.$ac_ext <<EOF
21133 #line 21134 "configure"
21134 #include "confdefs.h"
21135 /* Override any gcc2 internal prototype to avoid an error. */
21136 /* We use char because int might match the return type of a gcc2
21137 builtin and then its argument prototype would still apply. */
21138 char sasl_client_init();
21144 if { (eval echo configure:21145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21146 eval "ac_cv_lib_$ac_lib_var=yes"
21148 echo "configure: failed program was:" >&5
21149 cat conftest.$ac_ext >&5
21151 eval "ac_cv_lib_$ac_lib_var=no"
21154 LIBS="$ac_save_LIBS"
21157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21158 echo "$ac_t""yes" 1>&6
21159 ol_link_sasl="-lsasl2"
21161 echo "$ac_t""no" 1>&6
21162 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21163 echo "configure:21164: checking for sasl_client_init in -lsasl" >&5
21164 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21165 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21166 echo $ac_n "(cached) $ac_c" 1>&6
21168 ac_save_LIBS="$LIBS"
21169 LIBS="-lsasl $LIBS"
21170 cat > conftest.$ac_ext <<EOF
21171 #line 21172 "configure"
21172 #include "confdefs.h"
21173 /* Override any gcc2 internal prototype to avoid an error. */
21174 /* We use char because int might match the return type of a gcc2
21175 builtin and then its argument prototype would still apply. */
21176 char sasl_client_init();
21182 if { (eval echo configure:21183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21184 eval "ac_cv_lib_$ac_lib_var=yes"
21186 echo "configure: failed program was:" >&5
21187 cat conftest.$ac_ext >&5
21189 eval "ac_cv_lib_$ac_lib_var=no"
21192 LIBS="$ac_save_LIBS"
21195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21196 echo "$ac_t""yes" 1>&6
21197 ol_link_sasl="-lsasl"
21199 echo "$ac_t""no" 1>&6
21206 if test $ol_link_sasl = no ; then
21207 if test $ol_with_cyrus_sasl != auto ; then
21208 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21210 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21211 echo "configure: warning: SASL authentication not supported!" 1>&2
21212 if test $ol_link_tls = no ; then
21213 echo "configure: warning: Strong authentication not supported!" 1>&2
21217 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21218 echo "configure:21219: checking Cyrus SASL library version" >&5
21219 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21220 echo $ac_n "(cached) $ac_c" 1>&6
21223 cat > conftest.$ac_ext <<EOF
21224 #line 21225 "configure"
21225 #include "confdefs.h"
21227 #ifdef HAVE_SASL_SASL_H
21228 #include <sasl/sasl.h>
21233 /* Require 2.1.15+ */
21234 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21235 char *__sasl_compat = "2.2+ or better okay (we guess)";
21236 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21237 && SASL_VERSION_STEP >=15
21238 char *__sasl_compat = "2.1.15+ or better okay";
21242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21243 egrep "__sasl_compat" >/dev/null 2>&1; then
21245 ol_cv_sasl_compat=yes
21248 ol_cv_sasl_compat=no
21254 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21256 if test $ol_cv_sasl_compat = no ; then
21258 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
21261 cat >> confdefs.h <<\EOF
21262 #define HAVE_CYRUS_SASL 1
21265 SASL_LIBS="$ol_link_sasl"
21266 if test $ol_enable_spasswd != no ; then
21267 ol_link_spasswd=yes
21270 ac_save_LIBS="$LIBS"
21271 LIBS="$LIBS $ol_link_sasl"
21272 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21273 echo "configure:21274: checking for sasl_version" >&5
21274 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21275 echo $ac_n "(cached) $ac_c" 1>&6
21277 cat > conftest.$ac_ext <<EOF
21278 #line 21279 "configure"
21279 #include "confdefs.h"
21280 /* System header to define __stub macros and hopefully few prototypes,
21281 which can conflict with char sasl_version(); below. */
21282 #include <assert.h>
21283 /* Override any gcc2 internal prototype to avoid an error. */
21284 /* We use char because int might match the return type of a gcc2
21285 builtin and then its argument prototype would still apply. */
21286 char sasl_version();
21291 /* The GNU C library defines this for functions which it implements
21292 to always fail with ENOSYS. Some functions are actually named
21293 something starting with __ and the normal name is an alias. */
21294 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21302 if { (eval echo configure:21303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21304 eval "ac_cv_func_sasl_version=yes"
21306 echo "configure: failed program was:" >&5
21307 cat conftest.$ac_ext >&5
21309 eval "ac_cv_func_sasl_version=no"
21314 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21315 echo "$ac_t""yes" 1>&6
21316 cat >> confdefs.h <<\EOF
21317 #define HAVE_SASL_VERSION 1
21321 echo "$ac_t""no" 1>&6
21324 LIBS="$ac_save_LIBS"
21328 echo "configure: warning: SASL authentication not supported!" 1>&2
21329 if test $ol_link_tls = no ; then
21330 echo "configure: warning: Strong authentication not supported!" 1>&2
21334 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21336 if test -r /dev/urandom ; then
21337 dev="/dev/urandom";
21338 elif test -r /idev/urandom ; then
21339 dev="/idev/urandom";
21340 elif test -r /dev/srandom ; then
21341 dev="/dev/srandom";
21342 elif test -r /dev/random ; then
21344 elif test -r /idev/random ; then
21345 dev="/idev/random";
21348 if test $dev != no ; then
21349 cat >> confdefs.h <<EOF
21350 #define URANDOM_DEVICE "$dev"
21357 if test $ol_with_fetch != no ; then
21359 LIBS="-lfetch -lcom_err $LIBS"
21360 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21361 echo "configure:21362: checking fetch(3) library" >&5
21362 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21363 echo $ac_n "(cached) $ac_c" 1>&6
21366 cat > conftest.$ac_ext <<EOF
21367 #line 21368 "configure"
21368 #include "confdefs.h"
21370 #include <sys/param.h>
21374 struct url *u = fetchParseURL("file:///");
21377 if { (eval echo configure:21378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21379 ol_cv_lib_fetch=yes
21381 echo "configure: failed program was:" >&5
21382 cat conftest.$ac_ext >&5
21389 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21391 if test $ol_cv_lib_fetch != no ; then
21392 ol_link_fetch="-lfetch -lcom_err"
21393 cat >> confdefs.h <<\EOF
21394 #define HAVE_FETCH 1
21400 if test $ol_cv_lib_fetch != no ; then
21401 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21402 ol_link_fetch=freebsd
21404 elif test $ol_with_fetch != auto ; then
21405 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21409 if test $ol_enable_crypt != no ; then
21411 LIBS="$TLS_LIBS $LIBS"
21413 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21414 echo "configure:21415: checking for crypt" >&5
21415 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21416 echo $ac_n "(cached) $ac_c" 1>&6
21418 cat > conftest.$ac_ext <<EOF
21419 #line 21420 "configure"
21420 #include "confdefs.h"
21421 /* System header to define __stub macros and hopefully few prototypes,
21422 which can conflict with char crypt(); below. */
21423 #include <assert.h>
21424 /* Override any gcc2 internal prototype to avoid an error. */
21425 /* We use char because int might match the return type of a gcc2
21426 builtin and then its argument prototype would still apply. */
21432 /* The GNU C library defines this for functions which it implements
21433 to always fail with ENOSYS. Some functions are actually named
21434 something starting with __ and the normal name is an alias. */
21435 #if defined (__stub_crypt) || defined (__stub___crypt)
21443 if { (eval echo configure:21444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21445 eval "ac_cv_func_crypt=yes"
21447 echo "configure: failed program was:" >&5
21448 cat conftest.$ac_ext >&5
21450 eval "ac_cv_func_crypt=no"
21455 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21456 echo "$ac_t""yes" 1>&6
21459 echo "$ac_t""no" 1>&6
21462 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21463 echo "configure:21464: checking for crypt in -lcrypt" >&5
21464 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21465 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21466 echo $ac_n "(cached) $ac_c" 1>&6
21468 ac_save_LIBS="$LIBS"
21469 LIBS="-lcrypt $LIBS"
21470 cat > conftest.$ac_ext <<EOF
21471 #line 21472 "configure"
21472 #include "confdefs.h"
21473 /* Override any gcc2 internal prototype to avoid an error. */
21474 /* We use char because int might match the return type of a gcc2
21475 builtin and then its argument prototype would still apply. */
21482 if { (eval echo configure:21483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21484 eval "ac_cv_lib_$ac_lib_var=yes"
21486 echo "configure: failed program was:" >&5
21487 cat conftest.$ac_ext >&5
21489 eval "ac_cv_lib_$ac_lib_var=no"
21492 LIBS="$ac_save_LIBS"
21495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21496 echo "$ac_t""yes" 1>&6
21497 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21500 echo "$ac_t""no" 1>&6
21509 if test $have_crypt = yes ; then
21510 cat >> confdefs.h <<\EOF
21511 #define HAVE_CRYPT 1
21515 echo "configure: warning: could not find crypt" 1>&2
21516 if test $ol_enable_crypt = yes ; then
21517 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21520 echo "configure: warning: disabling crypt support" 1>&2
21525 if test $ol_enable_proctitle != no ; then
21526 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21527 echo "configure:21528: checking for setproctitle" >&5
21528 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21529 echo $ac_n "(cached) $ac_c" 1>&6
21531 cat > conftest.$ac_ext <<EOF
21532 #line 21533 "configure"
21533 #include "confdefs.h"
21534 /* System header to define __stub macros and hopefully few prototypes,
21535 which can conflict with char setproctitle(); below. */
21536 #include <assert.h>
21537 /* Override any gcc2 internal prototype to avoid an error. */
21538 /* We use char because int might match the return type of a gcc2
21539 builtin and then its argument prototype would still apply. */
21540 char setproctitle();
21545 /* The GNU C library defines this for functions which it implements
21546 to always fail with ENOSYS. Some functions are actually named
21547 something starting with __ and the normal name is an alias. */
21548 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21556 if { (eval echo configure:21557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21558 eval "ac_cv_func_setproctitle=yes"
21560 echo "configure: failed program was:" >&5
21561 cat conftest.$ac_ext >&5
21563 eval "ac_cv_func_setproctitle=no"
21568 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21569 echo "$ac_t""yes" 1>&6
21570 have_setproctitle=yes
21572 echo "$ac_t""no" 1>&6
21574 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21575 echo "configure:21576: checking for setproctitle in -lutil" >&5
21576 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21577 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21578 echo $ac_n "(cached) $ac_c" 1>&6
21580 ac_save_LIBS="$LIBS"
21581 LIBS="-lutil $LIBS"
21582 cat > conftest.$ac_ext <<EOF
21583 #line 21584 "configure"
21584 #include "confdefs.h"
21585 /* Override any gcc2 internal prototype to avoid an error. */
21586 /* We use char because int might match the return type of a gcc2
21587 builtin and then its argument prototype would still apply. */
21588 char setproctitle();
21594 if { (eval echo configure:21595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21596 eval "ac_cv_lib_$ac_lib_var=yes"
21598 echo "configure: failed program was:" >&5
21599 cat conftest.$ac_ext >&5
21601 eval "ac_cv_lib_$ac_lib_var=no"
21604 LIBS="$ac_save_LIBS"
21607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21608 echo "$ac_t""yes" 1>&6
21609 have_setproctitle=yes
21610 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21612 echo "$ac_t""no" 1>&6
21613 have_setproctitle=no
21614 LIBOBJS="$LIBOBJS setproctitle.o"
21615 LIBSRCS="$LIBSRCS setproctitle.c"
21621 if test $have_setproctitle = yes ; then
21622 cat >> confdefs.h <<\EOF
21623 #define HAVE_SETPROCTITLE 1
21629 if test $ol_enable_slp != no ; then
21630 for ac_hdr in slp.h
21632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21634 echo "configure:21635: checking for $ac_hdr" >&5
21635 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21636 echo $ac_n "(cached) $ac_c" 1>&6
21638 cat > conftest.$ac_ext <<EOF
21639 #line 21640 "configure"
21640 #include "confdefs.h"
21643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21644 { (eval echo configure:21645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21646 if test -z "$ac_err"; then
21648 eval "ac_cv_header_$ac_safe=yes"
21651 echo "configure: failed program was:" >&5
21652 cat conftest.$ac_ext >&5
21654 eval "ac_cv_header_$ac_safe=no"
21658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21659 echo "$ac_t""yes" 1>&6
21660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21661 cat >> confdefs.h <<EOF
21662 #define $ac_tr_hdr 1
21666 echo "$ac_t""no" 1>&6
21671 if test $ac_cv_header_slp_h = yes ; then
21672 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21673 echo "configure:21674: checking for SLPOpen in -lslp" >&5
21674 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21676 echo $ac_n "(cached) $ac_c" 1>&6
21678 ac_save_LIBS="$LIBS"
21680 cat > conftest.$ac_ext <<EOF
21681 #line 21682 "configure"
21682 #include "confdefs.h"
21683 /* Override any gcc2 internal prototype to avoid an error. */
21684 /* We use char because int might match the return type of a gcc2
21685 builtin and then its argument prototype would still apply. */
21692 if { (eval echo configure:21693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21694 eval "ac_cv_lib_$ac_lib_var=yes"
21696 echo "configure: failed program was:" >&5
21697 cat conftest.$ac_ext >&5
21699 eval "ac_cv_lib_$ac_lib_var=no"
21702 LIBS="$ac_save_LIBS"
21705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21706 echo "$ac_t""yes" 1>&6
21709 echo "$ac_t""no" 1>&6
21713 if test $have_slp = yes ; then
21714 cat >> confdefs.h <<\EOF
21718 SLAPD_SLP_LIBS=-lslp
21721 elif test $ol_enable_slp = yes ; then
21722 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21727 echo $ac_n "checking long long""... $ac_c" 1>&6
21728 echo "configure:21729: checking long long" >&5
21729 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21730 echo $ac_n "(cached) $ac_c" 1>&6
21733 cat > conftest.$ac_ext <<EOF
21734 #line 21735 "configure"
21735 #include "confdefs.h"
21741 if { (eval echo configure:21742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21743 ol_cv_type_long_long=yes
21745 echo "configure: failed program was:" >&5
21746 cat conftest.$ac_ext >&5
21748 ol_cv_type_long_long=no
21753 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21754 if test $ol_cv_type_long_long = yes; then
21755 cat >> confdefs.h <<\EOF
21756 #define HAVE_LONG_LONG 1
21761 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21762 echo "configure:21763: checking for ANSI C header files" >&5
21763 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21764 echo $ac_n "(cached) $ac_c" 1>&6
21766 cat > conftest.$ac_ext <<EOF
21767 #line 21768 "configure"
21768 #include "confdefs.h"
21769 #include <stdlib.h>
21770 #include <stdarg.h>
21771 #include <string.h>
21774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21775 { (eval echo configure:21776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21777 if test -z "$ac_err"; then
21779 ac_cv_header_stdc=yes
21782 echo "configure: failed program was:" >&5
21783 cat conftest.$ac_ext >&5
21785 ac_cv_header_stdc=no
21789 if test $ac_cv_header_stdc = yes; then
21790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21791 cat > conftest.$ac_ext <<EOF
21792 #line 21793 "configure"
21793 #include "confdefs.h"
21794 #include <string.h>
21796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21797 egrep "memchr" >/dev/null 2>&1; then
21801 ac_cv_header_stdc=no
21807 if test $ac_cv_header_stdc = yes; then
21808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21809 cat > conftest.$ac_ext <<EOF
21810 #line 21811 "configure"
21811 #include "confdefs.h"
21812 #include <stdlib.h>
21814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21815 egrep "free" >/dev/null 2>&1; then
21819 ac_cv_header_stdc=no
21825 if test $ac_cv_header_stdc = yes; then
21826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21827 if test "$cross_compiling" = yes; then
21830 cat > conftest.$ac_ext <<EOF
21831 #line 21832 "configure"
21832 #include "confdefs.h"
21834 #if ((' ' & 0x0FF) == 0x020)
21835 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21836 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21838 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21839 || ('j' <= (c) && (c) <= 'r') \
21840 || ('s' <= (c) && (c) <= 'z'))
21841 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21844 int main () { int i; for (i = 0; i < 256; i++)
21845 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21849 if { (eval echo configure:21850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21853 echo "configure: failed program was:" >&5
21854 cat conftest.$ac_ext >&5
21856 ac_cv_header_stdc=no
21864 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21865 if test $ac_cv_header_stdc = yes; then
21866 cat >> confdefs.h <<\EOF
21867 #define STDC_HEADERS 1
21872 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21873 echo "configure:21874: checking for mode_t" >&5
21874 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21875 echo $ac_n "(cached) $ac_c" 1>&6
21877 cat > conftest.$ac_ext <<EOF
21878 #line 21879 "configure"
21879 #include "confdefs.h"
21880 #include <sys/types.h>
21882 #include <stdlib.h>
21883 #include <stddef.h>
21887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21888 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21890 eval "ac_cv_type_mode_t=yes"
21893 eval "ac_cv_type_mode_t=no"
21898 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21899 echo "$ac_t""yes" 1>&6
21901 echo "$ac_t""no" 1>&6
21902 cat >> confdefs.h <<EOF
21908 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21909 echo "configure:21910: checking for off_t" >&5
21910 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21911 echo $ac_n "(cached) $ac_c" 1>&6
21913 cat > conftest.$ac_ext <<EOF
21914 #line 21915 "configure"
21915 #include "confdefs.h"
21916 #include <sys/types.h>
21918 #include <stdlib.h>
21919 #include <stddef.h>
21923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21924 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21926 eval "ac_cv_type_off_t=yes"
21929 eval "ac_cv_type_off_t=no"
21934 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21935 echo "$ac_t""yes" 1>&6
21937 echo "$ac_t""no" 1>&6
21938 cat >> confdefs.h <<EOF
21944 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21945 echo "configure:21946: checking for pid_t" >&5
21946 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21947 echo $ac_n "(cached) $ac_c" 1>&6
21949 cat > conftest.$ac_ext <<EOF
21950 #line 21951 "configure"
21951 #include "confdefs.h"
21952 #include <sys/types.h>
21954 #include <stdlib.h>
21955 #include <stddef.h>
21959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21960 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21962 eval "ac_cv_type_pid_t=yes"
21965 eval "ac_cv_type_pid_t=no"
21970 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21971 echo "$ac_t""yes" 1>&6
21973 echo "$ac_t""no" 1>&6
21974 cat >> confdefs.h <<EOF
21980 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21981 echo "configure:21982: checking for ptrdiff_t" >&5
21982 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21983 echo $ac_n "(cached) $ac_c" 1>&6
21985 cat > conftest.$ac_ext <<EOF
21986 #line 21987 "configure"
21987 #include "confdefs.h"
21988 #include <stddef.h>
21993 if { (eval echo configure:21994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21995 am_cv_type_ptrdiff_t=yes
21997 echo "configure: failed program was:" >&5
21998 cat conftest.$ac_ext >&5
22000 am_cv_type_ptrdiff_t=no
22005 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
22006 if test $am_cv_type_ptrdiff_t = yes; then
22007 cat >> confdefs.h <<\EOF
22008 #define HAVE_PTRDIFF_T 1
22013 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
22014 echo "configure:22015: checking return type of signal handlers" >&5
22015 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
22016 echo $ac_n "(cached) $ac_c" 1>&6
22018 cat > conftest.$ac_ext <<EOF
22019 #line 22020 "configure"
22020 #include "confdefs.h"
22021 #include <sys/types.h>
22022 #include <signal.h>
22027 extern "C" void (*signal (int, void (*)(int)))(int);
22029 void (*signal ()) ();
22036 if { (eval echo configure:22037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22038 ac_cv_type_signal=void
22040 echo "configure: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22043 ac_cv_type_signal=int
22048 echo "$ac_t""$ac_cv_type_signal" 1>&6
22049 cat >> confdefs.h <<EOF
22050 #define RETSIGTYPE $ac_cv_type_signal
22054 echo $ac_n "checking for size_t""... $ac_c" 1>&6
22055 echo "configure:22056: checking for size_t" >&5
22056 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
22057 echo $ac_n "(cached) $ac_c" 1>&6
22059 cat > conftest.$ac_ext <<EOF
22060 #line 22061 "configure"
22061 #include "confdefs.h"
22062 #include <sys/types.h>
22064 #include <stdlib.h>
22065 #include <stddef.h>
22069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22070 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22072 eval "ac_cv_type_size_t=yes"
22075 eval "ac_cv_type_size_t=no"
22080 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
22081 echo "$ac_t""yes" 1>&6
22083 echo "$ac_t""no" 1>&6
22084 cat >> confdefs.h <<EOF
22085 #define size_t unsigned
22091 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
22092 echo "configure:22093: checking for ssize_t" >&5
22093 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
22094 echo $ac_n "(cached) $ac_c" 1>&6
22096 cat > conftest.$ac_ext <<EOF
22097 #line 22098 "configure"
22098 #include "confdefs.h"
22099 #include <sys/types.h>
22101 #include <stdlib.h>
22102 #include <stddef.h>
22106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22107 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22109 eval "ac_cv_type_ssize_t=yes"
22112 eval "ac_cv_type_ssize_t=no"
22117 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
22118 echo "$ac_t""yes" 1>&6
22120 echo "$ac_t""no" 1>&6
22121 cat >> confdefs.h <<EOF
22122 #define ssize_t signed int
22127 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
22128 echo "configure:22129: checking for caddr_t" >&5
22129 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
22130 echo $ac_n "(cached) $ac_c" 1>&6
22132 cat > conftest.$ac_ext <<EOF
22133 #line 22134 "configure"
22134 #include "confdefs.h"
22135 #include <sys/types.h>
22137 #include <stdlib.h>
22138 #include <stddef.h>
22142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22143 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22145 eval "ac_cv_type_caddr_t=yes"
22148 eval "ac_cv_type_caddr_t=no"
22153 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
22154 echo "$ac_t""yes" 1>&6
22156 echo "$ac_t""no" 1>&6
22157 cat >> confdefs.h <<EOF
22158 #define caddr_t char *
22164 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
22165 echo "configure:22166: checking for socklen_t" >&5
22166 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
22167 echo $ac_n "(cached) $ac_c" 1>&6
22169 cat > conftest.$ac_ext <<EOF
22170 #line 22171 "configure"
22171 #include "confdefs.h"
22173 #ifdef HAVE_SYS_TYPES_H
22174 #include <sys/types.h>
22176 #ifdef HAVE_SYS_SOCKET_H
22177 #include <sys/socket.h>
22184 if { (eval echo configure:22185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22186 ol_cv_type_socklen_t=yes
22188 echo "configure: failed program was:" >&5
22189 cat conftest.$ac_ext >&5
22191 ol_cv_type_socklen_t=no
22196 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
22197 if test $ol_cv_type_socklen_t = no; then
22198 cat >> confdefs.h <<\EOF
22199 #define socklen_t int
22204 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22205 echo "configure:22206: checking for member st_blksize in aggregate type struct stat" >&5
22206 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22207 echo $ac_n "(cached) $ac_c" 1>&6
22209 cat > conftest.$ac_ext <<EOF
22210 #line 22211 "configure"
22211 #include "confdefs.h"
22212 #include <sys/types.h>
22213 #include <sys/stat.h>
22215 struct stat foo; foo.st_blksize;
22218 if { (eval echo configure:22219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22220 ac_cv_c_struct_member_st_blksize=yes
22222 echo "configure: failed program was:" >&5
22223 cat conftest.$ac_ext >&5
22225 ac_cv_c_struct_member_st_blksize=no
22230 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22231 st_blksize="$ac_cv_c_struct_member_st_blksize"
22232 if test $ac_cv_c_struct_member_st_blksize = yes; then
22233 cat >> confdefs.h <<\EOF
22234 #define HAVE_ST_BLKSIZE 1
22239 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22240 echo "configure:22241: checking whether time.h and sys/time.h may both be included" >&5
22241 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22242 echo $ac_n "(cached) $ac_c" 1>&6
22244 cat > conftest.$ac_ext <<EOF
22245 #line 22246 "configure"
22246 #include "confdefs.h"
22247 #include <sys/types.h>
22248 #include <sys/time.h>
22254 if { (eval echo configure:22255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22256 ac_cv_header_time=yes
22258 echo "configure: failed program was:" >&5
22259 cat conftest.$ac_ext >&5
22261 ac_cv_header_time=no
22266 echo "$ac_t""$ac_cv_header_time" 1>&6
22267 if test $ac_cv_header_time = yes; then
22268 cat >> confdefs.h <<\EOF
22269 #define TIME_WITH_SYS_TIME 1
22274 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22275 echo "configure:22276: checking whether struct tm is in sys/time.h or time.h" >&5
22276 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22277 echo $ac_n "(cached) $ac_c" 1>&6
22279 cat > conftest.$ac_ext <<EOF
22280 #line 22281 "configure"
22281 #include "confdefs.h"
22282 #include <sys/types.h>
22285 struct tm *tp; tp->tm_sec;
22288 if { (eval echo configure:22289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22290 ac_cv_struct_tm=time.h
22292 echo "configure: failed program was:" >&5
22293 cat conftest.$ac_ext >&5
22295 ac_cv_struct_tm=sys/time.h
22300 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22301 if test $ac_cv_struct_tm = sys/time.h; then
22302 cat >> confdefs.h <<\EOF
22303 #define TM_IN_SYS_TIME 1
22308 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22309 echo "configure:22310: checking for uid_t in sys/types.h" >&5
22310 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22311 echo $ac_n "(cached) $ac_c" 1>&6
22313 cat > conftest.$ac_ext <<EOF
22314 #line 22315 "configure"
22315 #include "confdefs.h"
22316 #include <sys/types.h>
22318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22319 egrep "uid_t" >/dev/null 2>&1; then
22321 ac_cv_type_uid_t=yes
22324 ac_cv_type_uid_t=no
22330 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22331 if test $ac_cv_type_uid_t = no; then
22332 cat >> confdefs.h <<\EOF
22336 cat >> confdefs.h <<\EOF
22342 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22343 echo "configure:22344: checking for sig_atomic_t" >&5
22344 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22345 echo $ac_n "(cached) $ac_c" 1>&6
22347 cat > conftest.$ac_ext <<EOF
22348 #line 22349 "configure"
22349 #include "confdefs.h"
22350 #include <signal.h>
22352 sig_atomic_t atomic;
22355 if { (eval echo configure:22356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22357 ol_cv_type_sig_atomic_t=yes
22359 echo "configure: failed program was:" >&5
22360 cat conftest.$ac_ext >&5
22362 ol_cv_type_sig_atomic_t=no
22367 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22368 if test $ol_cv_type_sig_atomic_t = no; then
22369 cat >> confdefs.h <<\EOF
22370 #define sig_atomic_t int
22377 # test for pw_gecos in struct passwd
22378 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22379 echo "configure:22380: checking struct passwd for pw_gecos" >&5
22380 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22381 echo $ac_n "(cached) $ac_c" 1>&6
22384 cat > conftest.$ac_ext <<EOF
22385 #line 22386 "configure"
22386 #include "confdefs.h"
22391 pwd.pw_gecos = pwd.pw_name;
22395 if { (eval echo configure:22396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22397 ol_cv_struct_passwd_pw_gecos=yes
22399 echo "configure: failed program was:" >&5
22400 cat conftest.$ac_ext >&5
22402 ol_cv_struct_passwd_pw_gecos=no
22407 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22408 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22409 cat >> confdefs.h <<\EOF
22410 #define HAVE_PW_GECOS 1
22415 # test for pw_passwd in struct passwd
22416 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22417 echo "configure:22418: checking struct passwd for pw_passwd" >&5
22418 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22419 echo $ac_n "(cached) $ac_c" 1>&6
22422 cat > conftest.$ac_ext <<EOF
22423 #line 22424 "configure"
22424 #include "confdefs.h"
22429 pwd.pw_passwd = pwd.pw_name;
22433 if { (eval echo configure:22434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22435 ol_cv_struct_passwd_pw_passwd=yes
22437 echo "configure: failed program was:" >&5
22438 cat conftest.$ac_ext >&5
22440 ol_cv_struct_passwd_pw_passwd=no
22445 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22446 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22447 cat >> confdefs.h <<\EOF
22448 #define HAVE_PW_PASSWD 1
22454 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22455 echo "configure:22456: checking if toupper() requires islower()" >&5
22456 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22457 echo $ac_n "(cached) $ac_c" 1>&6
22460 if test "$cross_compiling" = yes; then
22461 ol_cv_c_upper_lower=safe
22463 cat > conftest.$ac_ext <<EOF
22464 #line 22465 "configure"
22465 #include "confdefs.h"
22470 if ('C' == toupper('C'))
22476 if { (eval echo configure:22477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22478 ol_cv_c_upper_lower=no
22480 echo "configure: failed program was:" >&5
22481 cat conftest.$ac_ext >&5
22483 ol_cv_c_upper_lower=yes
22490 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22491 if test $ol_cv_c_upper_lower != no ; then
22492 cat >> confdefs.h <<\EOF
22493 #define C_UPPER_LOWER 1
22498 echo $ac_n "checking for working const""... $ac_c" 1>&6
22499 echo "configure:22500: checking for working const" >&5
22500 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22501 echo $ac_n "(cached) $ac_c" 1>&6
22503 cat > conftest.$ac_ext <<EOF
22504 #line 22505 "configure"
22505 #include "confdefs.h"
22509 /* Ultrix mips cc rejects this. */
22510 typedef int charset[2]; const charset x;
22511 /* SunOS 4.1.1 cc rejects this. */
22512 char const *const *ccp;
22514 /* NEC SVR4.0.2 mips cc rejects this. */
22515 struct point {int x, y;};
22516 static struct point const zero = {0,0};
22517 /* AIX XL C 1.02.0.0 rejects this.
22518 It does not let you subtract one const X* pointer from another in an arm
22519 of an if-expression whose if-part is not a constant expression */
22520 const char *g = "string";
22521 ccp = &g + (g ? g-g : 0);
22522 /* HPUX 7.0 cc rejects these. */
22525 ccp = (char const *const *) p;
22526 { /* SCO 3.2v4 cc rejects this. */
22528 char const *s = 0 ? (char *) 0 : (char const *) 0;
22532 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22533 int x[] = {25, 17};
22534 const int *foo = &x[0];
22537 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22538 typedef const int *iptr;
22542 { /* AIX XL C 1.02.0.0 rejects this saying
22543 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22544 struct s { int j; const int *ap[3]; };
22545 struct s *b; b->j = 5;
22547 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22548 const int foo = 10;
22553 if { (eval echo configure:22554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22557 echo "configure: failed program was:" >&5
22558 cat conftest.$ac_ext >&5
22565 echo "$ac_t""$ac_cv_c_const" 1>&6
22566 if test $ac_cv_c_const = no; then
22567 cat >> confdefs.h <<\EOF
22573 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22574 echo "configure:22575: checking if compiler understands volatile" >&5
22575 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22576 echo $ac_n "(cached) $ac_c" 1>&6
22578 cat > conftest.$ac_ext <<EOF
22579 #line 22580 "configure"
22580 #include "confdefs.h"
22583 volatile int a; int * volatile b = x ? &y : &z;
22584 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22588 if { (eval echo configure:22589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22590 ol_cv_c_volatile=yes
22592 echo "configure: failed program was:" >&5
22593 cat conftest.$ac_ext >&5
22595 ol_cv_c_volatile=no
22600 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22601 if test $ol_cv_c_volatile = yes; then
22604 cat >> confdefs.h <<\EOF
22611 if test $cross_compiling = yes ; then
22612 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22613 cat >> confdefs.h <<\EOF
22614 #define CROSS_COMPILING 1
22618 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22619 echo "configure:22620: checking whether byte ordering is bigendian" >&5
22620 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22621 echo $ac_n "(cached) $ac_c" 1>&6
22623 ac_cv_c_bigendian=unknown
22624 # See if sys/param.h defines the BYTE_ORDER macro.
22625 cat > conftest.$ac_ext <<EOF
22626 #line 22627 "configure"
22627 #include "confdefs.h"
22628 #include <sys/types.h>
22629 #include <sys/param.h>
22632 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22633 bogus endian macros
22637 if { (eval echo configure:22638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22639 # It does; now see whether it defined to BIG_ENDIAN or not.
22640 cat > conftest.$ac_ext <<EOF
22641 #line 22642 "configure"
22642 #include "confdefs.h"
22643 #include <sys/types.h>
22644 #include <sys/param.h>
22647 #if BYTE_ORDER != BIG_ENDIAN
22652 if { (eval echo configure:22653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22654 ac_cv_c_bigendian=yes
22656 echo "configure: failed program was:" >&5
22657 cat conftest.$ac_ext >&5
22659 ac_cv_c_bigendian=no
22663 echo "configure: failed program was:" >&5
22664 cat conftest.$ac_ext >&5
22667 if test $ac_cv_c_bigendian = unknown; then
22668 if test "$cross_compiling" = yes; then
22669 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22671 cat > conftest.$ac_ext <<EOF
22672 #line 22673 "configure"
22673 #include "confdefs.h"
22675 /* Are we little or big endian? From Harbison&Steele. */
22679 char c[sizeof (long)];
22682 exit (u.c[sizeof (long) - 1] == 1);
22685 if { (eval echo configure:22686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22687 ac_cv_c_bigendian=no
22689 echo "configure: failed program was:" >&5
22690 cat conftest.$ac_ext >&5
22692 ac_cv_c_bigendian=yes
22700 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22701 if test $ac_cv_c_bigendian = yes; then
22702 cat >> confdefs.h <<\EOF
22703 #define WORDS_BIGENDIAN 1
22710 echo $ac_n "checking size of short""... $ac_c" 1>&6
22711 echo "configure:22712: checking size of short" >&5
22712 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22713 echo $ac_n "(cached) $ac_c" 1>&6
22715 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22716 cat > conftest.$ac_ext <<EOF
22717 #line 22718 "configure"
22718 #include "confdefs.h"
22719 #include "confdefs.h"
22720 #include <stdlib.h>
22721 #include <sys/types.h>
22725 switch (0) case 0: case (sizeof (short) == $ac_size):;
22728 if { (eval echo configure:22729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22730 ac_cv_sizeof_short=$ac_size
22732 echo "configure: failed program was:" >&5
22733 cat conftest.$ac_ext >&5
22736 if test x$ac_cv_sizeof_short != x ; then break; fi
22741 if test x$ac_cv_sizeof_short = x ; then
22742 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22744 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22745 cat >> confdefs.h <<EOF
22746 #define SIZEOF_SHORT $ac_cv_sizeof_short
22750 echo $ac_n "checking size of int""... $ac_c" 1>&6
22751 echo "configure:22752: checking size of int" >&5
22752 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22753 echo $ac_n "(cached) $ac_c" 1>&6
22755 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22756 cat > conftest.$ac_ext <<EOF
22757 #line 22758 "configure"
22758 #include "confdefs.h"
22759 #include "confdefs.h"
22760 #include <stdlib.h>
22761 #include <sys/types.h>
22765 switch (0) case 0: case (sizeof (int) == $ac_size):;
22768 if { (eval echo configure:22769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22770 ac_cv_sizeof_int=$ac_size
22772 echo "configure: failed program was:" >&5
22773 cat conftest.$ac_ext >&5
22776 if test x$ac_cv_sizeof_int != x ; then break; fi
22781 if test x$ac_cv_sizeof_int = x ; then
22782 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22784 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22785 cat >> confdefs.h <<EOF
22786 #define SIZEOF_INT $ac_cv_sizeof_int
22790 echo $ac_n "checking size of long""... $ac_c" 1>&6
22791 echo "configure:22792: checking size of long" >&5
22792 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22793 echo $ac_n "(cached) $ac_c" 1>&6
22795 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22796 cat > conftest.$ac_ext <<EOF
22797 #line 22798 "configure"
22798 #include "confdefs.h"
22799 #include "confdefs.h"
22800 #include <stdlib.h>
22801 #include <sys/types.h>
22805 switch (0) case 0: case (sizeof (long) == $ac_size):;
22808 if { (eval echo configure:22809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22810 ac_cv_sizeof_long=$ac_size
22812 echo "configure: failed program was:" >&5
22813 cat conftest.$ac_ext >&5
22816 if test x$ac_cv_sizeof_long != x ; then break; fi
22821 if test x$ac_cv_sizeof_long = x ; then
22822 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22824 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22825 cat >> confdefs.h <<EOF
22826 #define SIZEOF_LONG $ac_cv_sizeof_long
22830 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22831 echo "configure:22832: checking size of wchar_t" >&5
22832 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22833 echo $ac_n "(cached) $ac_c" 1>&6
22835 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22836 cat > conftest.$ac_ext <<EOF
22837 #line 22838 "configure"
22838 #include "confdefs.h"
22839 #include "confdefs.h"
22840 #include <stdlib.h>
22841 #include <sys/types.h>
22845 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22848 if { (eval echo configure:22849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22850 ac_cv_sizeof_wchar_t=$ac_size
22852 echo "configure: failed program was:" >&5
22853 cat conftest.$ac_ext >&5
22856 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22861 if test x$ac_cv_sizeof_wchar_t = x ; then
22862 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22864 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22865 cat >> confdefs.h <<EOF
22866 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22871 if test "$ac_cv_sizeof_int" -lt 4 ; then
22872 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22874 cat >> confdefs.h <<\EOF
22875 #define LBER_INT_T long
22879 cat >> confdefs.h <<\EOF
22880 #define LBER_INT_T int
22885 cat >> confdefs.h <<\EOF
22886 #define LBER_LEN_T long
22889 cat >> confdefs.h <<\EOF
22890 #define LBER_SOCKET_T int
22893 cat >> confdefs.h <<\EOF
22894 #define LBER_TAG_T long
22898 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22899 echo "configure:22900: checking for 8-bit clean memcmp" >&5
22900 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22901 echo $ac_n "(cached) $ac_c" 1>&6
22903 if test "$cross_compiling" = yes; then
22904 ac_cv_func_memcmp_clean=no
22906 cat > conftest.$ac_ext <<EOF
22907 #line 22908 "configure"
22908 #include "confdefs.h"
22912 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22913 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22917 if { (eval echo configure:22918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22919 ac_cv_func_memcmp_clean=yes
22921 echo "configure: failed program was:" >&5
22922 cat conftest.$ac_ext >&5
22924 ac_cv_func_memcmp_clean=no
22931 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22932 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22934 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22935 echo "configure:22936: checking for strftime" >&5
22936 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22937 echo $ac_n "(cached) $ac_c" 1>&6
22939 cat > conftest.$ac_ext <<EOF
22940 #line 22941 "configure"
22941 #include "confdefs.h"
22942 /* System header to define __stub macros and hopefully few prototypes,
22943 which can conflict with char strftime(); below. */
22944 #include <assert.h>
22945 /* Override any gcc2 internal prototype to avoid an error. */
22946 /* We use char because int might match the return type of a gcc2
22947 builtin and then its argument prototype would still apply. */
22953 /* The GNU C library defines this for functions which it implements
22954 to always fail with ENOSYS. Some functions are actually named
22955 something starting with __ and the normal name is an alias. */
22956 #if defined (__stub_strftime) || defined (__stub___strftime)
22964 if { (eval echo configure:22965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22966 eval "ac_cv_func_strftime=yes"
22968 echo "configure: failed program was:" >&5
22969 cat conftest.$ac_ext >&5
22971 eval "ac_cv_func_strftime=no"
22976 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22977 echo "$ac_t""yes" 1>&6
22978 cat >> confdefs.h <<\EOF
22979 #define HAVE_STRFTIME 1
22983 echo "$ac_t""no" 1>&6
22984 # strftime is in -lintl on SCO UNIX.
22985 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22986 echo "configure:22987: checking for strftime in -lintl" >&5
22987 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22989 echo $ac_n "(cached) $ac_c" 1>&6
22991 ac_save_LIBS="$LIBS"
22992 LIBS="-lintl $LIBS"
22993 cat > conftest.$ac_ext <<EOF
22994 #line 22995 "configure"
22995 #include "confdefs.h"
22996 /* Override any gcc2 internal prototype to avoid an error. */
22997 /* We use char because int might match the return type of a gcc2
22998 builtin and then its argument prototype would still apply. */
23005 if { (eval echo configure:23006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23007 eval "ac_cv_lib_$ac_lib_var=yes"
23009 echo "configure: failed program was:" >&5
23010 cat conftest.$ac_ext >&5
23012 eval "ac_cv_lib_$ac_lib_var=no"
23015 LIBS="$ac_save_LIBS"
23018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23019 echo "$ac_t""yes" 1>&6
23020 cat >> confdefs.h <<\EOF
23021 #define HAVE_STRFTIME 1
23024 LIBS="-lintl $LIBS"
23026 echo "$ac_t""no" 1>&6
23032 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
23033 echo "configure:23034: checking for inet_aton()" >&5
23034 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
23035 echo $ac_n "(cached) $ac_c" 1>&6
23037 cat > conftest.$ac_ext <<EOF
23038 #line 23039 "configure"
23039 #include "confdefs.h"
23041 #ifdef HAVE_SYS_TYPES_H
23042 # include <sys/types.h>
23044 #ifdef HAVE_SYS_SOCKET_H
23045 # include <sys/socket.h>
23046 # ifdef HAVE_SYS_SELECT_H
23047 # include <sys/select.h>
23049 # include <netinet/in.h>
23050 # ifdef HAVE_ARPA_INET_H
23051 # include <arpa/inet.h>
23057 int rc = inet_aton( "255.255.255.255", &in );
23060 if { (eval echo configure:23061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23062 ol_cv_func_inet_aton=yes
23064 echo "configure: failed program was:" >&5
23065 cat conftest.$ac_ext >&5
23067 ol_cv_func_inet_aton=no
23072 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
23073 if test $ol_cv_func_inet_aton != no; then
23074 cat >> confdefs.h <<\EOF
23075 #define HAVE_INET_ATON 1
23081 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
23082 echo "configure:23083: checking for _spawnlp" >&5
23083 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
23084 echo $ac_n "(cached) $ac_c" 1>&6
23086 cat > conftest.$ac_ext <<EOF
23087 #line 23088 "configure"
23088 #include "confdefs.h"
23089 /* System header to define __stub macros and hopefully few prototypes,
23090 which can conflict with char _spawnlp(); below. */
23091 #include <assert.h>
23092 /* Override any gcc2 internal prototype to avoid an error. */
23093 /* We use char because int might match the return type of a gcc2
23094 builtin and then its argument prototype would still apply. */
23100 /* The GNU C library defines this for functions which it implements
23101 to always fail with ENOSYS. Some functions are actually named
23102 something starting with __ and the normal name is an alias. */
23103 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
23111 if { (eval echo configure:23112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23113 eval "ac_cv_func__spawnlp=yes"
23115 echo "configure: failed program was:" >&5
23116 cat conftest.$ac_ext >&5
23118 eval "ac_cv_func__spawnlp=no"
23123 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
23124 echo "$ac_t""yes" 1>&6
23125 cat >> confdefs.h <<\EOF
23126 #define HAVE_SPAWNLP 1
23130 echo "$ac_t""no" 1>&6
23134 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
23135 echo "configure:23136: checking for _snprintf" >&5
23136 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
23137 echo $ac_n "(cached) $ac_c" 1>&6
23139 cat > conftest.$ac_ext <<EOF
23140 #line 23141 "configure"
23141 #include "confdefs.h"
23142 /* System header to define __stub macros and hopefully few prototypes,
23143 which can conflict with char _snprintf(); below. */
23144 #include <assert.h>
23145 /* Override any gcc2 internal prototype to avoid an error. */
23146 /* We use char because int might match the return type of a gcc2
23147 builtin and then its argument prototype would still apply. */
23153 /* The GNU C library defines this for functions which it implements
23154 to always fail with ENOSYS. Some functions are actually named
23155 something starting with __ and the normal name is an alias. */
23156 #if defined (__stub__snprintf) || defined (__stub____snprintf)
23164 if { (eval echo configure:23165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23166 eval "ac_cv_func__snprintf=yes"
23168 echo "configure: failed program was:" >&5
23169 cat conftest.$ac_ext >&5
23171 eval "ac_cv_func__snprintf=no"
23176 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
23177 echo "$ac_t""yes" 1>&6
23178 ac_cv_func_snprintf=yes
23179 cat >> confdefs.h <<\EOF
23180 #define snprintf _snprintf
23185 echo "$ac_t""no" 1>&6
23189 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
23190 echo "configure:23191: checking for _vsnprintf" >&5
23191 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
23192 echo $ac_n "(cached) $ac_c" 1>&6
23194 cat > conftest.$ac_ext <<EOF
23195 #line 23196 "configure"
23196 #include "confdefs.h"
23197 /* System header to define __stub macros and hopefully few prototypes,
23198 which can conflict with char _vsnprintf(); below. */
23199 #include <assert.h>
23200 /* Override any gcc2 internal prototype to avoid an error. */
23201 /* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23208 /* The GNU C library defines this for functions which it implements
23209 to always fail with ENOSYS. Some functions are actually named
23210 something starting with __ and the normal name is an alias. */
23211 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
23219 if { (eval echo configure:23220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23221 eval "ac_cv_func__vsnprintf=yes"
23223 echo "configure: failed program was:" >&5
23224 cat conftest.$ac_ext >&5
23226 eval "ac_cv_func__vsnprintf=no"
23231 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
23232 echo "$ac_t""yes" 1>&6
23233 ac_cv_func_vsnprintf=yes
23234 cat >> confdefs.h <<\EOF
23235 #define vsnprintf _vsnprintf
23240 echo "$ac_t""no" 1>&6
23244 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23245 echo "configure:23246: checking for vprintf" >&5
23246 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23247 echo $ac_n "(cached) $ac_c" 1>&6
23249 cat > conftest.$ac_ext <<EOF
23250 #line 23251 "configure"
23251 #include "confdefs.h"
23252 /* System header to define __stub macros and hopefully few prototypes,
23253 which can conflict with char vprintf(); below. */
23254 #include <assert.h>
23255 /* Override any gcc2 internal prototype to avoid an error. */
23256 /* We use char because int might match the return type of a gcc2
23257 builtin and then its argument prototype would still apply. */
23263 /* The GNU C library defines this for functions which it implements
23264 to always fail with ENOSYS. Some functions are actually named
23265 something starting with __ and the normal name is an alias. */
23266 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23274 if { (eval echo configure:23275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23276 eval "ac_cv_func_vprintf=yes"
23278 echo "configure: failed program was:" >&5
23279 cat conftest.$ac_ext >&5
23281 eval "ac_cv_func_vprintf=no"
23286 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23287 echo "$ac_t""yes" 1>&6
23288 cat >> confdefs.h <<\EOF
23289 #define HAVE_VPRINTF 1
23293 echo "$ac_t""no" 1>&6
23296 if test "$ac_cv_func_vprintf" != yes; then
23297 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23298 echo "configure:23299: checking for _doprnt" >&5
23299 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23300 echo $ac_n "(cached) $ac_c" 1>&6
23302 cat > conftest.$ac_ext <<EOF
23303 #line 23304 "configure"
23304 #include "confdefs.h"
23305 /* System header to define __stub macros and hopefully few prototypes,
23306 which can conflict with char _doprnt(); below. */
23307 #include <assert.h>
23308 /* Override any gcc2 internal prototype to avoid an error. */
23309 /* We use char because int might match the return type of a gcc2
23310 builtin and then its argument prototype would still apply. */
23316 /* The GNU C library defines this for functions which it implements
23317 to always fail with ENOSYS. Some functions are actually named
23318 something starting with __ and the normal name is an alias. */
23319 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23327 if { (eval echo configure:23328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23329 eval "ac_cv_func__doprnt=yes"
23331 echo "configure: failed program was:" >&5
23332 cat conftest.$ac_ext >&5
23334 eval "ac_cv_func__doprnt=no"
23339 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23340 echo "$ac_t""yes" 1>&6
23341 cat >> confdefs.h <<\EOF
23342 #define HAVE_DOPRNT 1
23346 echo "$ac_t""no" 1>&6
23352 if test $ac_cv_func_vprintf = yes ; then
23353 for ac_func in snprintf vsnprintf
23355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23356 echo "configure:23357: checking for $ac_func" >&5
23357 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23358 echo $ac_n "(cached) $ac_c" 1>&6
23360 cat > conftest.$ac_ext <<EOF
23361 #line 23362 "configure"
23362 #include "confdefs.h"
23363 /* System header to define __stub macros and hopefully few prototypes,
23364 which can conflict with char $ac_func(); below. */
23365 #include <assert.h>
23366 /* Override any gcc2 internal prototype to avoid an error. */
23367 /* We use char because int might match the return type of a gcc2
23368 builtin and then its argument prototype would still apply. */
23374 /* The GNU C library defines this for functions which it implements
23375 to always fail with ENOSYS. Some functions are actually named
23376 something starting with __ and the normal name is an alias. */
23377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23385 if { (eval echo configure:23386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23387 eval "ac_cv_func_$ac_func=yes"
23389 echo "configure: failed program was:" >&5
23390 cat conftest.$ac_ext >&5
23392 eval "ac_cv_func_$ac_func=no"
23397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23398 echo "$ac_t""yes" 1>&6
23399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23400 cat >> confdefs.h <<EOF
23401 #define $ac_tr_func 1
23405 echo "$ac_t""no" 1>&6
23470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23471 echo "configure:23472: checking for $ac_func" >&5
23472 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23473 echo $ac_n "(cached) $ac_c" 1>&6
23475 cat > conftest.$ac_ext <<EOF
23476 #line 23477 "configure"
23477 #include "confdefs.h"
23478 /* System header to define __stub macros and hopefully few prototypes,
23479 which can conflict with char $ac_func(); below. */
23480 #include <assert.h>
23481 /* Override any gcc2 internal prototype to avoid an error. */
23482 /* We use char because int might match the return type of a gcc2
23483 builtin and then its argument prototype would still apply. */
23489 /* The GNU C library defines this for functions which it implements
23490 to always fail with ENOSYS. Some functions are actually named
23491 something starting with __ and the normal name is an alias. */
23492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23500 if { (eval echo configure:23501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23502 eval "ac_cv_func_$ac_func=yes"
23504 echo "configure: failed program was:" >&5
23505 cat conftest.$ac_ext >&5
23507 eval "ac_cv_func_$ac_func=no"
23512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23513 echo "$ac_t""yes" 1>&6
23514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23515 cat >> confdefs.h <<EOF
23516 #define $ac_tr_func 1
23520 echo "$ac_t""no" 1>&6
23525 for ac_func in getopt getpeereid
23527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23528 echo "configure:23529: checking for $ac_func" >&5
23529 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23530 echo $ac_n "(cached) $ac_c" 1>&6
23532 cat > conftest.$ac_ext <<EOF
23533 #line 23534 "configure"
23534 #include "confdefs.h"
23535 /* System header to define __stub macros and hopefully few prototypes,
23536 which can conflict with char $ac_func(); below. */
23537 #include <assert.h>
23538 /* Override any gcc2 internal prototype to avoid an error. */
23539 /* We use char because int might match the return type of a gcc2
23540 builtin and then its argument prototype would still apply. */
23546 /* The GNU C library defines this for functions which it implements
23547 to always fail with ENOSYS. Some functions are actually named
23548 something starting with __ and the normal name is an alias. */
23549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23557 if { (eval echo configure:23558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23559 eval "ac_cv_func_$ac_func=yes"
23561 echo "configure: failed program was:" >&5
23562 cat conftest.$ac_ext >&5
23564 eval "ac_cv_func_$ac_func=no"
23569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23570 echo "$ac_t""yes" 1>&6
23571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23572 cat >> confdefs.h <<EOF
23573 #define $ac_tr_func 1
23577 echo "$ac_t""no" 1>&6
23578 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23584 if test "$ac_cv_func_getopt" != yes; then
23585 LIBSRCS="$LIBSRCS getopt.c"
23587 if test "$ac_cv_func_getpeereid" != yes; then
23588 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23589 echo "configure:23590: checking for msg_accrights in msghdr" >&5
23590 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23591 echo $ac_n "(cached) $ac_c" 1>&6
23593 cat > conftest.$ac_ext <<EOF
23594 #line 23595 "configure"
23595 #include "confdefs.h"
23596 #include <sys/socket.h>
23598 struct msghdr m; m.msg_accrightslen=0
23601 if { (eval echo configure:23602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23603 ol_cv_msghdr_msg_accrights=yes
23605 echo "configure: failed program was:" >&5
23606 cat conftest.$ac_ext >&5
23608 ol_cv_msghdr_msg_accrights=no
23614 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23615 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23616 cat >> confdefs.h <<\EOF
23617 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23622 LIBSRCS="$LIBSRCS getpeereid.c"
23624 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23625 if test "$ac_cv_func_snprintf" != yes; then
23626 cat >> confdefs.h <<\EOF
23627 #define snprintf ber_pvt_snprintf
23631 if test "$ac_cv_func_vsnprintf" != yes; then
23632 cat >> confdefs.h <<\EOF
23633 #define vsnprintf ber_pvt_vsnprintf
23639 # Check Configuration
23640 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23641 echo "configure:23642: checking declaration of sys_errlist" >&5
23642 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23643 echo $ac_n "(cached) $ac_c" 1>&6
23646 cat > conftest.$ac_ext <<EOF
23647 #line 23648 "configure"
23648 #include "confdefs.h"
23651 #include <sys/types.h>
23654 #include <stdlib.h>
23657 char *c = (char *) *sys_errlist
23660 if { (eval echo configure:23661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23662 ol_cv_dcl_sys_errlist=yes
23663 ol_cv_have_sys_errlist=yes
23665 echo "configure: failed program was:" >&5
23666 cat conftest.$ac_ext >&5
23668 ol_cv_dcl_sys_errlist=no
23673 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23675 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23676 if test $ol_cv_dcl_sys_errlist = no ; then
23677 cat >> confdefs.h <<\EOF
23678 #define DECL_SYS_ERRLIST 1
23682 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23683 echo "configure:23684: checking existence of sys_errlist" >&5
23684 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23685 echo $ac_n "(cached) $ac_c" 1>&6
23688 cat > conftest.$ac_ext <<EOF
23689 #line 23690 "configure"
23690 #include "confdefs.h"
23693 char *c = (char *) *sys_errlist
23696 if { (eval echo configure:23697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23698 ol_cv_have_sys_errlist=yes
23700 echo "configure: failed program was:" >&5
23701 cat conftest.$ac_ext >&5
23703 ol_cv_have_sys_errlist=no
23708 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23710 if test $ol_cv_have_sys_errlist = yes ; then
23711 cat >> confdefs.h <<\EOF
23712 #define HAVE_SYS_ERRLIST 1
23719 if test "$ol_enable_slapi" != no ; then
23720 for ac_hdr in ltdl.h
23722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23724 echo "configure:23725: checking for $ac_hdr" >&5
23725 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23726 echo $ac_n "(cached) $ac_c" 1>&6
23728 cat > conftest.$ac_ext <<EOF
23729 #line 23730 "configure"
23730 #include "confdefs.h"
23733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23734 { (eval echo configure:23735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23736 if test -z "$ac_err"; then
23738 eval "ac_cv_header_$ac_safe=yes"
23741 echo "configure: failed program was:" >&5
23742 cat conftest.$ac_ext >&5
23744 eval "ac_cv_header_$ac_safe=no"
23748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23749 echo "$ac_t""yes" 1>&6
23750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23751 cat >> confdefs.h <<EOF
23752 #define $ac_tr_hdr 1
23756 echo "$ac_t""no" 1>&6
23761 if test $ac_cv_header_ltdl_h != yes ; then
23762 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23764 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23765 echo "configure:23766: checking for lt_dlinit in -lltdl" >&5
23766 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23767 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23768 echo $ac_n "(cached) $ac_c" 1>&6
23770 ac_save_LIBS="$LIBS"
23771 LIBS="-lltdl $LIBS"
23772 cat > conftest.$ac_ext <<EOF
23773 #line 23774 "configure"
23774 #include "confdefs.h"
23775 /* Override any gcc2 internal prototype to avoid an error. */
23776 /* We use char because int might match the return type of a gcc2
23777 builtin and then its argument prototype would still apply. */
23784 if { (eval echo configure:23785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23786 eval "ac_cv_lib_$ac_lib_var=yes"
23788 echo "configure: failed program was:" >&5
23789 cat conftest.$ac_ext >&5
23791 eval "ac_cv_lib_$ac_lib_var=no"
23794 LIBS="$ac_save_LIBS"
23797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23798 echo "$ac_t""yes" 1>&6
23801 LIBSLAPI=libslapi.a
23802 LIBSLAPITOOLS=../libslapi.a
23803 cat >> confdefs.h <<\EOF
23804 #define HAVE_LIBLTDL 1
23809 echo "$ac_t""no" 1>&6
23810 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23814 cat >> confdefs.h <<\EOF
23815 #define LDAP_SLAPI 1
23820 if test "$ol_enable_debug" != no ; then
23821 cat >> confdefs.h <<\EOF
23822 #define LDAP_DEBUG 1
23826 if test "$ol_enable_syslog" = yes ; then
23827 cat >> confdefs.h <<\EOF
23828 #define LDAP_SYSLOG 1
23832 if test "$ol_link_kbind" != no ; then
23833 cat >> confdefs.h <<\EOF
23834 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23838 if test "$ol_enable_proctitle" != no ; then
23839 cat >> confdefs.h <<\EOF
23840 #define LDAP_PROCTITLE 1
23844 if test "$ol_enable_referrals" != no ; then
23845 cat >> confdefs.h <<\EOF
23846 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23850 if test "$ol_enable_local" != no; then
23851 cat >> confdefs.h <<\EOF
23852 #define LDAP_PF_LOCAL 1
23856 if test "$ol_link_ipv6" != no; then
23857 cat >> confdefs.h <<\EOF
23858 #define LDAP_PF_INET6 1
23862 if test "$ol_enable_cleartext" != no ; then
23863 cat >> confdefs.h <<\EOF
23864 #define SLAPD_CLEARTEXT 1
23868 if test "$ol_enable_crypt" != no ; then
23869 cat >> confdefs.h <<\EOF
23870 #define SLAPD_CRYPT 1
23874 if test "$ol_link_spasswd" != no ; then
23875 cat >> confdefs.h <<\EOF
23876 #define SLAPD_SPASSWD 1
23880 if test "$ol_enable_multimaster" != no ; then
23881 cat >> confdefs.h <<\EOF
23882 #define SLAPD_MULTIMASTER 1
23886 if test "$ol_enable_rlookups" != no ; then
23887 cat >> confdefs.h <<\EOF
23888 #define SLAPD_RLOOKUPS 1
23892 if test "$ol_enable_aci" != no ; then
23893 cat >> confdefs.h <<\EOF
23894 #define SLAPD_ACI_ENABLED 1
23899 if test "$ol_link_modules" != no ; then
23900 cat >> confdefs.h <<\EOF
23901 #define SLAPD_MODULES 1
23905 SLAPD_MODULES_LDFLAGS="-dlopen self"
23908 cat >> confdefs.h <<\EOF
23909 #define SLAPD_MOD_STATIC 1
23912 cat >> confdefs.h <<\EOF
23913 #define SLAPD_MOD_DYNAMIC 2
23917 if test "$ol_enable_bdb" != no ; then
23919 BUILD_BDB=$ol_enable_bdb
23920 if test "$ol_enable_bdb" = mod ; then
23921 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23922 MFLAG=SLAPD_MOD_DYNAMIC
23924 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23925 MFLAG=SLAPD_MOD_STATIC
23927 cat >> confdefs.h <<EOF
23928 #define SLAPD_BDB $MFLAG
23933 if test "$ol_enable_dnssrv" != no ; then
23935 BUILD_DNSSRV=$ol_enable_dnssrv
23936 if test "$ol_enable_dnssrv" = mod ; then
23937 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23938 MFLAG=SLAPD_MOD_DYNAMIC
23940 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23941 MFLAG=SLAPD_MOD_STATIC
23943 cat >> confdefs.h <<EOF
23944 #define SLAPD_DNSSRV $MFLAG
23949 if test "$ol_enable_hdb" != no ; then
23951 BUILD_HDB=$ol_enable_hdb
23952 if test "$ol_enable_hdb" = mod ; then
23953 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23954 MFLAG=SLAPD_MOD_DYNAMIC
23956 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23957 MFLAG=SLAPD_MOD_STATIC
23959 cat >> confdefs.h <<EOF
23960 #define SLAPD_HDB $MFLAG
23965 if test "$ol_enable_ldap" != no ; then
23967 BUILD_LDAP=$ol_enable_ldap
23968 if test "$ol_enable_ldap" = mod ; then
23969 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23970 MFLAG=SLAPD_MOD_DYNAMIC
23972 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23973 MFLAG=SLAPD_MOD_STATIC
23975 cat >> confdefs.h <<EOF
23976 #define SLAPD_LDAP $MFLAG
23981 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23983 BUILD_LDBM=$ol_enable_ldbm
23984 if test "$ol_enable_ldbm" = mod ; then
23985 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23986 MFLAG=SLAPD_MOD_DYNAMIC
23988 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23989 MFLAG=SLAPD_MOD_STATIC
23991 cat >> confdefs.h <<EOF
23992 #define SLAPD_LDBM $MFLAG
23997 if test "$ol_enable_meta" != no ; then
23999 BUILD_META=$ol_enable_meta
24001 if test "$ol_enable_meta" = mod ; then
24002 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24003 MFLAG=SLAPD_MOD_DYNAMIC
24005 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24006 MFLAG=SLAPD_MOD_STATIC
24008 cat >> confdefs.h <<EOF
24009 #define SLAPD_META $MFLAG
24014 if test "$ol_enable_monitor" != no ; then
24016 BUILD_MONITOR=$ol_enable_monitor
24017 if test "$ol_enable_monitor" = mod ; then
24018 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24019 MFLAG=SLAPD_MOD_DYNAMIC
24021 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24022 MFLAG=SLAPD_MOD_STATIC
24024 cat >> confdefs.h <<EOF
24025 #define SLAPD_MONITOR $MFLAG
24030 if test "$ol_enable_null" != no ; then
24032 BUILD_NULL=$ol_enable_null
24033 if test "$ol_enable_null" = mod ; then
24034 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24035 MFLAG=SLAPD_MOD_DYNAMIC
24037 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24038 MFLAG=SLAPD_MOD_STATIC
24040 cat >> confdefs.h <<EOF
24041 #define SLAPD_NULL $MFLAG
24046 if test "$ol_enable_passwd" != no ; then
24048 BUILD_PASSWD=$ol_enable_passwd
24049 if test "$ol_enable_passwd" = mod ; then
24050 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24051 MFLAG=SLAPD_MOD_DYNAMIC
24053 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24054 MFLAG=SLAPD_MOD_STATIC
24056 cat >> confdefs.h <<EOF
24057 #define SLAPD_PASSWD $MFLAG
24062 if test "$ol_link_perl" != no ; then
24064 BUILD_PERL=$ol_enable_perl
24065 if test "$ol_enable_perl" = mod ; then
24066 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24067 MFLAG=SLAPD_MOD_DYNAMIC
24069 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24070 MFLAG=SLAPD_MOD_STATIC
24072 cat >> confdefs.h <<EOF
24073 #define SLAPD_PERL $MFLAG
24078 if test "$ol_enable_shell" != no ; then
24079 if test "$ol_link_thread" != no ; then
24080 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
24083 BUILD_SHELL=$ol_enable_shell
24084 if test "$ol_enable_shell" = mod ; then
24085 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24086 MFLAG=SLAPD_MOD_DYNAMIC
24088 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24089 MFLAG=SLAPD_MOD_STATIC
24091 cat >> confdefs.h <<EOF
24092 #define SLAPD_SHELL $MFLAG
24097 if test "$ol_link_sql" != no ; then
24099 BUILD_SQL=$ol_enable_sql
24100 if test "$ol_enable_sql" = mod; then
24101 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24102 MFLAG=SLAPD_MOD_DYNAMIC
24104 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24105 MFLAG=SLAPD_MOD_STATIC
24107 cat >> confdefs.h <<EOF
24108 #define SLAPD_SQL $MFLAG
24113 if test "$ol_enable_dyngroup" != no ; then
24114 BUILD_DYNGROUP=$ol_enable_dyngroup
24115 if test "$ol_enable_dyngroup" = mod ; then
24116 MFLAG=SLAPD_MOD_DYNAMIC
24117 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24119 MFLAG=SLAPD_MOD_STATIC
24121 cat >> confdefs.h <<EOF
24122 #define SLAPD_OVER_DYNGROUP $MFLAG
24127 if test "$ol_enable_proxycache" != no ; then
24128 BUILD_PROXYCACHE=$ol_enable_proxycache
24129 if test "$ol_enable_proxycache" = mod ; then
24130 MFLAG=SLAPD_MOD_DYNAMIC
24131 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24133 MFLAG=SLAPD_MOD_STATIC
24135 cat >> confdefs.h <<EOF
24136 #define SLAPD_OVER_PROXYCACHE $MFLAG
24141 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24142 $BUILD_SLAPD = yes ; then
24146 if test "$ol_enable_rewrite" != no ; then
24147 cat >> confdefs.h <<\EOF
24148 #define ENABLE_REWRITE 1
24154 if test "$ol_enable_slapi" != no ; then
24155 cat >> confdefs.h <<\EOF
24156 #define ENABLE_SLAPI 1
24160 SLAPD_SLAPI_DEPEND=libslapi.a
24165 if test "$ac_cv_mingw32" = yes ; then
24167 SLAPD_MODULES_LDFLAGS=
24172 if test -z "$SLAPD_STATIC_BACKENDS"; then
24173 SLAPD_NO_STATIC='#'
24238 # Check whether --with-xxinstall or --without-xxinstall was given.
24239 if test "${with_xxinstall+set}" = set; then
24240 withval="$with_xxinstall"
24248 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24251 # Let make expand exec_prefix.
24252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24254 # Any assignment to VPATH causes Sun make to only execute
24255 # the first set of double-colon rules, so remove it if not needed.
24256 # If there is a colon in the path, we need to keep it.
24257 if test "x$srcdir" = x.; then
24258 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24261 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24263 DEFS=-DHAVE_CONFIG_H
24265 # Without the "./", some shells look in PATH for config.status.
24266 : ${CONFIG_STATUS=./config.status}
24268 echo creating $CONFIG_STATUS
24269 rm -f $CONFIG_STATUS
24270 cat > $CONFIG_STATUS <<EOF
24272 # Generated automatically by configure.
24273 # Run this file to recreate the current configuration.
24274 # This directory was configured as follows,
24275 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24277 # $0 $ac_configure_args
24279 # Compiler output produced by configure, useful for debugging
24280 # configure, is in ./config.log if it exists.
24282 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24285 case "\$ac_option" in
24286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24287 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24288 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24289 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24290 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24292 -help | --help | --hel | --he | --h)
24293 echo "\$ac_cs_usage"; exit 0 ;;
24294 *) echo "\$ac_cs_usage"; exit 1 ;;
24298 ac_given_srcdir=$srcdir
24299 ac_given_INSTALL="$INSTALL"
24301 trap 'rm -fr `echo "\
24302 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24303 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24304 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24305 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24306 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24307 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24308 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24309 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24310 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24311 include/Makefile:build/top.mk:include/Makefile.in \
24312 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24313 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24314 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24315 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24316 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24317 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24318 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24319 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24320 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24321 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24322 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24323 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24324 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24325 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24326 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24327 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24328 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24329 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24330 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24331 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24332 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24333 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24334 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24335 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24336 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24337 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24339 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24340 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24342 cat >> $CONFIG_STATUS <<EOF
24344 # Protect against being on the right side of a sed subst in config.status.
24345 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24346 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24350 s%@CFLAGS@%$CFLAGS%g
24351 s%@CPPFLAGS@%$CPPFLAGS%g
24352 s%@CXXFLAGS@%$CXXFLAGS%g
24353 s%@FFLAGS@%$FFLAGS%g
24355 s%@LDFLAGS@%$LDFLAGS%g
24357 s%@exec_prefix@%$exec_prefix%g
24358 s%@prefix@%$prefix%g
24359 s%@program_transform_name@%$program_transform_name%g
24360 s%@bindir@%$bindir%g
24361 s%@sbindir@%$sbindir%g
24362 s%@libexecdir@%$libexecdir%g
24363 s%@datadir@%$datadir%g
24364 s%@sysconfdir@%$sysconfdir%g
24365 s%@sharedstatedir@%$sharedstatedir%g
24366 s%@localstatedir@%$localstatedir%g
24367 s%@libdir@%$libdir%g
24368 s%@includedir@%$includedir%g
24369 s%@oldincludedir@%$oldincludedir%g
24370 s%@infodir@%$infodir%g
24371 s%@mandir@%$mandir%g
24373 s%@host_alias@%$host_alias%g
24374 s%@host_cpu@%$host_cpu%g
24375 s%@host_vendor@%$host_vendor%g
24376 s%@host_os@%$host_os%g
24377 s%@target@%$target%g
24378 s%@target_alias@%$target_alias%g
24379 s%@target_cpu@%$target_cpu%g
24380 s%@target_vendor@%$target_vendor%g
24381 s%@target_os@%$target_os%g
24383 s%@build_alias@%$build_alias%g
24384 s%@build_cpu@%$build_cpu%g
24385 s%@build_vendor@%$build_vendor%g
24386 s%@build_os@%$build_os%g
24387 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24388 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24389 s%@INSTALL_DATA@%$INSTALL_DATA%g
24390 s%@PACKAGE@%$PACKAGE%g
24391 s%@VERSION@%$VERSION%g
24392 s%@ACLOCAL@%$ACLOCAL%g
24393 s%@AUTOCONF@%$AUTOCONF%g
24394 s%@AUTOMAKE@%$AUTOMAKE%g
24395 s%@AUTOHEADER@%$AUTOHEADER%g
24396 s%@MAKEINFO@%$MAKEINFO%g
24397 s%@install_sh@%$install_sh%g
24400 s%@AMTARFLAGS@%$AMTARFLAGS%g
24401 s%@SET_MAKE@%$SET_MAKE%g
24402 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24403 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24404 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24405 s%@top_builddir@%$top_builddir%g
24406 s%@ldap_subdir@%$ldap_subdir%g
24410 s%@OBJEXT@%$OBJEXT%g
24411 s%@EXEEXT@%$EXEEXT%g
24413 s%@RANLIB@%$RANLIB%g
24415 s%@DLLTOOL@%$DLLTOOL%g
24417 s%@OBJDUMP@%$OBJDUMP%g
24419 s%@LIBTOOL@%$LIBTOOL%g
24421 s%@PERLBIN@%$PERLBIN%g
24422 s%@OL_MKDEP@%$OL_MKDEP%g
24423 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24424 s%@LTSTATIC@%$LTSTATIC%g
24425 s%@LIBOBJS@%$LIBOBJS%g
24426 s%@LIBSRCS@%$LIBSRCS%g
24428 s%@WITH_TLS@%$WITH_TLS%g
24429 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24430 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24431 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24432 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24433 s%@BUILD_BDB@%$BUILD_BDB%g
24434 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24435 s%@BUILD_HDB@%$BUILD_HDB%g
24436 s%@BUILD_LDAP@%$BUILD_LDAP%g
24437 s%@BUILD_LDBM@%$BUILD_LDBM%g
24438 s%@BUILD_META@%$BUILD_META%g
24439 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24440 s%@BUILD_NULL@%$BUILD_NULL%g
24441 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24442 s%@BUILD_PERL@%$BUILD_PERL%g
24443 s%@BUILD_SHELL@%$BUILD_SHELL%g
24444 s%@BUILD_SQL@%$BUILD_SQL%g
24445 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24446 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24447 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24448 s%@LDAP_LIBS@%$LDAP_LIBS%g
24449 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24450 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24451 s%@LDBM_LIBS@%$LDBM_LIBS%g
24452 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24453 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24454 s%@WRAP_LIBS@%$WRAP_LIBS%g
24455 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24456 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24457 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24458 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24459 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24460 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24461 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24462 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24463 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24464 s%@KRB4_LIBS@%$KRB4_LIBS%g
24465 s%@KRB5_LIBS@%$KRB5_LIBS%g
24466 s%@SASL_LIBS@%$SASL_LIBS%g
24467 s%@TLS_LIBS@%$TLS_LIBS%g
24468 s%@MODULES_LIBS@%$MODULES_LIBS%g
24469 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24470 s%@LIBSLAPI@%$LIBSLAPI%g
24471 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24472 s%@AUTH_LIBS@%$AUTH_LIBS%g
24473 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24474 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24475 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24476 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24481 cat >> $CONFIG_STATUS <<\EOF
24483 # Split the substitutions into bite-sized pieces for seds with
24484 # small command number limits, like on Digital OSF/1 and HP-UX.
24485 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24486 ac_file=1 # Number of current file.
24487 ac_beg=1 # First line for current file.
24488 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24491 while $ac_more_lines; do
24492 if test $ac_beg -gt 1; then
24493 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24495 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24497 if test ! -s conftest.s$ac_file; then
24498 ac_more_lines=false
24499 rm -f conftest.s$ac_file
24501 if test -z "$ac_sed_cmds"; then
24502 ac_sed_cmds="sed -f conftest.s$ac_file"
24504 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24506 ac_file=`expr $ac_file + 1`
24508 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24511 if test -z "$ac_sed_cmds"; then
24516 cat >> $CONFIG_STATUS <<EOF
24518 CONFIG_FILES=\${CONFIG_FILES-"\
24519 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24520 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24521 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24522 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24523 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24524 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24525 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24526 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24527 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24528 include/Makefile:build/top.mk:include/Makefile.in \
24529 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24530 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24531 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24532 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24533 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24534 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24535 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24536 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24537 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24538 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24539 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24540 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24541 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24542 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24543 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24544 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24545 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24546 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24547 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24548 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24549 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24550 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24551 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24552 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24553 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24554 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24556 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24559 cat >> $CONFIG_STATUS <<\EOF
24560 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24563 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24564 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24565 *) ac_file_in="${ac_file}.in" ;;
24568 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24570 # Remove last slash and all that follows it. Not all systems have dirname.
24571 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24572 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24573 # The file is in a subdirectory.
24574 test ! -d "$ac_dir" && mkdir "$ac_dir"
24575 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24576 # A "../" for each directory in $ac_dir_suffix.
24577 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24579 ac_dir_suffix= ac_dots=
24582 case "$ac_given_srcdir" in
24584 if test -z "$ac_dots"; then top_srcdir=.
24585 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24586 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24587 *) # Relative path.
24588 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24589 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24592 case "$ac_given_INSTALL" in
24593 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24594 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24597 echo creating "$ac_file"
24599 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24601 *[Mm]akefile*) ac_comsub="1i\\
24602 # $configure_input" ;;
24606 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24608 s%@configure_input@%$configure_input%g
24609 s%@srcdir@%$srcdir%g
24610 s%@top_srcdir@%$top_srcdir%g
24611 s%@INSTALL@%$INSTALL%g
24612 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24619 # ac_d sets the value in "#define NAME VALUE" lines.
24620 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24621 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24624 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24625 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24626 ac_uB='\([ ]\)%\1#\2define\3'
24629 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24630 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24631 ac_eB='$%\1#\2define\3'
24635 if test "${CONFIG_HEADERS+set}" != set; then
24637 cat >> $CONFIG_STATUS <<EOF
24638 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24640 cat >> $CONFIG_STATUS <<\EOF
24642 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24643 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24645 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24646 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24647 *) ac_file_in="${ac_file}.in" ;;
24650 echo creating $ac_file
24652 rm -f conftest.frag conftest.in conftest.out
24653 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24654 cat $ac_file_inputs > conftest.in
24658 # Transform confdefs.h into a sed script conftest.vals that substitutes
24659 # the proper values into config.h.in to produce config.h. And first:
24660 # Protect against being on the right side of a sed subst in config.status.
24661 # Protect against being in an unquoted here document in config.status.
24662 rm -f conftest.vals
24663 cat > conftest.hdr <<\EOF
24666 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24670 sed -n -f conftest.hdr confdefs.h > conftest.vals
24673 # This sed command replaces #undef with comments. This is necessary, for
24674 # example, in the case of _POSIX_SOURCE, which is predefined and required
24675 # on some systems where configure will not decide to define it.
24676 cat >> conftest.vals <<\EOF
24677 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24680 # Break up conftest.vals because some shells have a limit on
24681 # the size of here documents, and old seds have small limits too.
24683 rm -f conftest.tail
24686 ac_lines=`grep -c . conftest.vals`
24687 # grep -c gives empty output for an empty file on some AIX systems.
24688 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24689 # Write a limited-size here document to conftest.frag.
24690 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24691 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24693 sed -f conftest.frag conftest.in > conftest.out
24695 mv conftest.out conftest.in
24696 ' >> $CONFIG_STATUS
24697 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24698 rm -f conftest.vals
24699 mv conftest.tail conftest.vals
24701 rm -f conftest.vals
24703 cat >> $CONFIG_STATUS <<\EOF
24704 rm -f conftest.frag conftest.h
24705 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24706 cat conftest.in >> conftest.h
24708 if cmp -s $ac_file conftest.h 2>/dev/null; then
24709 echo "$ac_file is unchanged"
24712 # Remove last slash and all that follows it. Not all systems have dirname.
24713 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24714 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24715 # The file is in a subdirectory.
24716 test ! -d "$ac_dir" && mkdir "$ac_dir"
24719 mv conftest.h $ac_file
24724 cat >> $CONFIG_STATUS <<EOF
24727 cat >> $CONFIG_STATUS <<\EOF
24731 echo Please run \"make depend\" to build dependencies
24735 chmod +x $CONFIG_STATUS
24736 rm -fr confdefs* $ac_clean_files
24737 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1