3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.20 2004/06/29 21:55:43 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
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 = yes -o $ol_enable_hdb = yes ; 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; }
2408 elif test $ol_enable_bdb = auto ; then
2409 if test $ol_with_ldbm_api != berkeley \
2410 -o $ol_with_ldbm_api != auto ; then
2411 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2417 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2418 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2421 if test $ol_enable_slurpd = yes ; then
2422 if test $ol_with_threads = no ; then
2423 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2427 if test $ol_enable_lmpasswd = yes ; then
2428 if test $ol_with_tls = no ; then
2429 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2433 if test $ol_enable_kbind = yes ; then
2434 if test $ol_with_kerberos = no ; then
2435 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2436 elif test $ol_with_kerberos = auto ; then
2437 ol_with_kerberos=yes
2440 elif test $ol_enable_kbind = no ; then
2441 if test $ol_with_kerberos = auto ; then
2443 elif test $ol_with_kerberos != no ; then
2444 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2449 if test $ol_enable_spasswd = yes ; then
2450 if test $ol_with_cyrus_sasl = no ; then
2451 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2453 ol_with_cyrus_sasl=yes
2456 echo "$ac_t""done" 1>&6
2490 SLAPD_DYNAMIC_OVERLAYS=
2492 SLAPD_MODULES_LDFLAGS=
2493 SLAPD_MODULES_CPPFLAGS=
2495 SLAPD_STATIC_BACKENDS=
2496 SLAPD_DYNAMIC_BACKENDS=
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2526 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2527 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2528 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2531 echo "configure:2532: checking for a BSD compatible install" >&5
2532 if test -z "$INSTALL"; then
2533 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2537 for ac_dir in $PATH; do
2538 # Account for people who put trailing slashes in PATH elements.
2540 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2542 # OSF1 and SCO ODT 3.0 have their own names for install.
2543 # Don't use installbsd from OSF since it installs stuff as root
2545 for ac_prog in ginstall scoinst install; do
2546 if test -f $ac_dir/$ac_prog; then
2547 if test $ac_prog = install &&
2548 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2549 # AIX install. It has an incompatible calling convention.
2551 elif test $ac_prog = install &&
2552 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2553 # program-specific install script used by HP pwplus--don't use.
2556 ac_cv_path_install="$ac_dir/$ac_prog -c"
2567 if test "${ac_cv_path_install+set}" = set; then
2568 INSTALL="$ac_cv_path_install"
2570 # As a last resort, use the slow shell script. We don't cache a
2571 # path for INSTALL within a source directory, because that will
2572 # break other packages using the cache if that directory is
2573 # removed, or if the path is relative.
2574 INSTALL="$ac_install_sh"
2577 echo "$ac_t""$INSTALL" 1>&6
2579 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580 # It thinks the first close brace ends the variable substitution.
2581 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2583 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2585 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2588 cat >> confdefs.h <<\EOF
2589 #define HAVE_MKVERSION 1
2597 *-*-aix*) if test -z "$CC" ; then
2598 case "$ol_with_threads" in
2599 auto | yes | posix) ol_aix_threads=yes ;;
2605 if test $ol_aix_threads = yes ; then
2606 if test -z "${CC}" ; then
2607 for ac_prog in cc_r xlc_r cc
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2612 echo "configure:2613: checking for $ac_word" >&5
2613 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
2619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2621 for ac_dir in $ac_dummy; do
2622 test -z "$ac_dir" && ac_dir=.
2623 if test -f $ac_dir/$ac_word; then
2624 ac_cv_prog_CC="$ac_prog"
2632 if test -n "$CC"; then
2633 echo "$ac_t""$CC" 1>&6
2635 echo "$ac_t""no" 1>&6
2638 test -n "$CC" && break
2642 if test "$CC" = cc ; then
2643 if test $ol_with_threads != auto ; then
2644 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2646 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2652 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2653 ol_with_threads=posix
2654 ol_cv_pthread_create=yes
2658 if test -z "${CC}"; then
2659 for ac_prog in cc gcc
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2673 for ac_dir in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir=.
2675 if test -f $ac_dir/$ac_word; then
2676 ac_cv_prog_CC="$ac_prog"
2684 if test -n "$CC"; then
2685 echo "$ac_t""$CC" 1>&6
2687 echo "$ac_t""no" 1>&6
2690 test -n "$CC" && break
2692 test -n "$CC" || CC="missing"
2695 if test "${CC}" = "missing" ; then
2696 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2700 if test -z "${AR}"; then
2701 for ac_prog in ar gar
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2706 echo "configure:2707: checking for $ac_word" >&5
2707 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 if test -n "$AR"; then
2711 ac_cv_prog_AR="$AR" # Let the user override the test.
2713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2715 for ac_dir in $ac_dummy; do
2716 test -z "$ac_dir" && ac_dir=.
2717 if test -f $ac_dir/$ac_word; then
2718 ac_cv_prog_AR="$ac_prog"
2726 if test -n "$AR"; then
2727 echo "$ac_t""$AR" 1>&6
2729 echo "$ac_t""no" 1>&6
2732 test -n "$AR" && break
2734 test -n "$AR" || AR="missing"
2737 if test "${AR}" = "missing" ; then
2738 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2744 # Find the correct PATH separator. Usually this is `:', but
2745 # DJGPP uses `;' like DOS.
2746 if test "X${PATH_SEPARATOR+set}" != Xset; then
2747 UNAME=${UNAME-`uname 2>/dev/null`}
2749 *-DOS) lt_cv_sys_path_separator=';' ;;
2750 *) lt_cv_sys_path_separator=':' ;;
2752 PATH_SEPARATOR=$lt_cv_sys_path_separator
2755 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2756 echo "configure:2757: checking for Cygwin environment" >&5
2757 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2767 #define __CYGWIN__ __CYGWIN32__
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2784 echo "$ac_t""$ac_cv_cygwin" 1>&6
2786 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2787 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2788 echo "configure:2789: checking for mingw32 environment" >&5
2789 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2800 if { (eval echo configure:2801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2804 echo "configure: failed program was:" >&5
2805 cat conftest.$ac_ext >&5
2812 echo "$ac_t""$ac_cv_mingw32" 1>&6
2814 test "$ac_cv_mingw32" = yes && MINGW32=yes
2815 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2816 echo "configure:2817: checking for EMX OS/2 environment" >&5
2817 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2828 if { (eval echo configure:2829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2840 echo "$ac_t""$ac_cv_emxos2" 1>&6
2842 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2843 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2844 echo "configure:2845: checking how to run the C preprocessor" >&5
2845 # On Suns, sometimes $CPP names a directory.
2846 if test -n "$CPP" && test -d "$CPP"; then
2849 if test -z "$CPP"; then
2850 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 # This must be in double quotes, not single quotes, because CPP may get
2854 # substituted into the Makefile and "${CC-cc}" will confuse make.
2856 # On the NeXT, cc -E runs the code through the compiler's parser,
2857 # not just through cpp.
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 CPP="${CC-cc} -E -traditional-cpp"
2875 cat > conftest.$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2882 { (eval echo configure:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2884 if test -z "$ac_err"; then
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 CPP="${CC-cc} -nologo -E"
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2899 { (eval echo configure:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2901 if test -z "$ac_err"; then
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2915 ac_cv_prog_CPP="$CPP"
2917 CPP="$ac_cv_prog_CPP"
2919 ac_cv_prog_CPP="$CPP"
2921 echo "$ac_t""$CPP" 1>&6
2923 # Check whether --enable-fast-install or --disable-fast-install was given.
2924 if test "${enable_fast_install+set}" = set; then
2925 enableval="$enable_fast_install"
2926 p=${PACKAGE-default}
2928 yes) enable_fast_install=yes ;;
2929 no) enable_fast_install=no ;;
2931 enable_fast_install=no
2932 # Look at the argument we got. We use all the common list separators.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2934 for pkg in $enableval; do
2935 if test "X$pkg" = "X$p"; then
2936 enable_fast_install=yes
2943 enable_fast_install=yes
2946 # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2958 for ac_dir in $ac_dummy; do
2959 test -z "$ac_dir" && ac_dir=.
2960 if test -f $ac_dir/$ac_word; then
2969 if test -n "$CC"; then
2970 echo "$ac_t""$CC" 1>&6
2972 echo "$ac_t""no" 1>&6
2975 if test -z "$CC"; then
2976 # Extract the first word of "cc", so it can be a program name with args.
2977 set dummy cc; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2989 for ac_dir in $ac_dummy; do
2990 test -z "$ac_dir" && ac_dir=.
2991 if test -f $ac_dir/$ac_word; then
2992 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2993 ac_prog_rejected=yes
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3005 if test $# -gt 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 set dummy "$ac_dir/$ac_word" "$@"
3018 if test -n "$CC"; then
3019 echo "$ac_t""$CC" 1>&6
3021 echo "$ac_t""no" 1>&6
3024 if test -z "$CC"; then
3025 case "`uname -s`" in
3026 *win32* | *WIN32* | *CYGWIN*)
3027 # Extract the first word of "cl", so it can be a program name with args.
3028 set dummy cl; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3039 for ac_dir in $ac_dummy; do
3040 test -z "$ac_dir" && ac_dir=.
3041 if test -f $ac_dir/$ac_word; then
3050 if test -n "$CC"; then
3051 echo "$ac_t""$CC" 1>&6
3053 echo "$ac_t""no" 1>&6
3058 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3061 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3062 echo "configure:3063: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3069 cross_compiling=$ac_cv_prog_cc_cross
3071 cat > conftest.$ac_ext << EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3079 ac_cv_prog_cc_works=yes
3080 # If we can't run a trivial program, we are probably using a cross compiler.
3081 if (./conftest; exit) 2>/dev/null; then
3082 ac_cv_prog_cc_cross=no
3084 ac_cv_prog_cc_cross=yes
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3089 ac_cv_prog_cc_works=no
3093 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3096 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3097 cross_compiling=$ac_cv_prog_cc_cross
3099 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3100 if test $ac_cv_prog_cc_works = no; then
3101 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3103 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3104 echo "configure:3105: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3105 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3106 cross_compiling=$ac_cv_prog_cc_cross
3108 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3109 echo "configure:3110: checking whether we are using GNU C" >&5
3110 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.c <<EOF
3118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3125 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3127 if test $ac_cv_prog_gcc = yes; then
3133 ac_test_CFLAGS="${CFLAGS+set}"
3134 ac_save_CFLAGS="$CFLAGS"
3136 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3137 echo "configure:3138: checking whether ${CC-cc} accepts -g" >&5
3138 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 echo 'void f(){}' > conftest.c
3142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3151 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3152 if test "$ac_test_CFLAGS" = set; then
3153 CFLAGS="$ac_save_CFLAGS"
3154 elif test $ac_cv_prog_cc_g = yes; then
3155 if test "$GCC" = yes; then
3161 if test "$GCC" = yes; then
3168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3169 if test "${with_gnu_ld+set}" = set; then
3170 withval="$with_gnu_ld"
3171 test "$withval" = no || with_gnu_ld=yes
3177 if test "$GCC" = yes; then
3178 # Check if gcc -print-prog-name=ld gives a path.
3179 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3180 echo "configure:3181: checking for ld used by GCC" >&5
3183 # gcc leaves a trailing carriage return which upsets mingw
3184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3189 # Accept absolute paths.
3190 [\\/]* | [A-Za-z]:[\\/]*)
3191 re_direlt='/[^/][^/]*/\.\./'
3192 # Canonicalize the path of ld
3193 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3195 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3197 test -z "$LD" && LD="$ac_prog"
3200 # If it fails, then pretend we aren't using GCC.
3204 # If it is relative, then search for the first ld in PATH.
3208 elif test "$with_gnu_ld" = yes; then
3209 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3210 echo "configure:3211: checking for GNU ld" >&5
3212 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3213 echo "configure:3214: checking for non-GNU ld" >&5
3215 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 if test -z "$LD"; then
3219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3220 for ac_dir in $PATH; do
3221 test -z "$ac_dir" && ac_dir=.
3222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3223 lt_cv_path_LD="$ac_dir/$ac_prog"
3224 # Check to see if the program is GNU ld. I'd rather use --version,
3225 # but apparently some GNU ld's only accept -v.
3226 # Break only if it was the GNU/non-GNU ld that we prefer.
3227 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3228 test "$with_gnu_ld" != no && break
3230 test "$with_gnu_ld" != yes && break
3236 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3241 if test -n "$LD"; then
3242 echo "$ac_t""$LD" 1>&6
3244 echo "$ac_t""no" 1>&6
3246 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3247 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3248 echo "configure:3249: checking if the linker ($LD) is GNU ld" >&5
3249 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3253 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3254 lt_cv_prog_gnu_ld=yes
3256 lt_cv_prog_gnu_ld=no
3260 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3261 with_gnu_ld=$lt_cv_prog_gnu_ld
3264 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3265 echo "configure:3266: checking for $LD option to reload object files" >&5
3266 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 lt_cv_ld_reload_flag='-r'
3272 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3273 reload_flag=$lt_cv_ld_reload_flag
3274 test -n "$reload_flag" && reload_flag=" $reload_flag"
3276 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3277 echo "configure:3278: checking for BSD-compatible nm" >&5
3278 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 if test -n "$NM"; then
3282 # Let the user override the test.
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3286 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3287 test -z "$ac_dir" && ac_dir=.
3288 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3289 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3290 # Check to see if the nm accepts a BSD-compat flag.
3291 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3292 # nm: unknown option "B" ignored
3293 # Tru64's nm complains that /dev/null is an invalid object file
3294 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3295 lt_cv_path_NM="$tmp_nm -B"
3297 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3298 lt_cv_path_NM="$tmp_nm -p"
3301 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3302 continue # so that we can try to find one that supports BSD flags
3307 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3312 echo "$ac_t""$NM" 1>&6
3314 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3315 echo "configure:3316: checking for a sed that does not truncate output" >&5
3316 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 # Loop through the user's path and test for sed and gsed.
3320 # Then use that list of sed's as ones to test for truncation.
3321 as_executable_p="test -f"
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_prog in sed gsed; do
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3330 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3336 # Create a temporary directory, and hook for its removal unless debugging.
3339 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3340 trap '{ (exit 1); exit 1; }' 1 2 13 15
3343 # Create a (secure) tmp directory for tmp files.
3346 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3347 test -n "$tmp" && test -d "$tmp"
3350 tmp=$TMPDIR/sed$$-$RANDOM
3351 (umask 077 && mkdir $tmp)
3354 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3355 { (exit 1); exit 1; }
3359 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3360 # along with /bin/sed that truncates output.
3361 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3362 test ! -f ${_sed} && break
3363 cat /dev/null > "$tmp/sed.in"
3365 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3366 # Check for GNU sed and select it if it is found.
3367 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3368 lt_cv_path_SED=${_sed}
3372 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3373 mv "$tmp/sed.tmp" "$tmp/sed.in"
3374 cp "$tmp/sed.in" "$tmp/sed.nl"
3375 echo >>"$tmp/sed.nl"
3376 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3377 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3378 # 40000 chars as input seems more than enough
3379 test $_count -gt 10 && break
3380 _count=`expr $_count + 1`
3381 if test $_count -gt $_max; then
3383 lt_cv_path_SED=$_sed
3391 if test "X$SED" != "X"; then
3396 echo "$ac_t""$SED" 1>&6
3398 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3399 echo "configure:3400: checking whether ln -s works" >&5
3400 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3404 if ln -s X conftestdata 2>/dev/null
3407 ac_cv_prog_LN_S="ln -s"
3412 LN_S="$ac_cv_prog_LN_S"
3413 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3414 echo "$ac_t""yes" 1>&6
3416 echo "$ac_t""no" 1>&6
3419 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3420 echo "configure:3421: checking how to recognise dependent libraries" >&5
3421 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 lt_cv_file_magic_cmd='$MAGIC_CMD'
3425 lt_cv_file_magic_test_file=
3426 lt_cv_deplibs_check_method='unknown'
3427 # Need to set the preceding variable on all platforms that support
3428 # interlibrary dependencies.
3429 # 'none' -- dependencies not supported.
3430 # `unknown' -- same as none, but documents that we really don't know.
3431 # 'pass_all' -- all dependencies passed with no checks.
3432 # 'test_compile' -- check by making test program.
3433 # 'file_magic [[regex]]' -- check by looking for files in library path
3434 # which responds to the $file_magic_cmd with a given egrep regex.
3435 # If you have `file' or equivalent on your system and you're not sure
3436 # whether `pass_all' will *always* work, you probably want this one.
3440 lt_cv_deplibs_check_method=pass_all
3444 lt_cv_deplibs_check_method=pass_all
3448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3449 lt_cv_file_magic_cmd='/usr/bin/file -L'
3450 lt_cv_file_magic_test_file=/shlib/libc.so
3453 cygwin* | mingw* | pw32*)
3454 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3455 lt_cv_file_magic_cmd='$OBJDUMP -f'
3458 darwin* | rhapsody*)
3459 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3460 lt_cv_file_magic_cmd='/usr/bin/file -L'
3462 rhapsody* | darwin1.[012])
3463 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3466 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3472 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3475 # Not sure whether the presence of OpenBSD here was a mistake.
3476 # Let's accept both of them until this is cleared up.
3477 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3478 lt_cv_file_magic_cmd=/usr/bin/file
3479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3483 lt_cv_deplibs_check_method=pass_all
3488 lt_cv_deplibs_check_method=pass_all
3492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3493 lt_cv_file_magic_cmd=/usr/bin/file
3494 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3497 irix5* | irix6* | nonstopux*)
3499 irix5* | nonstopux*)
3500 # this will be overridden with pass_all, but let us keep it just in case
3501 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3505 *-32|*"-32 ") libmagic=32-bit;;
3506 *-n32|*"-n32 ") libmagic=N32;;
3507 *-64|*"-64 ") libmagic=64-bit;;
3508 *) libmagic=never-match;;
3510 # this will be overridden with pass_all, but let us keep it just in case
3511 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3514 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3515 lt_cv_deplibs_check_method=pass_all
3518 # This must be Linux ELF.
3521 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3522 lt_cv_deplibs_check_method=pass_all ;;
3524 # glibc up to 2.1.1 does not perform some relocations on ARM
3525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3527 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3531 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3532 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3534 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3550 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3555 lt_cv_deplibs_check_method=pass_all
3558 osf3* | osf4* | osf5*)
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3561 lt_cv_file_magic_test_file=/shlib/libc.so
3562 lt_cv_deplibs_check_method=pass_all
3566 lt_cv_deplibs_check_method=pass_all
3570 lt_cv_deplibs_check_method=pass_all
3571 lt_cv_file_magic_test_file=/lib/libc.so
3574 sysv5uw[78]* | sysv4*uw2*)
3575 lt_cv_deplibs_check_method=pass_all
3578 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3579 case $host_vendor in
3581 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]'
3582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3585 lt_cv_deplibs_check_method=pass_all
3588 lt_cv_file_magic_cmd='/bin/file'
3589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3592 lt_cv_file_magic_cmd='/bin/file'
3593 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3594 lt_cv_file_magic_test_file=/lib/libc.so
3597 lt_cv_deplibs_check_method=pass_all
3605 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3606 file_magic_cmd=$lt_cv_file_magic_cmd
3607 deplibs_check_method=$lt_cv_deplibs_check_method
3609 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3610 echo "configure:3611: checking for object suffix" >&5
3611 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3615 echo 'int i = 1;' > conftest.$ac_ext
3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3617 for ac_file in conftest.*; do
3620 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3624 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3629 echo "$ac_t""$ac_cv_objext" 1>&6
3630 OBJEXT=$ac_cv_objext
3631 ac_objext=$ac_cv_objext
3636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3637 echo "configure:3638: checking for executable suffix" >&5
3638 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3645 echo 'int main () { return 0; }' > conftest.$ac_ext
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3648 for file in conftest.*; do
3650 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3664 echo "$ac_t""${ac_cv_exeext}" 1>&6
3667 if test $host != $build; then
3668 ac_tool_prefix=${host_alias}-
3676 # Check for command to grab the raw symbol name followed by C symbol from nm.
3677 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3678 echo "configure:3679: checking command to parse $NM output" >&5
3679 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3683 # These are sane defaults that work on at least a few old systems.
3684 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3686 # Character class describing NM global symbol codes.
3687 symcode='[BCDEGRST]'
3689 # Regexp to match symbols that can be accessed directly from C.
3690 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3692 # Transform the above into a raw symbol and a C symbol.
3693 symxfrm='\1 \2\3 \3'
3695 # Transform an extracted symbol line into a proper C declaration
3696 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3698 # Transform an extracted symbol line into symbol name and symbol address
3699 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'"
3701 # Define system-specific variables.
3706 cygwin* | mingw* | pw32*)
3707 symcode='[ABCDGISTW]'
3709 hpux*) # Its linker distinguishes data from code symbols
3710 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3711 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'"
3714 symcode='[BCDEGRST]'
3717 symcode='[BCDEGQRST]'
3727 # Handle CRLF in mingw tool chain
3731 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3735 # If we're using GNU nm, then use its standard symbol codes.
3736 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3737 symcode='[ABCDGISTW]'
3740 # Try without a prefix undercore, then with it.
3741 for ac_symprfx in "" "_"; do
3743 # Write the raw and C identifiers.
3744 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3746 # Check to see that the pipe works correctly.
3749 cat > conftest.$ac_ext <<EOF
3754 void nm_test_func(){}
3758 int main(){nm_test_var='a';nm_test_func();return(0);}
3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3762 # Now try to grab the symbols.
3764 if { (eval echo configure:3765: \"$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
3765 # Try sorting and uniquifying the output.
3766 if sort "$nlist" | uniq > "$nlist"T; then
3767 mv -f "$nlist"T "$nlist"
3772 # Make sure that we snagged all the symbols we need.
3773 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3774 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3775 cat <<EOF > conftest.$ac_ext
3781 # Now generate the symbol file.
3782 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3784 cat <<EOF >> conftest.$ac_ext
3785 #if defined (__STDC__) && __STDC__
3786 # define lt_ptr void *
3788 # define lt_ptr char *
3792 /* The mapping between symbol names and symbols. */
3797 lt_preloaded_symbols[] =
3800 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3801 cat <<\EOF >> conftest.$ac_ext
3809 # Now try linking the two files.
3810 mv conftest.$ac_objext conftstm.$ac_objext
3812 save_CFLAGS="$CFLAGS"
3813 LIBS="conftstm.$ac_objext"
3814 CFLAGS="$CFLAGS$no_builtin_flag"
3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3819 CFLAGS="$save_CFLAGS"
3821 echo "cannot find nm_test_func in $nlist" >&5
3824 echo "cannot find nm_test_var in $nlist" >&5
3827 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3830 echo "$progname: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 rm -f conftest* conftst*
3835 # Do not use the global_symbol_pipe unless it works.
3836 if test "$pipe_works" = yes; then
3839 lt_cv_sys_global_symbol_pipe=
3845 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3847 global_symbol_to_cdecl=
3848 global_symbol_to_c_name_address=
3850 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3851 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3853 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3855 echo "$ac_t""failed" 1>&6
3857 echo "$ac_t""ok" 1>&6
3860 for ac_hdr in dlfcn.h
3862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3864 echo "configure:3865: checking for $ac_hdr" >&5
3865 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3874 { (eval echo configure:3875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3876 if test -z "$ac_err"; then
3878 eval "ac_cv_header_$ac_safe=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 eval "ac_cv_header_$ac_safe=no"
3888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3891 cat >> confdefs.h <<EOF
3892 #define $ac_tr_hdr 1
3896 echo "$ac_t""no" 1>&6
3905 # Only perform the check for file, if the check method requires it
3906 case $deplibs_check_method in
3908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3909 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
3910 echo "configure:3911: checking for ${ac_tool_prefix}file" >&5
3911 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3922 ac_save_MAGIC_CMD="$MAGIC_CMD"
3923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3924 ac_dummy="/usr/bin:$PATH"
3925 for ac_dir in $ac_dummy; do
3926 test -z "$ac_dir" && ac_dir=.
3927 if test -f $ac_dir/${ac_tool_prefix}file; then
3928 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3929 if test -n "$file_magic_test_file"; then
3930 case $deplibs_check_method in
3932 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3935 egrep "$file_magic_regex" > /dev/null; then
3940 *** Warning: the command libtool uses to detect shared libraries,
3941 *** $file_magic_cmd, produces output that libtool cannot recognize.
3942 *** The result is that libtool may fail to recognize shared libraries
3943 *** as such. This will affect the creation of libtool libraries that
3944 *** depend on shared libraries, but programs linked with such libtool
3945 *** libraries will work regardless of this problem. Nevertheless, you
3946 *** may want to report the problem to your system manager and/or to
3947 *** bug-libtool@gnu.org
3957 MAGIC_CMD="$ac_save_MAGIC_CMD"
3962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3963 if test -n "$MAGIC_CMD"; then
3964 echo "$ac_t""$MAGIC_CMD" 1>&6
3966 echo "$ac_t""no" 1>&6
3969 if test -z "$lt_cv_path_MAGIC_CMD"; then
3970 if test -n "$ac_tool_prefix"; then
3971 echo $ac_n "checking for file""... $ac_c" 1>&6
3972 echo "configure:3973: checking for file" >&5
3973 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3984 ac_save_MAGIC_CMD="$MAGIC_CMD"
3985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3986 ac_dummy="/usr/bin:$PATH"
3987 for ac_dir in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir=.
3989 if test -f $ac_dir/file; then
3990 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3991 if test -n "$file_magic_test_file"; then
3992 case $deplibs_check_method in
3994 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3997 egrep "$file_magic_regex" > /dev/null; then
4002 *** Warning: the command libtool uses to detect shared libraries,
4003 *** $file_magic_cmd, produces output that libtool cannot recognize.
4004 *** The result is that libtool may fail to recognize shared libraries
4005 *** as such. This will affect the creation of libtool libraries that
4006 *** depend on shared libraries, but programs linked with such libtool
4007 *** libraries will work regardless of this problem. Nevertheless, you
4008 *** may want to report the problem to your system manager and/or to
4009 *** bug-libtool@gnu.org
4019 MAGIC_CMD="$ac_save_MAGIC_CMD"
4024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4025 if test -n "$MAGIC_CMD"; then
4026 echo "$ac_t""$MAGIC_CMD" 1>&6
4028 echo "$ac_t""no" 1>&6
4040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4043 echo "configure:4044: checking for $ac_word" >&5
4044 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 if test -n "$RANLIB"; then
4048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4052 for ac_dir in $ac_dummy; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4062 RANLIB="$ac_cv_prog_RANLIB"
4063 if test -n "$RANLIB"; then
4064 echo "$ac_t""$RANLIB" 1>&6
4066 echo "$ac_t""no" 1>&6
4070 if test -z "$ac_cv_prog_RANLIB"; then
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "ranlib", so it can be a program name with args.
4073 set dummy ranlib; ac_word=$2
4074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_word" >&5
4076 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4079 if test -n "$RANLIB"; then
4080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4084 for ac_dir in $ac_dummy; do
4085 test -z "$ac_dir" && ac_dir=.
4086 if test -f $ac_dir/$ac_word; then
4087 ac_cv_prog_RANLIB="ranlib"
4092 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4095 RANLIB="$ac_cv_prog_RANLIB"
4096 if test -n "$RANLIB"; then
4097 echo "$ac_t""$RANLIB" 1>&6
4099 echo "$ac_t""no" 1>&6
4107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4108 set dummy ${ac_tool_prefix}strip; ac_word=$2
4109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4110 echo "configure:4111: checking for $ac_word" >&5
4111 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 if test -n "$STRIP"; then
4115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4119 for ac_dir in $ac_dummy; do
4120 test -z "$ac_dir" && ac_dir=.
4121 if test -f $ac_dir/$ac_word; then
4122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4129 STRIP="$ac_cv_prog_STRIP"
4130 if test -n "$STRIP"; then
4131 echo "$ac_t""$STRIP" 1>&6
4133 echo "$ac_t""no" 1>&6
4137 if test -z "$ac_cv_prog_STRIP"; then
4138 if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "strip", so it can be a program name with args.
4140 set dummy strip; ac_word=$2
4141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4142 echo "configure:4143: checking for $ac_word" >&5
4143 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 if test -n "$STRIP"; then
4147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4151 for ac_dir in $ac_dummy; do
4152 test -z "$ac_dir" && ac_dir=.
4153 if test -f $ac_dir/$ac_word; then
4154 ac_cv_prog_STRIP="strip"
4159 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4162 STRIP="$ac_cv_prog_STRIP"
4163 if test -n "$STRIP"; then
4164 echo "$ac_t""$STRIP" 1>&6
4166 echo "$ac_t""no" 1>&6
4176 enable_win32_dll=yes
4178 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4179 if test "${enable_libtool_lock+set}" = set; then
4180 enableval="$enable_libtool_lock"
4184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4186 # Some flags need to be propagated to the compiler or linker for good
4190 # Find out which ABI we are using.
4191 echo '#line 4192 "configure"' > conftest.$ac_ext
4192 if { (eval echo configure:4193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 case `/usr/bin/file conftest.$ac_objext` in
4209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4210 SAVE_CFLAGS="$CFLAGS"
4211 CFLAGS="$CFLAGS -belf"
4212 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4213 echo "configure:4214: checking whether the C compiler needs -belf" >&5
4214 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4219 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4222 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4223 cross_compiling=$ac_cv_prog_cc_cross
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 lt_cv_cc_needs_belf=yes
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 lt_cv_cc_needs_belf=no
4244 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4247 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4248 cross_compiling=$ac_cv_prog_cc_cross
4252 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4255 CFLAGS="$SAVE_CFLAGS"
4259 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4260 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4263 echo "configure:4264: checking for $ac_word" >&5
4264 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 if test -n "$DLLTOOL"; then
4268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4272 for ac_dir in $ac_dummy; do
4273 test -z "$ac_dir" && ac_dir=.
4274 if test -f $ac_dir/$ac_word; then
4275 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4282 DLLTOOL="$ac_cv_prog_DLLTOOL"
4283 if test -n "$DLLTOOL"; then
4284 echo "$ac_t""$DLLTOOL" 1>&6
4286 echo "$ac_t""no" 1>&6
4290 if test -z "$ac_cv_prog_DLLTOOL"; then
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "dlltool", so it can be a program name with args.
4293 set dummy dlltool; ac_word=$2
4294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_word" >&5
4296 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 if test -n "$DLLTOOL"; then
4300 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 if test -f $ac_dir/$ac_word; then
4307 ac_cv_prog_DLLTOOL="dlltool"
4312 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4315 DLLTOOL="$ac_cv_prog_DLLTOOL"
4316 if test -n "$DLLTOOL"; then
4317 echo "$ac_t""$DLLTOOL" 1>&6
4319 echo "$ac_t""no" 1>&6
4327 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}as; ac_word=$2
4329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_word" >&5
4331 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 if test -n "$AS"; then
4335 ac_cv_prog_AS="$AS" # Let the user override the test.
4337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4339 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f $ac_dir/$ac_word; then
4342 ac_cv_prog_AS="${ac_tool_prefix}as"
4350 if test -n "$AS"; then
4351 echo "$ac_t""$AS" 1>&6
4353 echo "$ac_t""no" 1>&6
4357 if test -z "$ac_cv_prog_AS"; then
4358 if test -n "$ac_tool_prefix"; then
4359 # Extract the first word of "as", so it can be a program name with args.
4360 set dummy as; ac_word=$2
4361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_word" >&5
4363 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 if test -n "$AS"; then
4367 ac_cv_prog_AS="$AS" # Let the user override the test.
4369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4371 for ac_dir in $ac_dummy; do
4372 test -z "$ac_dir" && ac_dir=.
4373 if test -f $ac_dir/$ac_word; then
4379 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4383 if test -n "$AS"; then
4384 echo "$ac_t""$AS" 1>&6
4386 echo "$ac_t""no" 1>&6
4394 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4397 echo "configure:4398: checking for $ac_word" >&5
4398 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 if test -n "$OBJDUMP"; then
4402 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4406 for ac_dir in $ac_dummy; do
4407 test -z "$ac_dir" && ac_dir=.
4408 if test -f $ac_dir/$ac_word; then
4409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4416 OBJDUMP="$ac_cv_prog_OBJDUMP"
4417 if test -n "$OBJDUMP"; then
4418 echo "$ac_t""$OBJDUMP" 1>&6
4420 echo "$ac_t""no" 1>&6
4424 if test -z "$ac_cv_prog_OBJDUMP"; then
4425 if test -n "$ac_tool_prefix"; then
4426 # Extract the first word of "objdump", so it can be a program name with args.
4427 set dummy objdump; ac_word=$2
4428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4429 echo "configure:4430: checking for $ac_word" >&5
4430 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 if test -n "$OBJDUMP"; then
4434 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4438 for ac_dir in $ac_dummy; do
4439 test -z "$ac_dir" && ac_dir=.
4440 if test -f $ac_dir/$ac_word; then
4441 ac_cv_prog_OBJDUMP="objdump"
4446 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4449 OBJDUMP="$ac_cv_prog_OBJDUMP"
4450 if test -n "$OBJDUMP"; then
4451 echo "$ac_t""$OBJDUMP" 1>&6
4453 echo "$ac_t""no" 1>&6
4462 # recent cygwin and mingw systems supply a stub DllMain which the user
4463 # can override, but on older systems we have to supply one
4464 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4465 echo "configure:4466: checking if libtool should supply DllMain function" >&5
4466 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 lt_cv_need_dllmain=no
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 lt_cv_need_dllmain=yes
4490 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4493 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4494 # old mingw systems require "-dll" to link a DLL, while more recent ones
4496 SAVE_CFLAGS="$CFLAGS"
4497 CFLAGS="$CFLAGS -mdll"
4498 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4499 echo "configure:4500: checking how to link DLLs" >&5
4500 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4511 if { (eval echo configure:4512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4513 lt_cv_cc_dll_switch=-mdll
4515 echo "configure: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4518 lt_cv_cc_dll_switch=-dll
4523 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4524 CFLAGS="$SAVE_CFLAGS" ;;
4525 *-*-cygwin* | *-*-pw32*)
4526 # cygwin systems need to pass --dll to the linker, and not link
4527 # crt.o which will require a WinMain@16 definition.
4528 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4534 # Sed substitution that helps us do robust quoting. It backslashifies
4535 # metacharacters that are still active within double-quoted strings.
4536 Xsed='sed -e s/^X//'
4537 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4539 # Same as above, but do not quote variable references.
4540 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4542 # Sed substitution to delay expansion of an escaped shell variable in a
4543 # double_quote_subst'ed string.
4544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4550 default_ofile=libtool
4551 can_build_shared=yes
4553 # All known linkers require a `.a' archive for static linking (except M$VC,
4554 # which needs '.lib').
4556 ltmain="$ac_aux_dir/ltmain.sh"
4557 ofile="$default_ofile"
4558 with_gnu_ld="$lt_cv_prog_gnu_ld"
4559 need_locks="$enable_libtool_lock"
4562 old_CFLAGS="$CFLAGS"
4564 # Set sane defaults for various variables
4565 test -z "$AR" && AR=ar
4566 test -z "$AR_FLAGS" && AR_FLAGS=cru
4567 test -z "$AS" && AS=as
4568 test -z "$CC" && CC=cc
4569 test -z "$DLLTOOL" && DLLTOOL=dlltool
4570 test -z "$LD" && LD=ld
4571 test -z "$LN_S" && LN_S="ln -s"
4572 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4573 test -z "$NM" && NM=nm
4574 test -z "$OBJDUMP" && OBJDUMP=objdump
4575 test -z "$RANLIB" && RANLIB=:
4576 test -z "$STRIP" && STRIP=:
4577 test -z "$ac_objext" && ac_objext=o
4579 if test x"$host" != x"$build"; then
4580 ac_tool_prefix=${host_alias}-
4585 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4588 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4593 # AIX sometimes has problems with the GCC collect2 program. For some
4594 # reason, if we set the COLLECT_NAMES environment variable, the problems
4595 # vanish in a puff of smoke.
4596 if test "X${COLLECT_NAMES+set}" != Xset; then
4598 export COLLECT_NAMES
4603 # Determine commands to create old-style static archives.
4604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4605 old_postinstall_cmds='chmod 644 $oldlib'
4606 old_postuninstall_cmds=
4608 if test -n "$RANLIB"; then
4611 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4614 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4620 # Allow CC to be a program name with arguments.
4624 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4625 echo "configure:4626: checking for objdir" >&5
4626 rm -f .libs 2>/dev/null
4627 mkdir .libs 2>/dev/null
4628 if test -d .libs; then
4631 # MS-DOS does not allow filenames that begin with a dot.
4634 rmdir .libs 2>/dev/null
4635 echo "$ac_t""$objdir" 1>&6
4638 # Check whether --with-pic or --without-pic was given.
4639 if test "${with_pic+set}" = set; then
4646 test -z "$pic_mode" && pic_mode=default
4648 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4649 # in isolation, and that seeing it set (from the cache) indicates that
4650 # the associated values are set (in the cache) correctly too.
4651 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $compiler option to produce PIC" >&5
4653 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4657 lt_cv_prog_cc_shlib=
4659 lt_cv_prog_cc_static=
4660 lt_cv_prog_cc_no_builtin=
4661 lt_cv_prog_cc_can_build_shared=$can_build_shared
4663 if test "$GCC" = yes; then
4664 lt_cv_prog_cc_wl='-Wl,'
4665 lt_cv_prog_cc_static='-static'
4669 # Below there is a dirty hack to force normal static linking with -ldl
4670 # The problem is because libdl dynamically linked with both libc and
4671 # libC (AIX C++ library), which obviously doesn't included in libraries
4672 # list by gcc. This cause undefined symbols with -static flags.
4673 # This hack allows C programs to be linked with "-static -ldl", but
4674 # not sure about C++ programs.
4675 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4678 # FIXME: we need at least 68020 code to build shared libraries, but
4679 # adding the `-m68020' flag to GCC prevents building anything better,
4681 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4683 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4684 # PIC is the default for these OSes.
4686 darwin* | rhapsody*)
4687 # PIC is the default on this platform
4688 # Common symbols not allowed in MH_DYLIB files
4689 lt_cv_prog_cc_pic='-fno-common'
4691 cygwin* | mingw* | pw32* | os2*)
4692 # This hack is so that the source file can tell whether it is being
4693 # built for inclusion in a dll (and should export symbols for example).
4694 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4697 if test -d /usr/nec; then
4698 lt_cv_prog_cc_pic=-Kconform_pic
4702 lt_cv_prog_cc_pic='-fPIC'
4706 # PORTME Check for PIC flags for the system compiler.
4708 aix3* | aix4* | aix5*)
4709 lt_cv_prog_cc_wl='-Wl,'
4710 # All AIX code is PIC.
4711 if test "$host_cpu" = ia64; then
4712 # AIX 5 now supports IA64 processor
4713 lt_cv_prog_cc_static='-Bstatic'
4715 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4719 hpux9* | hpux10* | hpux11*)
4720 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4721 lt_cv_prog_cc_wl='-Wl,'
4722 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4723 lt_cv_prog_cc_pic='+Z'
4726 irix5* | irix6* | nonstopux*)
4727 lt_cv_prog_cc_wl='-Wl,'
4728 lt_cv_prog_cc_static='-non_shared'
4729 # PIC (with -KPIC) is the default.
4732 cygwin* | mingw* | pw32* | os2*)
4733 # This hack is so that the source file can tell whether it is being
4734 # built for inclusion in a dll (and should export symbols for example).
4735 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4739 lt_cv_prog_cc_pic='-KPIC'
4740 lt_cv_prog_cc_static='-Bstatic'
4744 # XPLINK code is PIC by default
4747 osf3* | osf4* | osf5*)
4748 # All OSF/1 code is PIC.
4749 lt_cv_prog_cc_wl='-Wl,'
4750 lt_cv_prog_cc_static='-non_shared'
4754 lt_cv_prog_cc_pic='-Kpic'
4755 lt_cv_prog_cc_static='-dn'
4756 lt_cv_prog_cc_shlib='-belf'
4760 lt_cv_prog_cc_pic='-KPIC'
4761 lt_cv_prog_cc_static='-Bstatic'
4762 lt_cv_prog_cc_wl='-Wl,'
4766 lt_cv_prog_cc_pic='-PIC'
4767 lt_cv_prog_cc_static='-Bstatic'
4768 lt_cv_prog_cc_wl='-Qoption ld '
4771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4772 lt_cv_prog_cc_pic='-KPIC'
4773 lt_cv_prog_cc_static='-Bstatic'
4774 lt_cv_prog_cc_wl='-Wl,'
4778 lt_cv_prog_cc_pic='-pic'
4779 lt_cv_prog_cc_static='-Bstatic'
4783 if test -d /usr/nec ;then
4784 lt_cv_prog_cc_pic='-Kconform_pic'
4785 lt_cv_prog_cc_static='-Bstatic'
4790 lt_cv_prog_cc_can_build_shared=no
4797 if test -z "$lt_cv_prog_cc_pic"; then
4798 echo "$ac_t""none" 1>&6
4800 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4802 # Check to make sure the pic_flag actually works.
4803 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4804 echo "configure:4805: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4805 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 save_CFLAGS="$CFLAGS"
4809 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4818 if { (eval echo configure:4819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4821 hpux9* | hpux10* | hpux11*)
4822 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4823 # they create non-PIC objects. So, if there were any warnings, we
4824 # assume that PIC is not supported.
4825 if test -s conftest.err; then
4826 lt_cv_prog_cc_pic_works=no
4828 lt_cv_prog_cc_pic_works=yes
4832 lt_cv_prog_cc_pic_works=yes
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 lt_cv_prog_cc_pic_works=no
4844 CFLAGS="$save_CFLAGS"
4849 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4851 lt_cv_prog_cc_can_build_shared=no
4853 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4856 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
4859 # Check for any special shared library compilation flags.
4860 if test -n "$lt_cv_prog_cc_shlib"; then
4861 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
4862 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4864 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
4865 lt_cv_prog_cc_can_build_shared=no
4869 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
4870 echo "configure:4871: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4871 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 lt_cv_prog_cc_static_works=no
4875 save_LDFLAGS="$LDFLAGS"
4876 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 lt_cv_prog_cc_static_works=yes
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4893 LDFLAGS="$save_LDFLAGS"
4898 # Belt *and* braces to stop my trousers falling down:
4899 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4900 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
4902 pic_flag="$lt_cv_prog_cc_pic"
4903 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4904 wl="$lt_cv_prog_cc_wl"
4905 link_static_flag="$lt_cv_prog_cc_static"
4906 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4907 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4910 # Check to see if options -o and -c are simultaneously supported by compiler
4911 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
4912 echo "configure:4913: checking if $compiler supports -c -o file.$ac_objext" >&5
4913 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4917 $rm -r conftest 2>/dev/null
4920 echo "int some_variable = 0;" > conftest.$ac_ext
4922 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4923 # that will create temporary files in the current directory regardless of
4924 # the output directory. Thus, making CWD read-only will cause this test
4925 # to fail, enabling locking or at least warning the user not to do parallel
4928 save_CFLAGS="$CFLAGS"
4929 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4932 # The compiler can only warn and ignore the option if not recognized
4933 # So say no if there are warnings
4934 if test -s out/conftest.err; then
4935 lt_cv_compiler_c_o=no
4937 lt_cv_compiler_c_o=yes
4940 # Append any errors to the config.log.
4941 cat out/conftest.err 1>&5
4942 lt_cv_compiler_c_o=no
4944 CFLAGS="$save_CFLAGS"
4950 $rm -r conftest 2>/dev/null
4954 compiler_c_o=$lt_cv_compiler_c_o
4955 echo "$ac_t""$compiler_c_o" 1>&6
4957 if test x"$compiler_c_o" = x"yes"; then
4958 # Check to see if we can write to a .lo
4959 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
4960 echo "configure:4961: checking if $compiler supports -c -o file.lo" >&5
4961 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4965 lt_cv_compiler_o_lo=no
4966 save_CFLAGS="$CFLAGS"
4967 CFLAGS="$CFLAGS -c -o conftest.lo"
4968 save_objext="$ac_objext"
4970 cat > conftest.$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4975 int some_variable = 0;
4978 if { (eval echo configure:4979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4980 # The compiler can only warn and ignore the option if not recognized
4981 # So say no if there are warnings
4982 if test -s conftest.err; then
4983 lt_cv_compiler_o_lo=no
4985 lt_cv_compiler_o_lo=yes
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4993 ac_objext="$save_objext"
4994 CFLAGS="$save_CFLAGS"
4998 compiler_o_lo=$lt_cv_compiler_o_lo
4999 echo "$ac_t""$compiler_o_lo" 1>&6
5004 # Check to see if we can do hard links to lock some files if needed
5005 hard_links="nottested"
5006 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5007 # do not overwrite the value of need_locks provided by the user
5008 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5009 echo "configure:5010: checking if we can lock with hard links" >&5
5012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5014 ln conftest.a conftest.b 2>&5 || hard_links=no
5015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5016 echo "$ac_t""$hard_links" 1>&6
5017 if test "$hard_links" = no; then
5018 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5025 if test "$GCC" = yes; then
5026 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5027 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5028 echo "configure:5029: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5029 echo "int some_variable = 0;" > conftest.$ac_ext
5030 save_CFLAGS="$CFLAGS"
5031 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5032 compiler_rtti_exceptions=no
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5038 int some_variable = 0;
5041 if { (eval echo configure:5042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5043 # The compiler can only warn and ignore the option if not recognized
5044 # So say no if there are warnings
5045 if test -s conftest.err; then
5046 compiler_rtti_exceptions=no
5048 compiler_rtti_exceptions=yes
5052 echo "configure: failed program was:" >&5
5053 cat conftest.$ac_ext >&5
5056 CFLAGS="$save_CFLAGS"
5057 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5059 if test "$compiler_rtti_exceptions" = "yes"; then
5060 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5062 no_builtin_flag=' -fno-builtin'
5066 # See if the linker supports building shared libraries.
5067 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5068 echo "configure:5069: checking whether the linker ($LD) supports shared libraries" >&5
5070 allow_undefined_flag=
5072 need_lib_prefix=unknown
5073 need_version=unknown
5074 # when you set need_version to no, make sure it does not cause -set_version
5075 # flags to be left without arguments
5077 archive_expsym_cmds=
5078 old_archive_from_new_cmds=
5079 old_archive_from_expsyms_cmds=
5080 export_dynamic_flag_spec=
5081 whole_archive_flag_spec=
5082 thread_safe_flag_spec=
5083 hardcode_into_libs=no
5084 hardcode_libdir_flag_spec=
5085 hardcode_libdir_separator=
5088 hardcode_shlibpath_var=unsupported
5090 link_all_deplibs=unknown
5091 always_export_symbols=no
5092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5093 # include_expsyms should be a list of space-separated symbols to be *always*
5094 # included in the symbol list
5096 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5097 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5098 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5099 # as well as any symbol that contains `d'.
5100 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5101 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5102 # platforms (ab)use it in PIC code, but their linkers get confused if
5103 # the symbol is explicitly referenced. Since portable code cannot
5104 # rely on this symbol name, it's probably fine to never include it in
5105 # preloaded symbol tables.
5106 extract_expsyms_cmds=
5109 cygwin* | mingw* | pw32*)
5110 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5111 # When not using gcc, we currently assume that we are using
5112 # Microsoft Visual C++.
5113 if test "$GCC" != yes; then
5123 if test "$with_gnu_ld" = yes; then
5124 # If archive_cmds runs LD, not CC, wlarc should be empty
5127 # See if GNU ld supports shared libraries.
5129 aix3* | aix4* | aix5*)
5130 # On AIX, the GNU linker is very broken
5131 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5135 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5136 *** to be unable to reliably create shared libraries on AIX.
5137 *** Therefore, libtool is disabling shared libraries support. If you
5138 *** really care for shared libraries, you may want to modify your PATH
5139 *** so that a non-GNU linker is found, and then restart.
5145 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)'
5146 hardcode_libdir_flag_spec='-L$libdir'
5147 hardcode_minus_L=yes
5149 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5150 # that the semantics of dynamic libraries on AmigaOS, at least up
5151 # to version 4, is to share data among multiple programs linked
5152 # with the same dynamic library. Since this doesn't match the
5153 # behavior of shared libraries on other platforms, we can use
5159 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5160 allow_undefined_flag=unsupported
5161 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5162 # support --undefined. This deserves some investigation. FIXME
5163 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5169 cygwin* | mingw* | pw32*)
5170 # hardcode_libdir_flag_spec is actually meaningless, as there is
5171 # no search path for DLLs.
5172 hardcode_libdir_flag_spec='-L$libdir'
5173 allow_undefined_flag=unsupported
5174 always_export_symbols=yes
5176 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5177 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5178 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5179 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5180 else $CC -o impgen impgen.c ; fi)~
5181 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5183 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5185 # cygwin and mingw dlls have different entry points and sets of symbols
5187 # FIXME: what about values for MSVC?
5188 dll_entry=__cygwin_dll_entry@12
5189 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5193 dll_entry=_DllMainCRTStartup@12
5194 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5198 # mingw and cygwin differ, and it's simplest to just exclude the union
5199 # of the two symbol sets.
5200 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5202 # recent cygwin and mingw systems supply a stub DllMain which the user
5203 # can override, but on older systems we have to supply one (in ltdll.c)
5204 if test "x$lt_cv_need_dllmain" = "xyes"; then
5205 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5206 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~
5207 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5213 # Extract the symbol export list from an `--export-all' def file,
5214 # then regenerate the def file from the symbol export list, so that
5215 # the compiled dll only exports the symbol export list.
5216 # Be careful not to strip the DATA tag left be newer dlltools.
5217 export_symbols_cmds="$ltdll_cmds"'
5218 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5219 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5221 # If the export-symbols file already is a .def file (1st line
5222 # is EXPORTS), use it as is.
5223 # If DATA tags from a recent dlltool are present, honour them!
5224 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5225 cp $export_symbols $output_objdir/$soname-def;
5227 echo EXPORTS > $output_objdir/$soname-def;
5229 cat $export_symbols | while read symbol; do
5232 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5233 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5234 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5236 _lt_hint=`expr 1 + \$_lt_hint`;
5240 $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~
5241 $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~
5242 $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~
5243 $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~
5244 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5249 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5252 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5253 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5258 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5263 *** create shared libraries on Solaris systems. Therefore, libtool
5264 *** is disabling shared libraries support. We urge you to upgrade GNU
5265 *** binutils to release 2.9.1 or newer. Another option is to modify
5266 *** your PATH or compiler configuration so that the native linker is
5267 *** used, and then restart.
5270 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5279 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5282 hardcode_shlibpath_var=no
5286 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5295 if test "$ld_shlibs" = yes; then
5296 runpath_var=LD_RUN_PATH
5297 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5298 export_dynamic_flag_spec='${wl}--export-dynamic'
5300 cygwin* | mingw* | pw32*)
5301 # dlltool doesn't understand --whole-archive et. al.
5302 whole_archive_flag_spec=
5305 # ancient GNU ld didn't support --whole-archive et. al.
5306 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5307 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5309 whole_archive_flag_spec=
5315 # PORTME fill in a description of your system's linker (not GNU ld)
5318 allow_undefined_flag=unsupported
5319 always_export_symbols=yes
5320 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'
5321 # Note: this linker hardcodes the directories in LIBPATH if there
5322 # are no directories specified by -L.
5323 hardcode_minus_L=yes
5324 if test "$GCC" = yes && test -z "$link_static_flag"; then
5325 # Neither direct hardcoding nor static linking is supported with a
5327 hardcode_direct=unsupported
5332 if test "$host_cpu" = ia64; then
5333 # On IA64, the linker does run time linking by default, so we don't
5334 # have to do anything special.
5335 aix_use_runtimelinking=no
5336 exp_sym_flag='-Bexport'
5339 aix_use_runtimelinking=no
5341 # Test if we are trying to use run time linking or normal
5342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5343 # need to do runtime linking.
5344 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5345 for ld_flag in $LDFLAGS; do
5348 aix_use_runtimelinking=yes
5355 exp_sym_flag='-bexport'
5356 no_entry_flag='-bnoentry'
5359 # When large executables or shared objects are built, AIX ld can
5360 # have problems creating the table of contents. If linking a library
5361 # or program results in "error TOC overflow" add -mminimal-toc to
5362 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5363 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5367 hardcode_libdir_separator=':'
5368 if test "$GCC" = yes; then
5369 case $host_os in aix4.[012]|aix4.[012].*)
5370 collect2name=`${CC} -print-prog-name=collect2`
5371 if test -f "$collect2name" && \
5372 strings "$collect2name" | grep resolve_lib_name >/dev/null
5374 # We have reworked collect2
5377 # We have old collect2
5378 hardcode_direct=unsupported
5379 # It fails to find uninstalled libraries when the uninstalled
5380 # path is not listed in the libpath. Setting hardcode_minus_L
5381 # to unsupported forces relinking
5382 hardcode_minus_L=yes
5383 hardcode_libdir_flag_spec='-L$libdir'
5384 hardcode_libdir_separator=
5388 shared_flag='-shared'
5391 if test "$host_cpu" = ia64; then
5392 shared_flag='${wl}-G'
5394 if test "$aix_use_runtimelinking" = yes; then
5395 shared_flag='${wl}-G'
5397 shared_flag='${wl}-bM:SRE'
5402 # It seems that -bexpall can do strange things, so it is better to
5403 # generate a list of symbols to export.
5404 always_export_symbols=yes
5405 if test "$aix_use_runtimelinking" = yes; then
5406 # Warning - without using the other runtime loading flags (-brtl),
5407 # -berok will link without error, but may produce a broken library.
5408 allow_undefined_flag='-berok'
5409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5410 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"
5412 if test "$host_cpu" = ia64; then
5413 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5414 allow_undefined_flag="-z nodefs"
5415 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"
5417 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5418 # Warning - without using the other run time loading flags,
5419 # -berok will link without error, but may produce a broken library.
5420 allow_undefined_flag='${wl}-berok'
5421 # This is a bit strange, but is similar to how AIX traditionally builds
5422 # it's shared libraries.
5423 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'
5429 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)'
5430 hardcode_libdir_flag_spec='-L$libdir'
5431 hardcode_minus_L=yes
5432 # see comment about different semantics on the GNU ld section
5436 cygwin* | mingw* | pw32*)
5437 # When not using gcc, we currently assume that we are using
5438 # Microsoft Visual C++.
5439 # hardcode_libdir_flag_spec is actually meaningless, as there is
5440 # no search path for DLLs.
5441 hardcode_libdir_flag_spec=' '
5442 allow_undefined_flag=unsupported
5443 # Tell ltmain to make .lib files, not .a files.
5445 # FIXME: Setting linknames here is a bad hack.
5446 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5447 # The linker will automatically build a .lib file if we build a DLL.
5448 old_archive_from_new_cmds='true'
5449 # FIXME: Should let the user specify the lib program.
5450 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5451 fix_srcfile_path='`cygpath -w "$srcfile"`'
5454 darwin* | rhapsody*)
5456 rhapsody* | darwin1.[012])
5457 allow_undefined_flag='-undefined suppress'
5460 allow_undefined_flag='-flat_namespace -undefined suppress'
5463 # FIXME: Relying on posixy $() will cause problems for
5464 # cross-compilation, but unfortunately the echo tests do not
5465 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5466 # `"' quotes if we put them in here... so don't!
5467 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)'
5468 # We need to add '_' to the symbols in $export_symbols first
5469 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5471 hardcode_shlibpath_var=no
5472 whole_archive_flag_spec='-all_load $convenience'
5479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5480 # support. Future versions do this automatically, but an explicit c++rt0.o
5481 # does not break anything, and helps significantly (at the cost of a little
5484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5485 hardcode_libdir_flag_spec='-R$libdir'
5487 hardcode_shlibpath_var=no
5490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5494 hardcode_minus_L=yes
5495 hardcode_shlibpath_var=no
5498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5500 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5501 hardcode_libdir_flag_spec='-R$libdir'
5503 hardcode_shlibpath_var=no
5506 hpux9* | hpux10* | hpux11*)
5508 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' ;;
5509 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5512 hardcode_libdir_separator=:
5514 hardcode_minus_L=yes # Not in the search PATH, but as the default
5515 # location of the library.
5516 export_dynamic_flag_spec='${wl}-E'
5519 irix5* | irix6* | nonstopux*)
5520 if test "$GCC" = yes; then
5521 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'
5522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5524 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'
5525 hardcode_libdir_flag_spec='-rpath $libdir'
5527 hardcode_libdir_separator=:
5528 link_all_deplibs=yes
5532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5535 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5537 hardcode_libdir_flag_spec='-R$libdir'
5539 hardcode_shlibpath_var=no
5543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5546 hardcode_libdir_separator=:
5547 hardcode_shlibpath_var=no
5552 hardcode_shlibpath_var=no
5553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5556 export_dynamic_flag_spec='${wl}-E'
5559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5561 hardcode_libdir_flag_spec='-R$libdir'
5564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5572 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5573 cp \$linknames \$output_objdir && linknames=''"
5574 export_dynamic_flag_spec="-Wl,DLL"
5578 hardcode_libdir_flag_spec='-L$libdir'
5579 hardcode_minus_L=yes
5580 allow_undefined_flag=unsupported
5581 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'
5582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5586 if test "$GCC" = yes; then
5587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5588 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'
5590 allow_undefined_flag=' -expect_unresolved \*'
5591 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'
5593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5594 hardcode_libdir_separator=:
5597 osf4* | osf5*) # as osf3* with the addition of -msym flag
5598 if test "$GCC" = yes; then
5599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5600 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'
5601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5603 allow_undefined_flag=' -expect_unresolved \*'
5604 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'
5605 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5606 $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'
5608 #Both c and cxx compiler support -rpath directly
5609 hardcode_libdir_flag_spec='-rpath $libdir'
5611 hardcode_libdir_separator=:
5615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616 hardcode_shlibpath_var=no
5617 runpath_var=LD_RUN_PATH
5618 hardcode_runpath_var=yes
5619 export_dynamic_flag_spec='${wl}-Bexport'
5623 # gcc --version < 3.0 without binutils cannot create self contained
5624 # shared libraries reliably, requiring libgcc.a to resolve some of
5625 # the object symbols generated in some cases. Libraries that use
5626 # assert need libgcc.a to resolve __eprintf, for example. Linking
5627 # a copy of libgcc.a into every shared library to guarantee resolving
5628 # such symbols causes other problems: According to Tim Van Holder
5629 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5630 # (to the application) exception stack for one thing.
5631 no_undefined_flag=' -z defs'
5632 if test "$GCC" = yes; then
5633 case `$CC --version 2>/dev/null` in
5637 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5638 *** create self contained shared libraries on Solaris systems, without
5639 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5640 *** -no-undefined support, which will at least allow you to build shared
5641 *** libraries. However, you may find that when you link such libraries
5642 *** into an application without using GCC, you have to manually add
5643 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5644 *** upgrade to a newer version of GCC. Another option is to rebuild your
5645 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5652 # $CC -shared without GNU ld will not create a library from C++
5653 # object files and a static libstdc++, better avoid it by now
5654 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5655 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5657 hardcode_libdir_flag_spec='-R$libdir'
5658 hardcode_shlibpath_var=no
5660 solaris2.[0-5] | solaris2.[0-5].*) ;;
5661 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5662 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5664 link_all_deplibs=yes
5668 if test "x$host_vendor" = xsequent; then
5669 # Use $CC to link under sequent, because it throws in some extra .o
5670 # files that make .init and .fini sections work.
5671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5675 hardcode_libdir_flag_spec='-L$libdir'
5677 hardcode_minus_L=yes
5678 hardcode_shlibpath_var=no
5682 case $host_vendor in
5684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5685 hardcode_direct=yes # is this really true???
5688 ## LD is ld it makes a PLAMLIB
5689 ## CC just makes a GrossModule.
5690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5691 reload_cmds='$CC -r -o $output$reload_objs'
5695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5699 runpath_var='LD_RUN_PATH'
5700 hardcode_shlibpath_var=no
5704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5705 hardcode_shlibpath_var=no
5706 export_dynamic_flag_spec='-Bexport'
5710 no_undefined_flag=' -z text'
5711 # $CC -shared without GNU ld will not create a library from C++
5712 # object files and a static libstdc++, better avoid it by now
5713 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5714 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5715 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5716 hardcode_libdir_flag_spec=
5717 hardcode_shlibpath_var=no
5718 runpath_var='LD_RUN_PATH'
5722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5723 hardcode_libdir_flag_spec='-L$libdir'
5724 hardcode_shlibpath_var=no
5728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5729 hardcode_libdir_flag_spec='-L$libdir'
5730 hardcode_shlibpath_var=no
5734 if test -d /usr/nec; then
5735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5736 hardcode_shlibpath_var=no
5737 runpath_var=LD_RUN_PATH
5738 hardcode_runpath_var=yes
5744 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5747 hardcode_shlibpath_var=no
5748 hardcode_runpath_var=yes
5749 runpath_var=LD_RUN_PATH
5752 sysv5uw7* | unixware7*)
5753 no_undefined_flag='${wl}-z ${wl}text'
5754 if test "$GCC" = yes; then
5755 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5757 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5759 runpath_var='LD_RUN_PATH'
5760 hardcode_shlibpath_var=no
5768 echo "$ac_t""$ld_shlibs" 1>&6
5769 test "$ld_shlibs" = no && can_build_shared=no
5771 # Check hardcoding attributes.
5772 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5773 echo "configure:5774: checking how to hardcode library paths into programs" >&5
5775 if test -n "$hardcode_libdir_flag_spec" || \
5776 test -n "$runpath_var"; then
5778 # We can hardcode non-existant directories.
5779 if test "$hardcode_direct" != no &&
5780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5781 # have to relink, otherwise we might link with an installed library
5782 # when we should be linking with a yet-to-be-installed one
5783 ## test "$hardcode_shlibpath_var" != no &&
5784 test "$hardcode_minus_L" != no; then
5785 # Linking always hardcodes the temporary library directory.
5786 hardcode_action=relink
5788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5789 hardcode_action=immediate
5792 # We cannot hardcode anything, or else we can only hardcode existing
5794 hardcode_action=unsupported
5796 echo "$ac_t""$hardcode_action" 1>&6
5800 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5801 echo "configure:5802: checking whether stripping libraries is possible" >&5
5802 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5803 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5804 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5805 echo "$ac_t""yes" 1>&6
5807 echo "$ac_t""no" 1>&6
5810 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5811 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5813 # PORTME Fill in your ld.so characteristics
5814 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5815 echo "configure:5816: checking dynamic linker characteristics" >&5
5817 libname_spec='lib$name'
5824 shlibpath_overrides_runpath=unknown
5826 dynamic_linker="$host_os ld.so"
5827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5833 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5834 shlibpath_var=LIBPATH
5836 # AIX has no versioning support, so we append a major version to the name.
5837 soname_spec='${libname}${release}.so$major'
5844 hardcode_into_libs=yes
5845 if test "$host_cpu" = ia64; then
5846 # AIX 5 supports IA64
5847 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5848 shlibpath_var=LD_LIBRARY_PATH
5850 # With GCC up to 2.95.x, collect2 would create an import file
5851 # for dependence libraries. The import file would start with
5852 # the line `#! .'. This would cause the generated library to
5853 # depend on `.', always an invalid library. This was fixed in
5854 # development snapshots of GCC prior to 3.0.
5856 aix4 | aix4.[01] | aix4.[01].*)
5857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5859 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5866 # AIX (on Power*) has no versioning support, so currently we can
5867 # not hardcode correct soname into executable. Probably we can
5868 # add versioning support to collect2, so additional links can
5869 # be useful in future.
5870 if test "$aix_use_runtimelinking" = yes; then
5871 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5872 # instead of lib<name>.a to let people know that these are not
5873 # typical AIX shared libraries.
5874 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5876 # We preserve .a as extension for shared libraries through AIX4.2
5877 # and later when we are not doing run time linking.
5878 library_names_spec='${libname}${release}.a $libname.a'
5879 soname_spec='${libname}${release}.so$major'
5881 shlibpath_var=LIBPATH
5883 hardcode_into_libs=yes
5887 library_names_spec='$libname.ixlibrary $libname.a'
5888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5889 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'
5893 library_names_spec='${libname}.so'
5894 dynamic_linker="$host_os ld.so"
5895 shlibpath_var=LIBRARY_PATH
5901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5902 soname_spec='${libname}${release}.so$major'
5903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5904 shlibpath_var=LD_LIBRARY_PATH
5905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5907 export_dynamic_flag_spec=-rdynamic
5908 # the default ld.so.conf also contains /usr/contrib/lib and
5909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5910 # libtool to hard-code these into programs
5913 cygwin* | mingw* | pw32*)
5914 version_type=windows
5917 case $GCC,$host_os in
5919 library_names_spec='$libname.dll.a'
5920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5921 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5922 dldir=$destdir/`dirname \$dlpath`~
5923 test -d \$dldir || mkdir -p \$dldir~
5924 $install_prog .libs/$dlname \$dldir/$dlname'
5925 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5926 dlpath=$dir/\$dldll~
5930 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5931 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5937 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5940 dynamic_linker='Win32 ld.exe'
5941 # FIXME: first we should search . and the directory the executable is in
5945 darwin* | rhapsody*)
5946 dynamic_linker="$host_os dyld"
5950 # FIXME: Relying on posixy $() will cause problems for
5951 # cross-compilation, but unfortunately the echo tests do not
5952 # yet detect zsh echo's removal of \ escapes.
5953 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)'
5954 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5955 shlibpath_overrides_runpath=yes
5956 shlibpath_var=DYLD_LIBRARY_PATH
5964 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5965 version_type=freebsd-$objformat
5966 case $version_type in
5968 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5973 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5977 shlibpath_var=LD_LIBRARY_PATH
5980 shlibpath_overrides_runpath=yes
5983 shlibpath_overrides_runpath=no
5984 hardcode_into_libs=yes
5993 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5994 soname_spec='${libname}${release}.so$major'
5995 shlibpath_var=LD_LIBRARY_PATH
5996 hardcode_into_libs=yes
5999 hpux9* | hpux10* | hpux11*)
6000 # Give a soname corresponding to the major version so that dld.sl refuses to
6001 # link against other versions.
6002 dynamic_linker="$host_os dld.sl"
6006 shlibpath_var=SHLIB_PATH
6007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6008 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6009 soname_spec='${libname}${release}.sl$major'
6010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6011 postinstall_cmds='chmod 555 $lib'
6014 irix5* | irix6* | nonstopux*)
6016 nonstopux*) version_type=nonstopux ;;
6017 *) version_type=irix ;;
6021 soname_spec='${libname}${release}.so$major'
6022 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6024 irix5* | nonstopux*)
6028 case $LD in # libtool.m4 will add one of these switches to LD
6029 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6030 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6031 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6032 *) libsuff= shlibsuff= libmagic=never-match;;
6036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6037 shlibpath_overrides_runpath=no
6038 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6039 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6042 # No shared lib support for Linux oldld, aout, or coff.
6043 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6047 # This must be Linux ELF.
6052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6053 soname_spec='${libname}${release}.so$major'
6054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6055 shlibpath_var=LD_LIBRARY_PATH
6056 shlibpath_overrides_runpath=no
6057 # This implies no fast_install, which is unacceptable.
6058 # Some rework will be needed to allow for fast_install
6059 # before this can be enabled.
6060 hardcode_into_libs=yes
6062 # We used to test for /lib/ld.so.1 and disable shared libraries on
6063 # powerpc, because MkLinux only supported shared libraries with the
6064 # GNU dynamic linker. Since this was broken with cross compilers,
6065 # most powerpc-linux boxes support dynamic linking these days and
6066 # people can always --disable-shared, the test was removed, and we
6067 # assume the GNU/Linux dynamic linker is in use.
6068 dynamic_linker='GNU/Linux ld.so'
6075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6076 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6078 dynamic_linker='NetBSD (a.out) ld.so'
6080 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6081 soname_spec='${libname}${release}.so$major'
6082 dynamic_linker='NetBSD ld.elf_so'
6084 shlibpath_var=LD_LIBRARY_PATH
6085 shlibpath_overrides_runpath=yes
6086 hardcode_into_libs=yes
6091 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6092 shlibpath_var=LD_LIBRARY_PATH
6093 shlibpath_overrides_runpath=yes
6100 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6102 openbsd2.[89] | openbsd2.[89].*)
6103 shlibpath_overrides_runpath=no
6106 shlibpath_overrides_runpath=yes
6110 shlibpath_overrides_runpath=yes
6112 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6114 shlibpath_var=LD_LIBRARY_PATH
6120 shlibpath_overrides_runpath=yes
6121 shlibpath_var=LIBPATH
6122 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6123 # the library's exports are in libname.x; this is the file that must
6124 # actually be linked with to use a DLL.
6125 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6129 libname_spec='$name'
6131 library_names_spec='$libname.dll $libname.a'
6132 dynamic_linker='OS/2 ld.exe'
6133 shlibpath_var=LIBPATH
6136 osf3* | osf4* | osf5*)
6139 soname_spec='${libname}${release}.so$major'
6140 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6141 shlibpath_var=LD_LIBRARY_PATH
6142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6144 hardcode_into_libs=yes
6149 soname_spec='${libname}${release}.so$major'
6150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6151 shlibpath_var=LD_LIBRARY_PATH
6158 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6159 soname_spec='${libname}${release}.so$major'
6160 shlibpath_var=LD_LIBRARY_PATH
6161 shlibpath_overrides_runpath=yes
6162 hardcode_into_libs=yes
6163 # ldd complains unless libraries are executable
6164 postinstall_cmds='chmod +x $lib'
6169 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6171 shlibpath_var=LD_LIBRARY_PATH
6172 shlibpath_overrides_runpath=yes
6173 if test "$with_gnu_ld" = yes; then
6179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6182 soname_spec='${libname}${release}.so$major'
6183 shlibpath_var=LD_LIBRARY_PATH
6184 case $host_vendor in
6186 shlibpath_overrides_runpath=no
6188 export_dynamic_flag_spec='${wl}-Blargedynsym'
6189 runpath_var=LD_RUN_PATH
6197 shlibpath_overrides_runpath=no
6198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6205 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6206 soname_spec='${libname}${release}.so$major'
6207 shlibpath_var=LD_LIBRARY_PATH
6214 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6215 soname_spec='${libname}${release}.so$major'
6216 shlibpath_var=LD_LIBRARY_PATH
6220 if test -d /usr/nec ;then
6222 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6223 soname_spec='$libname.so.$major'
6224 shlibpath_var=LD_LIBRARY_PATH
6232 echo "$ac_t""$dynamic_linker" 1>&6
6233 test "$dynamic_linker" = no && can_build_shared=no
6235 # Report the final consequences.
6236 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6237 echo "configure:6238: checking if libtool supports shared libraries" >&5
6238 echo "$ac_t""$can_build_shared" 1>&6
6240 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6241 echo "configure:6242: checking whether to build shared libraries" >&5
6242 test "$can_build_shared" = "no" && enable_shared=no
6244 # On AIX, shared libraries and static libraries use the same namespace, and
6245 # are all built from PIC.
6248 test "$enable_shared" = yes && enable_static=no
6249 if test -n "$RANLIB"; then
6250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6251 postinstall_cmds='$RANLIB $lib'
6256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6257 test "$enable_shared" = yes && enable_static=no
6261 echo "$ac_t""$enable_shared" 1>&6
6263 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6264 echo "configure:6265: checking whether to build static libraries" >&5
6265 # Make sure either enable_shared or enable_static is yes.
6266 test "$enable_shared" = yes || enable_static=yes
6267 echo "$ac_t""$enable_static" 1>&6
6269 if test "$hardcode_action" = relink; then
6270 # Fast installation is not supported
6271 enable_fast_install=no
6272 elif test "$shlibpath_overrides_runpath" = yes ||
6273 test "$enable_shared" = no; then
6274 # Fast installation is not necessary
6275 enable_fast_install=needless
6278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6279 if test "$GCC" = yes; then
6280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6283 if test "x$enable_dlopen" != xyes; then
6284 enable_dlopen=unknown
6285 enable_dlopen_self=unknown
6286 enable_dlopen_self_static=unknown
6293 lt_cv_dlopen="load_add_on"
6295 lt_cv_dlopen_self=yes
6298 cygwin* | mingw* | pw32*)
6299 lt_cv_dlopen="LoadLibrary"
6304 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6305 echo "configure:6306: checking for dllload" >&5
6306 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char dllload(); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined (__stub_dllload) || defined (__stub___dllload)
6334 if { (eval echo configure:6335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6336 eval "ac_cv_func_dllload=yes"
6338 echo "configure: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 eval "ac_cv_func_dllload=no"
6346 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6347 echo "$ac_t""yes" 1>&6
6348 lt_cv_dlopen="dllload"
6350 echo "$ac_t""no" 1>&6
6351 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6352 echo "configure:6353: checking for shl_load" >&5
6353 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char shl_load(); below. */
6362 /* Override any gcc2 internal prototype to avoid an error. */
6363 /* We use char because int might match the return type of a gcc2
6364 builtin and then its argument prototype would still apply. */
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 eval "ac_cv_func_shl_load=yes"
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 eval "ac_cv_func_shl_load=no"
6393 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 lt_cv_dlopen="shl_load"
6397 echo "$ac_t""no" 1>&6
6398 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6399 echo "configure:6400: checking for shl_load in -ldld" >&5
6400 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6401 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 ac_save_LIBS="$LIBS"
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420 eval "ac_cv_lib_$ac_lib_var=yes"
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 eval "ac_cv_lib_$ac_lib_var=no"
6428 LIBS="$ac_save_LIBS"
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6435 echo "$ac_t""no" 1>&6
6436 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6437 echo "configure:6438: checking for dlopen" >&5
6438 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char dlopen(); below. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6455 /* The GNU C library defines this for functions which it implements
6456 to always fail with ENOSYS. Some functions are actually named
6457 something starting with __ and the normal name is an alias. */
6458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 eval "ac_cv_func_dlopen=yes"
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 eval "ac_cv_func_dlopen=no"
6478 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6479 echo "$ac_t""yes" 1>&6
6480 lt_cv_dlopen="dlopen"
6482 echo "$ac_t""no" 1>&6
6483 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6484 echo "configure:6485: checking for dlopen in -ldl" >&5
6485 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 ac_save_LIBS="$LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 eval "ac_cv_lib_$ac_lib_var=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6510 eval "ac_cv_lib_$ac_lib_var=no"
6513 LIBS="$ac_save_LIBS"
6516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6520 echo "$ac_t""no" 1>&6
6521 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6522 echo "configure:6523: checking for dlopen in -lsvld" >&5
6523 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6524 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 ac_save_LIBS="$LIBS"
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 eval "ac_cv_lib_$ac_lib_var=yes"
6545 echo "configure: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_lib_$ac_lib_var=no"
6551 LIBS="$ac_save_LIBS"
6554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6555 echo "$ac_t""yes" 1>&6
6556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6558 echo "$ac_t""no" 1>&6
6559 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6560 echo "configure:6561: checking for dld_link in -ldld" >&5
6561 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6562 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6563 echo $ac_n "(cached) $ac_c" 1>&6
6565 ac_save_LIBS="$LIBS"
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581 eval "ac_cv_lib_$ac_lib_var=yes"
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 eval "ac_cv_lib_$ac_lib_var=no"
6589 LIBS="$ac_save_LIBS"
6592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6596 echo "$ac_t""no" 1>&6
6620 if test "x$lt_cv_dlopen" != xno; then
6626 case $lt_cv_dlopen in
6628 save_CPPFLAGS="$CPPFLAGS"
6629 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6631 save_LDFLAGS="$LDFLAGS"
6632 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6635 LIBS="$lt_cv_dlopen_libs $LIBS"
6637 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6638 echo "configure:6639: checking whether a program can dlopen itself" >&5
6639 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 if test "$cross_compiling" = yes; then :
6643 lt_cv_dlopen_self=cross
6645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6646 lt_status=$lt_dlunknown
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6658 # define LT_DLGLOBAL RTLD_GLOBAL
6661 # define LT_DLGLOBAL DL_GLOBAL
6663 # define LT_DLGLOBAL 0
6667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6668 find out it does not work in some platform. */
6669 #ifndef LT_DLLAZY_OR_NOW
6671 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6674 # define LT_DLLAZY_OR_NOW DL_LAZY
6677 # define LT_DLLAZY_OR_NOW RTLD_NOW
6680 # define LT_DLLAZY_OR_NOW DL_NOW
6682 # define LT_DLLAZY_OR_NOW 0
6690 extern "C" void exit (int);
6693 void fnord() { int i=42;}
6696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6697 int status = $lt_dlunknown;
6701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6703 /* dlclose (self); */
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6710 (./conftest; exit; ) 2>/dev/null
6713 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6714 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6715 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6718 # compilation failed
6719 lt_cv_dlopen_self=no
6727 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6729 if test "x$lt_cv_dlopen_self" = xyes; then
6730 LDFLAGS="$LDFLAGS $link_static_flag"
6731 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6732 echo "configure:6733: checking whether a statically linked program can dlopen itself" >&5
6733 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6734 echo $ac_n "(cached) $ac_c" 1>&6
6736 if test "$cross_compiling" = yes; then :
6737 lt_cv_dlopen_self_static=cross
6739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6740 lt_status=$lt_dlunknown
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6752 # define LT_DLGLOBAL RTLD_GLOBAL
6755 # define LT_DLGLOBAL DL_GLOBAL
6757 # define LT_DLGLOBAL 0
6761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6762 find out it does not work in some platform. */
6763 #ifndef LT_DLLAZY_OR_NOW
6765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6768 # define LT_DLLAZY_OR_NOW DL_LAZY
6771 # define LT_DLLAZY_OR_NOW RTLD_NOW
6774 # define LT_DLLAZY_OR_NOW DL_NOW
6776 # define LT_DLLAZY_OR_NOW 0
6784 extern "C" void exit (int);
6787 void fnord() { int i=42;}
6790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6791 int status = $lt_dlunknown;
6795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6797 /* dlclose (self); */
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6804 (./conftest; exit; ) 2>/dev/null
6807 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6808 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6809 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6812 # compilation failed
6813 lt_cv_dlopen_self_static=no
6821 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6824 CPPFLAGS="$save_CPPFLAGS"
6825 LDFLAGS="$save_LDFLAGS"
6830 case $lt_cv_dlopen_self in
6831 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6832 *) enable_dlopen_self=unknown ;;
6835 case $lt_cv_dlopen_self_static in
6836 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6837 *) enable_dlopen_self_static=unknown ;;
6842 if test "$enable_shared" = yes && test "$GCC" = yes; then
6843 case $archive_cmds in
6845 # FIXME: we may have to deal with multi-command sequences.
6848 # Test whether the compiler implicitly links with -lc since on some
6849 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6850 # to ld, don't add -lc before -lgcc.
6851 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6852 echo "configure:6853: checking whether -lc should be explicitly linked in" >&5
6853 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6857 echo 'static int dummy;' > conftest.$ac_ext
6859 if { (eval echo configure:6860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6862 libobjs=conftest.$ac_objext
6864 wl=$lt_cv_prog_cc_wl
6870 save_allow_undefined_flag=$allow_undefined_flag
6871 allow_undefined_flag=
6872 if { (eval echo configure:6873: \"$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; }
6874 lt_cv_archive_cmds_need_lc=no
6876 lt_cv_archive_cmds_need_lc=yes
6878 allow_undefined_flag=$save_allow_undefined_flag
6880 cat conftest.err 1>&5
6884 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
6888 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6890 # The second clause should only fire when bootstrapping the
6891 # libtool distribution, otherwise you forgot to ship ltmain.sh
6892 # with your package, and you will get complaints that there are
6893 # no rules to generate ltmain.sh.
6894 if test -f "$ltmain"; then
6897 # If there is no Makefile yet, we rely on a make rule to execute
6898 # `config.status --recheck' to rerun these tests and create the
6899 # libtool script then.
6900 test -f Makefile && make "$ltmain"
6903 if test -f "$ltmain"; then
6904 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6907 echo creating $ofile
6909 # Now quote all the things that may contain metacharacters while being
6910 # careful not to overquote the AC_SUBSTed values. We take copies of the
6911 # variables and quote the copies for generation of the libtool script.
6912 for var in echo old_CC old_CFLAGS SED \
6913 AR AR_FLAGS CC LD LN_S NM SHELL \
6914 reload_flag reload_cmds wl \
6915 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6916 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6917 library_names_spec soname_spec \
6918 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6919 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6920 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6921 old_striplib striplib file_magic_cmd export_symbols_cmds \
6922 deplibs_check_method allow_undefined_flag no_undefined_flag \
6923 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6924 global_symbol_to_c_name_address \
6925 hardcode_libdir_flag_spec hardcode_libdir_separator \
6926 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6927 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6930 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6931 old_postinstall_cmds | old_postuninstall_cmds | \
6932 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6933 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6934 postinstall_cmds | postuninstall_cmds | \
6935 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6936 # Double-quote double-evaled strings.
6937 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6940 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6945 cat <<__EOF__ > "${ofile}T"
6948 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6949 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6950 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6952 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6953 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6955 # This program is free software; you can redistribute it and/or modify
6956 # it under the terms of the GNU General Public License as published by
6957 # the Free Software Foundation; either version 2 of the License, or
6958 # (at your option) any later version.
6960 # This program is distributed in the hope that it will be useful, but
6961 # WITHOUT ANY WARRANTY; without even the implied warranty of
6962 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6963 # General Public License for more details.
6965 # You should have received a copy of the GNU General Public License
6966 # along with this program; if not, write to the Free Software
6967 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6969 # As a special exception to the GNU General Public License, if you
6970 # distribute this file as part of a program that contains a
6971 # configuration script generated by Autoconf, you may include it under
6972 # the same distribution terms that you use for the rest of that program.
6974 # A sed that does not truncate output.
6977 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6978 Xsed="${SED} -e s/^X//"
6980 # The HP-UX ksh and POSIX shell print the target directory to stdout
6982 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6984 # ### BEGIN LIBTOOL CONFIG
6986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6988 # Shell to use when invoking shell scripts.
6991 # Whether or not to build shared libraries.
6992 build_libtool_libs=$enable_shared
6994 # Whether or not to build static libraries.
6995 build_old_libs=$enable_static
6997 # Whether or not to add -lc for building shared libraries.
6998 build_libtool_need_lc=$need_lc
7000 # Whether or not to optimize for fast installation.
7001 fast_install=$enable_fast_install
7004 host_alias=$host_alias
7007 # An echo program that does not interpret backslashes.
7012 AR_FLAGS=$lt_AR_FLAGS
7014 # The default C compiler.
7017 # Is the compiler the GNU C compiler?
7020 # The linker used to build libraries.
7023 # Whether we need hard or soft links.
7026 # A BSD-compatible nm program.
7029 # A symbol stripping program
7032 # Used to examine libraries when file_magic_cmd begins "file"
7033 MAGIC_CMD=$MAGIC_CMD
7035 # Used on cygwin: DLL creation program.
7038 # Used on cygwin: object dumper.
7041 # Used on cygwin: assembler.
7044 # The name of the directory that contains temporary libtool files.
7047 # How to create reloadable object files.
7048 reload_flag=$lt_reload_flag
7049 reload_cmds=$lt_reload_cmds
7051 # How to pass a linker flag through the compiler.
7054 # Object file suffix (normally "o").
7057 # Old archive suffix (normally "a").
7060 # Executable file suffix (normally "").
7063 # Additional compiler flags for building library objects.
7064 pic_flag=$lt_pic_flag
7067 # Does compiler simultaneously support -c and -o options?
7068 compiler_c_o=$lt_compiler_c_o
7070 # Can we write directly to a .lo ?
7071 compiler_o_lo=$lt_compiler_o_lo
7073 # Must we lock files when doing compilation ?
7074 need_locks=$lt_need_locks
7076 # Do we need the lib prefix for modules?
7077 need_lib_prefix=$need_lib_prefix
7079 # Do we need a version for libraries?
7080 need_version=$need_version
7082 # Whether dlopen is supported.
7083 dlopen_support=$enable_dlopen
7085 # Whether dlopen of programs is supported.
7086 dlopen_self=$enable_dlopen_self
7088 # Whether dlopen of statically linked programs is supported.
7089 dlopen_self_static=$enable_dlopen_self_static
7091 # Compiler flag to prevent dynamic linking.
7092 link_static_flag=$lt_link_static_flag
7094 # Compiler flag to turn off builtin functions.
7095 no_builtin_flag=$lt_no_builtin_flag
7097 # Compiler flag to allow reflexive dlopens.
7098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7100 # Compiler flag to generate shared objects directly from archives.
7101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7103 # Compiler flag to generate thread-safe objects.
7104 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7106 # Library versioning type.
7107 version_type=$version_type
7109 # Format of library name prefix.
7110 libname_spec=$lt_libname_spec
7112 # List of archive names. First name is the real one, the rest are links.
7113 # The last name is the one that the linker finds with -lNAME.
7114 library_names_spec=$lt_library_names_spec
7116 # The coded name of the library, if different from the real name.
7117 soname_spec=$lt_soname_spec
7119 # Commands used to build and install an old-style archive.
7121 old_archive_cmds=$lt_old_archive_cmds
7122 old_postinstall_cmds=$lt_old_postinstall_cmds
7123 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7125 # Create an old-style archive from a shared archive.
7126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7128 # Create a temporary old-style archive to link instead of a shared archive.
7129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7131 # Commands used to build and install a shared archive.
7132 archive_cmds=$lt_archive_cmds
7133 archive_expsym_cmds=$lt_archive_expsym_cmds
7134 postinstall_cmds=$lt_postinstall_cmds
7135 postuninstall_cmds=$lt_postuninstall_cmds
7137 # Commands to strip libraries.
7138 old_striplib=$lt_old_striplib
7139 striplib=$lt_striplib
7141 # Method to check whether dependent libraries are shared objects.
7142 deplibs_check_method=$lt_deplibs_check_method
7144 # Command to use when deplibs_check_method == file_magic.
7145 file_magic_cmd=$lt_file_magic_cmd
7147 # Flag that allows shared libraries with undefined symbols to be built.
7148 allow_undefined_flag=$lt_allow_undefined_flag
7150 # Flag that forces no undefined symbols.
7151 no_undefined_flag=$lt_no_undefined_flag
7153 # Commands used to finish a libtool library installation in a directory.
7154 finish_cmds=$lt_finish_cmds
7156 # Same as above, but a single script fragment to be evaled but not shown.
7157 finish_eval=$lt_finish_eval
7159 # Take the output of nm and produce a listing of raw symbols and C names.
7160 global_symbol_pipe=$lt_global_symbol_pipe
7162 # Transform the output of nm in a proper C declaration
7163 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7165 # Transform the output of nm in a C name address pair
7166 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7168 # This is the shared library runtime path variable.
7169 runpath_var=$runpath_var
7171 # This is the shared library path variable.
7172 shlibpath_var=$shlibpath_var
7174 # Is shlibpath searched before the hard-coded library search path?
7175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7177 # How to hardcode a shared library path into an executable.
7178 hardcode_action=$hardcode_action
7180 # Whether we should hardcode library paths into libraries.
7181 hardcode_into_libs=$hardcode_into_libs
7183 # Flag to hardcode \$libdir into a binary during linking.
7184 # This must work even if \$libdir does not exist.
7185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7187 # Whether we need a single -rpath flag with a separated argument.
7188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7190 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7192 hardcode_direct=$hardcode_direct
7194 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7196 hardcode_minus_L=$hardcode_minus_L
7198 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7199 # the resulting binary.
7200 hardcode_shlibpath_var=$hardcode_shlibpath_var
7202 # Variables whose values should be saved in libtool wrapper scripts and
7203 # restored at relink time.
7204 variables_saved_for_relink="$variables_saved_for_relink"
7206 # Whether libtool must link a program against all its dependency libraries.
7207 link_all_deplibs=$link_all_deplibs
7209 # Compile-time system search path for libraries
7210 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7212 # Run-time system search path for libraries
7213 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7215 # Fix the shell variable \$srcfile for the compiler.
7216 fix_srcfile_path="$fix_srcfile_path"
7218 # Set to yes if exported symbols are required.
7219 always_export_symbols=$always_export_symbols
7221 # The commands to list exported symbols.
7222 export_symbols_cmds=$lt_export_symbols_cmds
7224 # The commands to extract the exported symbol list from a shared archive.
7225 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7227 # Symbols that should not be listed in the preloaded symbols.
7228 exclude_expsyms=$lt_exclude_expsyms
7230 # Symbols that must always be exported.
7231 include_expsyms=$lt_include_expsyms
7233 # ### END LIBTOOL CONFIG
7239 cat <<\EOF >> "${ofile}T"
7241 # AIX sometimes has problems with the GCC collect2 program. For some
7242 # reason, if we set the COLLECT_NAMES environment variable, the problems
7243 # vanish in a puff of smoke.
7244 if test "X${COLLECT_NAMES+set}" != Xset; then
7246 export COLLECT_NAMES
7253 cygwin* | mingw* | pw32* | os2*)
7254 cat <<'EOF' >> "${ofile}T"
7255 # This is a source program that is used to create dlls on Windows
7256 # Don't remove nor modify the starting and closing comments
7257 # /* ltdll.c starts here */
7258 # #define WIN32_LEAN_AND_MEAN
7259 # #include <windows.h>
7260 # #undef WIN32_LEAN_AND_MEAN
7261 # #include <stdio.h>
7263 # #ifndef __CYGWIN__
7264 # # ifdef __CYGWIN32__
7265 # # define __CYGWIN__ __CYGWIN32__
7269 # #ifdef __cplusplus
7272 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7273 # #ifdef __cplusplus
7278 # #include <cygwin/cygwin_dll.h>
7279 # DECLARE_CYGWIN_DLL( DllMain );
7281 # HINSTANCE __hDllInstance_base;
7284 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7286 # __hDllInstance_base = hInst;
7289 # /* ltdll.c ends here */
7290 # This is a source program that is used to create import libraries
7291 # on Windows for dlls which lack them. Don't remove nor modify the
7292 # starting and closing comments
7293 # /* impgen.c starts here */
7294 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7296 # This file is part of GNU libtool.
7298 # This program is free software; you can redistribute it and/or modify
7299 # it under the terms of the GNU General Public License as published by
7300 # the Free Software Foundation; either version 2 of the License, or
7301 # (at your option) any later version.
7303 # This program is distributed in the hope that it will be useful,
7304 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7305 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7306 # GNU General Public License for more details.
7308 # You should have received a copy of the GNU General Public License
7309 # along with this program; if not, write to the Free Software
7310 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7313 # #include <stdio.h> /* for printf() */
7314 # #include <unistd.h> /* for open(), lseek(), read() */
7315 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7316 # #include <string.h> /* for strdup() */
7318 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7320 # #define O_BINARY 0
7323 # static unsigned int
7324 # pe_get16 (fd, offset)
7328 # unsigned char b[2];
7329 # lseek (fd, offset, SEEK_SET);
7331 # return b[0] + (b[1]<<8);
7334 # static unsigned int
7335 # pe_get32 (fd, offset)
7339 # unsigned char b[4];
7340 # lseek (fd, offset, SEEK_SET);
7342 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7345 # static unsigned int
7349 # unsigned char *b = ptr;
7350 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7359 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7360 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7361 # unsigned long name_rvas, nexp;
7362 # unsigned char *expdata, *erva;
7363 # char *filename, *dll_name;
7365 # filename = argv[1];
7367 # dll = open(filename, O_RDONLY|O_BINARY);
7371 # dll_name = filename;
7373 # for (i=0; filename[i]; i++)
7374 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7375 # dll_name = filename + i +1;
7377 # pe_header_offset = pe_get32 (dll, 0x3c);
7378 # opthdr_ofs = pe_header_offset + 4 + 20;
7379 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7381 # if (num_entries < 1) /* no exports */
7384 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7385 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7386 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7387 # secptr = (pe_header_offset + 4 + 20 +
7388 # pe_get16 (dll, pe_header_offset + 4 + 16));
7391 # for (i = 0; i < nsections; i++)
7394 # unsigned long secptr1 = secptr + 40 * i;
7395 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7396 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7397 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7398 # lseek(dll, secptr1, SEEK_SET);
7399 # read(dll, sname, 8);
7400 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7402 # expptr = fptr + (export_rva - vaddr);
7403 # if (export_rva + export_size > vaddr + vsize)
7404 # export_size = vsize - (export_rva - vaddr);
7409 # expdata = (unsigned char*)malloc(export_size);
7410 # lseek (dll, expptr, SEEK_SET);
7411 # read (dll, expdata, export_size);
7412 # erva = expdata - export_rva;
7414 # nexp = pe_as32 (expdata+24);
7415 # name_rvas = pe_as32 (expdata+32);
7417 # printf ("EXPORTS\n");
7418 # for (i = 0; i<nexp; i++)
7420 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7421 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7426 # /* impgen.c ends here */
7432 # We use sed instead of cat because bash on DJGPP gets confused if
7433 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7434 # text mode, it properly converts lines to CR/LF. This bash problem
7435 # is reportedly fixed, but why not run on old versions too?
7436 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7438 mv -f "${ofile}T" "$ofile" || \
7439 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7447 # This can be used to rebuild libtool when needed
7448 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7450 # Always use our own libtool.
7451 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7453 # Prevent multiple expansion
7457 # test for ln hardlink support
7458 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7459 echo "configure:7460: checking whether ln works" >&5
7460 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7463 rm -f conftest.src conftest.dst
7464 echo "conftest" > conftest.src
7465 if ln conftest.src conftest.dst 2>/dev/null
7467 ol_cv_prog_LN_H="ln"
7469 ol_cv_prog_LN_H="cp"
7471 rm -f conftest.src conftest.dst
7474 LN_H="$ol_cv_prog_LN_H"
7475 if test "$ol_cv_prog_LN_H" = "ln"; then
7476 echo "$ac_t""yes" 1>&6
7478 echo "$ac_t""no" 1>&6
7481 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7482 echo "configure:7483: checking whether ln -s works" >&5
7483 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7484 echo $ac_n "(cached) $ac_c" 1>&6
7487 if ln -s X conftestdata 2>/dev/null
7490 ac_cv_prog_LN_S="ln -s"
7495 LN_S="$ac_cv_prog_LN_S"
7496 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7497 echo "$ac_t""yes" 1>&6
7499 echo "$ac_t""no" 1>&6
7504 if test $ol_enable_perl != no ; then
7505 # Extract the first word of "perl", so it can be a program name with args.
7506 set dummy perl; ac_word=$2
7507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7508 echo "configure:7509: checking for $ac_word" >&5
7509 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7510 echo $ac_n "(cached) $ac_c" 1>&6
7514 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7517 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7522 for ac_dir in $ac_dummy; do
7523 test -z "$ac_dir" && ac_dir=.
7524 if test -f $ac_dir/$ac_word; then
7525 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7530 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7534 PERLBIN="$ac_cv_path_PERLBIN"
7535 if test -n "$PERLBIN"; then
7536 echo "$ac_t""$PERLBIN" 1>&6
7538 echo "$ac_t""no" 1>&6
7542 if test "no$PERLBIN" = "no" ; then
7543 if test $ol_enable_perl = yes ; then
7544 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7548 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7549 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7551 if test x"$ol_enable_perl" = "xyes" ; then
7552 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7554 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7560 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7561 echo "configure:7562: checking how to run the C preprocessor" >&5
7562 # On Suns, sometimes $CPP names a directory.
7563 if test -n "$CPP" && test -d "$CPP"; then
7566 if test -z "$CPP"; then
7567 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7570 # This must be in double quotes, not single quotes, because CPP may get
7571 # substituted into the Makefile and "${CC-cc}" will confuse make.
7573 # On the NeXT, cc -E runs the code through the compiler's parser,
7574 # not just through cpp.
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7582 { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7584 if test -z "$ac_err"; then
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7591 CPP="${CC-cc} -E -traditional-cpp"
7592 cat > conftest.$ac_ext <<EOF
7593 #line 7594 "configure"
7594 #include "confdefs.h"
7598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7599 { (eval echo configure:7600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7601 if test -z "$ac_err"; then
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 CPP="${CC-cc} -nologo -E"
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7616 { (eval echo configure:7617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7618 if test -z "$ac_err"; then
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7632 ac_cv_prog_CPP="$CPP"
7634 CPP="$ac_cv_prog_CPP"
7636 ac_cv_prog_CPP="$CPP"
7638 echo "$ac_t""$CPP" 1>&6
7642 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7643 echo "configure:7644: checking for Cygwin environment" >&5
7644 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7647 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure"
7649 #include "confdefs.h"
7654 #define __CYGWIN__ __CYGWIN32__
7659 if { (eval echo configure:7660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7663 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5
7671 echo "$ac_t""$ac_cv_cygwin" 1>&6
7673 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7674 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7675 echo "configure:7676: checking for mingw32 environment" >&5
7676 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7687 if { (eval echo configure:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7699 echo "$ac_t""$ac_cv_mingw32" 1>&6
7701 test "$ac_cv_mingw32" = yes && MINGW32=yes
7705 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7706 echo "configure:7707: checking for executable suffix" >&5
7707 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7710 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7714 echo 'int main () { return 0; }' > conftest.$ac_ext
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7717 for file in conftest.*; do
7719 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7720 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7724 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7727 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7732 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7733 echo "$ac_t""${ac_cv_exeext}" 1>&6
7736 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7737 echo "configure:7738: checking for object suffix" >&5
7738 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7742 echo 'int i = 1;' > conftest.$ac_ext
7743 if { (eval echo configure:7744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7744 for ac_file in conftest.*; do
7747 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7751 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7756 echo "$ac_t""$ac_cv_objext" 1>&6
7757 OBJEXT=$ac_cv_objext
7758 ac_objext=$ac_cv_objext
7761 cat >> confdefs.h <<EOF
7762 #define EXEEXT "${EXEEXT}"
7766 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7767 echo "configure:7768: checking for be_app in -lbe" >&5
7768 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7769 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7770 echo $ac_n "(cached) $ac_c" 1>&6
7772 ac_save_LIBS="$LIBS"
7773 LIBS="-lbe -lroot -lnet $LIBS"
7774 cat > conftest.$ac_ext <<EOF
7775 #line 7776 "configure"
7776 #include "confdefs.h"
7777 /* Override any gcc2 internal prototype to avoid an error. */
7778 /* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7786 if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7788 eval "ac_cv_lib_$ac_lib_var=yes"
7790 echo "configure: failed program was:" >&5
7791 cat conftest.$ac_ext >&5
7793 eval "ac_cv_lib_$ac_lib_var=no"
7796 LIBS="$ac_save_LIBS"
7799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7800 echo "$ac_t""yes" 1>&6
7801 LIBS="$LIBS -lbe -lroot -lnet"
7803 echo "$ac_t""no" 1>&6
7811 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7812 echo "configure:7813: checking for ${CC-cc} option to accept ANSI C" >&5
7813 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 am_cv_prog_cc_stdc=no
7818 # Don't try gcc -ansi; that turns off useful extensions and
7819 # breaks some systems' header files.
7820 # AIX -qlanglvl=ansi
7821 # Ultrix and OSF/1 -std1
7822 # HP-UX 10.20 and later -Ae
7823 # HP-UX older versions -Aa -D_HPUX_SOURCE
7824 # SVR4 -Xc -D__EXTENSIONS__
7825 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7827 CC="$ac_save_CC $ac_arg"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7833 #include <sys/types.h>
7834 #include <sys/stat.h>
7835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7836 struct buf { int x; };
7837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7838 static char *e (p, i)
7844 static char *f (char * (*g) (char **, int), char **p, ...)
7849 s = g (p, va_arg (v,int));
7853 int test (int i, double x);
7854 struct s1 {int (*f) (int a);};
7855 struct s2 {int (*f) (double a);};
7856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7866 if { (eval echo configure:7867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7868 am_cv_prog_cc_stdc="$ac_arg"; break
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7879 if test -z "$am_cv_prog_cc_stdc"; then
7880 echo "$ac_t""none needed" 1>&6
7882 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
7884 case "x$am_cv_prog_cc_stdc" in
7886 *) CC="$CC $am_cv_prog_cc_stdc" ;;
7889 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
7890 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
7893 # test for make depend flag
7896 if test -z "${MKDEP}"; then
7898 if test -z "${MKDEP_FLAGS}"; then
7899 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
7900 echo "configure:7901: checking for ${OL_MKDEP} depend flag" >&5
7901 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7906 for flag in "-M" "-xM"; do
7907 cat > conftest.c <<EOF
7910 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
7911 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
7913 if test ! -f conftest."${ac_object}" ; then
7915 OL_MKDEP_FLAGS="$flag"
7924 echo "$ac_t""$ol_cv_mkdep" 1>&6
7927 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7932 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7937 if test "${ol_cv_mkdep}" = no ; then
7938 # this will soon become an error
7939 echo "configure: warning: do not know how to generate dependencies" 1>&2
7942 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
7943 echo "configure:7944: checking for afopen in -ls" >&5
7944 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
7945 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7948 ac_save_LIBS="$LIBS"
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 /* Override any gcc2 internal prototype to avoid an error. */
7954 /* We use char because int might match the return type of a gcc2
7955 builtin and then its argument prototype would still apply. */
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 eval "ac_cv_lib_$ac_lib_var=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_lib_$ac_lib_var=no"
7972 LIBS="$ac_save_LIBS"
7975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7979 cat >> confdefs.h <<\EOF
7980 #define HAVE_AIX_SECURITY 1
7985 echo "$ac_t""no" 1>&6
7991 ac_cv_func_getopt=no
7992 cat >> confdefs.h <<\EOF
7993 #define BOTH_STRINGS_H 1
8000 if test $ol_enable_modules != no ; then
8001 for ac_hdr in ltdl.h
8003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8005 echo "configure:8006: checking for $ac_hdr" >&5
8006 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8009 cat > conftest.$ac_ext <<EOF
8010 #line 8011 "configure"
8011 #include "confdefs.h"
8014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8015 { (eval echo configure:8016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8017 if test -z "$ac_err"; then
8019 eval "ac_cv_header_$ac_safe=yes"
8022 echo "configure: failed program was:" >&5
8023 cat conftest.$ac_ext >&5
8025 eval "ac_cv_header_$ac_safe=no"
8029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8032 cat >> confdefs.h <<EOF
8033 #define $ac_tr_hdr 1
8037 echo "$ac_t""no" 1>&6
8042 if test $ac_cv_header_ltdl_h = no ; then
8043 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8046 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8047 echo "configure:8048: checking for lt_dlinit in -lltdl" >&5
8048 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_save_LIBS="$LIBS"
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8076 LIBS="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8083 cat >> confdefs.h <<\EOF
8084 #define HAVE_LIBLTDL 1
8089 echo "$ac_t""no" 1>&6
8093 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8094 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8099 for i in $Backends; do
8100 eval "ol_tmp=\$ol_enable_$i"
8101 if test $ol_tmp = mod ; then
8102 echo "configure: warning: building static $i backend" 1>&2
8103 eval "ol_enable_$i=yes"
8106 for i in $Overlays; do
8107 eval "ol_tmp=\$ol_enable_$i"
8108 if test $ol_tmp = mod ; then
8109 echo "configure: warning: building static $i overlay" 1>&2
8110 eval "ol_enable_$i=yes"
8116 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8117 echo "configure:8118: checking for EBCDIC" >&5
8118 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8122 cat > conftest.$ac_ext <<EOF
8123 #line 8124 "configure"
8124 #include "confdefs.h"
8127 #include <__ASCII__/generate_error.h>
8131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8132 { (eval echo configure:8133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8134 if test -z "$ac_err"; then
8136 ol_cv_cpp_ebcdic=yes
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8147 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8148 if test $ol_cv_cpp_ebcdic = yes ; then
8149 cat >> confdefs.h <<\EOF
8150 #define HAVE_EBCDIC 1
8155 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8156 echo "configure:8157: checking for ANSI C header files" >&5
8157 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8160 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8169 { (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8171 if test -z "$ac_err"; then
8173 ol_cv_header_stdc=yes
8176 echo "configure: failed program was:" >&5
8177 cat conftest.$ac_ext >&5
8179 ol_cv_header_stdc=no
8183 if test $ol_cv_header_stdc = yes; then
8184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8191 egrep "memchr" >/dev/null 2>&1; then
8195 ol_cv_header_stdc=no
8201 if test $ol_cv_header_stdc = yes; then
8202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8209 egrep "free" >/dev/null 2>&1; then
8213 ol_cv_header_stdc=no
8219 if test $ol_cv_header_stdc = yes; then
8220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8221 if test "$cross_compiling" = yes; then
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8232 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8233 || ('j' <= (c) && (c) <= 'r') \
8234 || ('s' <= (c) && (c) <= 'z'))
8235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8238 int main () { int i; for (i = 0; i < 256; i++)
8239 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8250 ol_cv_header_stdc=no
8258 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8259 if test $ol_cv_header_stdc = yes; then
8260 cat >> confdefs.h <<\EOF
8261 #define STDC_HEADERS 1
8265 ac_cv_header_stdc=disable
8268 if test $ol_cv_header_stdc != yes; then
8269 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8276 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_hdr that defines DIR" >&5
8278 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8279 echo $ac_n "(cached) $ac_c" 1>&6
8281 cat > conftest.$ac_ext <<EOF
8282 #line 8283 "configure"
8283 #include "confdefs.h"
8284 #include <sys/types.h>
8290 if { (eval echo configure:8291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8292 eval "ac_cv_header_dirent_$ac_safe=yes"
8294 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8297 eval "ac_cv_header_dirent_$ac_safe=no"
8301 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8302 echo "$ac_t""yes" 1>&6
8303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8304 cat >> confdefs.h <<EOF
8305 #define $ac_tr_hdr 1
8307 ac_header_dirent=$ac_hdr; break
8309 echo "$ac_t""no" 1>&6
8312 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8313 if test $ac_header_dirent = dirent.h; then
8314 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8315 echo "configure:8316: checking for opendir in -ldir" >&5
8316 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8317 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8320 ac_save_LIBS="$LIBS"
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8334 if { (eval echo configure:8335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 eval "ac_cv_lib_$ac_lib_var=yes"
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8341 eval "ac_cv_lib_$ac_lib_var=no"
8344 LIBS="$ac_save_LIBS"
8347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8348 echo "$ac_t""yes" 1>&6
8351 echo "$ac_t""no" 1>&6
8355 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8356 echo "configure:8357: checking for opendir in -lx" >&5
8357 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8361 ac_save_LIBS="$LIBS"
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 eval "ac_cv_lib_$ac_lib_var=yes"
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8382 eval "ac_cv_lib_$ac_lib_var=no"
8385 LIBS="$ac_save_LIBS"
8388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8392 echo "$ac_t""no" 1>&6
8397 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8398 echo "configure:8399: checking for sys/wait.h that is POSIX.1 compatible" >&5
8399 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8400 echo $ac_n "(cached) $ac_c" 1>&6
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 #include <sys/types.h>
8406 #include <sys/wait.h>
8408 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8411 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8416 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8419 if { (eval echo configure:8420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8421 ac_cv_header_sys_wait_h=yes
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 ac_cv_header_sys_wait_h=no
8431 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8432 if test $ac_cv_header_sys_wait_h = yes; then
8433 cat >> confdefs.h <<\EOF
8434 #define HAVE_SYS_WAIT_H 1
8439 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8440 echo "configure:8441: checking POSIX termios" >&5
8441 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8442 echo $ac_n "(cached) $ac_c" 1>&6
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 #include <sys/types.h>
8449 #include <termios.h>
8451 /* SunOS 4.0.3 has termios.h but not the library calls. */
8455 if { (eval echo configure:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8457 am_cv_sys_posix_termios=yes
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8462 am_cv_sys_posix_termios=no
8467 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8470 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8471 echo "configure:8472: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8472 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8477 gwinsz_in_termios_h=no
8478 if test $am_cv_sys_posix_termios = yes; then
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 #include <sys/types.h>
8483 # include <termios.h>
8489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8490 egrep "yes" >/dev/null 2>&1; then
8492 gwinsz_in_termios_h=yes
8498 if test $gwinsz_in_termios_h = no; then
8499 cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8502 #include <sys/types.h>
8503 # include <sys/ioctl.h>
8509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8510 egrep "yes" >/dev/null 2>&1; then
8512 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8520 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8521 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8522 cat >> confdefs.h <<\EOF
8523 #define GWINSZ_IN_SYS_IOCTL 1
8528 if test $am_cv_sys_posix_termios = yes ; then
8529 cat >> confdefs.h <<\EOF
8530 #define HAVE_POSIX_TERMIOS 1
8586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8588 echo "configure:8589: checking for $ac_hdr" >&5
8589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8598 { (eval echo configure:8599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8600 if test -z "$ac_err"; then
8602 eval "ac_cv_header_$ac_safe=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_header_$ac_safe=no"
8612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_hdr 1
8620 echo "$ac_t""no" 1>&6
8627 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8628 echo "configure:8629: checking for sigset in -lV3" >&5
8629 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8630 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8633 ac_save_LIBS="$LIBS"
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8649 eval "ac_cv_lib_$ac_lib_var=yes"
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8654 eval "ac_cv_lib_$ac_lib_var=no"
8657 LIBS="$ac_save_LIBS"
8660 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8662 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8663 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8664 cat >> confdefs.h <<EOF
8665 #define $ac_tr_lib 1
8671 echo "$ac_t""no" 1>&6
8675 if test "$ac_cv_header_winsock_h" = yes; then
8676 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8677 echo "configure:8678: checking for winsock" >&5
8678 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8679 echo $ac_n "(cached) $ac_c" 1>&6
8682 for curlib in ws2_32 wsock32; do
8683 LIBS="$LIBS -l$curlib"
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <winsock.h>
8692 select(0,NULL,NULL,NULL,NULL);
8694 gethostname(NULL,0);
8698 if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8702 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8709 if test $ol_cv_winsock = yes; then
8710 cat >> confdefs.h <<\EOF
8711 #define HAVE_WINSOCK 1
8714 ac_cv_func_socket=yes
8715 ac_cv_func_select=yes
8716 ac_cv_func_closesocket=yes
8717 ac_cv_func_gethostname=yes
8718 if test $curlib = ws2_32; then
8719 ol_cv_winsock=winsock2
8720 cat >> confdefs.h <<\EOF
8721 #define HAVE_WINSOCK2 1
8731 echo "$ac_t""$ol_cv_winsock" 1>&6
8735 echo $ac_n "checking for socket""... $ac_c" 1>&6
8736 echo "configure:8737: checking for socket" >&5
8737 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 /* System header to define __stub macros and hopefully few prototypes,
8744 which can conflict with char socket(); below. */
8746 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8754 /* The GNU C library defines this for functions which it implements
8755 to always fail with ENOSYS. Some functions are actually named
8756 something starting with __ and the normal name is an alias. */
8757 #if defined (__stub_socket) || defined (__stub___socket)
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767 eval "ac_cv_func_socket=yes"
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 eval "ac_cv_func_socket=no"
8777 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8778 echo "$ac_t""yes" 1>&6
8781 echo "$ac_t""no" 1>&6
8783 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8784 echo "configure:8785: checking for main in -lsocket" >&5
8785 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8789 ac_save_LIBS="$LIBS"
8790 LIBS="-lsocket $LIBS"
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8801 eval "ac_cv_lib_$ac_lib_var=yes"
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8806 eval "ac_cv_lib_$ac_lib_var=no"
8809 LIBS="$ac_save_LIBS"
8812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8813 echo "$ac_t""yes" 1>&6
8814 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8815 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8816 cat >> confdefs.h <<EOF
8817 #define $ac_tr_lib 1
8820 LIBS="-lsocket $LIBS"
8823 echo "$ac_t""no" 1>&6
8826 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8827 echo "configure:8828: checking for main in -lnet" >&5
8828 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8832 ac_save_LIBS="$LIBS"
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8842 if { (eval echo configure:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 eval "ac_cv_lib_$ac_lib_var=yes"
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8849 eval "ac_cv_lib_$ac_lib_var=no"
8852 LIBS="$ac_save_LIBS"
8855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8856 echo "$ac_t""yes" 1>&6
8857 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8858 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8859 cat >> confdefs.h <<EOF
8860 #define $ac_tr_lib 1
8866 echo "$ac_t""no" 1>&6
8869 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
8870 echo "configure:8871: checking for main in -lnsl_s" >&5
8871 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
8872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8873 echo $ac_n "(cached) $ac_c" 1>&6
8875 ac_save_LIBS="$LIBS"
8876 LIBS="-lnsl_s $LIBS"
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8885 if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 eval "ac_cv_lib_$ac_lib_var=yes"
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8892 eval "ac_cv_lib_$ac_lib_var=no"
8895 LIBS="$ac_save_LIBS"
8898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8902 cat >> confdefs.h <<EOF
8903 #define $ac_tr_lib 1
8906 LIBS="-lnsl_s $LIBS"
8909 echo "$ac_t""no" 1>&6
8912 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8913 echo "configure:8914: checking for main in -lnsl" >&5
8914 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
8915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8918 ac_save_LIBS="$LIBS"
8920 cat > conftest.$ac_ext <<EOF
8921 #line 8922 "configure"
8922 #include "confdefs.h"
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 eval "ac_cv_lib_$ac_lib_var=yes"
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 eval "ac_cv_lib_$ac_lib_var=no"
8938 LIBS="$ac_save_LIBS"
8941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_lib 1
8952 echo "$ac_t""no" 1>&6
8955 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8956 echo "configure:8957: checking for socket in -linet" >&5
8957 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
8958 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8961 ac_save_LIBS="$LIBS"
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8975 if { (eval echo configure:8976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8977 eval "ac_cv_lib_$ac_lib_var=yes"
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8982 eval "ac_cv_lib_$ac_lib_var=no"
8985 LIBS="$ac_save_LIBS"
8988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8989 echo "$ac_t""yes" 1>&6
8990 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8991 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8992 cat >> confdefs.h <<EOF
8993 #define $ac_tr_lib 1
8999 echo "$ac_t""no" 1>&6
9002 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9003 echo "configure:9004: checking for main in -lgen" >&5
9004 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9006 echo $ac_n "(cached) $ac_c" 1>&6
9008 ac_save_LIBS="$LIBS"
9010 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9018 if { (eval echo configure:9019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9020 eval "ac_cv_lib_$ac_lib_var=yes"
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9025 eval "ac_cv_lib_$ac_lib_var=no"
9028 LIBS="$ac_save_LIBS"
9031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9034 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9035 cat >> confdefs.h <<EOF
9036 #define $ac_tr_lib 1
9042 echo "$ac_t""no" 1>&6
9049 echo $ac_n "checking for select""... $ac_c" 1>&6
9050 echo "configure:9051: checking for select" >&5
9051 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 /* System header to define __stub macros and hopefully few prototypes,
9058 which can conflict with char select(); below. */
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 /* We use char because int might match the return type of a gcc2
9062 builtin and then its argument prototype would still apply. */
9068 /* The GNU C library defines this for functions which it implements
9069 to always fail with ENOSYS. Some functions are actually named
9070 something starting with __ and the normal name is an alias. */
9071 #if defined (__stub_select) || defined (__stub___select)
9079 if { (eval echo configure:9080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9081 eval "ac_cv_func_select=yes"
9083 echo "configure: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 eval "ac_cv_func_select=no"
9091 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9095 echo "$ac_t""no" 1>&6
9096 { echo "configure: error: select() required." 1>&2; exit 1; }
9100 if test "${ac_cv_header_winsock_h}" != yes; then
9101 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9102 echo "configure:9103: checking types of arguments for select()" >&5
9103 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9106 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9109 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9110 echo $ac_n "(cached) $ac_c" 1>&6
9112 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9113 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9114 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9115 cat > conftest.$ac_ext <<EOF
9116 #line 9117 "configure"
9117 #include "confdefs.h"
9118 #ifdef HAVE_SYS_TYPES_H
9119 #include <sys/types.h>
9121 #ifdef HAVE_SYS_TIME_H
9122 #include <sys/time.h>
9124 #ifdef HAVE_SYS_SELECT_H
9125 #include <sys/select.h>
9127 #ifdef HAVE_SYS_SOCKET_H
9128 #include <sys/socket.h>
9130 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);
9135 if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9137 ac_not_found=no ; break 3
9139 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9154 if test "$ac_not_found" = yes; then
9155 ac_cv_func_select_arg1=int
9156 ac_cv_func_select_arg234='int *'
9157 ac_cv_func_select_arg5='struct timeval *'
9159 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9160 cat >> confdefs.h <<EOF
9161 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9164 cat >> confdefs.h <<EOF
9165 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9168 cat >> confdefs.h <<EOF
9169 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9176 for ac_hdr in regex.h
9178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9180 echo "configure:9181: checking for $ac_hdr" >&5
9181 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9182 echo $ac_n "(cached) $ac_c" 1>&6
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9190 { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9192 if test -z "$ac_err"; then
9194 eval "ac_cv_header_$ac_safe=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_header_$ac_safe=no"
9204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9205 echo "$ac_t""yes" 1>&6
9206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9207 cat >> confdefs.h <<EOF
9208 #define $ac_tr_hdr 1
9212 echo "$ac_t""no" 1>&6
9216 if test "$ac_cv_header_regex_h" != yes ; then
9217 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9220 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9221 echo "configure:9222: checking for library containing regfree" >&5
9222 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9225 ac_func_search_save_LIBS="$LIBS"
9226 ac_cv_search_regfree="no"
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9230 /* Override any gcc2 internal prototype to avoid an error. */
9231 /* We use char because int might match the return type of a gcc2
9232 builtin and then its argument prototype would still apply. */
9239 if { (eval echo configure:9240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9241 ac_cv_search_regfree="none required"
9243 echo "configure: failed program was:" >&5
9244 cat conftest.$ac_ext >&5
9247 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9252 /* Override any gcc2 internal prototype to avoid an error. */
9253 /* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9263 ac_cv_search_regfree="-l$ac_lib"
9266 echo "configure: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9271 LIBS="$ac_func_search_save_LIBS"
9274 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9275 if test "$ac_cv_search_regfree" != "no"; then
9276 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9279 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9283 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9284 echo "configure:9285: checking for compatible POSIX regex" >&5
9285 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 if test "$cross_compiling" = yes; then
9290 ol_cv_c_posix_regex=cross
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9296 #include <sys/types.h>
9298 static char *pattern, *string;
9306 if(regcomp(&re, pattern, 0)) {
9310 string = "ALL MATCH";
9312 rc = regexec(&re, string, 0, (void*)0, 0);
9319 if { (eval echo configure:9320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9321 ol_cv_c_posix_regex=yes
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9326 ol_cv_c_posix_regex=no
9333 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9335 if test "$ol_cv_c_posix_regex" = no ; then
9336 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9341 for ac_hdr in sys/uuid.h
9343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9345 echo "configure:9346: checking for $ac_hdr" >&5
9346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9347 echo $ac_n "(cached) $ac_c" 1>&6
9349 cat > conftest.$ac_ext <<EOF
9350 #line 9351 "configure"
9351 #include "confdefs.h"
9354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9355 { (eval echo configure:9356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9357 if test -z "$ac_err"; then
9359 eval "ac_cv_header_$ac_safe=yes"
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9365 eval "ac_cv_header_$ac_safe=no"
9369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9370 echo "$ac_t""yes" 1>&6
9371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9372 cat >> confdefs.h <<EOF
9373 #define $ac_tr_hdr 1
9377 echo "$ac_t""no" 1>&6
9381 if test $ac_cv_header_sys_uuid_h = yes ; then
9384 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9385 echo "configure:9386: checking for library containing uuid_to_str" >&5
9386 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9387 echo $ac_n "(cached) $ac_c" 1>&6
9389 ac_func_search_save_LIBS="$LIBS"
9390 ac_cv_search_uuid_to_str="no"
9391 cat > conftest.$ac_ext <<EOF
9392 #line 9393 "configure"
9393 #include "confdefs.h"
9394 /* Override any gcc2 internal prototype to avoid an error. */
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9403 if { (eval echo configure:9404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9405 ac_cv_search_uuid_to_str="none required"
9407 echo "configure: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9411 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9416 /* Override any gcc2 internal prototype to avoid an error. */
9417 /* We use char because int might match the return type of a gcc2
9418 builtin and then its argument prototype would still apply. */
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9427 ac_cv_search_uuid_to_str="-l$ac_lib"
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9435 LIBS="$ac_func_search_save_LIBS"
9438 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9439 if test "$ac_cv_search_uuid_to_str" != "no"; then
9440 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9447 if test have_uuid = yes ; then
9448 cat >> confdefs.h <<\EOF
9449 #define HAVE_UUID_TO_STR 1
9453 test "$ac_cv_search_uuid_to_str" = "none required" || \
9454 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9458 if test $have_uuid = no ; then
9459 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9460 echo "configure:9461: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9462 LIBS="$LIBS -lrpcrt4"
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9467 int __stdcall UuidCreate(void *);
9468 int __stdcall UuidToStringA(void *,void **);
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9487 if test $need_rpcrt = yes; then
9488 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9491 echo "$ac_t""$need_rpcrt" 1>&6
9495 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9496 echo "configure:9497: checking for res_query" >&5
9497 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9500 cat > conftest.$ac_ext <<EOF
9501 #line 9502 "configure"
9502 #include "confdefs.h"
9503 /* System header to define __stub macros and hopefully few prototypes,
9504 which can conflict with char res_query(); below. */
9506 /* Override any gcc2 internal prototype to avoid an error. */
9507 /* We use char because int might match the return type of a gcc2
9508 builtin and then its argument prototype would still apply. */
9514 /* The GNU C library defines this for functions which it implements
9515 to always fail with ENOSYS. Some functions are actually named
9516 something starting with __ and the normal name is an alias. */
9517 #if defined (__stub_res_query) || defined (__stub___res_query)
9525 if { (eval echo configure:9526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9527 eval "ac_cv_func_res_query=yes"
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9532 eval "ac_cv_func_res_query=no"
9537 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9538 echo "$ac_t""yes" 1>&6
9541 echo "$ac_t""no" 1>&6
9544 if test $ac_cv_func_res_query = no ; then
9545 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9546 echo "configure:9547: checking for __res_query" >&5
9547 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9550 cat > conftest.$ac_ext <<EOF
9551 #line 9552 "configure"
9552 #include "confdefs.h"
9553 /* System header to define __stub macros and hopefully few prototypes,
9554 which can conflict with char __res_query(); below. */
9556 /* Override any gcc2 internal prototype to avoid an error. */
9557 /* We use char because int might match the return type of a gcc2
9558 builtin and then its argument prototype would still apply. */
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined (__stub___res_query) || defined (__stub_____res_query)
9575 if { (eval echo configure:9576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9577 eval "ac_cv_func___res_query=yes"
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9582 eval "ac_cv_func___res_query=no"
9587 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9588 echo "$ac_t""yes" 1>&6
9591 echo "$ac_t""no" 1>&6
9594 ac_cv_func_res_query=$ac_cv_func___res_query
9597 if test $ac_cv_func_res_query = no ; then
9598 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9599 echo "configure:9600: checking for res_query in -lbind" >&5
9600 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9601 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9604 ac_save_LIBS="$LIBS"
9606 cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 /* Override any gcc2 internal prototype to avoid an error. */
9610 /* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9618 if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9620 eval "ac_cv_lib_$ac_lib_var=yes"
9622 echo "configure: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9625 eval "ac_cv_lib_$ac_lib_var=no"
9628 LIBS="$ac_save_LIBS"
9631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9632 echo "$ac_t""yes" 1>&6
9633 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9634 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9635 cat >> confdefs.h <<EOF
9636 #define $ac_tr_lib 1
9642 echo "$ac_t""no" 1>&6
9645 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9648 if test $ac_cv_func_res_query = no ; then
9649 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9650 echo "configure:9651: checking for __res_query in -lbind" >&5
9651 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9655 ac_save_LIBS="$LIBS"
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9669 if { (eval echo configure:9670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9671 eval "ac_cv_lib_$ac_lib_var=yes"
9673 echo "configure: failed program was:" >&5
9674 cat conftest.$ac_ext >&5
9676 eval "ac_cv_lib_$ac_lib_var=no"
9679 LIBS="$ac_save_LIBS"
9682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9683 echo "$ac_t""yes" 1>&6
9684 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9686 cat >> confdefs.h <<EOF
9687 #define $ac_tr_lib 1
9693 echo "$ac_t""no" 1>&6
9696 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9699 if test $ac_cv_func_res_query = no ; then
9700 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9701 echo "configure:9702: checking for res_query in -lresolv" >&5
9702 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9703 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9706 ac_save_LIBS="$LIBS"
9707 LIBS="-lresolv $LIBS"
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722 eval "ac_cv_lib_$ac_lib_var=yes"
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 eval "ac_cv_lib_$ac_lib_var=no"
9730 LIBS="$ac_save_LIBS"
9733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9734 echo "$ac_t""yes" 1>&6
9735 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9737 cat >> confdefs.h <<EOF
9738 #define $ac_tr_lib 1
9741 LIBS="-lresolv $LIBS"
9744 echo "$ac_t""no" 1>&6
9747 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9750 if test $ac_cv_func_res_query = no ; then
9751 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9752 echo "configure:9753: checking for __res_query in -lresolv" >&5
9753 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9757 ac_save_LIBS="$LIBS"
9758 LIBS="-lresolv $LIBS"
9759 cat > conftest.$ac_ext <<EOF
9760 #line 9761 "configure"
9761 #include "confdefs.h"
9762 /* Override any gcc2 internal prototype to avoid an error. */
9763 /* We use char because int might match the return type of a gcc2
9764 builtin and then its argument prototype would still apply. */
9771 if { (eval echo configure:9772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9773 eval "ac_cv_lib_$ac_lib_var=yes"
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9778 eval "ac_cv_lib_$ac_lib_var=no"
9781 LIBS="$ac_save_LIBS"
9784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9785 echo "$ac_t""yes" 1>&6
9786 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9788 cat >> confdefs.h <<EOF
9789 #define $ac_tr_lib 1
9792 LIBS="-lresolv $LIBS"
9795 echo "$ac_t""no" 1>&6
9798 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9801 if test $ac_cv_func_res_query = no ; then
9802 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
9803 echo "configure:9804: checking for _res_9_query in -lresolv" >&5
9804 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
9805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9808 ac_save_LIBS="$LIBS"
9809 LIBS="-lresolv $LIBS"
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 /* Override any gcc2 internal prototype to avoid an error. */
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9816 char _res_9_query();
9822 if { (eval echo configure:9823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9824 eval "ac_cv_lib_$ac_lib_var=yes"
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9829 eval "ac_cv_lib_$ac_lib_var=no"
9832 LIBS="$ac_save_LIBS"
9835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9836 echo "$ac_t""yes" 1>&6
9837 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9839 cat >> confdefs.h <<EOF
9840 #define $ac_tr_lib 1
9843 LIBS="-lresolv $LIBS"
9846 echo "$ac_t""no" 1>&6
9849 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
9852 if test "$ac_cv_func_res_query" = yes ; then
9853 cat >> confdefs.h <<\EOF
9854 #define HAVE_RES_QUERY 1
9858 if test $ol_enable_dnssrv != no ; then
9863 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9864 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9867 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9870 echo "configure:9871: checking for $ac_func" >&5
9871 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9872 echo $ac_n "(cached) $ac_c" 1>&6
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 /* System header to define __stub macros and hopefully few prototypes,
9878 which can conflict with char $ac_func(); below. */
9880 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9888 /* The GNU C library defines this for functions which it implements
9889 to always fail with ENOSYS. Some functions are actually named
9890 something starting with __ and the normal name is an alias. */
9891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9899 if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9901 eval "ac_cv_func_$ac_func=yes"
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9906 eval "ac_cv_func_$ac_func=no"
9911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9914 cat >> confdefs.h <<EOF
9915 #define $ac_tr_func 1
9919 echo "$ac_t""no" 1>&6
9925 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
9926 if test $ol_enable_ipv6 = yes ; then
9927 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
9929 elif test $ol_enable_ipv6 != no ; then
9930 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
9931 echo "configure:9932: checking INET6_ADDRSTRLEN" >&5
9932 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9940 # include <netinet/in.h>
9941 # ifdef INET6_ADDRSTRLEN
9942 __has_inet6_addrstrlen__;
9946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9947 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
9949 ol_cv_inet6_addrstrlen=yes
9952 ol_cv_inet6_addrstrlen=no
9958 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
9961 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
9962 echo "configure:9963: checking struct sockaddr_storage" >&5
9963 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9967 cat > conftest.$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9971 #include <sys/types.h>
9972 #include <sys/socket.h>
9976 struct sockaddr_storage ss;
9980 if { (eval echo configure:9981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9982 ol_cv_struct_sockaddr_storage=yes
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 ol_cv_struct_sockaddr_storage=no
9992 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
9994 if test $ol_cv_inet6_addrstrlen = yes \
9995 -a $ol_cv_struct_sockaddr_storage = yes ; then
9997 elif test $ol_enable_ipv6 = yes \
9998 -a $ol_cv_inet6_addrstrlen = no ; then
9999 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10000 elif test $ol_enable_ipv6 = yes \
10001 -a $ol_cv_struct_sockaddr_storage = no ; then
10002 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10006 if test $ol_enable_local != no ; then
10007 for ac_hdr in sys/un.h
10009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10011 echo "configure:10012: checking for $ac_hdr" >&5
10012 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10015 cat > conftest.$ac_ext <<EOF
10016 #line 10017 "configure"
10017 #include "confdefs.h"
10020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10021 { (eval echo configure:10022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10023 if test -z "$ac_err"; then
10025 eval "ac_cv_header_$ac_safe=yes"
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10031 eval "ac_cv_header_$ac_safe=no"
10035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10038 cat >> confdefs.h <<EOF
10039 #define $ac_tr_hdr 1
10043 echo "$ac_t""no" 1>&6
10048 if test $ol_enable_local = auto ; then
10049 ol_enable_local=$ac_cv_header_sys_un_h
10050 elif test $ac_cv_header_sys_un_h = no ; then
10051 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10059 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10060 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10061 -o $ol_with_kerberos = k425 ; then
10063 for ac_hdr in krb5.h
10065 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10066 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10067 echo "configure:10068: checking for $ac_hdr" >&5
10068 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10077 { (eval echo configure:10078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10079 if test -z "$ac_err"; then
10081 eval "ac_cv_header_$ac_safe=yes"
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10087 eval "ac_cv_header_$ac_safe=no"
10091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10094 cat >> confdefs.h <<EOF
10095 #define $ac_tr_hdr 1
10099 echo "$ac_t""no" 1>&6
10104 if test $ac_cv_header_krb5_h = yes ; then
10105 for ac_hdr in heim_err.h
10107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10109 echo "configure:10110: checking for $ac_hdr" >&5
10110 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10119 { (eval echo configure:10120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10121 if test -z "$ac_err"; then
10123 eval "ac_cv_header_$ac_safe=yes"
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10129 eval "ac_cv_header_$ac_safe=no"
10133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10136 cat >> confdefs.h <<EOF
10137 #define $ac_tr_hdr 1
10141 echo "$ac_t""no" 1>&6
10145 if test $ac_cv_header_heim_err_h = yes ; then
10151 if test $krb5_impl = mit; then
10152 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10153 echo "configure:10154: checking for main in -lk5crypto" >&5
10154 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10158 ac_save_LIBS="$LIBS"
10159 LIBS="-lk5crypto $LIBS"
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10168 if { (eval echo configure:10169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10170 eval "ac_cv_lib_$ac_lib_var=yes"
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10175 eval "ac_cv_lib_$ac_lib_var=no"
10178 LIBS="$ac_save_LIBS"
10181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10182 echo "$ac_t""yes" 1>&6
10183 krb5crypto=k5crypto
10185 echo "$ac_t""no" 1>&6
10190 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10191 echo "configure:10192: checking for main in -lkrb5" >&5
10192 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10193 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10196 ac_save_LIBS="$LIBS"
10197 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10206 if { (eval echo configure:10207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10208 eval "ac_cv_lib_$ac_lib_var=yes"
10210 echo "configure: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10213 eval "ac_cv_lib_$ac_lib_var=no"
10216 LIBS="$ac_save_LIBS"
10219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10220 echo "$ac_t""yes" 1>&6
10222 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10224 echo "$ac_t""no" 1>&6
10229 elif test $krb5_impl = heimdal; then
10230 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10231 echo "configure:10232: checking for main in -ldes" >&5
10232 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10233 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10236 ac_save_LIBS="$LIBS"
10238 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure"
10240 #include "confdefs.h"
10246 if { (eval echo configure:10247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10248 eval "ac_cv_lib_$ac_lib_var=yes"
10250 echo "configure: failed program was:" >&5
10251 cat conftest.$ac_ext >&5
10253 eval "ac_cv_lib_$ac_lib_var=no"
10256 LIBS="$ac_save_LIBS"
10259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10260 echo "$ac_t""yes" 1>&6
10263 echo "$ac_t""no" 1>&6
10268 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10269 echo "configure:10270: checking for main in -lkrb5" >&5
10270 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10271 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10272 echo $ac_n "(cached) $ac_c" 1>&6
10274 ac_save_LIBS="$LIBS"
10275 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10276 cat > conftest.$ac_ext <<EOF
10277 #line 10278 "configure"
10278 #include "confdefs.h"
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 eval "ac_cv_lib_$ac_lib_var=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_lib_$ac_lib_var=no"
10294 LIBS="$ac_save_LIBS"
10297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10298 echo "$ac_t""yes" 1>&6
10300 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10302 echo "$ac_t""no" 1>&6
10307 cat >> confdefs.h <<\EOF
10308 #define HAVE_HEIMDAL_KERBEROS 1
10314 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10317 if test $have_krb5 = yes ; then
10320 cat >> confdefs.h <<\EOF
10321 #define HAVE_KRB5 1
10325 if test $ol_with_kerberos = k5only ; then
10326 ol_with_kerberos=found
10329 elif test $ol_with_kerberos != auto ; then
10330 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10336 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10337 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10339 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10343 echo "configure:10344: checking for $ac_hdr" >&5
10344 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10345 echo $ac_n "(cached) $ac_c" 1>&6
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10353 { (eval echo configure:10354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10355 if test -z "$ac_err"; then
10357 eval "ac_cv_header_$ac_safe=yes"
10360 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10363 eval "ac_cv_header_$ac_safe=no"
10367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10368 echo "$ac_t""yes" 1>&6
10369 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10370 cat >> confdefs.h <<EOF
10371 #define $ac_tr_hdr 1
10375 echo "$ac_t""no" 1>&6
10380 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10381 if test $krb5_impl = mit; then
10382 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10383 echo "configure:10384: checking for main in -lkrb4" >&5
10384 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10385 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10388 ac_save_LIBS="$LIBS"
10389 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10390 cat > conftest.$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10398 if { (eval echo configure:10399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10400 eval "ac_cv_lib_$ac_lib_var=yes"
10402 echo "configure: failed program was:" >&5
10403 cat conftest.$ac_ext >&5
10405 eval "ac_cv_lib_$ac_lib_var=no"
10408 LIBS="$ac_save_LIBS"
10411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10412 echo "$ac_t""yes" 1>&6
10414 KRB4_LIBS="-lkrb4 -ldes425"
10416 echo "$ac_t""no" 1>&6
10421 elif test $krb5_impl = heimdal; then
10422 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10423 echo "configure:10424: checking for main in -lkrb4" >&5
10424 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10425 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10426 echo $ac_n "(cached) $ac_c" 1>&6
10428 ac_save_LIBS="$LIBS"
10429 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10430 cat > conftest.$ac_ext <<EOF
10431 #line 10432 "configure"
10432 #include "confdefs.h"
10438 if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10440 eval "ac_cv_lib_$ac_lib_var=yes"
10442 echo "configure: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10445 eval "ac_cv_lib_$ac_lib_var=no"
10448 LIBS="$ac_save_LIBS"
10451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10452 echo "$ac_t""yes" 1>&6
10456 echo "$ac_t""no" 1>&6
10463 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10466 if test $have_k425 = yes ; then
10467 ol_with_kerberos=found
10470 cat >> confdefs.h <<\EOF
10471 #define HAVE_KRB425 1
10474 cat >> confdefs.h <<\EOF
10475 #define HAVE_KRB4 1
10479 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10480 echo "configure:10481: checking for des_debug in Kerberos libraries" >&5
10481 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10482 echo $ac_n "(cached) $ac_c" 1>&6
10486 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10491 #include <kerberosIV/krb.h>
10492 #include <kerberosIV/des.h>
10493 extern int des_debug;
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10503 ol_cv_var_des_debug=yes
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10508 ol_cv_var_des_debug=no
10515 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10517 if test $ol_cv_var_des_debug = yes ; then
10518 cat >> confdefs.h <<\EOF
10519 #define HAVE_DES_DEBUG 1
10529 if test $ol_link_krb5 = yes ; then
10530 ol_with_kerberos=found
10533 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10534 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10536 for ac_hdr in krb.h des.h krb-archaeology.h
10538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10540 echo "configure:10541: checking for $ac_hdr" >&5
10541 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10544 cat > conftest.$ac_ext <<EOF
10545 #line 10546 "configure"
10546 #include "confdefs.h"
10549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10550 { (eval echo configure:10551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10552 if test -z "$ac_err"; then
10554 eval "ac_cv_header_$ac_safe=yes"
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 eval "ac_cv_header_$ac_safe=no"
10564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10565 echo "$ac_t""yes" 1>&6
10566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10567 cat >> confdefs.h <<EOF
10568 #define $ac_tr_hdr 1
10572 echo "$ac_t""no" 1>&6
10577 if test $ac_cv_header_krb_h = yes ; then
10578 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10579 echo "configure:10580: checking for main in -lkrb" >&5
10580 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10581 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10582 echo $ac_n "(cached) $ac_c" 1>&6
10584 ac_save_LIBS="$LIBS"
10585 LIBS="-lkrb -ldes $LIBS"
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10596 eval "ac_cv_lib_$ac_lib_var=yes"
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10601 eval "ac_cv_lib_$ac_lib_var=no"
10604 LIBS="$ac_save_LIBS"
10607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10611 echo "$ac_t""no" 1>&6
10616 if test $have_k4 = yes ; then
10617 ol_with_kerberos=found
10620 cat >> confdefs.h <<\EOF
10621 #define HAVE_KRB4 1
10625 KRB4_LIBS="-lkrb -ldes"
10627 if test $ac_cv_header_krb_archaeology_h = yes ; then
10628 cat >> confdefs.h <<\EOF
10629 #define HAVE_KTH_KERBEROS 1
10637 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10640 elif test $ol_enable_kbind = yes ; then
10641 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10644 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10645 cat >> confdefs.h <<\EOF
10646 #define HAVE_KERBEROS 1
10650 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10651 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10655 if test $ol_with_tls != no ; then
10656 for ac_hdr in openssl/ssl.h ssl.h
10658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10660 echo "configure:10661: checking for $ac_hdr" >&5
10661 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10664 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10670 { (eval echo configure:10671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10672 if test -z "$ac_err"; then
10674 eval "ac_cv_header_$ac_safe=yes"
10677 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10680 eval "ac_cv_header_$ac_safe=no"
10684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10685 echo "$ac_t""yes" 1>&6
10686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10687 cat >> confdefs.h <<EOF
10688 #define $ac_tr_hdr 1
10692 echo "$ac_t""no" 1>&6
10697 if test $ac_cv_header_openssl_ssl_h = yes \
10698 -o $ac_cv_header_ssl_h = yes ; then
10699 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10700 echo "configure:10701: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10701 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10702 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10703 echo $ac_n "(cached) $ac_c" 1>&6
10705 ac_save_LIBS="$LIBS"
10706 LIBS="-lssl -lcrypto $LIBS"
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 /* Override any gcc2 internal prototype to avoid an error. */
10711 /* We use char because int might match the return type of a gcc2
10712 builtin and then its argument prototype would still apply. */
10713 char SSLeay_add_ssl_algorithms();
10716 SSLeay_add_ssl_algorithms()
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10721 eval "ac_cv_lib_$ac_lib_var=yes"
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 eval "ac_cv_lib_$ac_lib_var=no"
10729 LIBS="$ac_save_LIBS"
10732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10733 echo "$ac_t""yes" 1>&6
10737 echo "$ac_t""no" 1>&6
10742 if test $have_ssleay = no ; then
10743 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10744 echo "configure:10745: checking for SSL_library_init in -lssl" >&5
10745 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10749 ac_save_LIBS="$LIBS"
10750 LIBS="-lssl -lcrypto $LIBS"
10751 cat > conftest.$ac_ext <<EOF
10752 #line 10753 "configure"
10753 #include "confdefs.h"
10754 /* Override any gcc2 internal prototype to avoid an error. */
10755 /* We use char because int might match the return type of a gcc2
10756 builtin and then its argument prototype would still apply. */
10757 char SSL_library_init();
10763 if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10765 eval "ac_cv_lib_$ac_lib_var=yes"
10767 echo "configure: failed program was:" >&5
10768 cat conftest.$ac_ext >&5
10770 eval "ac_cv_lib_$ac_lib_var=no"
10773 LIBS="$ac_save_LIBS"
10776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10781 echo "$ac_t""no" 1>&6
10787 if test $have_ssleay = no ; then
10788 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10789 echo "configure:10790: checking for ssl3_accept in -lssl" >&5
10790 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10792 echo $ac_n "(cached) $ac_c" 1>&6
10794 ac_save_LIBS="$LIBS"
10795 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10796 cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure"
10798 #include "confdefs.h"
10799 /* Override any gcc2 internal prototype to avoid an error. */
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10802 char ssl3_accept();
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10810 eval "ac_cv_lib_$ac_lib_var=yes"
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 eval "ac_cv_lib_$ac_lib_var=no"
10818 LIBS="$ac_save_LIBS"
10821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10826 echo "$ac_t""no" 1>&6
10832 if test $have_ssleay = yes ; then
10836 cat >> confdefs.h <<\EOF
10837 #define HAVE_SSLEAY 1
10841 if test $need_rsaref = yes; then
10842 cat >> confdefs.h <<\EOF
10843 #define HAVE_RSAREF 1
10847 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10849 TLS_LIBS="-lssl -lcrypto"
10855 echo "configure: warning: TLS data protection not supported!" 1>&2
10859 if test $ol_link_tls = yes ; then
10860 cat >> confdefs.h <<\EOF
10866 elif test $ol_with_tls = auto ; then
10867 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10868 echo "configure: warning: TLS data protection not supported!" 1>&2
10870 elif test $ol_with_tls != no ; then
10871 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10874 if test $ol_enable_lmpasswd != no; then
10875 if test $ol_link_tls != yes ; then
10876 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10879 cat >> confdefs.h <<\EOF
10880 #define SLAPD_LMHASH 1
10887 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10888 -o $ol_with_threads = nt ; then
10891 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10892 echo "configure:10893: checking for _beginthread" >&5
10893 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10894 echo $ac_n "(cached) $ac_c" 1>&6
10896 cat > conftest.$ac_ext <<EOF
10897 #line 10898 "configure"
10898 #include "confdefs.h"
10899 /* System header to define __stub macros and hopefully few prototypes,
10900 which can conflict with char _beginthread(); below. */
10901 #include <assert.h>
10902 /* Override any gcc2 internal prototype to avoid an error. */
10903 /* We use char because int might match the return type of a gcc2
10904 builtin and then its argument prototype would still apply. */
10905 char _beginthread();
10910 /* The GNU C library defines this for functions which it implements
10911 to always fail with ENOSYS. Some functions are actually named
10912 something starting with __ and the normal name is an alias. */
10913 #if defined (__stub__beginthread) || defined (__stub____beginthread)
10921 if { (eval echo configure:10922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10923 eval "ac_cv_func__beginthread=yes"
10925 echo "configure: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10928 eval "ac_cv_func__beginthread=no"
10933 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
10934 echo "$ac_t""yes" 1>&6
10937 echo "$ac_t""no" 1>&6
10941 if test $ac_cv_func__beginthread = yes ; then
10942 cat >> confdefs.h <<\EOF
10943 #define HAVE_NT_THREADS 1
10946 ol_cv_nt_threads=yes
10950 if test "$ol_cv_nt_threads" = yes ; then
10952 ol_with_threads=found
10953 ol_with_yielding_select=yes
10955 cat >> confdefs.h <<\EOF
10956 #define HAVE_NT_SERVICE_MANAGER 1
10959 cat >> confdefs.h <<\EOF
10960 #define HAVE_NT_EVENT_LOG 1
10965 if test $ol_with_threads = nt ; then
10966 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
10970 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10971 -o $ol_with_threads = posix ; then
10973 for ac_hdr in pthread.h
10975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10977 echo "configure:10978: checking for $ac_hdr" >&5
10978 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10979 echo $ac_n "(cached) $ac_c" 1>&6
10981 cat > conftest.$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10987 { (eval echo configure:10988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10989 if test -z "$ac_err"; then
10991 eval "ac_cv_header_$ac_safe=yes"
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10997 eval "ac_cv_header_$ac_safe=no"
11001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11002 echo "$ac_t""yes" 1>&6
11003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11004 cat >> confdefs.h <<EOF
11005 #define $ac_tr_hdr 1
11009 echo "$ac_t""no" 1>&6
11014 if test $ac_cv_header_pthread_h = yes ; then
11015 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11016 echo "configure:11017: checking POSIX thread version" >&5
11017 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11018 echo $ac_n "(cached) $ac_c" 1>&6
11021 cat > conftest.$ac_ext <<EOF
11022 #line 11023 "configure"
11023 #include "confdefs.h"
11025 # include <pthread.h>
11029 int i = PTHREAD_CREATE_JOINABLE;
11033 if { (eval echo configure:11034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11039 #include <pthread.h>
11041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11042 egrep "pthread_detach" >/dev/null 2>&1; then
11044 ol_cv_pthread_version=10
11047 ol_cv_pthread_version=8
11052 echo "configure: failed program was:" >&5
11053 cat conftest.$ac_ext >&5
11056 cat > conftest.$ac_ext <<EOF
11057 #line 11058 "configure"
11058 #include "confdefs.h"
11060 # include <pthread.h>
11061 # ifdef PTHREAD_CREATE_UNDETACHED
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 egrep "draft7" >/dev/null 2>&1; then
11069 ol_cv_pthread_version=7
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 #include <pthread.h>
11078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11079 egrep "pthread_attr_init" >/dev/null 2>&1; then
11081 ol_cv_pthread_version=6
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11089 # include <pthread.h>
11090 #ifdef PTHREAD_MUTEX_INITIALIZER
11095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11096 egrep "draft5" >/dev/null 2>&1; then
11098 ol_cv_pthread_version=5
11101 ol_cv_pthread_version=4
11116 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11119 if test $ol_cv_pthread_version != 0 ; then
11120 cat >> confdefs.h <<EOF
11121 #define HAVE_PTHREADS $ol_cv_pthread_version
11125 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11128 # consider threads found
11129 ol_with_threads=found
11132 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11133 echo "configure:11134: checking for LinuxThreads pthread.h" >&5
11134 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
11137 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure"
11139 #include "confdefs.h"
11140 #include <pthread.h>
11142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11143 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11145 ol_cv_header_linux_threads=yes
11148 ol_cv_header_linux_threads=no
11155 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11156 if test $ol_cv_header_linux_threads = yes; then
11157 cat >> confdefs.h <<\EOF
11158 #define HAVE_LINUX_THREADS 1
11164 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11165 echo "configure:11166: checking for GNU Pth pthread.h" >&5
11166 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 #include <pthread.h>
11173 #ifdef _POSIX_THREAD_IS_GNU_PTH
11178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11179 egrep "__gnu_pth__" >/dev/null 2>&1; then
11181 ol_cv_header_gnu_pth_pthread_h=yes
11184 ol_cv_header_gnu_pth_pthread_h=no
11191 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11194 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11195 for ac_hdr in sched.h
11197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11199 echo "configure:11200: checking for $ac_hdr" >&5
11200 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11203 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11209 { (eval echo configure:11210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11211 if test -z "$ac_err"; then
11213 eval "ac_cv_header_$ac_safe=yes"
11216 echo "configure: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11219 eval "ac_cv_header_$ac_safe=no"
11223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11224 echo "$ac_t""yes" 1>&6
11225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11226 cat >> confdefs.h <<EOF
11227 #define $ac_tr_hdr 1
11231 echo "$ac_t""no" 1>&6
11238 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11239 echo "configure:11240: checking for pthread_create in default libraries" >&5
11240 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11241 echo $ac_n "(cached) $ac_c" 1>&6
11244 if test "$cross_compiling" = yes; then
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 /* pthread test headers */
11249 #include <pthread.h>
11250 #if HAVE_PTHREADS < 7
11254 #define NULL (void*)0
11257 static void *task(p)
11260 return (void *) (p == NULL);
11265 /* pthread test function */
11266 #ifndef PTHREAD_CREATE_DETACHED
11267 #define PTHREAD_CREATE_DETACHED 1
11271 int detach = PTHREAD_CREATE_DETACHED;
11273 #if HAVE_PTHREADS > 4
11274 /* Final pthreads */
11275 pthread_attr_t attr;
11277 status = pthread_attr_init(&attr);
11278 if( status ) return status;
11280 #if HAVE_PTHREADS < 7
11281 status = pthread_attr_setdetachstate(&attr, &detach);
11282 if( status < 0 ) status = errno;
11284 status = pthread_attr_setdetachstate(&attr, detach);
11286 if( status ) return status;
11287 status = pthread_create( &t, &attr, task, NULL );
11288 #if HAVE_PTHREADS < 7
11289 if( status < 0 ) status = errno;
11291 if( status ) return status;
11293 /* Draft 4 pthreads */
11294 status = pthread_create( &t, pthread_attr_default, task, NULL );
11295 if( status ) return errno;
11297 /* give thread a chance to complete */
11298 /* it should remain joinable and hence detachable */
11301 status = pthread_detach( &t );
11302 if( status ) return errno;
11305 #ifdef HAVE_LINUX_THREADS
11306 pthread_kill_other_threads_np();
11313 if { (eval echo configure:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11315 ol_cv_pthread_create=yes
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11320 ol_cv_pthread_create=no
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* pthread test headers */
11328 #include <pthread.h>
11329 #if HAVE_PTHREADS < 7
11333 #define NULL (void*)0
11336 static void *task(p)
11339 return (void *) (p == NULL);
11343 int main(argc, argv)
11348 /* pthread test function */
11349 #ifndef PTHREAD_CREATE_DETACHED
11350 #define PTHREAD_CREATE_DETACHED 1
11354 int detach = PTHREAD_CREATE_DETACHED;
11356 #if HAVE_PTHREADS > 4
11357 /* Final pthreads */
11358 pthread_attr_t attr;
11360 status = pthread_attr_init(&attr);
11361 if( status ) return status;
11363 #if HAVE_PTHREADS < 7
11364 status = pthread_attr_setdetachstate(&attr, &detach);
11365 if( status < 0 ) status = errno;
11367 status = pthread_attr_setdetachstate(&attr, detach);
11369 if( status ) return status;
11370 status = pthread_create( &t, &attr, task, NULL );
11371 #if HAVE_PTHREADS < 7
11372 if( status < 0 ) status = errno;
11374 if( status ) return status;
11376 /* Draft 4 pthreads */
11377 status = pthread_create( &t, pthread_attr_default, task, NULL );
11378 if( status ) return errno;
11380 /* give thread a chance to complete */
11381 /* it should remain joinable and hence detachable */
11384 status = pthread_detach( &t );
11385 if( status ) return errno;
11388 #ifdef HAVE_LINUX_THREADS
11389 pthread_kill_other_threads_np();
11397 if { (eval echo configure:11398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11399 ol_cv_pthread_create=yes
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11404 ol_cv_pthread_create=no
11411 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11413 if test $ol_cv_pthread_create != no ; then
11414 ol_link_threads=posix
11415 ol_link_pthreads=""
11418 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11419 if test "$ol_link_threads" = no ; then
11421 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11422 echo "configure:11423: checking for pthread link with -kthread" >&5
11423 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11424 echo $ac_n "(cached) $ac_c" 1>&6
11429 LIBS="-kthread $LIBS"
11431 if test "$cross_compiling" = yes; then
11432 cat > conftest.$ac_ext <<EOF
11433 #line 11434 "configure"
11434 #include "confdefs.h"
11435 /* pthread test headers */
11436 #include <pthread.h>
11437 #if HAVE_PTHREADS < 7
11441 #define NULL (void*)0
11444 static void *task(p)
11447 return (void *) (p == NULL);
11452 /* pthread test function */
11453 #ifndef PTHREAD_CREATE_DETACHED
11454 #define PTHREAD_CREATE_DETACHED 1
11458 int detach = PTHREAD_CREATE_DETACHED;
11460 #if HAVE_PTHREADS > 4
11461 /* Final pthreads */
11462 pthread_attr_t attr;
11464 status = pthread_attr_init(&attr);
11465 if( status ) return status;
11467 #if HAVE_PTHREADS < 7
11468 status = pthread_attr_setdetachstate(&attr, &detach);
11469 if( status < 0 ) status = errno;
11471 status = pthread_attr_setdetachstate(&attr, detach);
11473 if( status ) return status;
11474 status = pthread_create( &t, &attr, task, NULL );
11475 #if HAVE_PTHREADS < 7
11476 if( status < 0 ) status = errno;
11478 if( status ) return status;
11480 /* Draft 4 pthreads */
11481 status = pthread_create( &t, pthread_attr_default, task, NULL );
11482 if( status ) return errno;
11484 /* give thread a chance to complete */
11485 /* it should remain joinable and hence detachable */
11488 status = pthread_detach( &t );
11489 if( status ) return errno;
11492 #ifdef HAVE_LINUX_THREADS
11493 pthread_kill_other_threads_np();
11500 if { (eval echo configure:11501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11502 ol_cv_pthread_kthread=yes
11504 echo "configure: failed program was:" >&5
11505 cat conftest.$ac_ext >&5
11507 ol_cv_pthread_kthread=no
11511 cat > conftest.$ac_ext <<EOF
11512 #line 11513 "configure"
11513 #include "confdefs.h"
11514 /* pthread test headers */
11515 #include <pthread.h>
11516 #if HAVE_PTHREADS < 7
11520 #define NULL (void*)0
11523 static void *task(p)
11526 return (void *) (p == NULL);
11530 int main(argc, argv)
11535 /* pthread test function */
11536 #ifndef PTHREAD_CREATE_DETACHED
11537 #define PTHREAD_CREATE_DETACHED 1
11541 int detach = PTHREAD_CREATE_DETACHED;
11543 #if HAVE_PTHREADS > 4
11544 /* Final pthreads */
11545 pthread_attr_t attr;
11547 status = pthread_attr_init(&attr);
11548 if( status ) return status;
11550 #if HAVE_PTHREADS < 7
11551 status = pthread_attr_setdetachstate(&attr, &detach);
11552 if( status < 0 ) status = errno;
11554 status = pthread_attr_setdetachstate(&attr, detach);
11556 if( status ) return status;
11557 status = pthread_create( &t, &attr, task, NULL );
11558 #if HAVE_PTHREADS < 7
11559 if( status < 0 ) status = errno;
11561 if( status ) return status;
11563 /* Draft 4 pthreads */
11564 status = pthread_create( &t, pthread_attr_default, task, NULL );
11565 if( status ) return errno;
11567 /* give thread a chance to complete */
11568 /* it should remain joinable and hence detachable */
11571 status = pthread_detach( &t );
11572 if( status ) return errno;
11575 #ifdef HAVE_LINUX_THREADS
11576 pthread_kill_other_threads_np();
11584 if { (eval echo configure:11585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11586 ol_cv_pthread_kthread=yes
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11591 ol_cv_pthread_kthread=no
11602 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11604 if test $ol_cv_pthread_kthread = yes ; then
11605 ol_link_pthreads="-kthread"
11606 ol_link_threads=posix
11610 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11611 if test "$ol_link_threads" = no ; then
11613 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11614 echo "configure:11615: checking for pthread link with -pthread" >&5
11615 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11621 LIBS="-pthread $LIBS"
11623 if test "$cross_compiling" = yes; then
11624 cat > conftest.$ac_ext <<EOF
11625 #line 11626 "configure"
11626 #include "confdefs.h"
11627 /* pthread test headers */
11628 #include <pthread.h>
11629 #if HAVE_PTHREADS < 7
11633 #define NULL (void*)0
11636 static void *task(p)
11639 return (void *) (p == NULL);
11644 /* pthread test function */
11645 #ifndef PTHREAD_CREATE_DETACHED
11646 #define PTHREAD_CREATE_DETACHED 1
11650 int detach = PTHREAD_CREATE_DETACHED;
11652 #if HAVE_PTHREADS > 4
11653 /* Final pthreads */
11654 pthread_attr_t attr;
11656 status = pthread_attr_init(&attr);
11657 if( status ) return status;
11659 #if HAVE_PTHREADS < 7
11660 status = pthread_attr_setdetachstate(&attr, &detach);
11661 if( status < 0 ) status = errno;
11663 status = pthread_attr_setdetachstate(&attr, detach);
11665 if( status ) return status;
11666 status = pthread_create( &t, &attr, task, NULL );
11667 #if HAVE_PTHREADS < 7
11668 if( status < 0 ) status = errno;
11670 if( status ) return status;
11672 /* Draft 4 pthreads */
11673 status = pthread_create( &t, pthread_attr_default, task, NULL );
11674 if( status ) return errno;
11676 /* give thread a chance to complete */
11677 /* it should remain joinable and hence detachable */
11680 status = pthread_detach( &t );
11681 if( status ) return errno;
11684 #ifdef HAVE_LINUX_THREADS
11685 pthread_kill_other_threads_np();
11692 if { (eval echo configure:11693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 ol_cv_pthread_pthread=yes
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11699 ol_cv_pthread_pthread=no
11703 cat > conftest.$ac_ext <<EOF
11704 #line 11705 "configure"
11705 #include "confdefs.h"
11706 /* pthread test headers */
11707 #include <pthread.h>
11708 #if HAVE_PTHREADS < 7
11712 #define NULL (void*)0
11715 static void *task(p)
11718 return (void *) (p == NULL);
11722 int main(argc, argv)
11727 /* pthread test function */
11728 #ifndef PTHREAD_CREATE_DETACHED
11729 #define PTHREAD_CREATE_DETACHED 1
11733 int detach = PTHREAD_CREATE_DETACHED;
11735 #if HAVE_PTHREADS > 4
11736 /* Final pthreads */
11737 pthread_attr_t attr;
11739 status = pthread_attr_init(&attr);
11740 if( status ) return status;
11742 #if HAVE_PTHREADS < 7
11743 status = pthread_attr_setdetachstate(&attr, &detach);
11744 if( status < 0 ) status = errno;
11746 status = pthread_attr_setdetachstate(&attr, detach);
11748 if( status ) return status;
11749 status = pthread_create( &t, &attr, task, NULL );
11750 #if HAVE_PTHREADS < 7
11751 if( status < 0 ) status = errno;
11753 if( status ) return status;
11755 /* Draft 4 pthreads */
11756 status = pthread_create( &t, pthread_attr_default, task, NULL );
11757 if( status ) return errno;
11759 /* give thread a chance to complete */
11760 /* it should remain joinable and hence detachable */
11763 status = pthread_detach( &t );
11764 if( status ) return errno;
11767 #ifdef HAVE_LINUX_THREADS
11768 pthread_kill_other_threads_np();
11776 if { (eval echo configure:11777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11778 ol_cv_pthread_pthread=yes
11780 echo "configure: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11783 ol_cv_pthread_pthread=no
11794 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11796 if test $ol_cv_pthread_pthread = yes ; then
11797 ol_link_pthreads="-pthread"
11798 ol_link_threads=posix
11802 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11803 if test "$ol_link_threads" = no ; then
11805 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11806 echo "configure:11807: checking for pthread link with -pthreads" >&5
11807 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11813 LIBS="-pthreads $LIBS"
11815 if test "$cross_compiling" = yes; then
11816 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11819 /* pthread test headers */
11820 #include <pthread.h>
11821 #if HAVE_PTHREADS < 7
11825 #define NULL (void*)0
11828 static void *task(p)
11831 return (void *) (p == NULL);
11836 /* pthread test function */
11837 #ifndef PTHREAD_CREATE_DETACHED
11838 #define PTHREAD_CREATE_DETACHED 1
11842 int detach = PTHREAD_CREATE_DETACHED;
11844 #if HAVE_PTHREADS > 4
11845 /* Final pthreads */
11846 pthread_attr_t attr;
11848 status = pthread_attr_init(&attr);
11849 if( status ) return status;
11851 #if HAVE_PTHREADS < 7
11852 status = pthread_attr_setdetachstate(&attr, &detach);
11853 if( status < 0 ) status = errno;
11855 status = pthread_attr_setdetachstate(&attr, detach);
11857 if( status ) return status;
11858 status = pthread_create( &t, &attr, task, NULL );
11859 #if HAVE_PTHREADS < 7
11860 if( status < 0 ) status = errno;
11862 if( status ) return status;
11864 /* Draft 4 pthreads */
11865 status = pthread_create( &t, pthread_attr_default, task, NULL );
11866 if( status ) return errno;
11868 /* give thread a chance to complete */
11869 /* it should remain joinable and hence detachable */
11872 status = pthread_detach( &t );
11873 if( status ) return errno;
11876 #ifdef HAVE_LINUX_THREADS
11877 pthread_kill_other_threads_np();
11884 if { (eval echo configure:11885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11886 ol_cv_pthread_pthreads=yes
11888 echo "configure: failed program was:" >&5
11889 cat conftest.$ac_ext >&5
11891 ol_cv_pthread_pthreads=no
11895 cat > conftest.$ac_ext <<EOF
11896 #line 11897 "configure"
11897 #include "confdefs.h"
11898 /* pthread test headers */
11899 #include <pthread.h>
11900 #if HAVE_PTHREADS < 7
11904 #define NULL (void*)0
11907 static void *task(p)
11910 return (void *) (p == NULL);
11914 int main(argc, argv)
11919 /* pthread test function */
11920 #ifndef PTHREAD_CREATE_DETACHED
11921 #define PTHREAD_CREATE_DETACHED 1
11925 int detach = PTHREAD_CREATE_DETACHED;
11927 #if HAVE_PTHREADS > 4
11928 /* Final pthreads */
11929 pthread_attr_t attr;
11931 status = pthread_attr_init(&attr);
11932 if( status ) return status;
11934 #if HAVE_PTHREADS < 7
11935 status = pthread_attr_setdetachstate(&attr, &detach);
11936 if( status < 0 ) status = errno;
11938 status = pthread_attr_setdetachstate(&attr, detach);
11940 if( status ) return status;
11941 status = pthread_create( &t, &attr, task, NULL );
11942 #if HAVE_PTHREADS < 7
11943 if( status < 0 ) status = errno;
11945 if( status ) return status;
11947 /* Draft 4 pthreads */
11948 status = pthread_create( &t, pthread_attr_default, task, NULL );
11949 if( status ) return errno;
11951 /* give thread a chance to complete */
11952 /* it should remain joinable and hence detachable */
11955 status = pthread_detach( &t );
11956 if( status ) return errno;
11959 #ifdef HAVE_LINUX_THREADS
11960 pthread_kill_other_threads_np();
11968 if { (eval echo configure:11969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11970 ol_cv_pthread_pthreads=yes
11972 echo "configure: failed program was:" >&5
11973 cat conftest.$ac_ext >&5
11975 ol_cv_pthread_pthreads=no
11986 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
11988 if test $ol_cv_pthread_pthreads = yes ; then
11989 ol_link_pthreads="-pthreads"
11990 ol_link_threads=posix
11994 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11995 if test "$ol_link_threads" = no ; then
11997 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
11998 echo "configure:11999: checking for pthread link with -mthreads" >&5
11999 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12000 echo $ac_n "(cached) $ac_c" 1>&6
12005 LIBS="-mthreads $LIBS"
12007 if test "$cross_compiling" = yes; then
12008 cat > conftest.$ac_ext <<EOF
12009 #line 12010 "configure"
12010 #include "confdefs.h"
12011 /* pthread test headers */
12012 #include <pthread.h>
12013 #if HAVE_PTHREADS < 7
12017 #define NULL (void*)0
12020 static void *task(p)
12023 return (void *) (p == NULL);
12028 /* pthread test function */
12029 #ifndef PTHREAD_CREATE_DETACHED
12030 #define PTHREAD_CREATE_DETACHED 1
12034 int detach = PTHREAD_CREATE_DETACHED;
12036 #if HAVE_PTHREADS > 4
12037 /* Final pthreads */
12038 pthread_attr_t attr;
12040 status = pthread_attr_init(&attr);
12041 if( status ) return status;
12043 #if HAVE_PTHREADS < 7
12044 status = pthread_attr_setdetachstate(&attr, &detach);
12045 if( status < 0 ) status = errno;
12047 status = pthread_attr_setdetachstate(&attr, detach);
12049 if( status ) return status;
12050 status = pthread_create( &t, &attr, task, NULL );
12051 #if HAVE_PTHREADS < 7
12052 if( status < 0 ) status = errno;
12054 if( status ) return status;
12056 /* Draft 4 pthreads */
12057 status = pthread_create( &t, pthread_attr_default, task, NULL );
12058 if( status ) return errno;
12060 /* give thread a chance to complete */
12061 /* it should remain joinable and hence detachable */
12064 status = pthread_detach( &t );
12065 if( status ) return errno;
12068 #ifdef HAVE_LINUX_THREADS
12069 pthread_kill_other_threads_np();
12076 if { (eval echo configure:12077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12078 ol_cv_pthread_mthreads=yes
12080 echo "configure: failed program was:" >&5
12081 cat conftest.$ac_ext >&5
12083 ol_cv_pthread_mthreads=no
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 /* pthread test headers */
12091 #include <pthread.h>
12092 #if HAVE_PTHREADS < 7
12096 #define NULL (void*)0
12099 static void *task(p)
12102 return (void *) (p == NULL);
12106 int main(argc, argv)
12111 /* pthread test function */
12112 #ifndef PTHREAD_CREATE_DETACHED
12113 #define PTHREAD_CREATE_DETACHED 1
12117 int detach = PTHREAD_CREATE_DETACHED;
12119 #if HAVE_PTHREADS > 4
12120 /* Final pthreads */
12121 pthread_attr_t attr;
12123 status = pthread_attr_init(&attr);
12124 if( status ) return status;
12126 #if HAVE_PTHREADS < 7
12127 status = pthread_attr_setdetachstate(&attr, &detach);
12128 if( status < 0 ) status = errno;
12130 status = pthread_attr_setdetachstate(&attr, detach);
12132 if( status ) return status;
12133 status = pthread_create( &t, &attr, task, NULL );
12134 #if HAVE_PTHREADS < 7
12135 if( status < 0 ) status = errno;
12137 if( status ) return status;
12139 /* Draft 4 pthreads */
12140 status = pthread_create( &t, pthread_attr_default, task, NULL );
12141 if( status ) return errno;
12143 /* give thread a chance to complete */
12144 /* it should remain joinable and hence detachable */
12147 status = pthread_detach( &t );
12148 if( status ) return errno;
12151 #ifdef HAVE_LINUX_THREADS
12152 pthread_kill_other_threads_np();
12160 if { (eval echo configure:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12162 ol_cv_pthread_mthreads=yes
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12167 ol_cv_pthread_mthreads=no
12178 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12180 if test $ol_cv_pthread_mthreads = yes ; then
12181 ol_link_pthreads="-mthreads"
12182 ol_link_threads=posix
12186 # Pthread try link: -thread (ol_cv_pthread_thread)
12187 if test "$ol_link_threads" = no ; then
12189 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12190 echo "configure:12191: checking for pthread link with -thread" >&5
12191 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12197 LIBS="-thread $LIBS"
12199 if test "$cross_compiling" = yes; then
12200 cat > conftest.$ac_ext <<EOF
12201 #line 12202 "configure"
12202 #include "confdefs.h"
12203 /* pthread test headers */
12204 #include <pthread.h>
12205 #if HAVE_PTHREADS < 7
12209 #define NULL (void*)0
12212 static void *task(p)
12215 return (void *) (p == NULL);
12220 /* pthread test function */
12221 #ifndef PTHREAD_CREATE_DETACHED
12222 #define PTHREAD_CREATE_DETACHED 1
12226 int detach = PTHREAD_CREATE_DETACHED;
12228 #if HAVE_PTHREADS > 4
12229 /* Final pthreads */
12230 pthread_attr_t attr;
12232 status = pthread_attr_init(&attr);
12233 if( status ) return status;
12235 #if HAVE_PTHREADS < 7
12236 status = pthread_attr_setdetachstate(&attr, &detach);
12237 if( status < 0 ) status = errno;
12239 status = pthread_attr_setdetachstate(&attr, detach);
12241 if( status ) return status;
12242 status = pthread_create( &t, &attr, task, NULL );
12243 #if HAVE_PTHREADS < 7
12244 if( status < 0 ) status = errno;
12246 if( status ) return status;
12248 /* Draft 4 pthreads */
12249 status = pthread_create( &t, pthread_attr_default, task, NULL );
12250 if( status ) return errno;
12252 /* give thread a chance to complete */
12253 /* it should remain joinable and hence detachable */
12256 status = pthread_detach( &t );
12257 if( status ) return errno;
12260 #ifdef HAVE_LINUX_THREADS
12261 pthread_kill_other_threads_np();
12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12270 ol_cv_pthread_thread=yes
12272 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12275 ol_cv_pthread_thread=no
12279 cat > conftest.$ac_ext <<EOF
12280 #line 12281 "configure"
12281 #include "confdefs.h"
12282 /* pthread test headers */
12283 #include <pthread.h>
12284 #if HAVE_PTHREADS < 7
12288 #define NULL (void*)0
12291 static void *task(p)
12294 return (void *) (p == NULL);
12298 int main(argc, argv)
12303 /* pthread test function */
12304 #ifndef PTHREAD_CREATE_DETACHED
12305 #define PTHREAD_CREATE_DETACHED 1
12309 int detach = PTHREAD_CREATE_DETACHED;
12311 #if HAVE_PTHREADS > 4
12312 /* Final pthreads */
12313 pthread_attr_t attr;
12315 status = pthread_attr_init(&attr);
12316 if( status ) return status;
12318 #if HAVE_PTHREADS < 7
12319 status = pthread_attr_setdetachstate(&attr, &detach);
12320 if( status < 0 ) status = errno;
12322 status = pthread_attr_setdetachstate(&attr, detach);
12324 if( status ) return status;
12325 status = pthread_create( &t, &attr, task, NULL );
12326 #if HAVE_PTHREADS < 7
12327 if( status < 0 ) status = errno;
12329 if( status ) return status;
12331 /* Draft 4 pthreads */
12332 status = pthread_create( &t, pthread_attr_default, task, NULL );
12333 if( status ) return errno;
12335 /* give thread a chance to complete */
12336 /* it should remain joinable and hence detachable */
12339 status = pthread_detach( &t );
12340 if( status ) return errno;
12343 #ifdef HAVE_LINUX_THREADS
12344 pthread_kill_other_threads_np();
12352 if { (eval echo configure:12353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12354 ol_cv_pthread_thread=yes
12356 echo "configure: failed program was:" >&5
12357 cat conftest.$ac_ext >&5
12359 ol_cv_pthread_thread=no
12370 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12372 if test $ol_cv_pthread_thread = yes ; then
12373 ol_link_pthreads="-thread"
12374 ol_link_threads=posix
12379 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12380 if test "$ol_link_threads" = no ; then
12381 # try -lpthread -lmach -lexc -lc_r
12382 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12383 echo "configure:12384: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12384 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12385 echo $ac_n "(cached) $ac_c" 1>&6
12390 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12392 if test "$cross_compiling" = yes; then
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* pthread test headers */
12397 #include <pthread.h>
12398 #if HAVE_PTHREADS < 7
12402 #define NULL (void*)0
12405 static void *task(p)
12408 return (void *) (p == NULL);
12413 /* pthread test function */
12414 #ifndef PTHREAD_CREATE_DETACHED
12415 #define PTHREAD_CREATE_DETACHED 1
12419 int detach = PTHREAD_CREATE_DETACHED;
12421 #if HAVE_PTHREADS > 4
12422 /* Final pthreads */
12423 pthread_attr_t attr;
12425 status = pthread_attr_init(&attr);
12426 if( status ) return status;
12428 #if HAVE_PTHREADS < 7
12429 status = pthread_attr_setdetachstate(&attr, &detach);
12430 if( status < 0 ) status = errno;
12432 status = pthread_attr_setdetachstate(&attr, detach);
12434 if( status ) return status;
12435 status = pthread_create( &t, &attr, task, NULL );
12436 #if HAVE_PTHREADS < 7
12437 if( status < 0 ) status = errno;
12439 if( status ) return status;
12441 /* Draft 4 pthreads */
12442 status = pthread_create( &t, pthread_attr_default, task, NULL );
12443 if( status ) return errno;
12445 /* give thread a chance to complete */
12446 /* it should remain joinable and hence detachable */
12449 status = pthread_detach( &t );
12450 if( status ) return errno;
12453 #ifdef HAVE_LINUX_THREADS
12454 pthread_kill_other_threads_np();
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12463 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12468 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 /* pthread test headers */
12476 #include <pthread.h>
12477 #if HAVE_PTHREADS < 7
12481 #define NULL (void*)0
12484 static void *task(p)
12487 return (void *) (p == NULL);
12491 int main(argc, argv)
12496 /* pthread test function */
12497 #ifndef PTHREAD_CREATE_DETACHED
12498 #define PTHREAD_CREATE_DETACHED 1
12502 int detach = PTHREAD_CREATE_DETACHED;
12504 #if HAVE_PTHREADS > 4
12505 /* Final pthreads */
12506 pthread_attr_t attr;
12508 status = pthread_attr_init(&attr);
12509 if( status ) return status;
12511 #if HAVE_PTHREADS < 7
12512 status = pthread_attr_setdetachstate(&attr, &detach);
12513 if( status < 0 ) status = errno;
12515 status = pthread_attr_setdetachstate(&attr, detach);
12517 if( status ) return status;
12518 status = pthread_create( &t, &attr, task, NULL );
12519 #if HAVE_PTHREADS < 7
12520 if( status < 0 ) status = errno;
12522 if( status ) return status;
12524 /* Draft 4 pthreads */
12525 status = pthread_create( &t, pthread_attr_default, task, NULL );
12526 if( status ) return errno;
12528 /* give thread a chance to complete */
12529 /* it should remain joinable and hence detachable */
12532 status = pthread_detach( &t );
12533 if( status ) return errno;
12536 #ifdef HAVE_LINUX_THREADS
12537 pthread_kill_other_threads_np();
12545 if { (eval echo configure:12546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12547 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12549 echo "configure: failed program was:" >&5
12550 cat conftest.$ac_ext >&5
12552 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12563 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12565 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12566 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12567 ol_link_threads=posix
12571 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12572 if test "$ol_link_threads" = no ; then
12573 # try -lpthread -lmach -lexc
12574 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12575 echo "configure:12576: checking for pthread link with -lpthread -lmach -lexc" >&5
12576 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12582 LIBS="-lpthread -lmach -lexc $LIBS"
12584 if test "$cross_compiling" = yes; then
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12588 /* pthread test headers */
12589 #include <pthread.h>
12590 #if HAVE_PTHREADS < 7
12594 #define NULL (void*)0
12597 static void *task(p)
12600 return (void *) (p == NULL);
12605 /* pthread test function */
12606 #ifndef PTHREAD_CREATE_DETACHED
12607 #define PTHREAD_CREATE_DETACHED 1
12611 int detach = PTHREAD_CREATE_DETACHED;
12613 #if HAVE_PTHREADS > 4
12614 /* Final pthreads */
12615 pthread_attr_t attr;
12617 status = pthread_attr_init(&attr);
12618 if( status ) return status;
12620 #if HAVE_PTHREADS < 7
12621 status = pthread_attr_setdetachstate(&attr, &detach);
12622 if( status < 0 ) status = errno;
12624 status = pthread_attr_setdetachstate(&attr, detach);
12626 if( status ) return status;
12627 status = pthread_create( &t, &attr, task, NULL );
12628 #if HAVE_PTHREADS < 7
12629 if( status < 0 ) status = errno;
12631 if( status ) return status;
12633 /* Draft 4 pthreads */
12634 status = pthread_create( &t, pthread_attr_default, task, NULL );
12635 if( status ) return errno;
12637 /* give thread a chance to complete */
12638 /* it should remain joinable and hence detachable */
12641 status = pthread_detach( &t );
12642 if( status ) return errno;
12645 #ifdef HAVE_LINUX_THREADS
12646 pthread_kill_other_threads_np();
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12655 ol_cv_pthread_lpthread_lmach_lexc=yes
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 ol_cv_pthread_lpthread_lmach_lexc=no
12664 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure"
12666 #include "confdefs.h"
12667 /* pthread test headers */
12668 #include <pthread.h>
12669 #if HAVE_PTHREADS < 7
12673 #define NULL (void*)0
12676 static void *task(p)
12679 return (void *) (p == NULL);
12683 int main(argc, argv)
12688 /* pthread test function */
12689 #ifndef PTHREAD_CREATE_DETACHED
12690 #define PTHREAD_CREATE_DETACHED 1
12694 int detach = PTHREAD_CREATE_DETACHED;
12696 #if HAVE_PTHREADS > 4
12697 /* Final pthreads */
12698 pthread_attr_t attr;
12700 status = pthread_attr_init(&attr);
12701 if( status ) return status;
12703 #if HAVE_PTHREADS < 7
12704 status = pthread_attr_setdetachstate(&attr, &detach);
12705 if( status < 0 ) status = errno;
12707 status = pthread_attr_setdetachstate(&attr, detach);
12709 if( status ) return status;
12710 status = pthread_create( &t, &attr, task, NULL );
12711 #if HAVE_PTHREADS < 7
12712 if( status < 0 ) status = errno;
12714 if( status ) return status;
12716 /* Draft 4 pthreads */
12717 status = pthread_create( &t, pthread_attr_default, task, NULL );
12718 if( status ) return errno;
12720 /* give thread a chance to complete */
12721 /* it should remain joinable and hence detachable */
12724 status = pthread_detach( &t );
12725 if( status ) return errno;
12728 #ifdef HAVE_LINUX_THREADS
12729 pthread_kill_other_threads_np();
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12739 ol_cv_pthread_lpthread_lmach_lexc=yes
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12744 ol_cv_pthread_lpthread_lmach_lexc=no
12755 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12757 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12758 ol_link_pthreads="-lpthread -lmach -lexc"
12759 ol_link_threads=posix
12764 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12765 if test "$ol_link_threads" = no ; then
12766 # try -lpthread -Wl,-woff,85
12767 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12768 echo "configure:12769: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12769 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12775 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12777 if test "$cross_compiling" = yes; then
12778 cat > conftest.$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12781 /* pthread test headers */
12782 #include <pthread.h>
12783 #if HAVE_PTHREADS < 7
12787 #define NULL (void*)0
12790 static void *task(p)
12793 return (void *) (p == NULL);
12798 /* pthread test function */
12799 #ifndef PTHREAD_CREATE_DETACHED
12800 #define PTHREAD_CREATE_DETACHED 1
12804 int detach = PTHREAD_CREATE_DETACHED;
12806 #if HAVE_PTHREADS > 4
12807 /* Final pthreads */
12808 pthread_attr_t attr;
12810 status = pthread_attr_init(&attr);
12811 if( status ) return status;
12813 #if HAVE_PTHREADS < 7
12814 status = pthread_attr_setdetachstate(&attr, &detach);
12815 if( status < 0 ) status = errno;
12817 status = pthread_attr_setdetachstate(&attr, detach);
12819 if( status ) return status;
12820 status = pthread_create( &t, &attr, task, NULL );
12821 #if HAVE_PTHREADS < 7
12822 if( status < 0 ) status = errno;
12824 if( status ) return status;
12826 /* Draft 4 pthreads */
12827 status = pthread_create( &t, pthread_attr_default, task, NULL );
12828 if( status ) return errno;
12830 /* give thread a chance to complete */
12831 /* it should remain joinable and hence detachable */
12834 status = pthread_detach( &t );
12835 if( status ) return errno;
12838 #ifdef HAVE_LINUX_THREADS
12839 pthread_kill_other_threads_np();
12846 if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12848 ol_cv_pthread_lib_lpthread_woff=yes
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12853 ol_cv_pthread_lib_lpthread_woff=no
12857 cat > conftest.$ac_ext <<EOF
12858 #line 12859 "configure"
12859 #include "confdefs.h"
12860 /* pthread test headers */
12861 #include <pthread.h>
12862 #if HAVE_PTHREADS < 7
12866 #define NULL (void*)0
12869 static void *task(p)
12872 return (void *) (p == NULL);
12876 int main(argc, argv)
12881 /* pthread test function */
12882 #ifndef PTHREAD_CREATE_DETACHED
12883 #define PTHREAD_CREATE_DETACHED 1
12887 int detach = PTHREAD_CREATE_DETACHED;
12889 #if HAVE_PTHREADS > 4
12890 /* Final pthreads */
12891 pthread_attr_t attr;
12893 status = pthread_attr_init(&attr);
12894 if( status ) return status;
12896 #if HAVE_PTHREADS < 7
12897 status = pthread_attr_setdetachstate(&attr, &detach);
12898 if( status < 0 ) status = errno;
12900 status = pthread_attr_setdetachstate(&attr, detach);
12902 if( status ) return status;
12903 status = pthread_create( &t, &attr, task, NULL );
12904 #if HAVE_PTHREADS < 7
12905 if( status < 0 ) status = errno;
12907 if( status ) return status;
12909 /* Draft 4 pthreads */
12910 status = pthread_create( &t, pthread_attr_default, task, NULL );
12911 if( status ) return errno;
12913 /* give thread a chance to complete */
12914 /* it should remain joinable and hence detachable */
12917 status = pthread_detach( &t );
12918 if( status ) return errno;
12921 #ifdef HAVE_LINUX_THREADS
12922 pthread_kill_other_threads_np();
12930 if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12932 ol_cv_pthread_lib_lpthread_woff=yes
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12937 ol_cv_pthread_lib_lpthread_woff=no
12948 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
12950 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12951 ol_link_pthreads="-lpthread -Wl,-woff,85"
12952 ol_link_threads=posix
12957 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12958 if test "$ol_link_threads" = no ; then
12960 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
12961 echo "configure:12962: checking for pthread link with -lpthread" >&5
12962 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12968 LIBS="-lpthread $LIBS"
12970 if test "$cross_compiling" = yes; then
12971 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 /* pthread test headers */
12975 #include <pthread.h>
12976 #if HAVE_PTHREADS < 7
12980 #define NULL (void*)0
12983 static void *task(p)
12986 return (void *) (p == NULL);
12991 /* pthread test function */
12992 #ifndef PTHREAD_CREATE_DETACHED
12993 #define PTHREAD_CREATE_DETACHED 1
12997 int detach = PTHREAD_CREATE_DETACHED;
12999 #if HAVE_PTHREADS > 4
13000 /* Final pthreads */
13001 pthread_attr_t attr;
13003 status = pthread_attr_init(&attr);
13004 if( status ) return status;
13006 #if HAVE_PTHREADS < 7
13007 status = pthread_attr_setdetachstate(&attr, &detach);
13008 if( status < 0 ) status = errno;
13010 status = pthread_attr_setdetachstate(&attr, detach);
13012 if( status ) return status;
13013 status = pthread_create( &t, &attr, task, NULL );
13014 #if HAVE_PTHREADS < 7
13015 if( status < 0 ) status = errno;
13017 if( status ) return status;
13019 /* Draft 4 pthreads */
13020 status = pthread_create( &t, pthread_attr_default, task, NULL );
13021 if( status ) return errno;
13023 /* give thread a chance to complete */
13024 /* it should remain joinable and hence detachable */
13027 status = pthread_detach( &t );
13028 if( status ) return errno;
13031 #ifdef HAVE_LINUX_THREADS
13032 pthread_kill_other_threads_np();
13039 if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13041 ol_cv_pthread_lpthread=yes
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13046 ol_cv_pthread_lpthread=no
13050 cat > conftest.$ac_ext <<EOF
13051 #line 13052 "configure"
13052 #include "confdefs.h"
13053 /* pthread test headers */
13054 #include <pthread.h>
13055 #if HAVE_PTHREADS < 7
13059 #define NULL (void*)0
13062 static void *task(p)
13065 return (void *) (p == NULL);
13069 int main(argc, argv)
13074 /* pthread test function */
13075 #ifndef PTHREAD_CREATE_DETACHED
13076 #define PTHREAD_CREATE_DETACHED 1
13080 int detach = PTHREAD_CREATE_DETACHED;
13082 #if HAVE_PTHREADS > 4
13083 /* Final pthreads */
13084 pthread_attr_t attr;
13086 status = pthread_attr_init(&attr);
13087 if( status ) return status;
13089 #if HAVE_PTHREADS < 7
13090 status = pthread_attr_setdetachstate(&attr, &detach);
13091 if( status < 0 ) status = errno;
13093 status = pthread_attr_setdetachstate(&attr, detach);
13095 if( status ) return status;
13096 status = pthread_create( &t, &attr, task, NULL );
13097 #if HAVE_PTHREADS < 7
13098 if( status < 0 ) status = errno;
13100 if( status ) return status;
13102 /* Draft 4 pthreads */
13103 status = pthread_create( &t, pthread_attr_default, task, NULL );
13104 if( status ) return errno;
13106 /* give thread a chance to complete */
13107 /* it should remain joinable and hence detachable */
13110 status = pthread_detach( &t );
13111 if( status ) return errno;
13114 #ifdef HAVE_LINUX_THREADS
13115 pthread_kill_other_threads_np();
13123 if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13125 ol_cv_pthread_lpthread=yes
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13130 ol_cv_pthread_lpthread=no
13141 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13143 if test $ol_cv_pthread_lpthread = yes ; then
13144 ol_link_pthreads="-lpthread"
13145 ol_link_threads=posix
13149 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13150 if test "$ol_link_threads" = no ; then
13152 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13153 echo "configure:13154: checking for pthread link with -lc_r" >&5
13154 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13155 echo $ac_n "(cached) $ac_c" 1>&6
13162 if test "$cross_compiling" = yes; then
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 /* pthread test headers */
13167 #include <pthread.h>
13168 #if HAVE_PTHREADS < 7
13172 #define NULL (void*)0
13175 static void *task(p)
13178 return (void *) (p == NULL);
13183 /* pthread test function */
13184 #ifndef PTHREAD_CREATE_DETACHED
13185 #define PTHREAD_CREATE_DETACHED 1
13189 int detach = PTHREAD_CREATE_DETACHED;
13191 #if HAVE_PTHREADS > 4
13192 /* Final pthreads */
13193 pthread_attr_t attr;
13195 status = pthread_attr_init(&attr);
13196 if( status ) return status;
13198 #if HAVE_PTHREADS < 7
13199 status = pthread_attr_setdetachstate(&attr, &detach);
13200 if( status < 0 ) status = errno;
13202 status = pthread_attr_setdetachstate(&attr, detach);
13204 if( status ) return status;
13205 status = pthread_create( &t, &attr, task, NULL );
13206 #if HAVE_PTHREADS < 7
13207 if( status < 0 ) status = errno;
13209 if( status ) return status;
13211 /* Draft 4 pthreads */
13212 status = pthread_create( &t, pthread_attr_default, task, NULL );
13213 if( status ) return errno;
13215 /* give thread a chance to complete */
13216 /* it should remain joinable and hence detachable */
13219 status = pthread_detach( &t );
13220 if( status ) return errno;
13223 #ifdef HAVE_LINUX_THREADS
13224 pthread_kill_other_threads_np();
13231 if { (eval echo configure:13232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13233 ol_cv_pthread_lc_r=yes
13235 echo "configure: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13238 ol_cv_pthread_lc_r=no
13242 cat > conftest.$ac_ext <<EOF
13243 #line 13244 "configure"
13244 #include "confdefs.h"
13245 /* pthread test headers */
13246 #include <pthread.h>
13247 #if HAVE_PTHREADS < 7
13251 #define NULL (void*)0
13254 static void *task(p)
13257 return (void *) (p == NULL);
13261 int main(argc, argv)
13266 /* pthread test function */
13267 #ifndef PTHREAD_CREATE_DETACHED
13268 #define PTHREAD_CREATE_DETACHED 1
13272 int detach = PTHREAD_CREATE_DETACHED;
13274 #if HAVE_PTHREADS > 4
13275 /* Final pthreads */
13276 pthread_attr_t attr;
13278 status = pthread_attr_init(&attr);
13279 if( status ) return status;
13281 #if HAVE_PTHREADS < 7
13282 status = pthread_attr_setdetachstate(&attr, &detach);
13283 if( status < 0 ) status = errno;
13285 status = pthread_attr_setdetachstate(&attr, detach);
13287 if( status ) return status;
13288 status = pthread_create( &t, &attr, task, NULL );
13289 #if HAVE_PTHREADS < 7
13290 if( status < 0 ) status = errno;
13292 if( status ) return status;
13294 /* Draft 4 pthreads */
13295 status = pthread_create( &t, pthread_attr_default, task, NULL );
13296 if( status ) return errno;
13298 /* give thread a chance to complete */
13299 /* it should remain joinable and hence detachable */
13302 status = pthread_detach( &t );
13303 if( status ) return errno;
13306 #ifdef HAVE_LINUX_THREADS
13307 pthread_kill_other_threads_np();
13315 if { (eval echo configure:13316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13317 ol_cv_pthread_lc_r=yes
13319 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13322 ol_cv_pthread_lc_r=no
13333 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13335 if test $ol_cv_pthread_lc_r = yes ; then
13336 ol_link_pthreads="-lc_r"
13337 ol_link_threads=posix
13342 # Pthread try link: -threads (ol_cv_pthread_threads)
13343 if test "$ol_link_threads" = no ; then
13345 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13346 echo "configure:13347: checking for pthread link with -threads" >&5
13347 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13353 LIBS="-threads $LIBS"
13355 if test "$cross_compiling" = yes; then
13356 cat > conftest.$ac_ext <<EOF
13357 #line 13358 "configure"
13358 #include "confdefs.h"
13359 /* pthread test headers */
13360 #include <pthread.h>
13361 #if HAVE_PTHREADS < 7
13365 #define NULL (void*)0
13368 static void *task(p)
13371 return (void *) (p == NULL);
13376 /* pthread test function */
13377 #ifndef PTHREAD_CREATE_DETACHED
13378 #define PTHREAD_CREATE_DETACHED 1
13382 int detach = PTHREAD_CREATE_DETACHED;
13384 #if HAVE_PTHREADS > 4
13385 /* Final pthreads */
13386 pthread_attr_t attr;
13388 status = pthread_attr_init(&attr);
13389 if( status ) return status;
13391 #if HAVE_PTHREADS < 7
13392 status = pthread_attr_setdetachstate(&attr, &detach);
13393 if( status < 0 ) status = errno;
13395 status = pthread_attr_setdetachstate(&attr, detach);
13397 if( status ) return status;
13398 status = pthread_create( &t, &attr, task, NULL );
13399 #if HAVE_PTHREADS < 7
13400 if( status < 0 ) status = errno;
13402 if( status ) return status;
13404 /* Draft 4 pthreads */
13405 status = pthread_create( &t, pthread_attr_default, task, NULL );
13406 if( status ) return errno;
13408 /* give thread a chance to complete */
13409 /* it should remain joinable and hence detachable */
13412 status = pthread_detach( &t );
13413 if( status ) return errno;
13416 #ifdef HAVE_LINUX_THREADS
13417 pthread_kill_other_threads_np();
13424 if { (eval echo configure:13425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13426 ol_cv_pthread_threads=yes
13428 echo "configure: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13431 ol_cv_pthread_threads=no
13435 cat > conftest.$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13438 /* pthread test headers */
13439 #include <pthread.h>
13440 #if HAVE_PTHREADS < 7
13444 #define NULL (void*)0
13447 static void *task(p)
13450 return (void *) (p == NULL);
13454 int main(argc, argv)
13459 /* pthread test function */
13460 #ifndef PTHREAD_CREATE_DETACHED
13461 #define PTHREAD_CREATE_DETACHED 1
13465 int detach = PTHREAD_CREATE_DETACHED;
13467 #if HAVE_PTHREADS > 4
13468 /* Final pthreads */
13469 pthread_attr_t attr;
13471 status = pthread_attr_init(&attr);
13472 if( status ) return status;
13474 #if HAVE_PTHREADS < 7
13475 status = pthread_attr_setdetachstate(&attr, &detach);
13476 if( status < 0 ) status = errno;
13478 status = pthread_attr_setdetachstate(&attr, detach);
13480 if( status ) return status;
13481 status = pthread_create( &t, &attr, task, NULL );
13482 #if HAVE_PTHREADS < 7
13483 if( status < 0 ) status = errno;
13485 if( status ) return status;
13487 /* Draft 4 pthreads */
13488 status = pthread_create( &t, pthread_attr_default, task, NULL );
13489 if( status ) return errno;
13491 /* give thread a chance to complete */
13492 /* it should remain joinable and hence detachable */
13495 status = pthread_detach( &t );
13496 if( status ) return errno;
13499 #ifdef HAVE_LINUX_THREADS
13500 pthread_kill_other_threads_np();
13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13510 ol_cv_pthread_threads=yes
13512 echo "configure: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13515 ol_cv_pthread_threads=no
13526 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13528 if test $ol_cv_pthread_threads = yes ; then
13529 ol_link_pthreads="-threads"
13530 ol_link_threads=posix
13535 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13536 if test "$ol_link_threads" = no ; then
13537 # try -lpthreads -lmach -lexc -lc_r
13538 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13539 echo "configure:13540: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13540 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13546 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13548 if test "$cross_compiling" = yes; then
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13552 /* pthread test headers */
13553 #include <pthread.h>
13554 #if HAVE_PTHREADS < 7
13558 #define NULL (void*)0
13561 static void *task(p)
13564 return (void *) (p == NULL);
13569 /* pthread test function */
13570 #ifndef PTHREAD_CREATE_DETACHED
13571 #define PTHREAD_CREATE_DETACHED 1
13575 int detach = PTHREAD_CREATE_DETACHED;
13577 #if HAVE_PTHREADS > 4
13578 /* Final pthreads */
13579 pthread_attr_t attr;
13581 status = pthread_attr_init(&attr);
13582 if( status ) return status;
13584 #if HAVE_PTHREADS < 7
13585 status = pthread_attr_setdetachstate(&attr, &detach);
13586 if( status < 0 ) status = errno;
13588 status = pthread_attr_setdetachstate(&attr, detach);
13590 if( status ) return status;
13591 status = pthread_create( &t, &attr, task, NULL );
13592 #if HAVE_PTHREADS < 7
13593 if( status < 0 ) status = errno;
13595 if( status ) return status;
13597 /* Draft 4 pthreads */
13598 status = pthread_create( &t, pthread_attr_default, task, NULL );
13599 if( status ) return errno;
13601 /* give thread a chance to complete */
13602 /* it should remain joinable and hence detachable */
13605 status = pthread_detach( &t );
13606 if( status ) return errno;
13609 #ifdef HAVE_LINUX_THREADS
13610 pthread_kill_other_threads_np();
13617 if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13619 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13624 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 /* pthread test headers */
13632 #include <pthread.h>
13633 #if HAVE_PTHREADS < 7
13637 #define NULL (void*)0
13640 static void *task(p)
13643 return (void *) (p == NULL);
13647 int main(argc, argv)
13652 /* pthread test function */
13653 #ifndef PTHREAD_CREATE_DETACHED
13654 #define PTHREAD_CREATE_DETACHED 1
13658 int detach = PTHREAD_CREATE_DETACHED;
13660 #if HAVE_PTHREADS > 4
13661 /* Final pthreads */
13662 pthread_attr_t attr;
13664 status = pthread_attr_init(&attr);
13665 if( status ) return status;
13667 #if HAVE_PTHREADS < 7
13668 status = pthread_attr_setdetachstate(&attr, &detach);
13669 if( status < 0 ) status = errno;
13671 status = pthread_attr_setdetachstate(&attr, detach);
13673 if( status ) return status;
13674 status = pthread_create( &t, &attr, task, NULL );
13675 #if HAVE_PTHREADS < 7
13676 if( status < 0 ) status = errno;
13678 if( status ) return status;
13680 /* Draft 4 pthreads */
13681 status = pthread_create( &t, pthread_attr_default, task, NULL );
13682 if( status ) return errno;
13684 /* give thread a chance to complete */
13685 /* it should remain joinable and hence detachable */
13688 status = pthread_detach( &t );
13689 if( status ) return errno;
13692 #ifdef HAVE_LINUX_THREADS
13693 pthread_kill_other_threads_np();
13701 if { (eval echo configure:13702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13703 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13719 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13721 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13722 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13723 ol_link_threads=posix
13727 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13728 if test "$ol_link_threads" = no ; then
13729 # try -lpthreads -lmach -lexc
13730 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13731 echo "configure:13732: checking for pthread link with -lpthreads -lmach -lexc" >&5
13732 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13738 LIBS="-lpthreads -lmach -lexc $LIBS"
13740 if test "$cross_compiling" = yes; then
13741 cat > conftest.$ac_ext <<EOF
13742 #line 13743 "configure"
13743 #include "confdefs.h"
13744 /* pthread test headers */
13745 #include <pthread.h>
13746 #if HAVE_PTHREADS < 7
13750 #define NULL (void*)0
13753 static void *task(p)
13756 return (void *) (p == NULL);
13761 /* pthread test function */
13762 #ifndef PTHREAD_CREATE_DETACHED
13763 #define PTHREAD_CREATE_DETACHED 1
13767 int detach = PTHREAD_CREATE_DETACHED;
13769 #if HAVE_PTHREADS > 4
13770 /* Final pthreads */
13771 pthread_attr_t attr;
13773 status = pthread_attr_init(&attr);
13774 if( status ) return status;
13776 #if HAVE_PTHREADS < 7
13777 status = pthread_attr_setdetachstate(&attr, &detach);
13778 if( status < 0 ) status = errno;
13780 status = pthread_attr_setdetachstate(&attr, detach);
13782 if( status ) return status;
13783 status = pthread_create( &t, &attr, task, NULL );
13784 #if HAVE_PTHREADS < 7
13785 if( status < 0 ) status = errno;
13787 if( status ) return status;
13789 /* Draft 4 pthreads */
13790 status = pthread_create( &t, pthread_attr_default, task, NULL );
13791 if( status ) return errno;
13793 /* give thread a chance to complete */
13794 /* it should remain joinable and hence detachable */
13797 status = pthread_detach( &t );
13798 if( status ) return errno;
13801 #ifdef HAVE_LINUX_THREADS
13802 pthread_kill_other_threads_np();
13809 if { (eval echo configure:13810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13811 ol_cv_pthread_lpthreads_lmach_lexc=yes
13813 echo "configure: failed program was:" >&5
13814 cat conftest.$ac_ext >&5
13816 ol_cv_pthread_lpthreads_lmach_lexc=no
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13823 /* pthread test headers */
13824 #include <pthread.h>
13825 #if HAVE_PTHREADS < 7
13829 #define NULL (void*)0
13832 static void *task(p)
13835 return (void *) (p == NULL);
13839 int main(argc, argv)
13844 /* pthread test function */
13845 #ifndef PTHREAD_CREATE_DETACHED
13846 #define PTHREAD_CREATE_DETACHED 1
13850 int detach = PTHREAD_CREATE_DETACHED;
13852 #if HAVE_PTHREADS > 4
13853 /* Final pthreads */
13854 pthread_attr_t attr;
13856 status = pthread_attr_init(&attr);
13857 if( status ) return status;
13859 #if HAVE_PTHREADS < 7
13860 status = pthread_attr_setdetachstate(&attr, &detach);
13861 if( status < 0 ) status = errno;
13863 status = pthread_attr_setdetachstate(&attr, detach);
13865 if( status ) return status;
13866 status = pthread_create( &t, &attr, task, NULL );
13867 #if HAVE_PTHREADS < 7
13868 if( status < 0 ) status = errno;
13870 if( status ) return status;
13872 /* Draft 4 pthreads */
13873 status = pthread_create( &t, pthread_attr_default, task, NULL );
13874 if( status ) return errno;
13876 /* give thread a chance to complete */
13877 /* it should remain joinable and hence detachable */
13880 status = pthread_detach( &t );
13881 if( status ) return errno;
13884 #ifdef HAVE_LINUX_THREADS
13885 pthread_kill_other_threads_np();
13893 if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13895 ol_cv_pthread_lpthreads_lmach_lexc=yes
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13900 ol_cv_pthread_lpthreads_lmach_lexc=no
13911 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
13913 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13914 ol_link_pthreads="-lpthreads -lmach -lexc"
13915 ol_link_threads=posix
13919 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13920 if test "$ol_link_threads" = no ; then
13921 # try -lpthreads -lexc
13922 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
13923 echo "configure:13924: checking for pthread link with -lpthreads -lexc" >&5
13924 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
13925 echo $ac_n "(cached) $ac_c" 1>&6
13930 LIBS="-lpthreads -lexc $LIBS"
13932 if test "$cross_compiling" = yes; then
13933 cat > conftest.$ac_ext <<EOF
13934 #line 13935 "configure"
13935 #include "confdefs.h"
13936 /* pthread test headers */
13937 #include <pthread.h>
13938 #if HAVE_PTHREADS < 7
13942 #define NULL (void*)0
13945 static void *task(p)
13948 return (void *) (p == NULL);
13953 /* pthread test function */
13954 #ifndef PTHREAD_CREATE_DETACHED
13955 #define PTHREAD_CREATE_DETACHED 1
13959 int detach = PTHREAD_CREATE_DETACHED;
13961 #if HAVE_PTHREADS > 4
13962 /* Final pthreads */
13963 pthread_attr_t attr;
13965 status = pthread_attr_init(&attr);
13966 if( status ) return status;
13968 #if HAVE_PTHREADS < 7
13969 status = pthread_attr_setdetachstate(&attr, &detach);
13970 if( status < 0 ) status = errno;
13972 status = pthread_attr_setdetachstate(&attr, detach);
13974 if( status ) return status;
13975 status = pthread_create( &t, &attr, task, NULL );
13976 #if HAVE_PTHREADS < 7
13977 if( status < 0 ) status = errno;
13979 if( status ) return status;
13981 /* Draft 4 pthreads */
13982 status = pthread_create( &t, pthread_attr_default, task, NULL );
13983 if( status ) return errno;
13985 /* give thread a chance to complete */
13986 /* it should remain joinable and hence detachable */
13989 status = pthread_detach( &t );
13990 if( status ) return errno;
13993 #ifdef HAVE_LINUX_THREADS
13994 pthread_kill_other_threads_np();
14001 if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14003 ol_cv_pthread_lpthreads_lexc=yes
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14008 ol_cv_pthread_lpthreads_lexc=no
14012 cat > conftest.$ac_ext <<EOF
14013 #line 14014 "configure"
14014 #include "confdefs.h"
14015 /* pthread test headers */
14016 #include <pthread.h>
14017 #if HAVE_PTHREADS < 7
14021 #define NULL (void*)0
14024 static void *task(p)
14027 return (void *) (p == NULL);
14031 int main(argc, argv)
14036 /* pthread test function */
14037 #ifndef PTHREAD_CREATE_DETACHED
14038 #define PTHREAD_CREATE_DETACHED 1
14042 int detach = PTHREAD_CREATE_DETACHED;
14044 #if HAVE_PTHREADS > 4
14045 /* Final pthreads */
14046 pthread_attr_t attr;
14048 status = pthread_attr_init(&attr);
14049 if( status ) return status;
14051 #if HAVE_PTHREADS < 7
14052 status = pthread_attr_setdetachstate(&attr, &detach);
14053 if( status < 0 ) status = errno;
14055 status = pthread_attr_setdetachstate(&attr, detach);
14057 if( status ) return status;
14058 status = pthread_create( &t, &attr, task, NULL );
14059 #if HAVE_PTHREADS < 7
14060 if( status < 0 ) status = errno;
14062 if( status ) return status;
14064 /* Draft 4 pthreads */
14065 status = pthread_create( &t, pthread_attr_default, task, NULL );
14066 if( status ) return errno;
14068 /* give thread a chance to complete */
14069 /* it should remain joinable and hence detachable */
14072 status = pthread_detach( &t );
14073 if( status ) return errno;
14076 #ifdef HAVE_LINUX_THREADS
14077 pthread_kill_other_threads_np();
14085 if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14087 ol_cv_pthread_lpthreads_lexc=yes
14089 echo "configure: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14092 ol_cv_pthread_lpthreads_lexc=no
14103 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14105 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14106 ol_link_pthreads="-lpthreads -lexc"
14107 ol_link_threads=posix
14112 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14113 if test "$ol_link_threads" = no ; then
14115 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14116 echo "configure:14117: checking for pthread link with -lpthreads" >&5
14117 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14118 echo $ac_n "(cached) $ac_c" 1>&6
14123 LIBS="-lpthreads $LIBS"
14125 if test "$cross_compiling" = yes; then
14126 cat > conftest.$ac_ext <<EOF
14127 #line 14128 "configure"
14128 #include "confdefs.h"
14129 /* pthread test headers */
14130 #include <pthread.h>
14131 #if HAVE_PTHREADS < 7
14135 #define NULL (void*)0
14138 static void *task(p)
14141 return (void *) (p == NULL);
14146 /* pthread test function */
14147 #ifndef PTHREAD_CREATE_DETACHED
14148 #define PTHREAD_CREATE_DETACHED 1
14152 int detach = PTHREAD_CREATE_DETACHED;
14154 #if HAVE_PTHREADS > 4
14155 /* Final pthreads */
14156 pthread_attr_t attr;
14158 status = pthread_attr_init(&attr);
14159 if( status ) return status;
14161 #if HAVE_PTHREADS < 7
14162 status = pthread_attr_setdetachstate(&attr, &detach);
14163 if( status < 0 ) status = errno;
14165 status = pthread_attr_setdetachstate(&attr, detach);
14167 if( status ) return status;
14168 status = pthread_create( &t, &attr, task, NULL );
14169 #if HAVE_PTHREADS < 7
14170 if( status < 0 ) status = errno;
14172 if( status ) return status;
14174 /* Draft 4 pthreads */
14175 status = pthread_create( &t, pthread_attr_default, task, NULL );
14176 if( status ) return errno;
14178 /* give thread a chance to complete */
14179 /* it should remain joinable and hence detachable */
14182 status = pthread_detach( &t );
14183 if( status ) return errno;
14186 #ifdef HAVE_LINUX_THREADS
14187 pthread_kill_other_threads_np();
14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14196 ol_cv_pthread_lib_lpthreads=yes
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14201 ol_cv_pthread_lib_lpthreads=no
14205 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure"
14207 #include "confdefs.h"
14208 /* pthread test headers */
14209 #include <pthread.h>
14210 #if HAVE_PTHREADS < 7
14214 #define NULL (void*)0
14217 static void *task(p)
14220 return (void *) (p == NULL);
14224 int main(argc, argv)
14229 /* pthread test function */
14230 #ifndef PTHREAD_CREATE_DETACHED
14231 #define PTHREAD_CREATE_DETACHED 1
14235 int detach = PTHREAD_CREATE_DETACHED;
14237 #if HAVE_PTHREADS > 4
14238 /* Final pthreads */
14239 pthread_attr_t attr;
14241 status = pthread_attr_init(&attr);
14242 if( status ) return status;
14244 #if HAVE_PTHREADS < 7
14245 status = pthread_attr_setdetachstate(&attr, &detach);
14246 if( status < 0 ) status = errno;
14248 status = pthread_attr_setdetachstate(&attr, detach);
14250 if( status ) return status;
14251 status = pthread_create( &t, &attr, task, NULL );
14252 #if HAVE_PTHREADS < 7
14253 if( status < 0 ) status = errno;
14255 if( status ) return status;
14257 /* Draft 4 pthreads */
14258 status = pthread_create( &t, pthread_attr_default, task, NULL );
14259 if( status ) return errno;
14261 /* give thread a chance to complete */
14262 /* it should remain joinable and hence detachable */
14265 status = pthread_detach( &t );
14266 if( status ) return errno;
14269 #ifdef HAVE_LINUX_THREADS
14270 pthread_kill_other_threads_np();
14278 if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14280 ol_cv_pthread_lib_lpthreads=yes
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14285 ol_cv_pthread_lib_lpthreads=no
14296 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14298 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14299 ol_link_pthreads="-lpthreads"
14300 ol_link_threads=posix
14305 if test $ol_link_threads != no ; then
14306 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14308 save_CPPFLAGS="$CPPFLAGS"
14310 LIBS="$LTHREAD_LIBS $LIBS"
14312 for ac_func in sched_yield pthread_yield thr_yield
14314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14315 echo "configure:14316: checking for $ac_func" >&5
14316 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14317 echo $ac_n "(cached) $ac_c" 1>&6
14319 cat > conftest.$ac_ext <<EOF
14320 #line 14321 "configure"
14321 #include "confdefs.h"
14322 /* System header to define __stub macros and hopefully few prototypes,
14323 which can conflict with char $ac_func(); below. */
14324 #include <assert.h>
14325 /* Override any gcc2 internal prototype to avoid an error. */
14326 /* We use char because int might match the return type of a gcc2
14327 builtin and then its argument prototype would still apply. */
14333 /* The GNU C library defines this for functions which it implements
14334 to always fail with ENOSYS. Some functions are actually named
14335 something starting with __ and the normal name is an alias. */
14336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14344 if { (eval echo configure:14345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14346 eval "ac_cv_func_$ac_func=yes"
14348 echo "configure: failed program was:" >&5
14349 cat conftest.$ac_ext >&5
14351 eval "ac_cv_func_$ac_func=no"
14356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14357 echo "$ac_t""yes" 1>&6
14358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14359 cat >> confdefs.h <<EOF
14360 #define $ac_tr_func 1
14364 echo "$ac_t""no" 1>&6
14369 if test $ac_cv_func_sched_yield = no -a \
14370 $ac_cv_func_pthread_yield = no -a \
14371 $ac_cv_func_thr_yield = no ; then
14372 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14373 echo "configure:14374: checking for sched_yield in -lrt" >&5
14374 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14376 echo $ac_n "(cached) $ac_c" 1>&6
14378 ac_save_LIBS="$LIBS"
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14386 char sched_yield();
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394 eval "ac_cv_lib_$ac_lib_var=yes"
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14399 eval "ac_cv_lib_$ac_lib_var=no"
14402 LIBS="$ac_save_LIBS"
14405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14406 echo "$ac_t""yes" 1>&6
14407 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14408 cat >> confdefs.h <<\EOF
14409 #define HAVE_SCHED_YIELD 1
14412 ac_cv_func_sched_yield=yes
14414 echo "$ac_t""no" 1>&6
14415 ac_cv_func_sched_yield=no
14419 if test $ac_cv_func_sched_yield = no -a \
14420 $ac_cv_func_pthread_yield = no -a \
14421 "$ac_cv_func_thr_yield" = no ; then
14422 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14425 for ac_func in pthread_kill pthread_rwlock_destroy
14427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14428 echo "configure:14429: checking for $ac_func" >&5
14429 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14430 echo $ac_n "(cached) $ac_c" 1>&6
14432 cat > conftest.$ac_ext <<EOF
14433 #line 14434 "configure"
14434 #include "confdefs.h"
14435 /* System header to define __stub macros and hopefully few prototypes,
14436 which can conflict with char $ac_func(); below. */
14437 #include <assert.h>
14438 /* Override any gcc2 internal prototype to avoid an error. */
14439 /* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14446 /* The GNU C library defines this for functions which it implements
14447 to always fail with ENOSYS. Some functions are actually named
14448 something starting with __ and the normal name is an alias. */
14449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14457 if { (eval echo configure:14458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14459 eval "ac_cv_func_$ac_func=yes"
14461 echo "configure: failed program was:" >&5
14462 cat conftest.$ac_ext >&5
14464 eval "ac_cv_func_$ac_func=no"
14469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14470 echo "$ac_t""yes" 1>&6
14471 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14472 cat >> confdefs.h <<EOF
14473 #define $ac_tr_func 1
14477 echo "$ac_t""no" 1>&6
14482 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14483 echo "configure:14484: checking for pthread_detach with <pthread.h>" >&5
14484 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14485 echo $ac_n "(cached) $ac_c" 1>&6
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14492 #include <pthread.h>
14494 #define NULL (void*)0
14498 pthread_detach(NULL);
14501 if { (eval echo configure:14502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14503 ol_cv_func_pthread_detach=yes
14505 echo "configure: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14508 ol_cv_func_pthread_detach=no
14514 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14516 if test $ol_cv_func_pthread_detach = no ; then
14517 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14520 cat >> confdefs.h <<\EOF
14521 #define HAVE_PTHREAD_DETACH 1
14526 pthread_setconcurrency \
14527 pthread_getconcurrency \
14528 thr_setconcurrency \
14529 thr_getconcurrency \
14532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14533 echo "configure:14534: checking for $ac_func" >&5
14534 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14535 echo $ac_n "(cached) $ac_c" 1>&6
14537 cat > conftest.$ac_ext <<EOF
14538 #line 14539 "configure"
14539 #include "confdefs.h"
14540 /* System header to define __stub macros and hopefully few prototypes,
14541 which can conflict with char $ac_func(); below. */
14542 #include <assert.h>
14543 /* Override any gcc2 internal prototype to avoid an error. */
14544 /* We use char because int might match the return type of a gcc2
14545 builtin and then its argument prototype would still apply. */
14551 /* The GNU C library defines this for functions which it implements
14552 to always fail with ENOSYS. Some functions are actually named
14553 something starting with __ and the normal name is an alias. */
14554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14562 if { (eval echo configure:14563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14564 eval "ac_cv_func_$ac_func=yes"
14566 echo "configure: failed program was:" >&5
14567 cat conftest.$ac_ext >&5
14569 eval "ac_cv_func_$ac_func=no"
14574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14575 echo "$ac_t""yes" 1>&6
14576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14577 cat >> confdefs.h <<EOF
14578 #define $ac_tr_func 1
14582 echo "$ac_t""no" 1>&6
14588 for ac_func in pthread_kill_other_threads_np
14590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14591 echo "configure:14592: checking for $ac_func" >&5
14592 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
14595 cat > conftest.$ac_ext <<EOF
14596 #line 14597 "configure"
14597 #include "confdefs.h"
14598 /* System header to define __stub macros and hopefully few prototypes,
14599 which can conflict with char $ac_func(); below. */
14600 #include <assert.h>
14601 /* Override any gcc2 internal prototype to avoid an error. */
14602 /* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14609 /* The GNU C library defines this for functions which it implements
14610 to always fail with ENOSYS. Some functions are actually named
14611 something starting with __ and the normal name is an alias. */
14612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14620 if { (eval echo configure:14621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14622 eval "ac_cv_func_$ac_func=yes"
14624 echo "configure: failed program was:" >&5
14625 cat conftest.$ac_ext >&5
14627 eval "ac_cv_func_$ac_func=no"
14632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14633 echo "$ac_t""yes" 1>&6
14634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14635 cat >> confdefs.h <<EOF
14636 #define $ac_tr_func 1
14640 echo "$ac_t""no" 1>&6
14644 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14645 echo "configure:14646: checking for LinuxThreads implementation" >&5
14646 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14647 echo $ac_n "(cached) $ac_c" 1>&6
14649 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14652 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14657 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14658 echo "configure:14659: checking for LinuxThreads consistency" >&5
14659 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14660 echo $ac_n "(cached) $ac_c" 1>&6
14663 if test $ol_cv_header_linux_threads = yes -a \
14664 $ol_cv_sys_linux_threads = yes; then
14665 ol_cv_linux_threads=yes
14666 elif test $ol_cv_header_linux_threads = no -a \
14667 $ol_cv_sys_linux_threads = no; then
14668 ol_cv_linux_threads=no
14670 ol_cv_linux_threads=error
14675 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14678 if test $ol_cv_linux_threads = error; then
14679 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14682 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14683 echo "configure:14684: checking if pthread_create() works" >&5
14684 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14685 echo $ac_n "(cached) $ac_c" 1>&6
14688 if test "$cross_compiling" = yes; then
14689 ol_cv_pthread_create_works=yes
14691 cat > conftest.$ac_ext <<EOF
14692 #line 14693 "configure"
14693 #include "confdefs.h"
14694 /* pthread test headers */
14695 #include <pthread.h>
14696 #if HAVE_PTHREADS < 7
14700 #define NULL (void*)0
14703 static void *task(p)
14706 return (void *) (p == NULL);
14710 int main(argc, argv)
14715 /* pthread test function */
14716 #ifndef PTHREAD_CREATE_DETACHED
14717 #define PTHREAD_CREATE_DETACHED 1
14721 int detach = PTHREAD_CREATE_DETACHED;
14723 #if HAVE_PTHREADS > 4
14724 /* Final pthreads */
14725 pthread_attr_t attr;
14727 status = pthread_attr_init(&attr);
14728 if( status ) return status;
14730 #if HAVE_PTHREADS < 7
14731 status = pthread_attr_setdetachstate(&attr, &detach);
14732 if( status < 0 ) status = errno;
14734 status = pthread_attr_setdetachstate(&attr, detach);
14736 if( status ) return status;
14737 status = pthread_create( &t, &attr, task, NULL );
14738 #if HAVE_PTHREADS < 7
14739 if( status < 0 ) status = errno;
14741 if( status ) return status;
14743 /* Draft 4 pthreads */
14744 status = pthread_create( &t, pthread_attr_default, task, NULL );
14745 if( status ) return errno;
14747 /* give thread a chance to complete */
14748 /* it should remain joinable and hence detachable */
14751 status = pthread_detach( &t );
14752 if( status ) return errno;
14755 #ifdef HAVE_LINUX_THREADS
14756 pthread_kill_other_threads_np();
14764 if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14766 ol_cv_pthread_create_works=yes
14768 echo "configure: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14771 ol_cv_pthread_create_works=no
14778 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14780 if test $ol_cv_pthread_create_works = no ; then
14781 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14784 if test $ol_with_yielding_select = auto ; then
14785 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14786 echo "configure:14787: checking if select yields when using pthreads" >&5
14787 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14791 if test "$cross_compiling" = yes; then
14792 ol_cv_pthread_select_yields=cross
14794 cat > conftest.$ac_ext <<EOF
14795 #line 14796 "configure"
14796 #include "confdefs.h"
14798 #include <sys/types.h>
14799 #include <sys/time.h>
14800 #include <unistd.h>
14801 #include <pthread.h>
14803 #define NULL (void*) 0
14806 static int fildes[2];
14808 static void *task(p)
14820 FD_SET(fildes[0], &rfds);
14822 /* we're not interested in any fds */
14823 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14830 exit(0); /* if we exit here, the select blocked the whole process */
14833 int main(argc, argv)
14839 /* create a pipe to select */
14840 if(pipe(&fildes[0])) {
14845 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14846 (void) pthread_setconcurrency(2);
14848 #ifdef HAVE_THR_SETCONCURRENCY
14849 /* Set Solaris LWP concurrency to 2 */
14850 thr_setconcurrency(2);
14854 #if HAVE_PTHREADS < 6
14855 pthread_create(&t, pthread_attr_default, task, NULL);
14857 pthread_create(&t, NULL, task, NULL);
14860 /* make sure task runs first */
14863 #elif defined( HAVE_SCHED_YIELD )
14865 #elif defined( HAVE_PTHREAD_YIELD )
14872 if { (eval echo configure:14873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14874 ol_cv_pthread_select_yields=no
14876 echo "configure: failed program was:" >&5
14877 cat conftest.$ac_ext >&5
14879 ol_cv_pthread_select_yields=yes
14886 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14888 if test $ol_cv_pthread_select_yields = cross ; then
14889 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14892 if test $ol_cv_pthread_select_yields = yes ; then
14893 ol_with_yielding_select=yes
14897 CPPFLAGS="$save_CPPFLAGS"
14900 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
14904 if test $ol_with_threads = posix ; then
14905 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
14909 if test $ol_with_threads = auto -o $ol_with_threads = yes \
14910 -o $ol_with_threads = mach ; then
14912 for ac_hdr in mach/cthreads.h cthreads.h
14914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14916 echo "configure:14917: checking for $ac_hdr" >&5
14917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14918 echo $ac_n "(cached) $ac_c" 1>&6
14920 cat > conftest.$ac_ext <<EOF
14921 #line 14922 "configure"
14922 #include "confdefs.h"
14925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14926 { (eval echo configure:14927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14928 if test -z "$ac_err"; then
14930 eval "ac_cv_header_$ac_safe=yes"
14933 echo "configure: failed program was:" >&5
14934 cat conftest.$ac_ext >&5
14936 eval "ac_cv_header_$ac_safe=no"
14940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14943 cat >> confdefs.h <<EOF
14944 #define $ac_tr_hdr 1
14948 echo "$ac_t""no" 1>&6
14952 if test $ac_cv_header_mach_cthreads_h = yes ; then
14953 ol_with_threads=found
14955 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
14956 echo "configure:14957: checking for cthread_fork" >&5
14957 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
14958 echo $ac_n "(cached) $ac_c" 1>&6
14960 cat > conftest.$ac_ext <<EOF
14961 #line 14962 "configure"
14962 #include "confdefs.h"
14963 /* System header to define __stub macros and hopefully few prototypes,
14964 which can conflict with char cthread_fork(); below. */
14965 #include <assert.h>
14966 /* Override any gcc2 internal prototype to avoid an error. */
14967 /* We use char because int might match the return type of a gcc2
14968 builtin and then its argument prototype would still apply. */
14969 char cthread_fork();
14974 /* The GNU C library defines this for functions which it implements
14975 to always fail with ENOSYS. Some functions are actually named
14976 something starting with __ and the normal name is an alias. */
14977 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14987 eval "ac_cv_func_cthread_fork=yes"
14989 echo "configure: failed program was:" >&5
14990 cat conftest.$ac_ext >&5
14992 eval "ac_cv_func_cthread_fork=no"
14997 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
14998 echo "$ac_t""yes" 1>&6
14999 ol_link_threads=yes
15001 echo "$ac_t""no" 1>&6
15005 if test $ol_link_threads = no ; then
15006 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15007 echo "configure:15008: checking for cthread_fork with -all_load" >&5
15008 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15009 echo $ac_n "(cached) $ac_c" 1>&6
15013 LIBS="-all_load $LIBS"
15014 cat > conftest.$ac_ext <<EOF
15015 #line 15016 "configure"
15016 #include "confdefs.h"
15017 #include <mach/cthreads.h>
15020 cthread_fork((void *)0, (void *)0);
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026 ol_cv_cthread_all_load=yes
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15031 ol_cv_cthread_all_load=no
15038 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15040 if test $ol_cv_cthread_all_load = yes ; then
15041 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15042 ol_link_threads=mach
15043 ol_with_threads=found
15047 elif test $ac_cv_header_cthreads_h = yes ; then
15049 ol_with_threads=found
15052 LIBS="$LIBS -lthreads"
15053 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15054 echo "configure:15055: checking for cthread_fork" >&5
15055 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15056 echo $ac_n "(cached) $ac_c" 1>&6
15058 cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 /* System header to define __stub macros and hopefully few prototypes,
15062 which can conflict with char cthread_fork(); below. */
15063 #include <assert.h>
15064 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15067 char cthread_fork();
15072 /* The GNU C library defines this for functions which it implements
15073 to always fail with ENOSYS. Some functions are actually named
15074 something starting with __ and the normal name is an alias. */
15075 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15083 if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15085 eval "ac_cv_func_cthread_fork=yes"
15087 echo "configure: failed program was:" >&5
15088 cat conftest.$ac_ext >&5
15090 eval "ac_cv_func_cthread_fork=no"
15095 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15096 echo "$ac_t""yes" 1>&6
15097 ol_link_threads=yes
15099 echo "$ac_t""no" 1>&6
15104 if test $ol_link_threads = yes ; then
15105 LTHREAD_LIBS="-lthreads"
15106 ol_link_threads=mach
15107 ol_with_threads=found
15109 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15112 elif test $ol_with_threads = mach ; then
15113 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15116 if test $ol_link_threads = mach ; then
15117 cat >> confdefs.h <<\EOF
15118 #define HAVE_MACH_CTHREADS 1
15121 elif test $ol_with_threads = found ; then
15122 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15126 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15127 -o $ol_with_threads = pth ; then
15129 for ac_hdr in pth.h
15131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15133 echo "configure:15134: checking for $ac_hdr" >&5
15134 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15137 cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15143 { (eval echo configure:15144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15145 if test -z "$ac_err"; then
15147 eval "ac_cv_header_$ac_safe=yes"
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15153 eval "ac_cv_header_$ac_safe=no"
15157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15158 echo "$ac_t""yes" 1>&6
15159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15160 cat >> confdefs.h <<EOF
15161 #define $ac_tr_hdr 1
15165 echo "$ac_t""no" 1>&6
15170 if test $ac_cv_header_pth_h = yes ; then
15171 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15172 echo "configure:15173: checking for pth_version in -lpth" >&5
15173 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15174 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
15177 ac_save_LIBS="$LIBS"
15179 cat > conftest.$ac_ext <<EOF
15180 #line 15181 "configure"
15181 #include "confdefs.h"
15182 /* Override any gcc2 internal prototype to avoid an error. */
15183 /* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15185 char pth_version();
15191 if { (eval echo configure:15192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15193 eval "ac_cv_lib_$ac_lib_var=yes"
15195 echo "configure: failed program was:" >&5
15196 cat conftest.$ac_ext >&5
15198 eval "ac_cv_lib_$ac_lib_var=no"
15201 LIBS="$ac_save_LIBS"
15204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15205 echo "$ac_t""yes" 1>&6
15208 echo "$ac_t""no" 1>&6
15213 if test $have_pth = yes ; then
15214 cat >> confdefs.h <<\EOF
15215 #define HAVE_GNU_PTH 1
15218 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15219 ol_link_threads=pth
15220 ol_with_threads=found
15222 if test $ol_with_yielding_select = auto ; then
15223 ol_with_yielding_select=yes
15229 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15230 -o $ol_with_threads = lwp ; then
15232 for ac_hdr in thread.h synch.h
15234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15236 echo "configure:15237: checking for $ac_hdr" >&5
15237 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15240 cat > conftest.$ac_ext <<EOF
15241 #line 15242 "configure"
15242 #include "confdefs.h"
15245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15246 { (eval echo configure:15247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15248 if test -z "$ac_err"; then
15250 eval "ac_cv_header_$ac_safe=yes"
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15256 eval "ac_cv_header_$ac_safe=no"
15260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15261 echo "$ac_t""yes" 1>&6
15262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15263 cat >> confdefs.h <<EOF
15264 #define $ac_tr_hdr 1
15268 echo "$ac_t""no" 1>&6
15272 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15273 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15274 echo "configure:15275: checking for thr_create in -lthread" >&5
15275 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15277 echo $ac_n "(cached) $ac_c" 1>&6
15279 ac_save_LIBS="$LIBS"
15280 LIBS="-lthread $LIBS"
15281 cat > conftest.$ac_ext <<EOF
15282 #line 15283 "configure"
15283 #include "confdefs.h"
15284 /* Override any gcc2 internal prototype to avoid an error. */
15285 /* We use char because int might match the return type of a gcc2
15286 builtin and then its argument prototype would still apply. */
15293 if { (eval echo configure:15294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15295 eval "ac_cv_lib_$ac_lib_var=yes"
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15300 eval "ac_cv_lib_$ac_lib_var=no"
15303 LIBS="$ac_save_LIBS"
15306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15307 echo "$ac_t""yes" 1>&6
15310 echo "$ac_t""no" 1>&6
15315 if test $have_thr = yes ; then
15316 cat >> confdefs.h <<\EOF
15320 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15321 ol_link_threads=thr
15323 if test $ol_with_yielding_select = auto ; then
15324 ol_with_yielding_select=yes
15328 thr_setconcurrency \
15329 thr_getconcurrency \
15332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15333 echo "configure:15334: checking for $ac_func" >&5
15334 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15335 echo $ac_n "(cached) $ac_c" 1>&6
15337 cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15340 /* System header to define __stub macros and hopefully few prototypes,
15341 which can conflict with char $ac_func(); below. */
15342 #include <assert.h>
15343 /* Override any gcc2 internal prototype to avoid an error. */
15344 /* We use char because int might match the return type of a gcc2
15345 builtin and then its argument prototype would still apply. */
15351 /* The GNU C library defines this for functions which it implements
15352 to always fail with ENOSYS. Some functions are actually named
15353 something starting with __ and the normal name is an alias. */
15354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15362 if { (eval echo configure:15363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15364 eval "ac_cv_func_$ac_func=yes"
15366 echo "configure: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15369 eval "ac_cv_func_$ac_func=no"
15374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15375 echo "$ac_t""yes" 1>&6
15376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15377 cat >> confdefs.h <<EOF
15378 #define $ac_tr_func 1
15382 echo "$ac_t""no" 1>&6
15389 for ac_hdr in lwp/lwp.h
15391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15393 echo "configure:15394: checking for $ac_hdr" >&5
15394 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15395 echo $ac_n "(cached) $ac_c" 1>&6
15397 cat > conftest.$ac_ext <<EOF
15398 #line 15399 "configure"
15399 #include "confdefs.h"
15402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15403 { (eval echo configure:15404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15405 if test -z "$ac_err"; then
15407 eval "ac_cv_header_$ac_safe=yes"
15410 echo "configure: failed program was:" >&5
15411 cat conftest.$ac_ext >&5
15413 eval "ac_cv_header_$ac_safe=no"
15417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15418 echo "$ac_t""yes" 1>&6
15419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15420 cat >> confdefs.h <<EOF
15421 #define $ac_tr_hdr 1
15425 echo "$ac_t""no" 1>&6
15429 if test $ac_cv_header_lwp_lwp_h = yes ; then
15430 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15431 echo "configure:15432: checking for lwp_create in -llwp" >&5
15432 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15434 echo $ac_n "(cached) $ac_c" 1>&6
15436 ac_save_LIBS="$LIBS"
15438 cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441 /* Override any gcc2 internal prototype to avoid an error. */
15442 /* We use char because int might match the return type of a gcc2
15443 builtin and then its argument prototype would still apply. */
15450 if { (eval echo configure:15451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15452 eval "ac_cv_lib_$ac_lib_var=yes"
15454 echo "configure: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15457 eval "ac_cv_lib_$ac_lib_var=no"
15460 LIBS="$ac_save_LIBS"
15463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15464 echo "$ac_t""yes" 1>&6
15467 echo "$ac_t""no" 1>&6
15472 if test $have_lwp = yes ; then
15473 cat >> confdefs.h <<\EOF
15477 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15478 ol_link_threads=lwp
15480 if test $ol_with_yielding_select = auto ; then
15481 ol_with_yielding_select=no
15487 if test $ol_with_yielding_select = yes ; then
15488 cat >> confdefs.h <<\EOF
15489 #define HAVE_YIELDING_SELECT 1
15494 if test $ol_with_threads = manual ; then
15495 ol_link_threads=yes
15497 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15499 for ac_hdr in pthread.h sched.h
15501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15503 echo "configure:15504: checking for $ac_hdr" >&5
15504 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15507 cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15513 { (eval echo configure:15514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15515 if test -z "$ac_err"; then
15517 eval "ac_cv_header_$ac_safe=yes"
15520 echo "configure: failed program was:" >&5
15521 cat conftest.$ac_ext >&5
15523 eval "ac_cv_header_$ac_safe=no"
15527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15528 echo "$ac_t""yes" 1>&6
15529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15530 cat >> confdefs.h <<EOF
15531 #define $ac_tr_hdr 1
15535 echo "$ac_t""no" 1>&6
15539 for ac_func in sched_yield pthread_yield
15541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15542 echo "configure:15543: checking for $ac_func" >&5
15543 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15544 echo $ac_n "(cached) $ac_c" 1>&6
15546 cat > conftest.$ac_ext <<EOF
15547 #line 15548 "configure"
15548 #include "confdefs.h"
15549 /* System header to define __stub macros and hopefully few prototypes,
15550 which can conflict with char $ac_func(); below. */
15551 #include <assert.h>
15552 /* Override any gcc2 internal prototype to avoid an error. */
15553 /* We use char because int might match the return type of a gcc2
15554 builtin and then its argument prototype would still apply. */
15560 /* The GNU C library defines this for functions which it implements
15561 to always fail with ENOSYS. Some functions are actually named
15562 something starting with __ and the normal name is an alias. */
15563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15571 if { (eval echo configure:15572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15573 eval "ac_cv_func_$ac_func=yes"
15575 echo "configure: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15578 eval "ac_cv_func_$ac_func=no"
15583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15584 echo "$ac_t""yes" 1>&6
15585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15586 cat >> confdefs.h <<EOF
15587 #define $ac_tr_func 1
15591 echo "$ac_t""no" 1>&6
15596 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15597 echo "configure:15598: checking for LinuxThreads pthread.h" >&5
15598 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15599 echo $ac_n "(cached) $ac_c" 1>&6
15601 cat > conftest.$ac_ext <<EOF
15602 #line 15603 "configure"
15603 #include "confdefs.h"
15604 #include <pthread.h>
15606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15607 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15609 ol_cv_header_linux_threads=yes
15612 ol_cv_header_linux_threads=no
15619 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15620 if test $ol_cv_header_linux_threads = yes; then
15621 cat >> confdefs.h <<\EOF
15622 #define HAVE_LINUX_THREADS 1
15628 for ac_hdr in mach/cthreads.h
15630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15632 echo "configure:15633: checking for $ac_hdr" >&5
15633 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15634 echo $ac_n "(cached) $ac_c" 1>&6
15636 cat > conftest.$ac_ext <<EOF
15637 #line 15638 "configure"
15638 #include "confdefs.h"
15641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15642 { (eval echo configure:15643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15644 if test -z "$ac_err"; then
15646 eval "ac_cv_header_$ac_safe=yes"
15649 echo "configure: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15652 eval "ac_cv_header_$ac_safe=no"
15656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15657 echo "$ac_t""yes" 1>&6
15658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15659 cat >> confdefs.h <<EOF
15660 #define $ac_tr_hdr 1
15664 echo "$ac_t""no" 1>&6
15668 for ac_hdr in lwp/lwp.h
15670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15672 echo "configure:15673: checking for $ac_hdr" >&5
15673 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15674 echo $ac_n "(cached) $ac_c" 1>&6
15676 cat > conftest.$ac_ext <<EOF
15677 #line 15678 "configure"
15678 #include "confdefs.h"
15681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15682 { (eval echo configure:15683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15684 if test -z "$ac_err"; then
15686 eval "ac_cv_header_$ac_safe=yes"
15689 echo "configure: failed program was:" >&5
15690 cat conftest.$ac_ext >&5
15692 eval "ac_cv_header_$ac_safe=no"
15696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15697 echo "$ac_t""yes" 1>&6
15698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15699 cat >> confdefs.h <<EOF
15700 #define $ac_tr_hdr 1
15704 echo "$ac_t""no" 1>&6
15708 for ac_hdr in thread.h synch.h
15710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15712 echo "configure:15713: checking for $ac_hdr" >&5
15713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15714 echo $ac_n "(cached) $ac_c" 1>&6
15716 cat > conftest.$ac_ext <<EOF
15717 #line 15718 "configure"
15718 #include "confdefs.h"
15721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15722 { (eval echo configure:15723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15724 if test -z "$ac_err"; then
15726 eval "ac_cv_header_$ac_safe=yes"
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15732 eval "ac_cv_header_$ac_safe=no"
15736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15737 echo "$ac_t""yes" 1>&6
15738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15739 cat >> confdefs.h <<EOF
15740 #define $ac_tr_hdr 1
15744 echo "$ac_t""no" 1>&6
15750 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15751 cat >> confdefs.h <<\EOF
15752 #define REENTRANT 1
15755 cat >> confdefs.h <<\EOF
15756 #define _REENTRANT 1
15759 cat >> confdefs.h <<\EOF
15760 #define THREAD_SAFE 1
15763 cat >> confdefs.h <<\EOF
15764 #define _THREAD_SAFE 1
15767 cat >> confdefs.h <<\EOF
15768 #define THREADSAFE 1
15771 cat >> confdefs.h <<\EOF
15772 #define _THREADSAFE 1
15775 cat >> confdefs.h <<\EOF
15776 #define _SGI_MP_SOURCE 1
15780 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15781 echo "configure:15782: checking for thread specific errno" >&5
15782 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15786 cat > conftest.$ac_ext <<EOF
15787 #line 15788 "configure"
15788 #include "confdefs.h"
15794 if { (eval echo configure:15795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15796 ol_cv_errno_thread_specific=yes
15798 echo "configure: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15801 ol_cv_errno_thread_specific=no
15807 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15809 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15810 echo "configure:15811: checking for thread specific h_errno" >&5
15811 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15812 echo $ac_n "(cached) $ac_c" 1>&6
15815 cat > conftest.$ac_ext <<EOF
15816 #line 15817 "configure"
15817 #include "confdefs.h"
15823 if { (eval echo configure:15824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15825 ol_cv_h_errno_thread_specific=yes
15827 echo "configure: failed program was:" >&5
15828 cat conftest.$ac_ext >&5
15830 ol_cv_h_errno_thread_specific=no
15836 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15838 if test $ol_cv_errno_thread_specific != yes \
15839 -o $ol_cv_h_errno_thread_specific != yes ; then
15840 LIBS="$LTHREAD_LIBS $LIBS"
15846 if test $ol_link_threads = no ; then
15847 if test $ol_with_threads = yes ; then
15848 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15851 if test $ol_with_threads = auto ; then
15852 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15856 cat >> confdefs.h <<\EOF
15857 #define NO_THREADS 1
15863 if test $ol_link_threads != no ; then
15864 cat >> confdefs.h <<\EOF
15865 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15872 gethostbyname_r gethostbyaddr_r \
15875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15876 echo "configure:15877: checking for $ac_func" >&5
15877 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15878 echo $ac_n "(cached) $ac_c" 1>&6
15880 cat > conftest.$ac_ext <<EOF
15881 #line 15882 "configure"
15882 #include "confdefs.h"
15883 /* System header to define __stub macros and hopefully few prototypes,
15884 which can conflict with char $ac_func(); below. */
15885 #include <assert.h>
15886 /* Override any gcc2 internal prototype to avoid an error. */
15887 /* We use char because int might match the return type of a gcc2
15888 builtin and then its argument prototype would still apply. */
15894 /* The GNU C library defines this for functions which it implements
15895 to always fail with ENOSYS. Some functions are actually named
15896 something starting with __ and the normal name is an alias. */
15897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15905 if { (eval echo configure:15906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15907 eval "ac_cv_func_$ac_func=yes"
15909 echo "configure: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15912 eval "ac_cv_func_$ac_func=no"
15917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15918 echo "$ac_t""yes" 1>&6
15919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15920 cat >> confdefs.h <<EOF
15921 #define $ac_tr_func 1
15925 echo "$ac_t""no" 1>&6
15930 if test "$ac_cv_func_ctime_r" = no ; then
15931 ol_cv_func_ctime_r_nargs=0
15933 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
15934 echo "configure:15935: checking number of arguments of ctime_r" >&5
15935 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
15936 echo $ac_n "(cached) $ac_c" 1>&6
15938 cat > conftest.$ac_ext <<EOF
15939 #line 15940 "configure"
15940 #include "confdefs.h"
15943 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
15946 if { (eval echo configure:15947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15948 ol_cv_func_ctime_r_nargs3=yes
15950 echo "configure: failed program was:" >&5
15951 cat conftest.$ac_ext >&5
15953 ol_cv_func_ctime_r_nargs3=no
15957 cat > conftest.$ac_ext <<EOF
15958 #line 15959 "configure"
15959 #include "confdefs.h"
15962 time_t ti; char *buffer; ctime_r(&ti,buffer);
15965 if { (eval echo configure:15966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15967 ol_cv_func_ctime_r_nargs2=yes
15969 echo "configure: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15972 ol_cv_func_ctime_r_nargs2=no
15976 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
15977 $ol_cv_func_ctime_r_nargs2 = no ; then
15979 ol_cv_func_ctime_r_nargs=3
15981 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
15982 $ol_cv_func_ctime_r_nargs2 = yes ; then
15984 ol_cv_func_ctime_r_nargs=2
15987 ol_cv_func_ctime_r_nargs=0
15992 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
15994 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
15995 cat >> confdefs.h <<EOF
15996 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16003 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16004 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16005 echo "configure:16006: checking number of arguments of gethostbyname_r" >&5
16006 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16007 echo $ac_n "(cached) $ac_c" 1>&6
16009 cat > conftest.$ac_ext <<EOF
16010 #line 16011 "configure"
16011 #include "confdefs.h"
16012 #include <sys/types.h>
16013 #include <sys/socket.h>
16014 #include <netinet/in.h>
16016 #define BUFSIZE (sizeof(struct hostent)+10)
16018 struct hostent hent; char buffer[BUFSIZE];
16019 int bufsize=BUFSIZE;int h_errno;
16020 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16021 buffer, bufsize, &h_errno);
16024 if { (eval echo configure:16025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16026 ol_cv_func_gethostbyname_r_nargs5=yes
16028 echo "configure: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16031 ol_cv_func_gethostbyname_r_nargs5=no
16035 cat > conftest.$ac_ext <<EOF
16036 #line 16037 "configure"
16037 #include "confdefs.h"
16038 #include <sys/types.h>
16039 #include <sys/socket.h>
16040 #include <netinet/in.h>
16042 #define BUFSIZE (sizeof(struct hostent)+10)
16044 struct hostent hent;struct hostent *rhent;
16045 char buffer[BUFSIZE];
16046 int bufsize=BUFSIZE;int h_errno;
16047 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16051 if { (eval echo configure:16052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16053 ol_cv_func_gethostbyname_r_nargs6=yes
16055 echo "configure: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16058 ol_cv_func_gethostbyname_r_nargs6=no
16062 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16063 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16065 ol_cv_func_gethostbyname_r_nargs=5
16067 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16068 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16070 ol_cv_func_gethostbyname_r_nargs=6
16073 ol_cv_func_gethostbyname_r_nargs=0
16078 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16079 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16080 cat >> confdefs.h <<EOF
16081 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16087 ol_cv_func_gethostbyname_r_nargs=0
16090 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16091 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16092 echo "configure:16093: checking number of arguments of gethostbyaddr_r" >&5
16093 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16096 cat > conftest.$ac_ext <<EOF
16097 #line 16098 "configure"
16098 #include "confdefs.h"
16099 #include <sys/types.h>
16100 #include <sys/socket.h>
16101 #include <netinet/in.h>
16103 #define BUFSIZE (sizeof(struct hostent)+10)
16105 struct hostent hent; char buffer[BUFSIZE];
16106 struct in_addr add;
16107 size_t alen=sizeof(struct in_addr);
16108 int bufsize=BUFSIZE;int h_errno;
16109 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16110 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16113 if { (eval echo configure:16114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16115 ol_cv_func_gethostbyaddr_r_nargs7=yes
16117 echo "configure: failed program was:" >&5
16118 cat conftest.$ac_ext >&5
16120 ol_cv_func_gethostbyaddr_r_nargs7=no
16124 cat > conftest.$ac_ext <<EOF
16125 #line 16126 "configure"
16126 #include "confdefs.h"
16127 #include <sys/types.h>
16128 #include <sys/socket.h>
16129 #include <netinet/in.h>
16131 #define BUFSIZE (sizeof(struct hostent)+10)
16133 struct hostent hent;
16134 struct hostent *rhent; char buffer[BUFSIZE];
16135 struct in_addr add;
16136 size_t alen=sizeof(struct in_addr);
16137 int bufsize=BUFSIZE;int h_errno;
16138 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16139 alen, AF_INET, &hent, buffer, bufsize,
16143 if { (eval echo configure:16144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16145 ol_cv_func_gethostbyaddr_r_nargs8=yes
16147 echo "configure: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16150 ol_cv_func_gethostbyaddr_r_nargs8=no
16154 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16155 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16157 ol_cv_func_gethostbyaddr_r_nargs=7
16159 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16160 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16162 ol_cv_func_gethostbyaddr_r_nargs=8
16165 ol_cv_func_gethostbyaddr_r_nargs=0
16170 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16171 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16172 cat >> confdefs.h <<EOF
16173 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16179 ol_cv_func_gethostbyaddr_r_nargs=0
16184 if test $ol_with_ldbm_api = auto \
16185 -o $ol_with_ldbm_api = berkeley \
16186 -o $ol_with_ldbm_api = bcompat ; then
16188 if test $ol_with_ldbm_api = bcompat; then \
16189 for ac_hdr in db_185.h db.h
16191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16193 echo "configure:16194: checking for $ac_hdr" >&5
16194 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16195 echo $ac_n "(cached) $ac_c" 1>&6
16197 cat > conftest.$ac_ext <<EOF
16198 #line 16199 "configure"
16199 #include "confdefs.h"
16202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16203 { (eval echo configure:16204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16205 if test -z "$ac_err"; then
16207 eval "ac_cv_header_$ac_safe=yes"
16210 echo "configure: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16213 eval "ac_cv_header_$ac_safe=no"
16217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16218 echo "$ac_t""yes" 1>&6
16219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16220 cat >> confdefs.h <<EOF
16221 #define $ac_tr_hdr 1
16225 echo "$ac_t""no" 1>&6
16229 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16230 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16231 echo "configure:16232: checking if Berkeley DB header compatibility" >&5
16232 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16233 echo $ac_n "(cached) $ac_c" 1>&6
16236 cat > conftest.$ac_ext <<EOF
16237 #line 16238 "configure"
16238 #include "confdefs.h"
16241 # include <db_185.h>
16246 /* this check could be improved */
16247 #ifndef DB_VERSION_MAJOR
16248 # define DB_VERSION_MAJOR 1
16251 #if DB_VERSION_MAJOR == 1
16256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16257 egrep "__db_version_1" >/dev/null 2>&1; then
16259 ol_cv_header_db1=yes
16262 ol_cv_header_db1=no
16268 echo "$ac_t""$ol_cv_header_db1" 1>&6
16270 if test $ol_cv_header_db1 = yes ; then
16272 if test $ol_cv_lib_db = no ; then
16273 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16274 echo "configure:16275: checking for Berkeley DB link (default)" >&5
16275 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16281 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16283 cat > conftest.$ac_ext <<EOF
16284 #line 16285 "configure"
16285 #include "confdefs.h"
16287 #ifdef HAVE_DB_185_H
16288 # include <db_185.h>
16293 #ifndef DB_VERSION_MAJOR
16294 # define DB_VERSION_MAJOR 1
16298 #define NULL ((void*)0)
16303 #if DB_VERSION_MAJOR > 1
16306 int major, minor, patch;
16308 version = db_version( &major, &minor, &patch );
16310 if( major != DB_VERSION_MAJOR ||
16311 minor < DB_VERSION_MINOR )
16313 printf("Berkeley DB version mismatch\n"
16314 "\texpected: %s\n\tgot: %s\n",
16315 DB_VERSION_STRING, version);
16321 #if DB_VERSION_MAJOR > 2
16322 db_env_create( NULL, 0 );
16323 #elif DB_VERSION_MAJOR > 1
16324 db_appexit( NULL );
16326 (void) dbopen( NULL, 0, 0, 0, NULL);
16331 if { (eval echo configure:16332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16335 echo "configure: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16346 echo "$ac_t""$ol_cv_db_none" 1>&6
16348 if test $ol_cv_db_none = yes ; then
16353 if test $ol_cv_lib_db = no ; then
16354 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16355 echo "configure:16356: checking for Berkeley DB link (-ldb42)" >&5
16356 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16357 echo $ac_n "(cached) $ac_c" 1>&6
16362 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16364 cat > conftest.$ac_ext <<EOF
16365 #line 16366 "configure"
16366 #include "confdefs.h"
16368 #ifdef HAVE_DB_185_H
16369 # include <db_185.h>
16374 #ifndef DB_VERSION_MAJOR
16375 # define DB_VERSION_MAJOR 1
16379 #define NULL ((void*)0)
16384 #if DB_VERSION_MAJOR > 1
16387 int major, minor, patch;
16389 version = db_version( &major, &minor, &patch );
16391 if( major != DB_VERSION_MAJOR ||
16392 minor < DB_VERSION_MINOR )
16394 printf("Berkeley DB version mismatch\n"
16395 "\texpected: %s\n\tgot: %s\n",
16396 DB_VERSION_STRING, version);
16402 #if DB_VERSION_MAJOR > 2
16403 db_env_create( NULL, 0 );
16404 #elif DB_VERSION_MAJOR > 1
16405 db_appexit( NULL );
16407 (void) dbopen( NULL, 0, 0, 0, NULL);
16412 if { (eval echo configure:16413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16416 echo "configure: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16427 echo "$ac_t""$ol_cv_db_db42" 1>&6
16429 if test $ol_cv_db_db42 = yes ; then
16430 ol_cv_lib_db=-ldb42
16434 if test $ol_cv_lib_db = no ; then
16435 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16436 echo "configure:16437: checking for Berkeley DB link (-ldb-42)" >&5
16437 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16438 echo $ac_n "(cached) $ac_c" 1>&6
16443 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16445 cat > conftest.$ac_ext <<EOF
16446 #line 16447 "configure"
16447 #include "confdefs.h"
16449 #ifdef HAVE_DB_185_H
16450 # include <db_185.h>
16455 #ifndef DB_VERSION_MAJOR
16456 # define DB_VERSION_MAJOR 1
16460 #define NULL ((void*)0)
16465 #if DB_VERSION_MAJOR > 1
16468 int major, minor, patch;
16470 version = db_version( &major, &minor, &patch );
16472 if( major != DB_VERSION_MAJOR ||
16473 minor < DB_VERSION_MINOR )
16475 printf("Berkeley DB version mismatch\n"
16476 "\texpected: %s\n\tgot: %s\n",
16477 DB_VERSION_STRING, version);
16483 #if DB_VERSION_MAJOR > 2
16484 db_env_create( NULL, 0 );
16485 #elif DB_VERSION_MAJOR > 1
16486 db_appexit( NULL );
16488 (void) dbopen( NULL, 0, 0, 0, NULL);
16493 if { (eval echo configure:16494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16497 echo "configure: failed program was:" >&5
16498 cat conftest.$ac_ext >&5
16508 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16510 if test $ol_cv_db_db_42 = yes ; then
16511 ol_cv_lib_db=-ldb-42
16515 if test $ol_cv_lib_db = no ; then
16516 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16517 echo "configure:16518: checking for Berkeley DB link (-ldb-4.2)" >&5
16518 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16519 echo $ac_n "(cached) $ac_c" 1>&6
16524 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16526 cat > conftest.$ac_ext <<EOF
16527 #line 16528 "configure"
16528 #include "confdefs.h"
16530 #ifdef HAVE_DB_185_H
16531 # include <db_185.h>
16536 #ifndef DB_VERSION_MAJOR
16537 # define DB_VERSION_MAJOR 1
16541 #define NULL ((void*)0)
16546 #if DB_VERSION_MAJOR > 1
16549 int major, minor, patch;
16551 version = db_version( &major, &minor, &patch );
16553 if( major != DB_VERSION_MAJOR ||
16554 minor < DB_VERSION_MINOR )
16556 printf("Berkeley DB version mismatch\n"
16557 "\texpected: %s\n\tgot: %s\n",
16558 DB_VERSION_STRING, version);
16564 #if DB_VERSION_MAJOR > 2
16565 db_env_create( NULL, 0 );
16566 #elif DB_VERSION_MAJOR > 1
16567 db_appexit( NULL );
16569 (void) dbopen( NULL, 0, 0, 0, NULL);
16574 if { (eval echo configure:16575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16576 ol_cv_db_db_4_dot_2=yes
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16581 ol_cv_db_db_4_dot_2=no
16589 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16591 if test $ol_cv_db_db_4_dot_2 = yes ; then
16592 ol_cv_lib_db=-ldb-4.2
16596 if test $ol_cv_lib_db = no ; then
16597 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16598 echo "configure:16599: checking for Berkeley DB link (-ldb-4-2)" >&5
16599 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16600 echo $ac_n "(cached) $ac_c" 1>&6
16605 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16611 #ifdef HAVE_DB_185_H
16612 # include <db_185.h>
16617 #ifndef DB_VERSION_MAJOR
16618 # define DB_VERSION_MAJOR 1
16622 #define NULL ((void*)0)
16627 #if DB_VERSION_MAJOR > 1
16630 int major, minor, patch;
16632 version = db_version( &major, &minor, &patch );
16634 if( major != DB_VERSION_MAJOR ||
16635 minor < DB_VERSION_MINOR )
16637 printf("Berkeley DB version mismatch\n"
16638 "\texpected: %s\n\tgot: %s\n",
16639 DB_VERSION_STRING, version);
16645 #if DB_VERSION_MAJOR > 2
16646 db_env_create( NULL, 0 );
16647 #elif DB_VERSION_MAJOR > 1
16648 db_appexit( NULL );
16650 (void) dbopen( NULL, 0, 0, 0, NULL);
16655 if { (eval echo configure:16656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16657 ol_cv_db_db_4_2=yes
16659 echo "configure: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16670 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16672 if test $ol_cv_db_db_4_2 = yes ; then
16673 ol_cv_lib_db=-ldb-4-2
16677 if test $ol_cv_lib_db = no ; then
16678 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16679 echo "configure:16680: checking for Berkeley DB link (-ldb-4)" >&5
16680 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16681 echo $ac_n "(cached) $ac_c" 1>&6
16686 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16688 cat > conftest.$ac_ext <<EOF
16689 #line 16690 "configure"
16690 #include "confdefs.h"
16692 #ifdef HAVE_DB_185_H
16693 # include <db_185.h>
16698 #ifndef DB_VERSION_MAJOR
16699 # define DB_VERSION_MAJOR 1
16703 #define NULL ((void*)0)
16708 #if DB_VERSION_MAJOR > 1
16711 int major, minor, patch;
16713 version = db_version( &major, &minor, &patch );
16715 if( major != DB_VERSION_MAJOR ||
16716 minor < DB_VERSION_MINOR )
16718 printf("Berkeley DB version mismatch\n"
16719 "\texpected: %s\n\tgot: %s\n",
16720 DB_VERSION_STRING, version);
16726 #if DB_VERSION_MAJOR > 2
16727 db_env_create( NULL, 0 );
16728 #elif DB_VERSION_MAJOR > 1
16729 db_appexit( NULL );
16731 (void) dbopen( NULL, 0, 0, 0, NULL);
16736 if { (eval echo configure:16737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16740 echo "configure: failed program was:" >&5
16741 cat conftest.$ac_ext >&5
16751 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16753 if test $ol_cv_db_db_4 = yes ; then
16754 ol_cv_lib_db=-ldb-4
16758 if test $ol_cv_lib_db = no ; then
16759 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16760 echo "configure:16761: checking for Berkeley DB link (-ldb4)" >&5
16761 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16767 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16769 cat > conftest.$ac_ext <<EOF
16770 #line 16771 "configure"
16771 #include "confdefs.h"
16773 #ifdef HAVE_DB_185_H
16774 # include <db_185.h>
16779 #ifndef DB_VERSION_MAJOR
16780 # define DB_VERSION_MAJOR 1
16784 #define NULL ((void*)0)
16789 #if DB_VERSION_MAJOR > 1
16792 int major, minor, patch;
16794 version = db_version( &major, &minor, &patch );
16796 if( major != DB_VERSION_MAJOR ||
16797 minor < DB_VERSION_MINOR )
16799 printf("Berkeley DB version mismatch\n"
16800 "\texpected: %s\n\tgot: %s\n",
16801 DB_VERSION_STRING, version);
16807 #if DB_VERSION_MAJOR > 2
16808 db_env_create( NULL, 0 );
16809 #elif DB_VERSION_MAJOR > 1
16810 db_appexit( NULL );
16812 (void) dbopen( NULL, 0, 0, 0, NULL);
16817 if { (eval echo configure:16818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16821 echo "configure: failed program was:" >&5
16822 cat conftest.$ac_ext >&5
16832 echo "$ac_t""$ol_cv_db_db4" 1>&6
16834 if test $ol_cv_db_db4 = yes ; then
16839 if test $ol_cv_lib_db = no ; then
16840 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16841 echo "configure:16842: checking for Berkeley DB link (-ldb)" >&5
16842 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16843 echo $ac_n "(cached) $ac_c" 1>&6
16848 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16850 cat > conftest.$ac_ext <<EOF
16851 #line 16852 "configure"
16852 #include "confdefs.h"
16854 #ifdef HAVE_DB_185_H
16855 # include <db_185.h>
16860 #ifndef DB_VERSION_MAJOR
16861 # define DB_VERSION_MAJOR 1
16865 #define NULL ((void*)0)
16870 #if DB_VERSION_MAJOR > 1
16873 int major, minor, patch;
16875 version = db_version( &major, &minor, &patch );
16877 if( major != DB_VERSION_MAJOR ||
16878 minor < DB_VERSION_MINOR )
16880 printf("Berkeley DB version mismatch\n"
16881 "\texpected: %s\n\tgot: %s\n",
16882 DB_VERSION_STRING, version);
16888 #if DB_VERSION_MAJOR > 2
16889 db_env_create( NULL, 0 );
16890 #elif DB_VERSION_MAJOR > 1
16891 db_appexit( NULL );
16893 (void) dbopen( NULL, 0, 0, 0, NULL);
16898 if { (eval echo configure:16899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16902 echo "configure: failed program was:" >&5
16903 cat conftest.$ac_ext >&5
16913 echo "$ac_t""$ol_cv_db_db" 1>&6
16915 if test $ol_cv_db_db = yes ; then
16920 if test $ol_cv_lib_db = no ; then
16921 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16922 echo "configure:16923: checking for Berkeley DB link (-ldb41)" >&5
16923 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16924 echo $ac_n "(cached) $ac_c" 1>&6
16929 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16931 cat > conftest.$ac_ext <<EOF
16932 #line 16933 "configure"
16933 #include "confdefs.h"
16935 #ifdef HAVE_DB_185_H
16936 # include <db_185.h>
16941 #ifndef DB_VERSION_MAJOR
16942 # define DB_VERSION_MAJOR 1
16946 #define NULL ((void*)0)
16951 #if DB_VERSION_MAJOR > 1
16954 int major, minor, patch;
16956 version = db_version( &major, &minor, &patch );
16958 if( major != DB_VERSION_MAJOR ||
16959 minor < DB_VERSION_MINOR )
16961 printf("Berkeley DB version mismatch\n"
16962 "\texpected: %s\n\tgot: %s\n",
16963 DB_VERSION_STRING, version);
16969 #if DB_VERSION_MAJOR > 2
16970 db_env_create( NULL, 0 );
16971 #elif DB_VERSION_MAJOR > 1
16972 db_appexit( NULL );
16974 (void) dbopen( NULL, 0, 0, 0, NULL);
16979 if { (eval echo configure:16980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16983 echo "configure: failed program was:" >&5
16984 cat conftest.$ac_ext >&5
16994 echo "$ac_t""$ol_cv_db_db41" 1>&6
16996 if test $ol_cv_db_db41 = yes ; then
16997 ol_cv_lib_db=-ldb41
17001 if test $ol_cv_lib_db = no ; then
17002 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17003 echo "configure:17004: checking for Berkeley DB link (-ldb-41)" >&5
17004 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17005 echo $ac_n "(cached) $ac_c" 1>&6
17010 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17012 cat > conftest.$ac_ext <<EOF
17013 #line 17014 "configure"
17014 #include "confdefs.h"
17016 #ifdef HAVE_DB_185_H
17017 # include <db_185.h>
17022 #ifndef DB_VERSION_MAJOR
17023 # define DB_VERSION_MAJOR 1
17027 #define NULL ((void*)0)
17032 #if DB_VERSION_MAJOR > 1
17035 int major, minor, patch;
17037 version = db_version( &major, &minor, &patch );
17039 if( major != DB_VERSION_MAJOR ||
17040 minor < DB_VERSION_MINOR )
17042 printf("Berkeley DB version mismatch\n"
17043 "\texpected: %s\n\tgot: %s\n",
17044 DB_VERSION_STRING, version);
17050 #if DB_VERSION_MAJOR > 2
17051 db_env_create( NULL, 0 );
17052 #elif DB_VERSION_MAJOR > 1
17053 db_appexit( NULL );
17055 (void) dbopen( NULL, 0, 0, 0, NULL);
17060 if { (eval echo configure:17061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17064 echo "configure: failed program was:" >&5
17065 cat conftest.$ac_ext >&5
17075 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17077 if test $ol_cv_db_db_41 = yes ; then
17078 ol_cv_lib_db=-ldb-41
17082 if test $ol_cv_lib_db = no ; then
17083 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17084 echo "configure:17085: checking for Berkeley DB link (-ldb-4.1)" >&5
17085 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17086 echo $ac_n "(cached) $ac_c" 1>&6
17091 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17093 cat > conftest.$ac_ext <<EOF
17094 #line 17095 "configure"
17095 #include "confdefs.h"
17097 #ifdef HAVE_DB_185_H
17098 # include <db_185.h>
17103 #ifndef DB_VERSION_MAJOR
17104 # define DB_VERSION_MAJOR 1
17108 #define NULL ((void*)0)
17113 #if DB_VERSION_MAJOR > 1
17116 int major, minor, patch;
17118 version = db_version( &major, &minor, &patch );
17120 if( major != DB_VERSION_MAJOR ||
17121 minor < DB_VERSION_MINOR )
17123 printf("Berkeley DB version mismatch\n"
17124 "\texpected: %s\n\tgot: %s\n",
17125 DB_VERSION_STRING, version);
17131 #if DB_VERSION_MAJOR > 2
17132 db_env_create( NULL, 0 );
17133 #elif DB_VERSION_MAJOR > 1
17134 db_appexit( NULL );
17136 (void) dbopen( NULL, 0, 0, 0, NULL);
17141 if { (eval echo configure:17142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17143 ol_cv_db_db_4_dot_1=yes
17145 echo "configure: failed program was:" >&5
17146 cat conftest.$ac_ext >&5
17148 ol_cv_db_db_4_dot_1=no
17156 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17158 if test $ol_cv_db_db_4_dot_1 = yes ; then
17159 ol_cv_lib_db=-ldb-4.1
17163 if test $ol_cv_lib_db = no ; then
17164 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17165 echo "configure:17166: checking for Berkeley DB link (-ldb-4-1)" >&5
17166 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17167 echo $ac_n "(cached) $ac_c" 1>&6
17172 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17174 cat > conftest.$ac_ext <<EOF
17175 #line 17176 "configure"
17176 #include "confdefs.h"
17178 #ifdef HAVE_DB_185_H
17179 # include <db_185.h>
17184 #ifndef DB_VERSION_MAJOR
17185 # define DB_VERSION_MAJOR 1
17189 #define NULL ((void*)0)
17194 #if DB_VERSION_MAJOR > 1
17197 int major, minor, patch;
17199 version = db_version( &major, &minor, &patch );
17201 if( major != DB_VERSION_MAJOR ||
17202 minor < DB_VERSION_MINOR )
17204 printf("Berkeley DB version mismatch\n"
17205 "\texpected: %s\n\tgot: %s\n",
17206 DB_VERSION_STRING, version);
17212 #if DB_VERSION_MAJOR > 2
17213 db_env_create( NULL, 0 );
17214 #elif DB_VERSION_MAJOR > 1
17215 db_appexit( NULL );
17217 (void) dbopen( NULL, 0, 0, 0, NULL);
17222 if { (eval echo configure:17223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17224 ol_cv_db_db_4_1=yes
17226 echo "configure: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17237 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17239 if test $ol_cv_db_db_4_1 = yes ; then
17240 ol_cv_lib_db=-ldb-4-1
17244 if test $ol_cv_lib_db = no ; then
17245 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17246 echo "configure:17247: checking for Berkeley DB link (-ldb3)" >&5
17247 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17248 echo $ac_n "(cached) $ac_c" 1>&6
17253 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17255 cat > conftest.$ac_ext <<EOF
17256 #line 17257 "configure"
17257 #include "confdefs.h"
17259 #ifdef HAVE_DB_185_H
17260 # include <db_185.h>
17265 #ifndef DB_VERSION_MAJOR
17266 # define DB_VERSION_MAJOR 1
17270 #define NULL ((void*)0)
17275 #if DB_VERSION_MAJOR > 1
17278 int major, minor, patch;
17280 version = db_version( &major, &minor, &patch );
17282 if( major != DB_VERSION_MAJOR ||
17283 minor < DB_VERSION_MINOR )
17285 printf("Berkeley DB version mismatch\n"
17286 "\texpected: %s\n\tgot: %s\n",
17287 DB_VERSION_STRING, version);
17293 #if DB_VERSION_MAJOR > 2
17294 db_env_create( NULL, 0 );
17295 #elif DB_VERSION_MAJOR > 1
17296 db_appexit( NULL );
17298 (void) dbopen( NULL, 0, 0, 0, NULL);
17303 if { (eval echo configure:17304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17307 echo "configure: failed program was:" >&5
17308 cat conftest.$ac_ext >&5
17318 echo "$ac_t""$ol_cv_db_db3" 1>&6
17320 if test $ol_cv_db_db3 = yes ; then
17325 if test $ol_cv_lib_db = no ; then
17326 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17327 echo "configure:17328: checking for Berkeley DB link (-ldb-3)" >&5
17328 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17329 echo $ac_n "(cached) $ac_c" 1>&6
17334 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17336 cat > conftest.$ac_ext <<EOF
17337 #line 17338 "configure"
17338 #include "confdefs.h"
17340 #ifdef HAVE_DB_185_H
17341 # include <db_185.h>
17346 #ifndef DB_VERSION_MAJOR
17347 # define DB_VERSION_MAJOR 1
17351 #define NULL ((void*)0)
17356 #if DB_VERSION_MAJOR > 1
17359 int major, minor, patch;
17361 version = db_version( &major, &minor, &patch );
17363 if( major != DB_VERSION_MAJOR ||
17364 minor < DB_VERSION_MINOR )
17366 printf("Berkeley DB version mismatch\n"
17367 "\texpected: %s\n\tgot: %s\n",
17368 DB_VERSION_STRING, version);
17374 #if DB_VERSION_MAJOR > 2
17375 db_env_create( NULL, 0 );
17376 #elif DB_VERSION_MAJOR > 1
17377 db_appexit( NULL );
17379 (void) dbopen( NULL, 0, 0, 0, NULL);
17384 if { (eval echo configure:17385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17388 echo "configure: failed program was:" >&5
17389 cat conftest.$ac_ext >&5
17399 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17401 if test $ol_cv_db_db_3 = yes ; then
17402 ol_cv_lib_db=-ldb-3
17406 if test $ol_cv_lib_db = no ; then
17407 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17408 echo "configure:17409: checking for Berkeley DB link (-ldb2)" >&5
17409 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17415 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17417 cat > conftest.$ac_ext <<EOF
17418 #line 17419 "configure"
17419 #include "confdefs.h"
17421 #ifdef HAVE_DB_185_H
17422 # include <db_185.h>
17427 #ifndef DB_VERSION_MAJOR
17428 # define DB_VERSION_MAJOR 1
17432 #define NULL ((void*)0)
17437 #if DB_VERSION_MAJOR > 1
17440 int major, minor, patch;
17442 version = db_version( &major, &minor, &patch );
17444 if( major != DB_VERSION_MAJOR ||
17445 minor < DB_VERSION_MINOR )
17447 printf("Berkeley DB version mismatch\n"
17448 "\texpected: %s\n\tgot: %s\n",
17449 DB_VERSION_STRING, version);
17455 #if DB_VERSION_MAJOR > 2
17456 db_env_create( NULL, 0 );
17457 #elif DB_VERSION_MAJOR > 1
17458 db_appexit( NULL );
17460 (void) dbopen( NULL, 0, 0, 0, NULL);
17465 if { (eval echo configure:17466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17469 echo "configure: failed program was:" >&5
17470 cat conftest.$ac_ext >&5
17480 echo "$ac_t""$ol_cv_db_db2" 1>&6
17482 if test $ol_cv_db_db2 = yes ; then
17487 if test $ol_cv_lib_db = no ; then
17488 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17489 echo "configure:17490: checking for Berkeley DB link (-ldb-2)" >&5
17490 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17491 echo $ac_n "(cached) $ac_c" 1>&6
17496 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17498 cat > conftest.$ac_ext <<EOF
17499 #line 17500 "configure"
17500 #include "confdefs.h"
17502 #ifdef HAVE_DB_185_H
17503 # include <db_185.h>
17508 #ifndef DB_VERSION_MAJOR
17509 # define DB_VERSION_MAJOR 1
17513 #define NULL ((void*)0)
17518 #if DB_VERSION_MAJOR > 1
17521 int major, minor, patch;
17523 version = db_version( &major, &minor, &patch );
17525 if( major != DB_VERSION_MAJOR ||
17526 minor < DB_VERSION_MINOR )
17528 printf("Berkeley DB version mismatch\n"
17529 "\texpected: %s\n\tgot: %s\n",
17530 DB_VERSION_STRING, version);
17536 #if DB_VERSION_MAJOR > 2
17537 db_env_create( NULL, 0 );
17538 #elif DB_VERSION_MAJOR > 1
17539 db_appexit( NULL );
17541 (void) dbopen( NULL, 0, 0, 0, NULL);
17546 if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17550 echo "configure: failed program was:" >&5
17551 cat conftest.$ac_ext >&5
17561 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17563 if test $ol_cv_db_db_2 = yes ; then
17564 ol_cv_lib_db=-ldb-2
17568 if test $ol_cv_lib_db = no ; then
17569 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17570 echo "configure:17571: checking for Berkeley DB link (-ldb1)" >&5
17571 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17572 echo $ac_n "(cached) $ac_c" 1>&6
17577 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17579 cat > conftest.$ac_ext <<EOF
17580 #line 17581 "configure"
17581 #include "confdefs.h"
17583 #ifdef HAVE_DB_185_H
17584 # include <db_185.h>
17589 #ifndef DB_VERSION_MAJOR
17590 # define DB_VERSION_MAJOR 1
17594 #define NULL ((void*)0)
17599 #if DB_VERSION_MAJOR > 1
17602 int major, minor, patch;
17604 version = db_version( &major, &minor, &patch );
17606 if( major != DB_VERSION_MAJOR ||
17607 minor < DB_VERSION_MINOR )
17609 printf("Berkeley DB version mismatch\n"
17610 "\texpected: %s\n\tgot: %s\n",
17611 DB_VERSION_STRING, version);
17617 #if DB_VERSION_MAJOR > 2
17618 db_env_create( NULL, 0 );
17619 #elif DB_VERSION_MAJOR > 1
17620 db_appexit( NULL );
17622 (void) dbopen( NULL, 0, 0, 0, NULL);
17627 if { (eval echo configure:17628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17631 echo "configure: failed program was:" >&5
17632 cat conftest.$ac_ext >&5
17642 echo "$ac_t""$ol_cv_db_db1" 1>&6
17644 if test $ol_cv_db_db1 = yes ; then
17649 if test $ol_cv_lib_db = no ; then
17650 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17651 echo "configure:17652: checking for Berkeley DB link (-ldb-1)" >&5
17652 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17653 echo $ac_n "(cached) $ac_c" 1>&6
17658 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17660 cat > conftest.$ac_ext <<EOF
17661 #line 17662 "configure"
17662 #include "confdefs.h"
17664 #ifdef HAVE_DB_185_H
17665 # include <db_185.h>
17670 #ifndef DB_VERSION_MAJOR
17671 # define DB_VERSION_MAJOR 1
17675 #define NULL ((void*)0)
17680 #if DB_VERSION_MAJOR > 1
17683 int major, minor, patch;
17685 version = db_version( &major, &minor, &patch );
17687 if( major != DB_VERSION_MAJOR ||
17688 minor < DB_VERSION_MINOR )
17690 printf("Berkeley DB version mismatch\n"
17691 "\texpected: %s\n\tgot: %s\n",
17692 DB_VERSION_STRING, version);
17698 #if DB_VERSION_MAJOR > 2
17699 db_env_create( NULL, 0 );
17700 #elif DB_VERSION_MAJOR > 1
17701 db_appexit( NULL );
17703 (void) dbopen( NULL, 0, 0, 0, NULL);
17708 if { (eval echo configure:17709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17712 echo "configure: failed program was:" >&5
17713 cat conftest.$ac_ext >&5
17723 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17725 if test $ol_cv_db_db_1 = yes ; then
17726 ol_cv_lib_db=-ldb-1
17731 if test "$ol_cv_lib_db" != no ; then
17732 ol_cv_berkeley_db=yes
17738 ol_cv_berkeley_db=no
17741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17743 echo "configure:17744: checking for $ac_hdr" >&5
17744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17745 echo $ac_n "(cached) $ac_c" 1>&6
17747 cat > conftest.$ac_ext <<EOF
17748 #line 17749 "configure"
17749 #include "confdefs.h"
17752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17753 { (eval echo configure:17754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17755 if test -z "$ac_err"; then
17757 eval "ac_cv_header_$ac_safe=yes"
17760 echo "configure: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17763 eval "ac_cv_header_$ac_safe=no"
17767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17768 echo "$ac_t""yes" 1>&6
17769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17770 cat >> confdefs.h <<EOF
17771 #define $ac_tr_hdr 1
17775 echo "$ac_t""no" 1>&6
17779 if test $ac_cv_header_db_h = yes; then
17781 if test $ol_cv_lib_db = no ; then
17782 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17783 echo "configure:17784: checking for Berkeley DB link (default)" >&5
17784 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17785 echo $ac_n "(cached) $ac_c" 1>&6
17790 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17792 cat > conftest.$ac_ext <<EOF
17793 #line 17794 "configure"
17794 #include "confdefs.h"
17796 #ifdef HAVE_DB_185_H
17797 # include <db_185.h>
17802 #ifndef DB_VERSION_MAJOR
17803 # define DB_VERSION_MAJOR 1
17807 #define NULL ((void*)0)
17812 #if DB_VERSION_MAJOR > 1
17815 int major, minor, patch;
17817 version = db_version( &major, &minor, &patch );
17819 if( major != DB_VERSION_MAJOR ||
17820 minor < DB_VERSION_MINOR )
17822 printf("Berkeley DB version mismatch\n"
17823 "\texpected: %s\n\tgot: %s\n",
17824 DB_VERSION_STRING, version);
17830 #if DB_VERSION_MAJOR > 2
17831 db_env_create( NULL, 0 );
17832 #elif DB_VERSION_MAJOR > 1
17833 db_appexit( NULL );
17835 (void) dbopen( NULL, 0, 0, 0, NULL);
17840 if { (eval echo configure:17841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17844 echo "configure: failed program was:" >&5
17845 cat conftest.$ac_ext >&5
17855 echo "$ac_t""$ol_cv_db_none" 1>&6
17857 if test $ol_cv_db_none = yes ; then
17862 if test $ol_cv_lib_db = no ; then
17863 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17864 echo "configure:17865: checking for Berkeley DB link (-ldb42)" >&5
17865 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17866 echo $ac_n "(cached) $ac_c" 1>&6
17871 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17873 cat > conftest.$ac_ext <<EOF
17874 #line 17875 "configure"
17875 #include "confdefs.h"
17877 #ifdef HAVE_DB_185_H
17878 # include <db_185.h>
17883 #ifndef DB_VERSION_MAJOR
17884 # define DB_VERSION_MAJOR 1
17888 #define NULL ((void*)0)
17893 #if DB_VERSION_MAJOR > 1
17896 int major, minor, patch;
17898 version = db_version( &major, &minor, &patch );
17900 if( major != DB_VERSION_MAJOR ||
17901 minor < DB_VERSION_MINOR )
17903 printf("Berkeley DB version mismatch\n"
17904 "\texpected: %s\n\tgot: %s\n",
17905 DB_VERSION_STRING, version);
17911 #if DB_VERSION_MAJOR > 2
17912 db_env_create( NULL, 0 );
17913 #elif DB_VERSION_MAJOR > 1
17914 db_appexit( NULL );
17916 (void) dbopen( NULL, 0, 0, 0, NULL);
17921 if { (eval echo configure:17922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17925 echo "configure: failed program was:" >&5
17926 cat conftest.$ac_ext >&5
17936 echo "$ac_t""$ol_cv_db_db42" 1>&6
17938 if test $ol_cv_db_db42 = yes ; then
17939 ol_cv_lib_db=-ldb42
17943 if test $ol_cv_lib_db = no ; then
17944 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17945 echo "configure:17946: checking for Berkeley DB link (-ldb-42)" >&5
17946 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17947 echo $ac_n "(cached) $ac_c" 1>&6
17952 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17954 cat > conftest.$ac_ext <<EOF
17955 #line 17956 "configure"
17956 #include "confdefs.h"
17958 #ifdef HAVE_DB_185_H
17959 # include <db_185.h>
17964 #ifndef DB_VERSION_MAJOR
17965 # define DB_VERSION_MAJOR 1
17969 #define NULL ((void*)0)
17974 #if DB_VERSION_MAJOR > 1
17977 int major, minor, patch;
17979 version = db_version( &major, &minor, &patch );
17981 if( major != DB_VERSION_MAJOR ||
17982 minor < DB_VERSION_MINOR )
17984 printf("Berkeley DB version mismatch\n"
17985 "\texpected: %s\n\tgot: %s\n",
17986 DB_VERSION_STRING, version);
17992 #if DB_VERSION_MAJOR > 2
17993 db_env_create( NULL, 0 );
17994 #elif DB_VERSION_MAJOR > 1
17995 db_appexit( NULL );
17997 (void) dbopen( NULL, 0, 0, 0, NULL);
18002 if { (eval echo configure:18003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18006 echo "configure: failed program was:" >&5
18007 cat conftest.$ac_ext >&5
18017 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18019 if test $ol_cv_db_db_42 = yes ; then
18020 ol_cv_lib_db=-ldb-42
18024 if test $ol_cv_lib_db = no ; then
18025 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18026 echo "configure:18027: checking for Berkeley DB link (-ldb-4.2)" >&5
18027 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18028 echo $ac_n "(cached) $ac_c" 1>&6
18033 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18035 cat > conftest.$ac_ext <<EOF
18036 #line 18037 "configure"
18037 #include "confdefs.h"
18039 #ifdef HAVE_DB_185_H
18040 # include <db_185.h>
18045 #ifndef DB_VERSION_MAJOR
18046 # define DB_VERSION_MAJOR 1
18050 #define NULL ((void*)0)
18055 #if DB_VERSION_MAJOR > 1
18058 int major, minor, patch;
18060 version = db_version( &major, &minor, &patch );
18062 if( major != DB_VERSION_MAJOR ||
18063 minor < DB_VERSION_MINOR )
18065 printf("Berkeley DB version mismatch\n"
18066 "\texpected: %s\n\tgot: %s\n",
18067 DB_VERSION_STRING, version);
18073 #if DB_VERSION_MAJOR > 2
18074 db_env_create( NULL, 0 );
18075 #elif DB_VERSION_MAJOR > 1
18076 db_appexit( NULL );
18078 (void) dbopen( NULL, 0, 0, 0, NULL);
18083 if { (eval echo configure:18084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18085 ol_cv_db_db_4_dot_2=yes
18087 echo "configure: failed program was:" >&5
18088 cat conftest.$ac_ext >&5
18090 ol_cv_db_db_4_dot_2=no
18098 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18100 if test $ol_cv_db_db_4_dot_2 = yes ; then
18101 ol_cv_lib_db=-ldb-4.2
18105 if test $ol_cv_lib_db = no ; then
18106 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18107 echo "configure:18108: checking for Berkeley DB link (-ldb-4-2)" >&5
18108 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18109 echo $ac_n "(cached) $ac_c" 1>&6
18114 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18116 cat > conftest.$ac_ext <<EOF
18117 #line 18118 "configure"
18118 #include "confdefs.h"
18120 #ifdef HAVE_DB_185_H
18121 # include <db_185.h>
18126 #ifndef DB_VERSION_MAJOR
18127 # define DB_VERSION_MAJOR 1
18131 #define NULL ((void*)0)
18136 #if DB_VERSION_MAJOR > 1
18139 int major, minor, patch;
18141 version = db_version( &major, &minor, &patch );
18143 if( major != DB_VERSION_MAJOR ||
18144 minor < DB_VERSION_MINOR )
18146 printf("Berkeley DB version mismatch\n"
18147 "\texpected: %s\n\tgot: %s\n",
18148 DB_VERSION_STRING, version);
18154 #if DB_VERSION_MAJOR > 2
18155 db_env_create( NULL, 0 );
18156 #elif DB_VERSION_MAJOR > 1
18157 db_appexit( NULL );
18159 (void) dbopen( NULL, 0, 0, 0, NULL);
18164 if { (eval echo configure:18165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18166 ol_cv_db_db_4_2=yes
18168 echo "configure: failed program was:" >&5
18169 cat conftest.$ac_ext >&5
18179 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18181 if test $ol_cv_db_db_4_2 = yes ; then
18182 ol_cv_lib_db=-ldb-4-2
18186 if test $ol_cv_lib_db = no ; then
18187 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18188 echo "configure:18189: checking for Berkeley DB link (-ldb-4)" >&5
18189 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18190 echo $ac_n "(cached) $ac_c" 1>&6
18195 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18197 cat > conftest.$ac_ext <<EOF
18198 #line 18199 "configure"
18199 #include "confdefs.h"
18201 #ifdef HAVE_DB_185_H
18202 # include <db_185.h>
18207 #ifndef DB_VERSION_MAJOR
18208 # define DB_VERSION_MAJOR 1
18212 #define NULL ((void*)0)
18217 #if DB_VERSION_MAJOR > 1
18220 int major, minor, patch;
18222 version = db_version( &major, &minor, &patch );
18224 if( major != DB_VERSION_MAJOR ||
18225 minor < DB_VERSION_MINOR )
18227 printf("Berkeley DB version mismatch\n"
18228 "\texpected: %s\n\tgot: %s\n",
18229 DB_VERSION_STRING, version);
18235 #if DB_VERSION_MAJOR > 2
18236 db_env_create( NULL, 0 );
18237 #elif DB_VERSION_MAJOR > 1
18238 db_appexit( NULL );
18240 (void) dbopen( NULL, 0, 0, 0, NULL);
18245 if { (eval echo configure:18246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18249 echo "configure: failed program was:" >&5
18250 cat conftest.$ac_ext >&5
18260 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18262 if test $ol_cv_db_db_4 = yes ; then
18263 ol_cv_lib_db=-ldb-4
18267 if test $ol_cv_lib_db = no ; then
18268 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18269 echo "configure:18270: checking for Berkeley DB link (-ldb4)" >&5
18270 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18271 echo $ac_n "(cached) $ac_c" 1>&6
18276 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18278 cat > conftest.$ac_ext <<EOF
18279 #line 18280 "configure"
18280 #include "confdefs.h"
18282 #ifdef HAVE_DB_185_H
18283 # include <db_185.h>
18288 #ifndef DB_VERSION_MAJOR
18289 # define DB_VERSION_MAJOR 1
18293 #define NULL ((void*)0)
18298 #if DB_VERSION_MAJOR > 1
18301 int major, minor, patch;
18303 version = db_version( &major, &minor, &patch );
18305 if( major != DB_VERSION_MAJOR ||
18306 minor < DB_VERSION_MINOR )
18308 printf("Berkeley DB version mismatch\n"
18309 "\texpected: %s\n\tgot: %s\n",
18310 DB_VERSION_STRING, version);
18316 #if DB_VERSION_MAJOR > 2
18317 db_env_create( NULL, 0 );
18318 #elif DB_VERSION_MAJOR > 1
18319 db_appexit( NULL );
18321 (void) dbopen( NULL, 0, 0, 0, NULL);
18326 if { (eval echo configure:18327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18330 echo "configure: failed program was:" >&5
18331 cat conftest.$ac_ext >&5
18341 echo "$ac_t""$ol_cv_db_db4" 1>&6
18343 if test $ol_cv_db_db4 = yes ; then
18348 if test $ol_cv_lib_db = no ; then
18349 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18350 echo "configure:18351: checking for Berkeley DB link (-ldb)" >&5
18351 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18352 echo $ac_n "(cached) $ac_c" 1>&6
18357 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18359 cat > conftest.$ac_ext <<EOF
18360 #line 18361 "configure"
18361 #include "confdefs.h"
18363 #ifdef HAVE_DB_185_H
18364 # include <db_185.h>
18369 #ifndef DB_VERSION_MAJOR
18370 # define DB_VERSION_MAJOR 1
18374 #define NULL ((void*)0)
18379 #if DB_VERSION_MAJOR > 1
18382 int major, minor, patch;
18384 version = db_version( &major, &minor, &patch );
18386 if( major != DB_VERSION_MAJOR ||
18387 minor < DB_VERSION_MINOR )
18389 printf("Berkeley DB version mismatch\n"
18390 "\texpected: %s\n\tgot: %s\n",
18391 DB_VERSION_STRING, version);
18397 #if DB_VERSION_MAJOR > 2
18398 db_env_create( NULL, 0 );
18399 #elif DB_VERSION_MAJOR > 1
18400 db_appexit( NULL );
18402 (void) dbopen( NULL, 0, 0, 0, NULL);
18407 if { (eval echo configure:18408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18422 echo "$ac_t""$ol_cv_db_db" 1>&6
18424 if test $ol_cv_db_db = yes ; then
18429 if test $ol_cv_lib_db = no ; then
18430 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18431 echo "configure:18432: checking for Berkeley DB link (-ldb41)" >&5
18432 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18433 echo $ac_n "(cached) $ac_c" 1>&6
18438 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18440 cat > conftest.$ac_ext <<EOF
18441 #line 18442 "configure"
18442 #include "confdefs.h"
18444 #ifdef HAVE_DB_185_H
18445 # include <db_185.h>
18450 #ifndef DB_VERSION_MAJOR
18451 # define DB_VERSION_MAJOR 1
18455 #define NULL ((void*)0)
18460 #if DB_VERSION_MAJOR > 1
18463 int major, minor, patch;
18465 version = db_version( &major, &minor, &patch );
18467 if( major != DB_VERSION_MAJOR ||
18468 minor < DB_VERSION_MINOR )
18470 printf("Berkeley DB version mismatch\n"
18471 "\texpected: %s\n\tgot: %s\n",
18472 DB_VERSION_STRING, version);
18478 #if DB_VERSION_MAJOR > 2
18479 db_env_create( NULL, 0 );
18480 #elif DB_VERSION_MAJOR > 1
18481 db_appexit( NULL );
18483 (void) dbopen( NULL, 0, 0, 0, NULL);
18488 if { (eval echo configure:18489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18492 echo "configure: failed program was:" >&5
18493 cat conftest.$ac_ext >&5
18503 echo "$ac_t""$ol_cv_db_db41" 1>&6
18505 if test $ol_cv_db_db41 = yes ; then
18506 ol_cv_lib_db=-ldb41
18510 if test $ol_cv_lib_db = no ; then
18511 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18512 echo "configure:18513: checking for Berkeley DB link (-ldb-41)" >&5
18513 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18514 echo $ac_n "(cached) $ac_c" 1>&6
18519 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18521 cat > conftest.$ac_ext <<EOF
18522 #line 18523 "configure"
18523 #include "confdefs.h"
18525 #ifdef HAVE_DB_185_H
18526 # include <db_185.h>
18531 #ifndef DB_VERSION_MAJOR
18532 # define DB_VERSION_MAJOR 1
18536 #define NULL ((void*)0)
18541 #if DB_VERSION_MAJOR > 1
18544 int major, minor, patch;
18546 version = db_version( &major, &minor, &patch );
18548 if( major != DB_VERSION_MAJOR ||
18549 minor < DB_VERSION_MINOR )
18551 printf("Berkeley DB version mismatch\n"
18552 "\texpected: %s\n\tgot: %s\n",
18553 DB_VERSION_STRING, version);
18559 #if DB_VERSION_MAJOR > 2
18560 db_env_create( NULL, 0 );
18561 #elif DB_VERSION_MAJOR > 1
18562 db_appexit( NULL );
18564 (void) dbopen( NULL, 0, 0, 0, NULL);
18569 if { (eval echo configure:18570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18573 echo "configure: failed program was:" >&5
18574 cat conftest.$ac_ext >&5
18584 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18586 if test $ol_cv_db_db_41 = yes ; then
18587 ol_cv_lib_db=-ldb-41
18591 if test $ol_cv_lib_db = no ; then
18592 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18593 echo "configure:18594: checking for Berkeley DB link (-ldb-4.1)" >&5
18594 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18595 echo $ac_n "(cached) $ac_c" 1>&6
18600 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18602 cat > conftest.$ac_ext <<EOF
18603 #line 18604 "configure"
18604 #include "confdefs.h"
18606 #ifdef HAVE_DB_185_H
18607 # include <db_185.h>
18612 #ifndef DB_VERSION_MAJOR
18613 # define DB_VERSION_MAJOR 1
18617 #define NULL ((void*)0)
18622 #if DB_VERSION_MAJOR > 1
18625 int major, minor, patch;
18627 version = db_version( &major, &minor, &patch );
18629 if( major != DB_VERSION_MAJOR ||
18630 minor < DB_VERSION_MINOR )
18632 printf("Berkeley DB version mismatch\n"
18633 "\texpected: %s\n\tgot: %s\n",
18634 DB_VERSION_STRING, version);
18640 #if DB_VERSION_MAJOR > 2
18641 db_env_create( NULL, 0 );
18642 #elif DB_VERSION_MAJOR > 1
18643 db_appexit( NULL );
18645 (void) dbopen( NULL, 0, 0, 0, NULL);
18650 if { (eval echo configure:18651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18652 ol_cv_db_db_4_dot_1=yes
18654 echo "configure: failed program was:" >&5
18655 cat conftest.$ac_ext >&5
18657 ol_cv_db_db_4_dot_1=no
18665 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18667 if test $ol_cv_db_db_4_dot_1 = yes ; then
18668 ol_cv_lib_db=-ldb-4.1
18672 if test $ol_cv_lib_db = no ; then
18673 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18674 echo "configure:18675: checking for Berkeley DB link (-ldb-4-1)" >&5
18675 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18676 echo $ac_n "(cached) $ac_c" 1>&6
18681 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18683 cat > conftest.$ac_ext <<EOF
18684 #line 18685 "configure"
18685 #include "confdefs.h"
18687 #ifdef HAVE_DB_185_H
18688 # include <db_185.h>
18693 #ifndef DB_VERSION_MAJOR
18694 # define DB_VERSION_MAJOR 1
18698 #define NULL ((void*)0)
18703 #if DB_VERSION_MAJOR > 1
18706 int major, minor, patch;
18708 version = db_version( &major, &minor, &patch );
18710 if( major != DB_VERSION_MAJOR ||
18711 minor < DB_VERSION_MINOR )
18713 printf("Berkeley DB version mismatch\n"
18714 "\texpected: %s\n\tgot: %s\n",
18715 DB_VERSION_STRING, version);
18721 #if DB_VERSION_MAJOR > 2
18722 db_env_create( NULL, 0 );
18723 #elif DB_VERSION_MAJOR > 1
18724 db_appexit( NULL );
18726 (void) dbopen( NULL, 0, 0, 0, NULL);
18731 if { (eval echo configure:18732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18733 ol_cv_db_db_4_1=yes
18735 echo "configure: failed program was:" >&5
18736 cat conftest.$ac_ext >&5
18746 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18748 if test $ol_cv_db_db_4_1 = yes ; then
18749 ol_cv_lib_db=-ldb-4-1
18753 if test $ol_cv_lib_db = no ; then
18754 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18755 echo "configure:18756: checking for Berkeley DB link (-ldb3)" >&5
18756 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18757 echo $ac_n "(cached) $ac_c" 1>&6
18762 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18764 cat > conftest.$ac_ext <<EOF
18765 #line 18766 "configure"
18766 #include "confdefs.h"
18768 #ifdef HAVE_DB_185_H
18769 # include <db_185.h>
18774 #ifndef DB_VERSION_MAJOR
18775 # define DB_VERSION_MAJOR 1
18779 #define NULL ((void*)0)
18784 #if DB_VERSION_MAJOR > 1
18787 int major, minor, patch;
18789 version = db_version( &major, &minor, &patch );
18791 if( major != DB_VERSION_MAJOR ||
18792 minor < DB_VERSION_MINOR )
18794 printf("Berkeley DB version mismatch\n"
18795 "\texpected: %s\n\tgot: %s\n",
18796 DB_VERSION_STRING, version);
18802 #if DB_VERSION_MAJOR > 2
18803 db_env_create( NULL, 0 );
18804 #elif DB_VERSION_MAJOR > 1
18805 db_appexit( NULL );
18807 (void) dbopen( NULL, 0, 0, 0, NULL);
18812 if { (eval echo configure:18813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18816 echo "configure: failed program was:" >&5
18817 cat conftest.$ac_ext >&5
18827 echo "$ac_t""$ol_cv_db_db3" 1>&6
18829 if test $ol_cv_db_db3 = yes ; then
18834 if test $ol_cv_lib_db = no ; then
18835 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18836 echo "configure:18837: checking for Berkeley DB link (-ldb-3)" >&5
18837 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18838 echo $ac_n "(cached) $ac_c" 1>&6
18843 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18845 cat > conftest.$ac_ext <<EOF
18846 #line 18847 "configure"
18847 #include "confdefs.h"
18849 #ifdef HAVE_DB_185_H
18850 # include <db_185.h>
18855 #ifndef DB_VERSION_MAJOR
18856 # define DB_VERSION_MAJOR 1
18860 #define NULL ((void*)0)
18865 #if DB_VERSION_MAJOR > 1
18868 int major, minor, patch;
18870 version = db_version( &major, &minor, &patch );
18872 if( major != DB_VERSION_MAJOR ||
18873 minor < DB_VERSION_MINOR )
18875 printf("Berkeley DB version mismatch\n"
18876 "\texpected: %s\n\tgot: %s\n",
18877 DB_VERSION_STRING, version);
18883 #if DB_VERSION_MAJOR > 2
18884 db_env_create( NULL, 0 );
18885 #elif DB_VERSION_MAJOR > 1
18886 db_appexit( NULL );
18888 (void) dbopen( NULL, 0, 0, 0, NULL);
18893 if { (eval echo configure:18894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18897 echo "configure: failed program was:" >&5
18898 cat conftest.$ac_ext >&5
18908 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18910 if test $ol_cv_db_db_3 = yes ; then
18911 ol_cv_lib_db=-ldb-3
18915 if test $ol_cv_lib_db = no ; then
18916 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18917 echo "configure:18918: checking for Berkeley DB link (-ldb2)" >&5
18918 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18919 echo $ac_n "(cached) $ac_c" 1>&6
18924 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18926 cat > conftest.$ac_ext <<EOF
18927 #line 18928 "configure"
18928 #include "confdefs.h"
18930 #ifdef HAVE_DB_185_H
18931 # include <db_185.h>
18936 #ifndef DB_VERSION_MAJOR
18937 # define DB_VERSION_MAJOR 1
18941 #define NULL ((void*)0)
18946 #if DB_VERSION_MAJOR > 1
18949 int major, minor, patch;
18951 version = db_version( &major, &minor, &patch );
18953 if( major != DB_VERSION_MAJOR ||
18954 minor < DB_VERSION_MINOR )
18956 printf("Berkeley DB version mismatch\n"
18957 "\texpected: %s\n\tgot: %s\n",
18958 DB_VERSION_STRING, version);
18964 #if DB_VERSION_MAJOR > 2
18965 db_env_create( NULL, 0 );
18966 #elif DB_VERSION_MAJOR > 1
18967 db_appexit( NULL );
18969 (void) dbopen( NULL, 0, 0, 0, NULL);
18974 if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18978 echo "configure: failed program was:" >&5
18979 cat conftest.$ac_ext >&5
18989 echo "$ac_t""$ol_cv_db_db2" 1>&6
18991 if test $ol_cv_db_db2 = yes ; then
18996 if test $ol_cv_lib_db = no ; then
18997 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18998 echo "configure:18999: checking for Berkeley DB link (-ldb-2)" >&5
18999 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19000 echo $ac_n "(cached) $ac_c" 1>&6
19005 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19007 cat > conftest.$ac_ext <<EOF
19008 #line 19009 "configure"
19009 #include "confdefs.h"
19011 #ifdef HAVE_DB_185_H
19012 # include <db_185.h>
19017 #ifndef DB_VERSION_MAJOR
19018 # define DB_VERSION_MAJOR 1
19022 #define NULL ((void*)0)
19027 #if DB_VERSION_MAJOR > 1
19030 int major, minor, patch;
19032 version = db_version( &major, &minor, &patch );
19034 if( major != DB_VERSION_MAJOR ||
19035 minor < DB_VERSION_MINOR )
19037 printf("Berkeley DB version mismatch\n"
19038 "\texpected: %s\n\tgot: %s\n",
19039 DB_VERSION_STRING, version);
19045 #if DB_VERSION_MAJOR > 2
19046 db_env_create( NULL, 0 );
19047 #elif DB_VERSION_MAJOR > 1
19048 db_appexit( NULL );
19050 (void) dbopen( NULL, 0, 0, 0, NULL);
19055 if { (eval echo configure:19056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19059 echo "configure: failed program was:" >&5
19060 cat conftest.$ac_ext >&5
19070 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19072 if test $ol_cv_db_db_2 = yes ; then
19073 ol_cv_lib_db=-ldb-2
19077 if test $ol_cv_lib_db = no ; then
19078 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19079 echo "configure:19080: checking for Berkeley DB link (-ldb1)" >&5
19080 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19081 echo $ac_n "(cached) $ac_c" 1>&6
19086 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19088 cat > conftest.$ac_ext <<EOF
19089 #line 19090 "configure"
19090 #include "confdefs.h"
19092 #ifdef HAVE_DB_185_H
19093 # include <db_185.h>
19098 #ifndef DB_VERSION_MAJOR
19099 # define DB_VERSION_MAJOR 1
19103 #define NULL ((void*)0)
19108 #if DB_VERSION_MAJOR > 1
19111 int major, minor, patch;
19113 version = db_version( &major, &minor, &patch );
19115 if( major != DB_VERSION_MAJOR ||
19116 minor < DB_VERSION_MINOR )
19118 printf("Berkeley DB version mismatch\n"
19119 "\texpected: %s\n\tgot: %s\n",
19120 DB_VERSION_STRING, version);
19126 #if DB_VERSION_MAJOR > 2
19127 db_env_create( NULL, 0 );
19128 #elif DB_VERSION_MAJOR > 1
19129 db_appexit( NULL );
19131 (void) dbopen( NULL, 0, 0, 0, NULL);
19136 if { (eval echo configure:19137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19140 echo "configure: failed program was:" >&5
19141 cat conftest.$ac_ext >&5
19151 echo "$ac_t""$ol_cv_db_db1" 1>&6
19153 if test $ol_cv_db_db1 = yes ; then
19158 if test $ol_cv_lib_db = no ; then
19159 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19160 echo "configure:19161: checking for Berkeley DB link (-ldb-1)" >&5
19161 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19162 echo $ac_n "(cached) $ac_c" 1>&6
19167 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19169 cat > conftest.$ac_ext <<EOF
19170 #line 19171 "configure"
19171 #include "confdefs.h"
19173 #ifdef HAVE_DB_185_H
19174 # include <db_185.h>
19179 #ifndef DB_VERSION_MAJOR
19180 # define DB_VERSION_MAJOR 1
19184 #define NULL ((void*)0)
19189 #if DB_VERSION_MAJOR > 1
19192 int major, minor, patch;
19194 version = db_version( &major, &minor, &patch );
19196 if( major != DB_VERSION_MAJOR ||
19197 minor < DB_VERSION_MINOR )
19199 printf("Berkeley DB version mismatch\n"
19200 "\texpected: %s\n\tgot: %s\n",
19201 DB_VERSION_STRING, version);
19207 #if DB_VERSION_MAJOR > 2
19208 db_env_create( NULL, 0 );
19209 #elif DB_VERSION_MAJOR > 1
19210 db_appexit( NULL );
19212 (void) dbopen( NULL, 0, 0, 0, NULL);
19217 if { (eval echo configure:19218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19221 echo "configure: failed program was:" >&5
19222 cat conftest.$ac_ext >&5
19232 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19234 if test $ol_cv_db_db_1 = yes ; then
19235 ol_cv_lib_db=-ldb-1
19240 if test "$ol_cv_lib_db" != no ; then
19241 ol_cv_berkeley_db=yes
19242 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
19243 echo "configure:19244: checking for Berkeley DB version match" >&5
19244 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
19245 echo $ac_n "(cached) $ac_c" 1>&6
19249 LIBS="$LTHREAD_LIBS $LIBS"
19250 if test $ol_cv_lib_db != yes ; then
19251 LIBS="$ol_cv_lib_db $LIBS"
19254 if test "$cross_compiling" = yes; then
19255 ol_cv_berkeley_db_version=cross
19257 cat > conftest.$ac_ext <<EOF
19258 #line 19259 "configure"
19259 #include "confdefs.h"
19261 #ifdef HAVE_DB_185_H
19266 #ifndef DB_VERSION_MAJOR
19267 # define DB_VERSION_MAJOR 1
19270 #define NULL ((void *)0)
19274 #if DB_VERSION_MAJOR > 1
19276 int major, minor, patch;
19278 version = db_version( &major, &minor, &patch );
19280 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
19281 printf("Berkeley DB version mismatch\n"
19282 "\texpected: %s\n\tgot: %s\n",
19283 DB_VERSION_STRING, version);
19291 if { (eval echo configure:19292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19293 ol_cv_berkeley_db_version=yes
19295 echo "configure: failed program was:" >&5
19296 cat conftest.$ac_ext >&5
19298 ol_cv_berkeley_db_version=no
19308 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
19310 if test $ol_cv_berkeley_db_version = no ; then
19311 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
19314 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19315 echo "configure:19316: checking for Berkeley DB thread support" >&5
19316 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19317 echo $ac_n "(cached) $ac_c" 1>&6
19321 LIBS="$LTHREAD_LIBS $LIBS"
19322 if test $ol_cv_lib_db != yes ; then
19323 LIBS="$ol_cv_lib_db $LIBS"
19326 if test "$cross_compiling" = yes; then
19327 ol_cv_berkeley_db_thread=cross
19329 cat > conftest.$ac_ext <<EOF
19330 #line 19331 "configure"
19331 #include "confdefs.h"
19333 #ifdef HAVE_DB_185_H
19339 #define NULL ((void *)0)
19344 u_int32_t flags = DB_CREATE |
19350 #if DB_VERSION_MAJOR > 2
19351 DB_ENV *env = NULL;
19353 rc = db_env_create( &env, 0 );
19355 flags |= DB_INIT_MPOOL;
19356 #ifdef DB_MPOOL_PRIVATE
19357 flags |= DB_MPOOL_PRIVATE;
19361 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19365 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19366 rc = env->open( env, NULL, flags, 0 );
19368 rc = env->open( env, NULL, NULL, flags, 0 );
19372 rc = env->close( env, 0 );
19376 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19382 memset( &env, '\0', sizeof(env) );
19384 rc = db_appinit( NULL, NULL, &env, flags );
19387 db_appexit( &env );
19390 unlink("__db_mpool.share");
19391 unlink("__db_lock.share");
19397 if { (eval echo configure:19398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19399 ol_cv_berkeley_db_thread=yes
19401 echo "configure: failed program was:" >&5
19402 cat conftest.$ac_ext >&5
19404 ol_cv_berkeley_db_thread=no
19414 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19416 if test $ol_cv_berkeley_db_thread != no ; then
19417 cat >> confdefs.h <<\EOF
19418 #define HAVE_BERKELEY_DB_THREAD 1
19428 if test $ol_cv_berkeley_db != no ; then
19429 cat >> confdefs.h <<\EOF
19430 #define HAVE_BERKELEY_DB 1
19434 ol_link_ldbm=berkeley
19435 ol_with_ldbm_api=berkeley
19437 if test $ol_with_ldbm_type = hash ; then
19438 cat >> confdefs.h <<\EOF
19439 #define LDBM_USE_DBHASH 1
19443 cat >> confdefs.h <<\EOF
19444 #define LDBM_USE_DBBTREE 1
19449 if test $ol_cv_lib_db != yes ; then
19450 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19455 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19456 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19457 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19458 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19459 echo "configure:19460: checking Berkeley DB version for BDB backend" >&5
19460 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19461 echo $ac_n "(cached) $ac_c" 1>&6
19464 cat > conftest.$ac_ext <<EOF
19465 #line 19466 "configure"
19466 #include "confdefs.h"
19470 /* this check could be improved */
19471 #ifndef DB_VERSION_MAJOR
19472 # define DB_VERSION_MAJOR 1
19474 #ifndef DB_VERSION_MINOR
19475 # define DB_VERSION_MINOR 0
19478 /* require 4.2 or later */
19479 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19480 __db_version_compat
19484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19485 egrep "__db_version_compat" >/dev/null 2>&1; then
19487 ol_cv_bdb_compat=yes
19490 ol_cv_bdb_compat=no
19496 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19499 if test $ol_cv_bdb_compat = yes ; then
19501 elif test $ol_enable_bdb = yes ; then
19502 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19507 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19508 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19511 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19512 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19513 ol_with_ldbm_api=none
19516 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19517 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19518 echo "configure:19519: checking for MDBM library" >&5
19519 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19520 echo $ac_n "(cached) $ac_c" 1>&6
19523 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19524 echo "configure:19525: checking for mdbm_set_chain" >&5
19525 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19526 echo $ac_n "(cached) $ac_c" 1>&6
19528 cat > conftest.$ac_ext <<EOF
19529 #line 19530 "configure"
19530 #include "confdefs.h"
19531 /* System header to define __stub macros and hopefully few prototypes,
19532 which can conflict with char mdbm_set_chain(); below. */
19533 #include <assert.h>
19534 /* Override any gcc2 internal prototype to avoid an error. */
19535 /* We use char because int might match the return type of a gcc2
19536 builtin and then its argument prototype would still apply. */
19537 char mdbm_set_chain();
19542 /* The GNU C library defines this for functions which it implements
19543 to always fail with ENOSYS. Some functions are actually named
19544 something starting with __ and the normal name is an alias. */
19545 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19548 f = mdbm_set_chain;
19553 if { (eval echo configure:19554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19555 eval "ac_cv_func_mdbm_set_chain=yes"
19557 echo "configure: failed program was:" >&5
19558 cat conftest.$ac_ext >&5
19560 eval "ac_cv_func_mdbm_set_chain=no"
19565 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19566 echo "$ac_t""yes" 1>&6
19569 echo "$ac_t""no" 1>&6
19571 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19572 echo "configure:19573: checking for mdbm_set_chain in -lmdbm" >&5
19573 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19575 echo $ac_n "(cached) $ac_c" 1>&6
19577 ac_save_LIBS="$LIBS"
19578 LIBS="-lmdbm $LIBS"
19579 cat > conftest.$ac_ext <<EOF
19580 #line 19581 "configure"
19581 #include "confdefs.h"
19582 /* Override any gcc2 internal prototype to avoid an error. */
19583 /* We use char because int might match the return type of a gcc2
19584 builtin and then its argument prototype would still apply. */
19585 char mdbm_set_chain();
19591 if { (eval echo configure:19592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19593 eval "ac_cv_lib_$ac_lib_var=yes"
19595 echo "configure: failed program was:" >&5
19596 cat conftest.$ac_ext >&5
19598 eval "ac_cv_lib_$ac_lib_var=no"
19601 LIBS="$ac_save_LIBS"
19604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19605 echo "$ac_t""yes" 1>&6
19606 ol_cv_lib_mdbm=-lmdbm
19608 echo "$ac_t""no" 1>&6
19619 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19622 for ac_hdr in mdbm.h
19624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19626 echo "configure:19627: checking for $ac_hdr" >&5
19627 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19628 echo $ac_n "(cached) $ac_c" 1>&6
19630 cat > conftest.$ac_ext <<EOF
19631 #line 19632 "configure"
19632 #include "confdefs.h"
19635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19636 { (eval echo configure:19637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19638 if test -z "$ac_err"; then
19640 eval "ac_cv_header_$ac_safe=yes"
19643 echo "configure: failed program was:" >&5
19644 cat conftest.$ac_ext >&5
19646 eval "ac_cv_header_$ac_safe=no"
19650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19651 echo "$ac_t""yes" 1>&6
19652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19653 cat >> confdefs.h <<EOF
19654 #define $ac_tr_hdr 1
19658 echo "$ac_t""no" 1>&6
19662 echo $ac_n "checking for db""... $ac_c" 1>&6
19663 echo "configure:19664: checking for db" >&5
19664 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19665 echo $ac_n "(cached) $ac_c" 1>&6
19668 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19676 echo "$ac_t""$ol_cv_mdbm" 1>&6
19677 if test $ol_cv_mdbm = yes ; then
19678 cat >> confdefs.h <<\EOF
19679 #define HAVE_MDBM 1
19685 if test $ol_cv_mdbm = yes ; then
19687 ol_with_ldbm_api=mdbm
19688 if test $ol_cv_lib_mdbm != yes ; then
19689 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19694 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19695 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19696 echo "configure:19697: checking for GDBM library" >&5
19697 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19698 echo $ac_n "(cached) $ac_c" 1>&6
19701 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19702 echo "configure:19703: checking for gdbm_open" >&5
19703 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19704 echo $ac_n "(cached) $ac_c" 1>&6
19706 cat > conftest.$ac_ext <<EOF
19707 #line 19708 "configure"
19708 #include "confdefs.h"
19709 /* System header to define __stub macros and hopefully few prototypes,
19710 which can conflict with char gdbm_open(); below. */
19711 #include <assert.h>
19712 /* Override any gcc2 internal prototype to avoid an error. */
19713 /* We use char because int might match the return type of a gcc2
19714 builtin and then its argument prototype would still apply. */
19720 /* The GNU C library defines this for functions which it implements
19721 to always fail with ENOSYS. Some functions are actually named
19722 something starting with __ and the normal name is an alias. */
19723 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19731 if { (eval echo configure:19732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19733 eval "ac_cv_func_gdbm_open=yes"
19735 echo "configure: failed program was:" >&5
19736 cat conftest.$ac_ext >&5
19738 eval "ac_cv_func_gdbm_open=no"
19743 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19744 echo "$ac_t""yes" 1>&6
19747 echo "$ac_t""no" 1>&6
19749 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19750 echo "configure:19751: checking for gdbm_open in -lgdbm" >&5
19751 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19752 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19753 echo $ac_n "(cached) $ac_c" 1>&6
19755 ac_save_LIBS="$LIBS"
19756 LIBS="-lgdbm $LIBS"
19757 cat > conftest.$ac_ext <<EOF
19758 #line 19759 "configure"
19759 #include "confdefs.h"
19760 /* Override any gcc2 internal prototype to avoid an error. */
19761 /* We use char because int might match the return type of a gcc2
19762 builtin and then its argument prototype would still apply. */
19769 if { (eval echo configure:19770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19771 eval "ac_cv_lib_$ac_lib_var=yes"
19773 echo "configure: failed program was:" >&5
19774 cat conftest.$ac_ext >&5
19776 eval "ac_cv_lib_$ac_lib_var=no"
19779 LIBS="$ac_save_LIBS"
19782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19783 echo "$ac_t""yes" 1>&6
19784 ol_cv_lib_gdbm=-lgdbm
19786 echo "$ac_t""no" 1>&6
19797 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19800 for ac_hdr in gdbm.h
19802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19804 echo "configure:19805: checking for $ac_hdr" >&5
19805 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19806 echo $ac_n "(cached) $ac_c" 1>&6
19808 cat > conftest.$ac_ext <<EOF
19809 #line 19810 "configure"
19810 #include "confdefs.h"
19813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19814 { (eval echo configure:19815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19816 if test -z "$ac_err"; then
19818 eval "ac_cv_header_$ac_safe=yes"
19821 echo "configure: failed program was:" >&5
19822 cat conftest.$ac_ext >&5
19824 eval "ac_cv_header_$ac_safe=no"
19828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19829 echo "$ac_t""yes" 1>&6
19830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19831 cat >> confdefs.h <<EOF
19832 #define $ac_tr_hdr 1
19836 echo "$ac_t""no" 1>&6
19840 echo $ac_n "checking for db""... $ac_c" 1>&6
19841 echo "configure:19842: checking for db" >&5
19842 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19843 echo $ac_n "(cached) $ac_c" 1>&6
19846 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19854 echo "$ac_t""$ol_cv_gdbm" 1>&6
19855 if test $ol_cv_gdbm = yes ; then
19856 cat >> confdefs.h <<\EOF
19857 #define HAVE_GDBM 1
19863 if test $ol_cv_gdbm = yes ; then
19865 ol_with_ldbm_api=gdbm
19867 if test $ol_cv_lib_gdbm != yes ; then
19868 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19873 if test $ol_with_ldbm_api = ndbm ; then
19874 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19875 echo "configure:19876: checking for NDBM library" >&5
19876 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19877 echo $ac_n "(cached) $ac_c" 1>&6
19880 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19881 echo "configure:19882: checking for dbm_open" >&5
19882 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19883 echo $ac_n "(cached) $ac_c" 1>&6
19885 cat > conftest.$ac_ext <<EOF
19886 #line 19887 "configure"
19887 #include "confdefs.h"
19888 /* System header to define __stub macros and hopefully few prototypes,
19889 which can conflict with char dbm_open(); below. */
19890 #include <assert.h>
19891 /* Override any gcc2 internal prototype to avoid an error. */
19892 /* We use char because int might match the return type of a gcc2
19893 builtin and then its argument prototype would still apply. */
19899 /* The GNU C library defines this for functions which it implements
19900 to always fail with ENOSYS. Some functions are actually named
19901 something starting with __ and the normal name is an alias. */
19902 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19910 if { (eval echo configure:19911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19912 eval "ac_cv_func_dbm_open=yes"
19914 echo "configure: failed program was:" >&5
19915 cat conftest.$ac_ext >&5
19917 eval "ac_cv_func_dbm_open=no"
19922 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19923 echo "$ac_t""yes" 1>&6
19926 echo "$ac_t""no" 1>&6
19928 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19929 echo "configure:19930: checking for dbm_open in -lndbm" >&5
19930 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19932 echo $ac_n "(cached) $ac_c" 1>&6
19934 ac_save_LIBS="$LIBS"
19935 LIBS="-lndbm $LIBS"
19936 cat > conftest.$ac_ext <<EOF
19937 #line 19938 "configure"
19938 #include "confdefs.h"
19939 /* Override any gcc2 internal prototype to avoid an error. */
19940 /* We use char because int might match the return type of a gcc2
19941 builtin and then its argument prototype would still apply. */
19948 if { (eval echo configure:19949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19950 eval "ac_cv_lib_$ac_lib_var=yes"
19952 echo "configure: failed program was:" >&5
19953 cat conftest.$ac_ext >&5
19955 eval "ac_cv_lib_$ac_lib_var=no"
19958 LIBS="$ac_save_LIBS"
19961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19962 echo "$ac_t""yes" 1>&6
19963 ol_cv_lib_ndbm=-lndbm
19965 echo "$ac_t""no" 1>&6
19967 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19968 echo "configure:19969: checking for dbm_open in -ldbm" >&5
19969 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19971 echo $ac_n "(cached) $ac_c" 1>&6
19973 ac_save_LIBS="$LIBS"
19975 cat > conftest.$ac_ext <<EOF
19976 #line 19977 "configure"
19977 #include "confdefs.h"
19978 /* Override any gcc2 internal prototype to avoid an error. */
19979 /* We use char because int might match the return type of a gcc2
19980 builtin and then its argument prototype would still apply. */
19987 if { (eval echo configure:19988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19989 eval "ac_cv_lib_$ac_lib_var=yes"
19991 echo "configure: failed program was:" >&5
19992 cat conftest.$ac_ext >&5
19994 eval "ac_cv_lib_$ac_lib_var=no"
19997 LIBS="$ac_save_LIBS"
20000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20001 echo "$ac_t""yes" 1>&6
20002 ol_cv_lib_ndbm=-ldbm
20004 echo "$ac_t""no" 1>&6
20017 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20020 for ac_hdr in ndbm.h
20022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20024 echo "configure:20025: checking for $ac_hdr" >&5
20025 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20026 echo $ac_n "(cached) $ac_c" 1>&6
20028 cat > conftest.$ac_ext <<EOF
20029 #line 20030 "configure"
20030 #include "confdefs.h"
20033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20034 { (eval echo configure:20035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20036 if test -z "$ac_err"; then
20038 eval "ac_cv_header_$ac_safe=yes"
20041 echo "configure: failed program was:" >&5
20042 cat conftest.$ac_ext >&5
20044 eval "ac_cv_header_$ac_safe=no"
20048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20049 echo "$ac_t""yes" 1>&6
20050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20051 cat >> confdefs.h <<EOF
20052 #define $ac_tr_hdr 1
20056 echo "$ac_t""no" 1>&6
20060 echo $ac_n "checking for db""... $ac_c" 1>&6
20061 echo "configure:20062: checking for db" >&5
20062 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20063 echo $ac_n "(cached) $ac_c" 1>&6
20066 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20074 echo "$ac_t""$ol_cv_ndbm" 1>&6
20075 if test $ol_cv_ndbm = yes ; then
20076 cat >> confdefs.h <<\EOF
20077 #define HAVE_NDBM 1
20083 if test $ol_cv_ndbm = yes ; then
20085 ol_with_ldbm_api=ndbm
20087 if test $ol_cv_lib_ndbm != yes ; then
20088 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20093 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20094 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20095 if test $ol_enable_ldbm = yes ; then
20096 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20099 echo "configure: warning: disabling LDBM" 1>&2
20104 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20105 BUILD_LIBS_DYNAMIC=shared
20106 cat >> confdefs.h <<\EOF
20107 #define LDAP_LIBS_DYNAMIC 1
20112 BUILD_LIBS_DYNAMIC=static
20116 if test $ol_enable_wrappers != no ; then
20117 for ac_hdr in tcpd.h
20119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20121 echo "configure:20122: checking for $ac_hdr" >&5
20122 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20123 echo $ac_n "(cached) $ac_c" 1>&6
20125 cat > conftest.$ac_ext <<EOF
20126 #line 20127 "configure"
20127 #include "confdefs.h"
20130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20131 { (eval echo configure:20132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20133 if test -z "$ac_err"; then
20135 eval "ac_cv_header_$ac_safe=yes"
20138 echo "configure: failed program was:" >&5
20139 cat conftest.$ac_ext >&5
20141 eval "ac_cv_header_$ac_safe=no"
20145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20146 echo "$ac_t""yes" 1>&6
20147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20148 cat >> confdefs.h <<EOF
20149 #define $ac_tr_hdr 1
20152 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20153 echo "configure:20154: checking for TCP wrappers library" >&5
20155 LIBS="$LIBS -lwrap"
20156 cat > conftest.$ac_ext <<EOF
20157 #line 20158 "configure"
20158 #include "confdefs.h"
20161 int allow_severity = 0;
20162 int deny_severity = 0;
20164 struct request_info *req;
20172 if { (eval echo configure:20173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20174 echo "$ac_t""-lwrap" 1>&6
20178 echo "configure: failed program was:" >&5
20179 cat conftest.$ac_ext >&5
20183 cat > conftest.$ac_ext <<EOF
20184 #line 20185 "configure"
20185 #include "confdefs.h"
20188 int allow_severity = 0;
20189 int deny_severity = 0;
20191 struct request_info *req;
20199 if { (eval echo configure:20200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20201 echo "$ac_t""-lwrap -lnsl" 1>&6
20203 LIBS="$save_LIBS -lnsl"
20205 echo "configure: failed program was:" >&5
20206 cat conftest.$ac_ext >&5
20209 echo "$ac_t""no" 1>&6
20217 echo "$ac_t""no" 1>&6
20223 if test $have_wrappers = yes ; then
20224 cat >> confdefs.h <<\EOF
20225 #define HAVE_TCPD 1
20229 elif test $ol_enable_wrappers = yes ; then
20230 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20232 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20237 if test $ol_enable_syslog != no ; then
20238 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20239 echo "configure:20240: checking for openlog" >&5
20240 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20241 echo $ac_n "(cached) $ac_c" 1>&6
20243 cat > conftest.$ac_ext <<EOF
20244 #line 20245 "configure"
20245 #include "confdefs.h"
20246 /* System header to define __stub macros and hopefully few prototypes,
20247 which can conflict with char openlog(); below. */
20248 #include <assert.h>
20249 /* Override any gcc2 internal prototype to avoid an error. */
20250 /* We use char because int might match the return type of a gcc2
20251 builtin and then its argument prototype would still apply. */
20257 /* The GNU C library defines this for functions which it implements
20258 to always fail with ENOSYS. Some functions are actually named
20259 something starting with __ and the normal name is an alias. */
20260 #if defined (__stub_openlog) || defined (__stub___openlog)
20268 if { (eval echo configure:20269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20270 eval "ac_cv_func_openlog=yes"
20272 echo "configure: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20275 eval "ac_cv_func_openlog=no"
20280 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20281 echo "$ac_t""yes" 1>&6
20284 echo "$ac_t""no" 1>&6
20287 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20288 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20290 ol_enable_syslog=$ac_cv_func_openlog
20295 if test $ol_enable_sql != no ; then
20296 for ac_hdr in sql.h sqlext.h
20298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20300 echo "configure:20301: checking for $ac_hdr" >&5
20301 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20302 echo $ac_n "(cached) $ac_c" 1>&6
20304 cat > conftest.$ac_ext <<EOF
20305 #line 20306 "configure"
20306 #include "confdefs.h"
20309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20310 { (eval echo configure:20311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20312 if test -z "$ac_err"; then
20314 eval "ac_cv_header_$ac_safe=yes"
20317 echo "configure: failed program was:" >&5
20318 cat conftest.$ac_ext >&5
20320 eval "ac_cv_header_$ac_safe=no"
20324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20325 echo "$ac_t""yes" 1>&6
20326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20327 cat >> confdefs.h <<EOF
20328 #define $ac_tr_hdr 1
20332 echo "$ac_t""no" 1>&6
20333 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20339 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20340 echo "configure:20341: checking for SQLDriverConnect in -liodbc" >&5
20341 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20342 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20343 echo $ac_n "(cached) $ac_c" 1>&6
20345 ac_save_LIBS="$LIBS"
20346 LIBS="-liodbc $LIBS"
20347 cat > conftest.$ac_ext <<EOF
20348 #line 20349 "configure"
20349 #include "confdefs.h"
20350 /* Override any gcc2 internal prototype to avoid an error. */
20351 /* We use char because int might match the return type of a gcc2
20352 builtin and then its argument prototype would still apply. */
20353 char SQLDriverConnect();
20359 if { (eval echo configure:20360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20361 eval "ac_cv_lib_$ac_lib_var=yes"
20363 echo "configure: failed program was:" >&5
20364 cat conftest.$ac_ext >&5
20366 eval "ac_cv_lib_$ac_lib_var=no"
20369 LIBS="$ac_save_LIBS"
20372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20373 echo "$ac_t""yes" 1>&6
20376 echo "$ac_t""no" 1>&6
20380 if test $have_iodbc = yes ; then
20381 ol_link_sql="-liodbc"
20383 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20384 echo "configure:20385: checking for SQLDriverConnect in -lodbc" >&5
20385 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20387 echo $ac_n "(cached) $ac_c" 1>&6
20389 ac_save_LIBS="$LIBS"
20390 LIBS="-lodbc $LIBS"
20391 cat > conftest.$ac_ext <<EOF
20392 #line 20393 "configure"
20393 #include "confdefs.h"
20394 /* Override any gcc2 internal prototype to avoid an error. */
20395 /* We use char because int might match the return type of a gcc2
20396 builtin and then its argument prototype would still apply. */
20397 char SQLDriverConnect();
20403 if { (eval echo configure:20404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20405 eval "ac_cv_lib_$ac_lib_var=yes"
20407 echo "configure: failed program was:" >&5
20408 cat conftest.$ac_ext >&5
20410 eval "ac_cv_lib_$ac_lib_var=no"
20413 LIBS="$ac_save_LIBS"
20416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20417 echo "$ac_t""yes" 1>&6
20420 echo "$ac_t""no" 1>&6
20424 if test $have_odbc = yes ; then
20425 ol_link_sql="-lodbc"
20429 if test $ol_link_sql != no ; then
20430 SLAPD_SQL_LIBS="$ol_link_sql"
20432 elif test $ol_enable_sql != auto ; then
20433 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20439 if test $ol_with_cyrus_sasl != no ; then
20440 for ac_hdr in sasl/sasl.h sasl.h
20442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20444 echo "configure:20445: checking for $ac_hdr" >&5
20445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20446 echo $ac_n "(cached) $ac_c" 1>&6
20448 cat > conftest.$ac_ext <<EOF
20449 #line 20450 "configure"
20450 #include "confdefs.h"
20453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20454 { (eval echo configure:20455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20456 if test -z "$ac_err"; then
20458 eval "ac_cv_header_$ac_safe=yes"
20461 echo "configure: failed program was:" >&5
20462 cat conftest.$ac_ext >&5
20464 eval "ac_cv_header_$ac_safe=no"
20468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20469 echo "$ac_t""yes" 1>&6
20470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20471 cat >> confdefs.h <<EOF
20472 #define $ac_tr_hdr 1
20476 echo "$ac_t""no" 1>&6
20481 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20482 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20483 echo "configure:20484: checking for sasl_client_init in -lsasl2" >&5
20484 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20485 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20486 echo $ac_n "(cached) $ac_c" 1>&6
20488 ac_save_LIBS="$LIBS"
20489 LIBS="-lsasl2 $LIBS"
20490 cat > conftest.$ac_ext <<EOF
20491 #line 20492 "configure"
20492 #include "confdefs.h"
20493 /* Override any gcc2 internal prototype to avoid an error. */
20494 /* We use char because int might match the return type of a gcc2
20495 builtin and then its argument prototype would still apply. */
20496 char sasl_client_init();
20502 if { (eval echo configure:20503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20504 eval "ac_cv_lib_$ac_lib_var=yes"
20506 echo "configure: failed program was:" >&5
20507 cat conftest.$ac_ext >&5
20509 eval "ac_cv_lib_$ac_lib_var=no"
20512 LIBS="$ac_save_LIBS"
20515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20516 echo "$ac_t""yes" 1>&6
20517 ol_link_sasl="-lsasl2"
20519 echo "$ac_t""no" 1>&6
20520 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20521 echo "configure:20522: checking for sasl_client_init in -lsasl" >&5
20522 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20524 echo $ac_n "(cached) $ac_c" 1>&6
20526 ac_save_LIBS="$LIBS"
20527 LIBS="-lsasl $LIBS"
20528 cat > conftest.$ac_ext <<EOF
20529 #line 20530 "configure"
20530 #include "confdefs.h"
20531 /* Override any gcc2 internal prototype to avoid an error. */
20532 /* We use char because int might match the return type of a gcc2
20533 builtin and then its argument prototype would still apply. */
20534 char sasl_client_init();
20540 if { (eval echo configure:20541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20542 eval "ac_cv_lib_$ac_lib_var=yes"
20544 echo "configure: failed program was:" >&5
20545 cat conftest.$ac_ext >&5
20547 eval "ac_cv_lib_$ac_lib_var=no"
20550 LIBS="$ac_save_LIBS"
20553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20554 echo "$ac_t""yes" 1>&6
20555 ol_link_sasl="-lsasl"
20557 echo "$ac_t""no" 1>&6
20564 if test $ol_link_sasl = no ; then
20565 if test $ol_with_cyrus_sasl != auto ; then
20566 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20568 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20569 echo "configure: warning: SASL authentication not supported!" 1>&2
20570 if test $ol_link_tls = no ; then
20571 echo "configure: warning: Strong authentication not supported!" 1>&2
20575 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20576 echo "configure:20577: checking Cyrus SASL library version" >&5
20577 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20578 echo $ac_n "(cached) $ac_c" 1>&6
20581 cat > conftest.$ac_ext <<EOF
20582 #line 20583 "configure"
20583 #include "confdefs.h"
20585 #ifdef HAVE_SASL_SASL_H
20586 #include <sasl/sasl.h>
20591 /* Require 2.1.15+ */
20592 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20593 char *__sasl_compat = "2.2+ or better okay (we guess)";
20594 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20595 && SASL_VERSION_STEP >=15
20596 char *__sasl_compat = "2.1.15+ or better okay";
20600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20601 egrep "__sasl_compat" >/dev/null 2>&1; then
20603 ol_cv_sasl_compat=yes
20606 ol_cv_sasl_compat=no
20612 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20614 if test $ol_cv_sasl_compat = no ; then
20616 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20619 cat >> confdefs.h <<\EOF
20620 #define HAVE_CYRUS_SASL 1
20623 SASL_LIBS="$ol_link_sasl"
20624 if test $ol_enable_spasswd != no ; then
20625 ol_link_spasswd=yes
20628 ac_save_LIBS="$LIBS"
20629 LIBS="$LIBS $ol_link_sasl"
20630 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20631 echo "configure:20632: checking for sasl_version" >&5
20632 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20633 echo $ac_n "(cached) $ac_c" 1>&6
20635 cat > conftest.$ac_ext <<EOF
20636 #line 20637 "configure"
20637 #include "confdefs.h"
20638 /* System header to define __stub macros and hopefully few prototypes,
20639 which can conflict with char sasl_version(); below. */
20640 #include <assert.h>
20641 /* Override any gcc2 internal prototype to avoid an error. */
20642 /* We use char because int might match the return type of a gcc2
20643 builtin and then its argument prototype would still apply. */
20644 char sasl_version();
20649 /* The GNU C library defines this for functions which it implements
20650 to always fail with ENOSYS. Some functions are actually named
20651 something starting with __ and the normal name is an alias. */
20652 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20660 if { (eval echo configure:20661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20662 eval "ac_cv_func_sasl_version=yes"
20664 echo "configure: failed program was:" >&5
20665 cat conftest.$ac_ext >&5
20667 eval "ac_cv_func_sasl_version=no"
20672 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20673 echo "$ac_t""yes" 1>&6
20674 cat >> confdefs.h <<\EOF
20675 #define HAVE_SASL_VERSION 1
20679 echo "$ac_t""no" 1>&6
20682 LIBS="$ac_save_LIBS"
20686 echo "configure: warning: SASL authentication not supported!" 1>&2
20687 if test $ol_link_tls = no ; then
20688 echo "configure: warning: Strong authentication not supported!" 1>&2
20692 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20694 if test -r /dev/urandom ; then
20695 dev="/dev/urandom";
20696 elif test -r /idev/urandom ; then
20697 dev="/idev/urandom";
20698 elif test -r /dev/srandom ; then
20699 dev="/dev/srandom";
20700 elif test -r /dev/random ; then
20702 elif test -r /idev/random ; then
20703 dev="/idev/random";
20706 if test $dev != no ; then
20707 cat >> confdefs.h <<EOF
20708 #define URANDOM_DEVICE "$dev"
20715 if test $ol_with_fetch != no ; then
20717 LIBS="-lfetch -lcom_err $LIBS"
20718 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20719 echo "configure:20720: checking fetch(3) library" >&5
20720 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20721 echo $ac_n "(cached) $ac_c" 1>&6
20724 cat > conftest.$ac_ext <<EOF
20725 #line 20726 "configure"
20726 #include "confdefs.h"
20728 #include <sys/param.h>
20732 struct url *u = fetchParseURL("file:///");
20735 if { (eval echo configure:20736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20737 ol_cv_lib_fetch=yes
20739 echo "configure: failed program was:" >&5
20740 cat conftest.$ac_ext >&5
20747 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20749 if test $ol_cv_lib_fetch != no ; then
20750 ol_link_fetch="-lfetch -lcom_err"
20751 cat >> confdefs.h <<\EOF
20752 #define HAVE_FETCH 1
20758 if test $ol_cv_lib_fetch != no ; then
20759 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20760 ol_link_fetch=freebsd
20762 elif test $ol_with_fetch != auto ; then
20763 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20767 if test $ol_enable_crypt != no ; then
20769 LIBS="$TLS_LIBS $LIBS"
20771 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20772 echo "configure:20773: checking for crypt" >&5
20773 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20774 echo $ac_n "(cached) $ac_c" 1>&6
20776 cat > conftest.$ac_ext <<EOF
20777 #line 20778 "configure"
20778 #include "confdefs.h"
20779 /* System header to define __stub macros and hopefully few prototypes,
20780 which can conflict with char crypt(); below. */
20781 #include <assert.h>
20782 /* Override any gcc2 internal prototype to avoid an error. */
20783 /* We use char because int might match the return type of a gcc2
20784 builtin and then its argument prototype would still apply. */
20790 /* The GNU C library defines this for functions which it implements
20791 to always fail with ENOSYS. Some functions are actually named
20792 something starting with __ and the normal name is an alias. */
20793 #if defined (__stub_crypt) || defined (__stub___crypt)
20801 if { (eval echo configure:20802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20803 eval "ac_cv_func_crypt=yes"
20805 echo "configure: failed program was:" >&5
20806 cat conftest.$ac_ext >&5
20808 eval "ac_cv_func_crypt=no"
20813 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20814 echo "$ac_t""yes" 1>&6
20817 echo "$ac_t""no" 1>&6
20820 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20821 echo "configure:20822: checking for crypt in -lcrypt" >&5
20822 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20823 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20824 echo $ac_n "(cached) $ac_c" 1>&6
20826 ac_save_LIBS="$LIBS"
20827 LIBS="-lcrypt $LIBS"
20828 cat > conftest.$ac_ext <<EOF
20829 #line 20830 "configure"
20830 #include "confdefs.h"
20831 /* Override any gcc2 internal prototype to avoid an error. */
20832 /* We use char because int might match the return type of a gcc2
20833 builtin and then its argument prototype would still apply. */
20840 if { (eval echo configure:20841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20842 eval "ac_cv_lib_$ac_lib_var=yes"
20844 echo "configure: failed program was:" >&5
20845 cat conftest.$ac_ext >&5
20847 eval "ac_cv_lib_$ac_lib_var=no"
20850 LIBS="$ac_save_LIBS"
20853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20854 echo "$ac_t""yes" 1>&6
20855 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20858 echo "$ac_t""no" 1>&6
20867 if test $have_crypt = yes ; then
20868 cat >> confdefs.h <<\EOF
20869 #define HAVE_CRYPT 1
20873 echo "configure: warning: could not find crypt" 1>&2
20874 if test $ol_enable_crypt = yes ; then
20875 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
20878 echo "configure: warning: disabling crypt support" 1>&2
20883 if test $ol_enable_proctitle != no ; then
20884 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20885 echo "configure:20886: checking for setproctitle" >&5
20886 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20887 echo $ac_n "(cached) $ac_c" 1>&6
20889 cat > conftest.$ac_ext <<EOF
20890 #line 20891 "configure"
20891 #include "confdefs.h"
20892 /* System header to define __stub macros and hopefully few prototypes,
20893 which can conflict with char setproctitle(); below. */
20894 #include <assert.h>
20895 /* Override any gcc2 internal prototype to avoid an error. */
20896 /* We use char because int might match the return type of a gcc2
20897 builtin and then its argument prototype would still apply. */
20898 char setproctitle();
20903 /* The GNU C library defines this for functions which it implements
20904 to always fail with ENOSYS. Some functions are actually named
20905 something starting with __ and the normal name is an alias. */
20906 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20914 if { (eval echo configure:20915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20916 eval "ac_cv_func_setproctitle=yes"
20918 echo "configure: failed program was:" >&5
20919 cat conftest.$ac_ext >&5
20921 eval "ac_cv_func_setproctitle=no"
20926 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20927 echo "$ac_t""yes" 1>&6
20928 have_setproctitle=yes
20930 echo "$ac_t""no" 1>&6
20932 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20933 echo "configure:20934: checking for setproctitle in -lutil" >&5
20934 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20936 echo $ac_n "(cached) $ac_c" 1>&6
20938 ac_save_LIBS="$LIBS"
20939 LIBS="-lutil $LIBS"
20940 cat > conftest.$ac_ext <<EOF
20941 #line 20942 "configure"
20942 #include "confdefs.h"
20943 /* Override any gcc2 internal prototype to avoid an error. */
20944 /* We use char because int might match the return type of a gcc2
20945 builtin and then its argument prototype would still apply. */
20946 char setproctitle();
20952 if { (eval echo configure:20953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20954 eval "ac_cv_lib_$ac_lib_var=yes"
20956 echo "configure: failed program was:" >&5
20957 cat conftest.$ac_ext >&5
20959 eval "ac_cv_lib_$ac_lib_var=no"
20962 LIBS="$ac_save_LIBS"
20965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20966 echo "$ac_t""yes" 1>&6
20967 have_setproctitle=yes
20968 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20970 echo "$ac_t""no" 1>&6
20971 have_setproctitle=no
20972 LIBOBJS="$LIBOBJS setproctitle.o"
20973 LIBSRCS="$LIBSRCS setproctitle.c"
20979 if test $have_setproctitle = yes ; then
20980 cat >> confdefs.h <<\EOF
20981 #define HAVE_SETPROCTITLE 1
20987 if test $ol_enable_slp != no ; then
20988 for ac_hdr in slp.h
20990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20992 echo "configure:20993: checking for $ac_hdr" >&5
20993 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20994 echo $ac_n "(cached) $ac_c" 1>&6
20996 cat > conftest.$ac_ext <<EOF
20997 #line 20998 "configure"
20998 #include "confdefs.h"
21001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21002 { (eval echo configure:21003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21004 if test -z "$ac_err"; then
21006 eval "ac_cv_header_$ac_safe=yes"
21009 echo "configure: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21012 eval "ac_cv_header_$ac_safe=no"
21016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21017 echo "$ac_t""yes" 1>&6
21018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21019 cat >> confdefs.h <<EOF
21020 #define $ac_tr_hdr 1
21024 echo "$ac_t""no" 1>&6
21029 if test $ac_cv_header_slp_h = yes ; then
21030 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21031 echo "configure:21032: checking for SLPOpen in -lslp" >&5
21032 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21034 echo $ac_n "(cached) $ac_c" 1>&6
21036 ac_save_LIBS="$LIBS"
21038 cat > conftest.$ac_ext <<EOF
21039 #line 21040 "configure"
21040 #include "confdefs.h"
21041 /* Override any gcc2 internal prototype to avoid an error. */
21042 /* We use char because int might match the return type of a gcc2
21043 builtin and then its argument prototype would still apply. */
21050 if { (eval echo configure:21051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21052 eval "ac_cv_lib_$ac_lib_var=yes"
21054 echo "configure: failed program was:" >&5
21055 cat conftest.$ac_ext >&5
21057 eval "ac_cv_lib_$ac_lib_var=no"
21060 LIBS="$ac_save_LIBS"
21063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21064 echo "$ac_t""yes" 1>&6
21067 echo "$ac_t""no" 1>&6
21071 if test $have_slp = yes ; then
21072 cat >> confdefs.h <<\EOF
21076 SLAPD_SLP_LIBS=-lslp
21079 elif test $ol_enable_slp = yes ; then
21080 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21085 echo $ac_n "checking long long""... $ac_c" 1>&6
21086 echo "configure:21087: checking long long" >&5
21087 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21088 echo $ac_n "(cached) $ac_c" 1>&6
21091 cat > conftest.$ac_ext <<EOF
21092 #line 21093 "configure"
21093 #include "confdefs.h"
21099 if { (eval echo configure:21100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21101 ol_cv_type_long_long=yes
21103 echo "configure: failed program was:" >&5
21104 cat conftest.$ac_ext >&5
21106 ol_cv_type_long_long=no
21111 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21112 if test $ol_cv_type_long_long = yes; then
21113 cat >> confdefs.h <<\EOF
21114 #define HAVE_LONG_LONG 1
21119 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21120 echo "configure:21121: checking for ANSI C header files" >&5
21121 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21122 echo $ac_n "(cached) $ac_c" 1>&6
21124 cat > conftest.$ac_ext <<EOF
21125 #line 21126 "configure"
21126 #include "confdefs.h"
21127 #include <stdlib.h>
21128 #include <stdarg.h>
21129 #include <string.h>
21132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21133 { (eval echo configure:21134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21135 if test -z "$ac_err"; then
21137 ac_cv_header_stdc=yes
21140 echo "configure: failed program was:" >&5
21141 cat conftest.$ac_ext >&5
21143 ac_cv_header_stdc=no
21147 if test $ac_cv_header_stdc = yes; then
21148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21149 cat > conftest.$ac_ext <<EOF
21150 #line 21151 "configure"
21151 #include "confdefs.h"
21152 #include <string.h>
21154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21155 egrep "memchr" >/dev/null 2>&1; then
21159 ac_cv_header_stdc=no
21165 if test $ac_cv_header_stdc = yes; then
21166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21167 cat > conftest.$ac_ext <<EOF
21168 #line 21169 "configure"
21169 #include "confdefs.h"
21170 #include <stdlib.h>
21172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21173 egrep "free" >/dev/null 2>&1; then
21177 ac_cv_header_stdc=no
21183 if test $ac_cv_header_stdc = yes; then
21184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21185 if test "$cross_compiling" = yes; then
21188 cat > conftest.$ac_ext <<EOF
21189 #line 21190 "configure"
21190 #include "confdefs.h"
21192 #if ((' ' & 0x0FF) == 0x020)
21193 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21194 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21196 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21197 || ('j' <= (c) && (c) <= 'r') \
21198 || ('s' <= (c) && (c) <= 'z'))
21199 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21202 int main () { int i; for (i = 0; i < 256; i++)
21203 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21207 if { (eval echo configure:21208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21211 echo "configure: failed program was:" >&5
21212 cat conftest.$ac_ext >&5
21214 ac_cv_header_stdc=no
21222 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21223 if test $ac_cv_header_stdc = yes; then
21224 cat >> confdefs.h <<\EOF
21225 #define STDC_HEADERS 1
21230 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21231 echo "configure:21232: checking for mode_t" >&5
21232 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21233 echo $ac_n "(cached) $ac_c" 1>&6
21235 cat > conftest.$ac_ext <<EOF
21236 #line 21237 "configure"
21237 #include "confdefs.h"
21238 #include <sys/types.h>
21240 #include <stdlib.h>
21241 #include <stddef.h>
21245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21246 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21248 eval "ac_cv_type_mode_t=yes"
21251 eval "ac_cv_type_mode_t=no"
21256 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21257 echo "$ac_t""yes" 1>&6
21259 echo "$ac_t""no" 1>&6
21260 cat >> confdefs.h <<EOF
21266 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21267 echo "configure:21268: checking for off_t" >&5
21268 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21269 echo $ac_n "(cached) $ac_c" 1>&6
21271 cat > conftest.$ac_ext <<EOF
21272 #line 21273 "configure"
21273 #include "confdefs.h"
21274 #include <sys/types.h>
21276 #include <stdlib.h>
21277 #include <stddef.h>
21281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21282 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21284 eval "ac_cv_type_off_t=yes"
21287 eval "ac_cv_type_off_t=no"
21292 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21293 echo "$ac_t""yes" 1>&6
21295 echo "$ac_t""no" 1>&6
21296 cat >> confdefs.h <<EOF
21302 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21303 echo "configure:21304: checking for pid_t" >&5
21304 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21305 echo $ac_n "(cached) $ac_c" 1>&6
21307 cat > conftest.$ac_ext <<EOF
21308 #line 21309 "configure"
21309 #include "confdefs.h"
21310 #include <sys/types.h>
21312 #include <stdlib.h>
21313 #include <stddef.h>
21317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21318 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21320 eval "ac_cv_type_pid_t=yes"
21323 eval "ac_cv_type_pid_t=no"
21328 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21329 echo "$ac_t""yes" 1>&6
21331 echo "$ac_t""no" 1>&6
21332 cat >> confdefs.h <<EOF
21338 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21339 echo "configure:21340: checking for ptrdiff_t" >&5
21340 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21341 echo $ac_n "(cached) $ac_c" 1>&6
21343 cat > conftest.$ac_ext <<EOF
21344 #line 21345 "configure"
21345 #include "confdefs.h"
21346 #include <stddef.h>
21351 if { (eval echo configure:21352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21353 am_cv_type_ptrdiff_t=yes
21355 echo "configure: failed program was:" >&5
21356 cat conftest.$ac_ext >&5
21358 am_cv_type_ptrdiff_t=no
21363 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21364 if test $am_cv_type_ptrdiff_t = yes; then
21365 cat >> confdefs.h <<\EOF
21366 #define HAVE_PTRDIFF_T 1
21371 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21372 echo "configure:21373: checking return type of signal handlers" >&5
21373 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21374 echo $ac_n "(cached) $ac_c" 1>&6
21376 cat > conftest.$ac_ext <<EOF
21377 #line 21378 "configure"
21378 #include "confdefs.h"
21379 #include <sys/types.h>
21380 #include <signal.h>
21385 extern "C" void (*signal (int, void (*)(int)))(int);
21387 void (*signal ()) ();
21394 if { (eval echo configure:21395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21396 ac_cv_type_signal=void
21398 echo "configure: failed program was:" >&5
21399 cat conftest.$ac_ext >&5
21401 ac_cv_type_signal=int
21406 echo "$ac_t""$ac_cv_type_signal" 1>&6
21407 cat >> confdefs.h <<EOF
21408 #define RETSIGTYPE $ac_cv_type_signal
21412 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21413 echo "configure:21414: checking for size_t" >&5
21414 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21415 echo $ac_n "(cached) $ac_c" 1>&6
21417 cat > conftest.$ac_ext <<EOF
21418 #line 21419 "configure"
21419 #include "confdefs.h"
21420 #include <sys/types.h>
21422 #include <stdlib.h>
21423 #include <stddef.h>
21427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21428 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21430 eval "ac_cv_type_size_t=yes"
21433 eval "ac_cv_type_size_t=no"
21438 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21439 echo "$ac_t""yes" 1>&6
21441 echo "$ac_t""no" 1>&6
21442 cat >> confdefs.h <<EOF
21443 #define size_t unsigned
21449 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21450 echo "configure:21451: checking for ssize_t" >&5
21451 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21452 echo $ac_n "(cached) $ac_c" 1>&6
21454 cat > conftest.$ac_ext <<EOF
21455 #line 21456 "configure"
21456 #include "confdefs.h"
21457 #include <sys/types.h>
21459 #include <stdlib.h>
21460 #include <stddef.h>
21464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21465 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21467 eval "ac_cv_type_ssize_t=yes"
21470 eval "ac_cv_type_ssize_t=no"
21475 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21476 echo "$ac_t""yes" 1>&6
21478 echo "$ac_t""no" 1>&6
21479 cat >> confdefs.h <<EOF
21480 #define ssize_t signed int
21485 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21486 echo "configure:21487: checking for caddr_t" >&5
21487 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21488 echo $ac_n "(cached) $ac_c" 1>&6
21490 cat > conftest.$ac_ext <<EOF
21491 #line 21492 "configure"
21492 #include "confdefs.h"
21493 #include <sys/types.h>
21495 #include <stdlib.h>
21496 #include <stddef.h>
21500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21501 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21503 eval "ac_cv_type_caddr_t=yes"
21506 eval "ac_cv_type_caddr_t=no"
21511 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21512 echo "$ac_t""yes" 1>&6
21514 echo "$ac_t""no" 1>&6
21515 cat >> confdefs.h <<EOF
21516 #define caddr_t char *
21522 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21523 echo "configure:21524: checking for socklen_t" >&5
21524 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21525 echo $ac_n "(cached) $ac_c" 1>&6
21527 cat > conftest.$ac_ext <<EOF
21528 #line 21529 "configure"
21529 #include "confdefs.h"
21531 #ifdef HAVE_SYS_TYPES_H
21532 #include <sys/types.h>
21534 #ifdef HAVE_SYS_SOCKET_H
21535 #include <sys/socket.h>
21542 if { (eval echo configure:21543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21544 ol_cv_type_socklen_t=yes
21546 echo "configure: failed program was:" >&5
21547 cat conftest.$ac_ext >&5
21549 ol_cv_type_socklen_t=no
21554 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21555 if test $ol_cv_type_socklen_t = no; then
21556 cat >> confdefs.h <<\EOF
21557 #define socklen_t int
21562 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21563 echo "configure:21564: checking for member st_blksize in aggregate type struct stat" >&5
21564 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21565 echo $ac_n "(cached) $ac_c" 1>&6
21567 cat > conftest.$ac_ext <<EOF
21568 #line 21569 "configure"
21569 #include "confdefs.h"
21570 #include <sys/types.h>
21571 #include <sys/stat.h>
21573 struct stat foo; foo.st_blksize;
21576 if { (eval echo configure:21577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21578 ac_cv_c_struct_member_st_blksize=yes
21580 echo "configure: failed program was:" >&5
21581 cat conftest.$ac_ext >&5
21583 ac_cv_c_struct_member_st_blksize=no
21588 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21589 st_blksize="$ac_cv_c_struct_member_st_blksize"
21590 if test $ac_cv_c_struct_member_st_blksize = yes; then
21591 cat >> confdefs.h <<\EOF
21592 #define HAVE_ST_BLKSIZE 1
21597 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21598 echo "configure:21599: checking whether time.h and sys/time.h may both be included" >&5
21599 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21600 echo $ac_n "(cached) $ac_c" 1>&6
21602 cat > conftest.$ac_ext <<EOF
21603 #line 21604 "configure"
21604 #include "confdefs.h"
21605 #include <sys/types.h>
21606 #include <sys/time.h>
21612 if { (eval echo configure:21613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21614 ac_cv_header_time=yes
21616 echo "configure: failed program was:" >&5
21617 cat conftest.$ac_ext >&5
21619 ac_cv_header_time=no
21624 echo "$ac_t""$ac_cv_header_time" 1>&6
21625 if test $ac_cv_header_time = yes; then
21626 cat >> confdefs.h <<\EOF
21627 #define TIME_WITH_SYS_TIME 1
21632 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21633 echo "configure:21634: checking whether struct tm is in sys/time.h or time.h" >&5
21634 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21635 echo $ac_n "(cached) $ac_c" 1>&6
21637 cat > conftest.$ac_ext <<EOF
21638 #line 21639 "configure"
21639 #include "confdefs.h"
21640 #include <sys/types.h>
21643 struct tm *tp; tp->tm_sec;
21646 if { (eval echo configure:21647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21648 ac_cv_struct_tm=time.h
21650 echo "configure: failed program was:" >&5
21651 cat conftest.$ac_ext >&5
21653 ac_cv_struct_tm=sys/time.h
21658 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21659 if test $ac_cv_struct_tm = sys/time.h; then
21660 cat >> confdefs.h <<\EOF
21661 #define TM_IN_SYS_TIME 1
21666 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21667 echo "configure:21668: checking for uid_t in sys/types.h" >&5
21668 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21669 echo $ac_n "(cached) $ac_c" 1>&6
21671 cat > conftest.$ac_ext <<EOF
21672 #line 21673 "configure"
21673 #include "confdefs.h"
21674 #include <sys/types.h>
21676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21677 egrep "uid_t" >/dev/null 2>&1; then
21679 ac_cv_type_uid_t=yes
21682 ac_cv_type_uid_t=no
21688 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21689 if test $ac_cv_type_uid_t = no; then
21690 cat >> confdefs.h <<\EOF
21694 cat >> confdefs.h <<\EOF
21700 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21701 echo "configure:21702: checking for sig_atomic_t" >&5
21702 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21703 echo $ac_n "(cached) $ac_c" 1>&6
21705 cat > conftest.$ac_ext <<EOF
21706 #line 21707 "configure"
21707 #include "confdefs.h"
21708 #include <signal.h>
21710 sig_atomic_t atomic;
21713 if { (eval echo configure:21714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21715 ol_cv_type_sig_atomic_t=yes
21717 echo "configure: failed program was:" >&5
21718 cat conftest.$ac_ext >&5
21720 ol_cv_type_sig_atomic_t=no
21725 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21726 if test $ol_cv_type_sig_atomic_t = no; then
21727 cat >> confdefs.h <<\EOF
21728 #define sig_atomic_t int
21735 # test for pw_gecos in struct passwd
21736 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21737 echo "configure:21738: checking struct passwd for pw_gecos" >&5
21738 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21739 echo $ac_n "(cached) $ac_c" 1>&6
21742 cat > conftest.$ac_ext <<EOF
21743 #line 21744 "configure"
21744 #include "confdefs.h"
21749 pwd.pw_gecos = pwd.pw_name;
21753 if { (eval echo configure:21754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21755 ol_cv_struct_passwd_pw_gecos=yes
21757 echo "configure: failed program was:" >&5
21758 cat conftest.$ac_ext >&5
21760 ol_cv_struct_passwd_pw_gecos=no
21765 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21766 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21767 cat >> confdefs.h <<\EOF
21768 #define HAVE_PW_GECOS 1
21773 # test for pw_passwd in struct passwd
21774 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21775 echo "configure:21776: checking struct passwd for pw_passwd" >&5
21776 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21777 echo $ac_n "(cached) $ac_c" 1>&6
21780 cat > conftest.$ac_ext <<EOF
21781 #line 21782 "configure"
21782 #include "confdefs.h"
21787 pwd.pw_passwd = pwd.pw_name;
21791 if { (eval echo configure:21792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21793 ol_cv_struct_passwd_pw_passwd=yes
21795 echo "configure: failed program was:" >&5
21796 cat conftest.$ac_ext >&5
21798 ol_cv_struct_passwd_pw_passwd=no
21803 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21804 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21805 cat >> confdefs.h <<\EOF
21806 #define HAVE_PW_PASSWD 1
21812 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21813 echo "configure:21814: checking if toupper() requires islower()" >&5
21814 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21815 echo $ac_n "(cached) $ac_c" 1>&6
21818 if test "$cross_compiling" = yes; then
21819 ol_cv_c_upper_lower=safe
21821 cat > conftest.$ac_ext <<EOF
21822 #line 21823 "configure"
21823 #include "confdefs.h"
21828 if ('C' == toupper('C'))
21834 if { (eval echo configure:21835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21836 ol_cv_c_upper_lower=no
21838 echo "configure: failed program was:" >&5
21839 cat conftest.$ac_ext >&5
21841 ol_cv_c_upper_lower=yes
21848 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21849 if test $ol_cv_c_upper_lower != no ; then
21850 cat >> confdefs.h <<\EOF
21851 #define C_UPPER_LOWER 1
21856 echo $ac_n "checking for working const""... $ac_c" 1>&6
21857 echo "configure:21858: checking for working const" >&5
21858 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21859 echo $ac_n "(cached) $ac_c" 1>&6
21861 cat > conftest.$ac_ext <<EOF
21862 #line 21863 "configure"
21863 #include "confdefs.h"
21867 /* Ultrix mips cc rejects this. */
21868 typedef int charset[2]; const charset x;
21869 /* SunOS 4.1.1 cc rejects this. */
21870 char const *const *ccp;
21872 /* NEC SVR4.0.2 mips cc rejects this. */
21873 struct point {int x, y;};
21874 static struct point const zero = {0,0};
21875 /* AIX XL C 1.02.0.0 rejects this.
21876 It does not let you subtract one const X* pointer from another in an arm
21877 of an if-expression whose if-part is not a constant expression */
21878 const char *g = "string";
21879 ccp = &g + (g ? g-g : 0);
21880 /* HPUX 7.0 cc rejects these. */
21883 ccp = (char const *const *) p;
21884 { /* SCO 3.2v4 cc rejects this. */
21886 char const *s = 0 ? (char *) 0 : (char const *) 0;
21890 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21891 int x[] = {25, 17};
21892 const int *foo = &x[0];
21895 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21896 typedef const int *iptr;
21900 { /* AIX XL C 1.02.0.0 rejects this saying
21901 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21902 struct s { int j; const int *ap[3]; };
21903 struct s *b; b->j = 5;
21905 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21906 const int foo = 10;
21911 if { (eval echo configure:21912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21915 echo "configure: failed program was:" >&5
21916 cat conftest.$ac_ext >&5
21923 echo "$ac_t""$ac_cv_c_const" 1>&6
21924 if test $ac_cv_c_const = no; then
21925 cat >> confdefs.h <<\EOF
21931 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21932 echo "configure:21933: checking if compiler understands volatile" >&5
21933 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21934 echo $ac_n "(cached) $ac_c" 1>&6
21936 cat > conftest.$ac_ext <<EOF
21937 #line 21938 "configure"
21938 #include "confdefs.h"
21941 volatile int a; int * volatile b = x ? &y : &z;
21942 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21946 if { (eval echo configure:21947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21948 ol_cv_c_volatile=yes
21950 echo "configure: failed program was:" >&5
21951 cat conftest.$ac_ext >&5
21953 ol_cv_c_volatile=no
21958 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21959 if test $ol_cv_c_volatile = yes; then
21962 cat >> confdefs.h <<\EOF
21969 if test $cross_compiling = yes ; then
21970 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
21971 cat >> confdefs.h <<\EOF
21972 #define CROSS_COMPILING 1
21976 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21977 echo "configure:21978: checking whether byte ordering is bigendian" >&5
21978 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21979 echo $ac_n "(cached) $ac_c" 1>&6
21981 ac_cv_c_bigendian=unknown
21982 # See if sys/param.h defines the BYTE_ORDER macro.
21983 cat > conftest.$ac_ext <<EOF
21984 #line 21985 "configure"
21985 #include "confdefs.h"
21986 #include <sys/types.h>
21987 #include <sys/param.h>
21990 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21991 bogus endian macros
21995 if { (eval echo configure:21996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21997 # It does; now see whether it defined to BIG_ENDIAN or not.
21998 cat > conftest.$ac_ext <<EOF
21999 #line 22000 "configure"
22000 #include "confdefs.h"
22001 #include <sys/types.h>
22002 #include <sys/param.h>
22005 #if BYTE_ORDER != BIG_ENDIAN
22010 if { (eval echo configure:22011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22012 ac_cv_c_bigendian=yes
22014 echo "configure: failed program was:" >&5
22015 cat conftest.$ac_ext >&5
22017 ac_cv_c_bigendian=no
22021 echo "configure: failed program was:" >&5
22022 cat conftest.$ac_ext >&5
22025 if test $ac_cv_c_bigendian = unknown; then
22026 if test "$cross_compiling" = yes; then
22027 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22029 cat > conftest.$ac_ext <<EOF
22030 #line 22031 "configure"
22031 #include "confdefs.h"
22033 /* Are we little or big endian? From Harbison&Steele. */
22037 char c[sizeof (long)];
22040 exit (u.c[sizeof (long) - 1] == 1);
22043 if { (eval echo configure:22044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22045 ac_cv_c_bigendian=no
22047 echo "configure: failed program was:" >&5
22048 cat conftest.$ac_ext >&5
22050 ac_cv_c_bigendian=yes
22058 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22059 if test $ac_cv_c_bigendian = yes; then
22060 cat >> confdefs.h <<\EOF
22061 #define WORDS_BIGENDIAN 1
22068 echo $ac_n "checking size of short""... $ac_c" 1>&6
22069 echo "configure:22070: checking size of short" >&5
22070 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22071 echo $ac_n "(cached) $ac_c" 1>&6
22073 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22074 cat > conftest.$ac_ext <<EOF
22075 #line 22076 "configure"
22076 #include "confdefs.h"
22077 #include "confdefs.h"
22078 #include <stdlib.h>
22079 #include <sys/types.h>
22083 switch (0) case 0: case (sizeof (short) == $ac_size):;
22086 if { (eval echo configure:22087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22088 ac_cv_sizeof_short=$ac_size
22090 echo "configure: failed program was:" >&5
22091 cat conftest.$ac_ext >&5
22094 if test x$ac_cv_sizeof_short != x ; then break; fi
22099 if test x$ac_cv_sizeof_short = x ; then
22100 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22102 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22103 cat >> confdefs.h <<EOF
22104 #define SIZEOF_SHORT $ac_cv_sizeof_short
22108 echo $ac_n "checking size of int""... $ac_c" 1>&6
22109 echo "configure:22110: checking size of int" >&5
22110 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22111 echo $ac_n "(cached) $ac_c" 1>&6
22113 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22114 cat > conftest.$ac_ext <<EOF
22115 #line 22116 "configure"
22116 #include "confdefs.h"
22117 #include "confdefs.h"
22118 #include <stdlib.h>
22119 #include <sys/types.h>
22123 switch (0) case 0: case (sizeof (int) == $ac_size):;
22126 if { (eval echo configure:22127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22128 ac_cv_sizeof_int=$ac_size
22130 echo "configure: failed program was:" >&5
22131 cat conftest.$ac_ext >&5
22134 if test x$ac_cv_sizeof_int != x ; then break; fi
22139 if test x$ac_cv_sizeof_int = x ; then
22140 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22142 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22143 cat >> confdefs.h <<EOF
22144 #define SIZEOF_INT $ac_cv_sizeof_int
22148 echo $ac_n "checking size of long""... $ac_c" 1>&6
22149 echo "configure:22150: checking size of long" >&5
22150 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22151 echo $ac_n "(cached) $ac_c" 1>&6
22153 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22154 cat > conftest.$ac_ext <<EOF
22155 #line 22156 "configure"
22156 #include "confdefs.h"
22157 #include "confdefs.h"
22158 #include <stdlib.h>
22159 #include <sys/types.h>
22163 switch (0) case 0: case (sizeof (long) == $ac_size):;
22166 if { (eval echo configure:22167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22168 ac_cv_sizeof_long=$ac_size
22170 echo "configure: failed program was:" >&5
22171 cat conftest.$ac_ext >&5
22174 if test x$ac_cv_sizeof_long != x ; then break; fi
22179 if test x$ac_cv_sizeof_long = x ; then
22180 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22182 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22183 cat >> confdefs.h <<EOF
22184 #define SIZEOF_LONG $ac_cv_sizeof_long
22188 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22189 echo "configure:22190: checking size of wchar_t" >&5
22190 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22191 echo $ac_n "(cached) $ac_c" 1>&6
22193 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22194 cat > conftest.$ac_ext <<EOF
22195 #line 22196 "configure"
22196 #include "confdefs.h"
22197 #include "confdefs.h"
22198 #include <stdlib.h>
22199 #include <sys/types.h>
22203 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22206 if { (eval echo configure:22207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22208 ac_cv_sizeof_wchar_t=$ac_size
22210 echo "configure: failed program was:" >&5
22211 cat conftest.$ac_ext >&5
22214 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22219 if test x$ac_cv_sizeof_wchar_t = x ; then
22220 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22222 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22223 cat >> confdefs.h <<EOF
22224 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22229 if test "$ac_cv_sizeof_int" -lt 4 ; then
22230 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22232 cat >> confdefs.h <<\EOF
22233 #define LBER_INT_T long
22237 cat >> confdefs.h <<\EOF
22238 #define LBER_INT_T int
22243 cat >> confdefs.h <<\EOF
22244 #define LBER_LEN_T long
22247 cat >> confdefs.h <<\EOF
22248 #define LBER_SOCKET_T int
22251 cat >> confdefs.h <<\EOF
22252 #define LBER_TAG_T long
22256 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22257 echo "configure:22258: checking for 8-bit clean memcmp" >&5
22258 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22259 echo $ac_n "(cached) $ac_c" 1>&6
22261 if test "$cross_compiling" = yes; then
22262 ac_cv_func_memcmp_clean=no
22264 cat > conftest.$ac_ext <<EOF
22265 #line 22266 "configure"
22266 #include "confdefs.h"
22270 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22271 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22275 if { (eval echo configure:22276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22277 ac_cv_func_memcmp_clean=yes
22279 echo "configure: failed program was:" >&5
22280 cat conftest.$ac_ext >&5
22282 ac_cv_func_memcmp_clean=no
22289 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22290 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22292 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22293 echo "configure:22294: checking for strftime" >&5
22294 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22295 echo $ac_n "(cached) $ac_c" 1>&6
22297 cat > conftest.$ac_ext <<EOF
22298 #line 22299 "configure"
22299 #include "confdefs.h"
22300 /* System header to define __stub macros and hopefully few prototypes,
22301 which can conflict with char strftime(); below. */
22302 #include <assert.h>
22303 /* Override any gcc2 internal prototype to avoid an error. */
22304 /* We use char because int might match the return type of a gcc2
22305 builtin and then its argument prototype would still apply. */
22311 /* The GNU C library defines this for functions which it implements
22312 to always fail with ENOSYS. Some functions are actually named
22313 something starting with __ and the normal name is an alias. */
22314 #if defined (__stub_strftime) || defined (__stub___strftime)
22322 if { (eval echo configure:22323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22324 eval "ac_cv_func_strftime=yes"
22326 echo "configure: failed program was:" >&5
22327 cat conftest.$ac_ext >&5
22329 eval "ac_cv_func_strftime=no"
22334 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22335 echo "$ac_t""yes" 1>&6
22336 cat >> confdefs.h <<\EOF
22337 #define HAVE_STRFTIME 1
22341 echo "$ac_t""no" 1>&6
22342 # strftime is in -lintl on SCO UNIX.
22343 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22344 echo "configure:22345: checking for strftime in -lintl" >&5
22345 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22347 echo $ac_n "(cached) $ac_c" 1>&6
22349 ac_save_LIBS="$LIBS"
22350 LIBS="-lintl $LIBS"
22351 cat > conftest.$ac_ext <<EOF
22352 #line 22353 "configure"
22353 #include "confdefs.h"
22354 /* Override any gcc2 internal prototype to avoid an error. */
22355 /* We use char because int might match the return type of a gcc2
22356 builtin and then its argument prototype would still apply. */
22363 if { (eval echo configure:22364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22365 eval "ac_cv_lib_$ac_lib_var=yes"
22367 echo "configure: failed program was:" >&5
22368 cat conftest.$ac_ext >&5
22370 eval "ac_cv_lib_$ac_lib_var=no"
22373 LIBS="$ac_save_LIBS"
22376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22377 echo "$ac_t""yes" 1>&6
22378 cat >> confdefs.h <<\EOF
22379 #define HAVE_STRFTIME 1
22382 LIBS="-lintl $LIBS"
22384 echo "$ac_t""no" 1>&6
22390 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22391 echo "configure:22392: checking for inet_aton()" >&5
22392 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22393 echo $ac_n "(cached) $ac_c" 1>&6
22395 cat > conftest.$ac_ext <<EOF
22396 #line 22397 "configure"
22397 #include "confdefs.h"
22399 #ifdef HAVE_SYS_TYPES_H
22400 # include <sys/types.h>
22402 #ifdef HAVE_SYS_SOCKET_H
22403 # include <sys/socket.h>
22404 # ifdef HAVE_SYS_SELECT_H
22405 # include <sys/select.h>
22407 # include <netinet/in.h>
22408 # ifdef HAVE_ARPA_INET_H
22409 # include <arpa/inet.h>
22415 int rc = inet_aton( "255.255.255.255", &in );
22418 if { (eval echo configure:22419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22420 ol_cv_func_inet_aton=yes
22422 echo "configure: failed program was:" >&5
22423 cat conftest.$ac_ext >&5
22425 ol_cv_func_inet_aton=no
22430 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22431 if test $ol_cv_func_inet_aton != no; then
22432 cat >> confdefs.h <<\EOF
22433 #define HAVE_INET_ATON 1
22439 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22440 echo "configure:22441: checking for _spawnlp" >&5
22441 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22442 echo $ac_n "(cached) $ac_c" 1>&6
22444 cat > conftest.$ac_ext <<EOF
22445 #line 22446 "configure"
22446 #include "confdefs.h"
22447 /* System header to define __stub macros and hopefully few prototypes,
22448 which can conflict with char _spawnlp(); below. */
22449 #include <assert.h>
22450 /* Override any gcc2 internal prototype to avoid an error. */
22451 /* We use char because int might match the return type of a gcc2
22452 builtin and then its argument prototype would still apply. */
22458 /* The GNU C library defines this for functions which it implements
22459 to always fail with ENOSYS. Some functions are actually named
22460 something starting with __ and the normal name is an alias. */
22461 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22469 if { (eval echo configure:22470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22471 eval "ac_cv_func__spawnlp=yes"
22473 echo "configure: failed program was:" >&5
22474 cat conftest.$ac_ext >&5
22476 eval "ac_cv_func__spawnlp=no"
22481 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22482 echo "$ac_t""yes" 1>&6
22483 cat >> confdefs.h <<\EOF
22484 #define HAVE_SPAWNLP 1
22488 echo "$ac_t""no" 1>&6
22492 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22493 echo "configure:22494: checking for _snprintf" >&5
22494 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22495 echo $ac_n "(cached) $ac_c" 1>&6
22497 cat > conftest.$ac_ext <<EOF
22498 #line 22499 "configure"
22499 #include "confdefs.h"
22500 /* System header to define __stub macros and hopefully few prototypes,
22501 which can conflict with char _snprintf(); below. */
22502 #include <assert.h>
22503 /* Override any gcc2 internal prototype to avoid an error. */
22504 /* We use char because int might match the return type of a gcc2
22505 builtin and then its argument prototype would still apply. */
22511 /* The GNU C library defines this for functions which it implements
22512 to always fail with ENOSYS. Some functions are actually named
22513 something starting with __ and the normal name is an alias. */
22514 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22522 if { (eval echo configure:22523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22524 eval "ac_cv_func__snprintf=yes"
22526 echo "configure: failed program was:" >&5
22527 cat conftest.$ac_ext >&5
22529 eval "ac_cv_func__snprintf=no"
22534 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22535 echo "$ac_t""yes" 1>&6
22536 ac_cv_func_snprintf=yes
22537 cat >> confdefs.h <<\EOF
22538 #define snprintf _snprintf
22543 echo "$ac_t""no" 1>&6
22547 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22548 echo "configure:22549: checking for _vsnprintf" >&5
22549 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22550 echo $ac_n "(cached) $ac_c" 1>&6
22552 cat > conftest.$ac_ext <<EOF
22553 #line 22554 "configure"
22554 #include "confdefs.h"
22555 /* System header to define __stub macros and hopefully few prototypes,
22556 which can conflict with char _vsnprintf(); below. */
22557 #include <assert.h>
22558 /* Override any gcc2 internal prototype to avoid an error. */
22559 /* We use char because int might match the return type of a gcc2
22560 builtin and then its argument prototype would still apply. */
22566 /* The GNU C library defines this for functions which it implements
22567 to always fail with ENOSYS. Some functions are actually named
22568 something starting with __ and the normal name is an alias. */
22569 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22577 if { (eval echo configure:22578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22579 eval "ac_cv_func__vsnprintf=yes"
22581 echo "configure: failed program was:" >&5
22582 cat conftest.$ac_ext >&5
22584 eval "ac_cv_func__vsnprintf=no"
22589 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22590 echo "$ac_t""yes" 1>&6
22591 ac_cv_func_vsnprintf=yes
22592 cat >> confdefs.h <<\EOF
22593 #define vsnprintf _vsnprintf
22598 echo "$ac_t""no" 1>&6
22602 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22603 echo "configure:22604: checking for vprintf" >&5
22604 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22605 echo $ac_n "(cached) $ac_c" 1>&6
22607 cat > conftest.$ac_ext <<EOF
22608 #line 22609 "configure"
22609 #include "confdefs.h"
22610 /* System header to define __stub macros and hopefully few prototypes,
22611 which can conflict with char vprintf(); below. */
22612 #include <assert.h>
22613 /* Override any gcc2 internal prototype to avoid an error. */
22614 /* We use char because int might match the return type of a gcc2
22615 builtin and then its argument prototype would still apply. */
22621 /* The GNU C library defines this for functions which it implements
22622 to always fail with ENOSYS. Some functions are actually named
22623 something starting with __ and the normal name is an alias. */
22624 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22632 if { (eval echo configure:22633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22634 eval "ac_cv_func_vprintf=yes"
22636 echo "configure: failed program was:" >&5
22637 cat conftest.$ac_ext >&5
22639 eval "ac_cv_func_vprintf=no"
22644 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22645 echo "$ac_t""yes" 1>&6
22646 cat >> confdefs.h <<\EOF
22647 #define HAVE_VPRINTF 1
22651 echo "$ac_t""no" 1>&6
22654 if test "$ac_cv_func_vprintf" != yes; then
22655 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22656 echo "configure:22657: checking for _doprnt" >&5
22657 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22658 echo $ac_n "(cached) $ac_c" 1>&6
22660 cat > conftest.$ac_ext <<EOF
22661 #line 22662 "configure"
22662 #include "confdefs.h"
22663 /* System header to define __stub macros and hopefully few prototypes,
22664 which can conflict with char _doprnt(); below. */
22665 #include <assert.h>
22666 /* Override any gcc2 internal prototype to avoid an error. */
22667 /* We use char because int might match the return type of a gcc2
22668 builtin and then its argument prototype would still apply. */
22674 /* The GNU C library defines this for functions which it implements
22675 to always fail with ENOSYS. Some functions are actually named
22676 something starting with __ and the normal name is an alias. */
22677 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22685 if { (eval echo configure:22686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22687 eval "ac_cv_func__doprnt=yes"
22689 echo "configure: failed program was:" >&5
22690 cat conftest.$ac_ext >&5
22692 eval "ac_cv_func__doprnt=no"
22697 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22698 echo "$ac_t""yes" 1>&6
22699 cat >> confdefs.h <<\EOF
22700 #define HAVE_DOPRNT 1
22704 echo "$ac_t""no" 1>&6
22710 if test $ac_cv_func_vprintf = yes ; then
22711 for ac_func in snprintf vsnprintf
22713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22714 echo "configure:22715: checking for $ac_func" >&5
22715 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22716 echo $ac_n "(cached) $ac_c" 1>&6
22718 cat > conftest.$ac_ext <<EOF
22719 #line 22720 "configure"
22720 #include "confdefs.h"
22721 /* System header to define __stub macros and hopefully few prototypes,
22722 which can conflict with char $ac_func(); below. */
22723 #include <assert.h>
22724 /* Override any gcc2 internal prototype to avoid an error. */
22725 /* We use char because int might match the return type of a gcc2
22726 builtin and then its argument prototype would still apply. */
22732 /* The GNU C library defines this for functions which it implements
22733 to always fail with ENOSYS. Some functions are actually named
22734 something starting with __ and the normal name is an alias. */
22735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22743 if { (eval echo configure:22744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22745 eval "ac_cv_func_$ac_func=yes"
22747 echo "configure: failed program was:" >&5
22748 cat conftest.$ac_ext >&5
22750 eval "ac_cv_func_$ac_func=no"
22755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22756 echo "$ac_t""yes" 1>&6
22757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22758 cat >> confdefs.h <<EOF
22759 #define $ac_tr_func 1
22763 echo "$ac_t""no" 1>&6
22828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22829 echo "configure:22830: checking for $ac_func" >&5
22830 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22831 echo $ac_n "(cached) $ac_c" 1>&6
22833 cat > conftest.$ac_ext <<EOF
22834 #line 22835 "configure"
22835 #include "confdefs.h"
22836 /* System header to define __stub macros and hopefully few prototypes,
22837 which can conflict with char $ac_func(); below. */
22838 #include <assert.h>
22839 /* Override any gcc2 internal prototype to avoid an error. */
22840 /* We use char because int might match the return type of a gcc2
22841 builtin and then its argument prototype would still apply. */
22847 /* The GNU C library defines this for functions which it implements
22848 to always fail with ENOSYS. Some functions are actually named
22849 something starting with __ and the normal name is an alias. */
22850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22858 if { (eval echo configure:22859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22860 eval "ac_cv_func_$ac_func=yes"
22862 echo "configure: failed program was:" >&5
22863 cat conftest.$ac_ext >&5
22865 eval "ac_cv_func_$ac_func=no"
22870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22871 echo "$ac_t""yes" 1>&6
22872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22873 cat >> confdefs.h <<EOF
22874 #define $ac_tr_func 1
22878 echo "$ac_t""no" 1>&6
22883 for ac_func in getopt getpeereid
22885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22886 echo "configure:22887: checking for $ac_func" >&5
22887 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22888 echo $ac_n "(cached) $ac_c" 1>&6
22890 cat > conftest.$ac_ext <<EOF
22891 #line 22892 "configure"
22892 #include "confdefs.h"
22893 /* System header to define __stub macros and hopefully few prototypes,
22894 which can conflict with char $ac_func(); below. */
22895 #include <assert.h>
22896 /* Override any gcc2 internal prototype to avoid an error. */
22897 /* We use char because int might match the return type of a gcc2
22898 builtin and then its argument prototype would still apply. */
22904 /* The GNU C library defines this for functions which it implements
22905 to always fail with ENOSYS. Some functions are actually named
22906 something starting with __ and the normal name is an alias. */
22907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22915 if { (eval echo configure:22916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22917 eval "ac_cv_func_$ac_func=yes"
22919 echo "configure: failed program was:" >&5
22920 cat conftest.$ac_ext >&5
22922 eval "ac_cv_func_$ac_func=no"
22927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22928 echo "$ac_t""yes" 1>&6
22929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22930 cat >> confdefs.h <<EOF
22931 #define $ac_tr_func 1
22935 echo "$ac_t""no" 1>&6
22936 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22942 if test "$ac_cv_func_getopt" != yes; then
22943 LIBSRCS="$LIBSRCS getopt.c"
22945 if test "$ac_cv_func_getpeereid" != yes; then
22946 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22947 echo "configure:22948: checking for msg_accrights in msghdr" >&5
22948 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22949 echo $ac_n "(cached) $ac_c" 1>&6
22951 cat > conftest.$ac_ext <<EOF
22952 #line 22953 "configure"
22953 #include "confdefs.h"
22954 #include <sys/socket.h>
22956 struct msghdr m; m.msg_accrightslen=0
22959 if { (eval echo configure:22960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22961 ol_cv_msghdr_msg_accrights=yes
22963 echo "configure: failed program was:" >&5
22964 cat conftest.$ac_ext >&5
22966 ol_cv_msghdr_msg_accrights=no
22972 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22973 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22974 cat >> confdefs.h <<\EOF
22975 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22980 LIBSRCS="$LIBSRCS getpeereid.c"
22982 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22983 if test "$ac_cv_func_snprintf" != yes; then
22984 cat >> confdefs.h <<\EOF
22985 #define snprintf ber_pvt_snprintf
22989 if test "$ac_cv_func_vsnprintf" != yes; then
22990 cat >> confdefs.h <<\EOF
22991 #define vsnprintf ber_pvt_vsnprintf
22997 # Check Configuration
22998 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22999 echo "configure:23000: checking declaration of sys_errlist" >&5
23000 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23001 echo $ac_n "(cached) $ac_c" 1>&6
23004 cat > conftest.$ac_ext <<EOF
23005 #line 23006 "configure"
23006 #include "confdefs.h"
23009 #include <sys/types.h>
23012 #include <stdlib.h>
23015 char *c = (char *) *sys_errlist
23018 if { (eval echo configure:23019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23020 ol_cv_dcl_sys_errlist=yes
23021 ol_cv_have_sys_errlist=yes
23023 echo "configure: failed program was:" >&5
23024 cat conftest.$ac_ext >&5
23026 ol_cv_dcl_sys_errlist=no
23031 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23033 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23034 if test $ol_cv_dcl_sys_errlist = no ; then
23035 cat >> confdefs.h <<\EOF
23036 #define DECL_SYS_ERRLIST 1
23040 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23041 echo "configure:23042: checking existence of sys_errlist" >&5
23042 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23043 echo $ac_n "(cached) $ac_c" 1>&6
23046 cat > conftest.$ac_ext <<EOF
23047 #line 23048 "configure"
23048 #include "confdefs.h"
23051 char *c = (char *) *sys_errlist
23054 if { (eval echo configure:23055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23056 ol_cv_have_sys_errlist=yes
23058 echo "configure: failed program was:" >&5
23059 cat conftest.$ac_ext >&5
23061 ol_cv_have_sys_errlist=no
23066 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23068 if test $ol_cv_have_sys_errlist = yes ; then
23069 cat >> confdefs.h <<\EOF
23070 #define HAVE_SYS_ERRLIST 1
23077 if test "$ol_enable_slapi" != no ; then
23078 for ac_hdr in ltdl.h
23080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23082 echo "configure:23083: checking for $ac_hdr" >&5
23083 if eval "test \"\${ac_cv_header_$ac_safe+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"
23091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23092 { (eval echo configure:23093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23094 if test -z "$ac_err"; then
23096 eval "ac_cv_header_$ac_safe=yes"
23099 echo "configure: failed program was:" >&5
23100 cat conftest.$ac_ext >&5
23102 eval "ac_cv_header_$ac_safe=no"
23106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23107 echo "$ac_t""yes" 1>&6
23108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23109 cat >> confdefs.h <<EOF
23110 #define $ac_tr_hdr 1
23114 echo "$ac_t""no" 1>&6
23119 if test $ac_cv_header_ltdl_h != yes ; then
23120 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23122 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23123 echo "configure:23124: checking for lt_dlinit in -lltdl" >&5
23124 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23125 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23126 echo $ac_n "(cached) $ac_c" 1>&6
23128 ac_save_LIBS="$LIBS"
23129 LIBS="-lltdl $LIBS"
23130 cat > conftest.$ac_ext <<EOF
23131 #line 23132 "configure"
23132 #include "confdefs.h"
23133 /* Override any gcc2 internal prototype to avoid an error. */
23134 /* We use char because int might match the return type of a gcc2
23135 builtin and then its argument prototype would still apply. */
23142 if { (eval echo configure:23143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23144 eval "ac_cv_lib_$ac_lib_var=yes"
23146 echo "configure: failed program was:" >&5
23147 cat conftest.$ac_ext >&5
23149 eval "ac_cv_lib_$ac_lib_var=no"
23152 LIBS="$ac_save_LIBS"
23155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23156 echo "$ac_t""yes" 1>&6
23159 LIBSLAPI=libslapi.a
23160 LIBSLAPITOOLS=../libslapi.a
23161 cat >> confdefs.h <<\EOF
23162 #define HAVE_LIBLTDL 1
23167 echo "$ac_t""no" 1>&6
23168 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23172 cat >> confdefs.h <<\EOF
23173 #define LDAP_SLAPI 1
23178 if test "$ol_enable_debug" != no ; then
23179 cat >> confdefs.h <<\EOF
23180 #define LDAP_DEBUG 1
23184 if test "$ol_enable_syslog" = yes ; then
23185 cat >> confdefs.h <<\EOF
23186 #define LDAP_SYSLOG 1
23190 if test "$ol_link_kbind" != no ; then
23191 cat >> confdefs.h <<\EOF
23192 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23196 if test "$ol_enable_proctitle" != no ; then
23197 cat >> confdefs.h <<\EOF
23198 #define LDAP_PROCTITLE 1
23202 if test "$ol_enable_referrals" != no ; then
23203 cat >> confdefs.h <<\EOF
23204 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23208 if test "$ol_enable_local" != no; then
23209 cat >> confdefs.h <<\EOF
23210 #define LDAP_PF_LOCAL 1
23214 if test "$ol_link_ipv6" != no; then
23215 cat >> confdefs.h <<\EOF
23216 #define LDAP_PF_INET6 1
23220 if test "$ol_enable_cleartext" != no ; then
23221 cat >> confdefs.h <<\EOF
23222 #define SLAPD_CLEARTEXT 1
23226 if test "$ol_enable_crypt" != no ; then
23227 cat >> confdefs.h <<\EOF
23228 #define SLAPD_CRYPT 1
23232 if test "$ol_link_spasswd" != no ; then
23233 cat >> confdefs.h <<\EOF
23234 #define SLAPD_SPASSWD 1
23238 if test "$ol_enable_multimaster" != no ; then
23239 cat >> confdefs.h <<\EOF
23240 #define SLAPD_MULTIMASTER 1
23244 if test "$ol_enable_rlookups" != no ; then
23245 cat >> confdefs.h <<\EOF
23246 #define SLAPD_RLOOKUPS 1
23250 if test "$ol_enable_aci" != no ; then
23251 cat >> confdefs.h <<\EOF
23252 #define SLAPD_ACI_ENABLED 1
23257 if test "$ol_link_modules" != no ; then
23258 cat >> confdefs.h <<\EOF
23259 #define SLAPD_MODULES 1
23263 SLAPD_MODULES_LDFLAGS="-dlopen self"
23266 cat >> confdefs.h <<\EOF
23267 #define SLAPD_MOD_STATIC 1
23270 cat >> confdefs.h <<\EOF
23271 #define SLAPD_MOD_DYNAMIC 2
23275 if test "$ol_enable_bdb" != no ; then
23277 BUILD_BDB=$ol_enable_bdb
23278 if test "$ol_enable_bdb" = mod ; then
23279 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23280 MFLAG=SLAPD_MOD_DYNAMIC
23282 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23283 MFLAG=SLAPD_MOD_STATIC
23285 cat >> confdefs.h <<EOF
23286 #define SLAPD_BDB $MFLAG
23291 if test "$ol_enable_dnssrv" != no ; then
23293 BUILD_DNSSRV=$ol_enable_dnssrv
23294 if test "$ol_enable_dnssrv" = mod ; then
23295 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23296 MFLAG=SLAPD_MOD_DYNAMIC
23298 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23299 MFLAG=SLAPD_MOD_STATIC
23301 cat >> confdefs.h <<EOF
23302 #define SLAPD_DNSSRV $MFLAG
23307 if test "$ol_enable_hdb" != no ; then
23309 BUILD_HDB=$ol_enable_hdb
23310 if test "$ol_enable_hdb" = mod ; then
23311 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23312 MFLAG=SLAPD_MOD_DYNAMIC
23314 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23315 MFLAG=SLAPD_MOD_STATIC
23317 cat >> confdefs.h <<EOF
23318 #define SLAPD_HDB $MFLAG
23323 if test "$ol_enable_ldap" != no ; then
23325 BUILD_LDAP=$ol_enable_ldap
23326 if test "$ol_enable_ldap" = mod ; then
23327 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23328 MFLAG=SLAPD_MOD_DYNAMIC
23330 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23331 MFLAG=SLAPD_MOD_STATIC
23333 cat >> confdefs.h <<EOF
23334 #define SLAPD_LDAP $MFLAG
23339 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23341 BUILD_LDBM=$ol_enable_ldbm
23342 if test "$ol_enable_ldbm" = mod ; then
23343 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23344 MFLAG=SLAPD_MOD_DYNAMIC
23346 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23347 MFLAG=SLAPD_MOD_STATIC
23349 cat >> confdefs.h <<EOF
23350 #define SLAPD_LDBM $MFLAG
23355 if test "$ol_enable_meta" != no ; then
23357 BUILD_META=$ol_enable_meta
23359 if test "$ol_enable_meta" = mod ; then
23360 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23361 MFLAG=SLAPD_MOD_DYNAMIC
23363 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23364 MFLAG=SLAPD_MOD_STATIC
23366 cat >> confdefs.h <<EOF
23367 #define SLAPD_META $MFLAG
23372 if test "$ol_enable_monitor" != no ; then
23374 BUILD_MONITOR=$ol_enable_monitor
23375 if test "$ol_enable_monitor" = mod ; then
23376 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23377 MFLAG=SLAPD_MOD_DYNAMIC
23379 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23380 MFLAG=SLAPD_MOD_STATIC
23382 cat >> confdefs.h <<EOF
23383 #define SLAPD_MONITOR $MFLAG
23388 if test "$ol_enable_null" != no ; then
23390 BUILD_NULL=$ol_enable_null
23391 if test "$ol_enable_null" = mod ; then
23392 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23393 MFLAG=SLAPD_MOD_DYNAMIC
23395 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23396 MFLAG=SLAPD_MOD_STATIC
23398 cat >> confdefs.h <<EOF
23399 #define SLAPD_NULL $MFLAG
23404 if test "$ol_enable_passwd" != no ; then
23406 BUILD_PASSWD=$ol_enable_passwd
23407 if test "$ol_enable_passwd" = mod ; then
23408 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23409 MFLAG=SLAPD_MOD_DYNAMIC
23411 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23412 MFLAG=SLAPD_MOD_STATIC
23414 cat >> confdefs.h <<EOF
23415 #define SLAPD_PASSWD $MFLAG
23420 if test "$ol_link_perl" != no ; then
23422 BUILD_PERL=$ol_enable_perl
23423 if test "$ol_enable_perl" = mod ; then
23424 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23425 MFLAG=SLAPD_MOD_DYNAMIC
23427 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23428 MFLAG=SLAPD_MOD_STATIC
23430 cat >> confdefs.h <<EOF
23431 #define SLAPD_PERL $MFLAG
23436 if test "$ol_enable_shell" != no ; then
23437 if test "$ol_link_thread" != no ; then
23438 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23441 BUILD_SHELL=$ol_enable_shell
23442 if test "$ol_enable_shell" = mod ; then
23443 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23444 MFLAG=SLAPD_MOD_DYNAMIC
23446 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23447 MFLAG=SLAPD_MOD_STATIC
23449 cat >> confdefs.h <<EOF
23450 #define SLAPD_SHELL $MFLAG
23455 if test "$ol_link_sql" != no ; then
23457 BUILD_SQL=$ol_enable_sql
23458 if test "$ol_enable_sql" = mod; then
23459 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23460 MFLAG=SLAPD_MOD_DYNAMIC
23462 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23463 MFLAG=SLAPD_MOD_STATIC
23465 cat >> confdefs.h <<EOF
23466 #define SLAPD_SQL $MFLAG
23471 if test "$ol_enable_dyngroup" != no ; then
23472 BUILD_DYNGROUP=$ol_enable_dyngroup
23473 if test "$ol_enable_dyngroup" = mod ; then
23474 MFLAG=SLAPD_MOD_DYNAMIC
23475 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23477 MFLAG=SLAPD_MOD_STATIC
23479 cat >> confdefs.h <<EOF
23480 #define SLAPD_OVER_DYNGROUP $MFLAG
23485 if test "$ol_enable_proxycache" != no ; then
23486 BUILD_PROXYCACHE=$ol_enable_proxycache
23487 if test "$ol_enable_proxycache" = mod ; then
23488 MFLAG=SLAPD_MOD_DYNAMIC
23489 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23491 MFLAG=SLAPD_MOD_STATIC
23493 cat >> confdefs.h <<EOF
23494 #define SLAPD_OVER_PROXYCACHE $MFLAG
23499 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23500 $BUILD_SLAPD = yes ; then
23504 if test "$ol_enable_rewrite" != no ; then
23505 cat >> confdefs.h <<\EOF
23506 #define ENABLE_REWRITE 1
23512 if test "$ol_enable_slapi" != no ; then
23513 cat >> confdefs.h <<\EOF
23514 #define ENABLE_SLAPI 1
23518 SLAPD_SLAPI_DEPEND=libslapi.a
23523 if test "$ac_cv_mingw32" = yes ; then
23525 SLAPD_MODULES_LDFLAGS=
23530 if test -z "$SLAPD_STATIC_BACKENDS"; then
23531 SLAPD_NO_STATIC='#'
23596 # Check whether --with-xxinstall or --without-xxinstall was given.
23597 if test "${with_xxinstall+set}" = set; then
23598 withval="$with_xxinstall"
23606 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23609 # Let make expand exec_prefix.
23610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23612 # Any assignment to VPATH causes Sun make to only execute
23613 # the first set of double-colon rules, so remove it if not needed.
23614 # If there is a colon in the path, we need to keep it.
23615 if test "x$srcdir" = x.; then
23616 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23619 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23621 DEFS=-DHAVE_CONFIG_H
23623 # Without the "./", some shells look in PATH for config.status.
23624 : ${CONFIG_STATUS=./config.status}
23626 echo creating $CONFIG_STATUS
23627 rm -f $CONFIG_STATUS
23628 cat > $CONFIG_STATUS <<EOF
23630 # Generated automatically by configure.
23631 # Run this file to recreate the current configuration.
23632 # This directory was configured as follows,
23633 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23635 # $0 $ac_configure_args
23637 # Compiler output produced by configure, useful for debugging
23638 # configure, is in ./config.log if it exists.
23640 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23643 case "\$ac_option" in
23644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23645 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23646 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23647 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23648 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23650 -help | --help | --hel | --he | --h)
23651 echo "\$ac_cs_usage"; exit 0 ;;
23652 *) echo "\$ac_cs_usage"; exit 1 ;;
23656 ac_given_srcdir=$srcdir
23657 ac_given_INSTALL="$INSTALL"
23659 trap 'rm -fr `echo "\
23660 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23661 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23662 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23663 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23664 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23665 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23666 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23667 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23668 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23669 include/Makefile:build/top.mk:include/Makefile.in \
23670 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23671 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23672 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23673 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23674 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23675 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23676 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23677 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23678 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23679 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23680 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23681 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23682 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23683 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23684 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23685 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23686 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23687 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23688 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23689 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23690 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23691 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23692 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23693 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23694 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23695 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23697 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23698 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23700 cat >> $CONFIG_STATUS <<EOF
23702 # Protect against being on the right side of a sed subst in config.status.
23703 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23704 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23708 s%@CFLAGS@%$CFLAGS%g
23709 s%@CPPFLAGS@%$CPPFLAGS%g
23710 s%@CXXFLAGS@%$CXXFLAGS%g
23711 s%@FFLAGS@%$FFLAGS%g
23713 s%@LDFLAGS@%$LDFLAGS%g
23715 s%@exec_prefix@%$exec_prefix%g
23716 s%@prefix@%$prefix%g
23717 s%@program_transform_name@%$program_transform_name%g
23718 s%@bindir@%$bindir%g
23719 s%@sbindir@%$sbindir%g
23720 s%@libexecdir@%$libexecdir%g
23721 s%@datadir@%$datadir%g
23722 s%@sysconfdir@%$sysconfdir%g
23723 s%@sharedstatedir@%$sharedstatedir%g
23724 s%@localstatedir@%$localstatedir%g
23725 s%@libdir@%$libdir%g
23726 s%@includedir@%$includedir%g
23727 s%@oldincludedir@%$oldincludedir%g
23728 s%@infodir@%$infodir%g
23729 s%@mandir@%$mandir%g
23731 s%@host_alias@%$host_alias%g
23732 s%@host_cpu@%$host_cpu%g
23733 s%@host_vendor@%$host_vendor%g
23734 s%@host_os@%$host_os%g
23735 s%@target@%$target%g
23736 s%@target_alias@%$target_alias%g
23737 s%@target_cpu@%$target_cpu%g
23738 s%@target_vendor@%$target_vendor%g
23739 s%@target_os@%$target_os%g
23741 s%@build_alias@%$build_alias%g
23742 s%@build_cpu@%$build_cpu%g
23743 s%@build_vendor@%$build_vendor%g
23744 s%@build_os@%$build_os%g
23745 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23746 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23747 s%@INSTALL_DATA@%$INSTALL_DATA%g
23748 s%@PACKAGE@%$PACKAGE%g
23749 s%@VERSION@%$VERSION%g
23750 s%@ACLOCAL@%$ACLOCAL%g
23751 s%@AUTOCONF@%$AUTOCONF%g
23752 s%@AUTOMAKE@%$AUTOMAKE%g
23753 s%@AUTOHEADER@%$AUTOHEADER%g
23754 s%@MAKEINFO@%$MAKEINFO%g
23755 s%@install_sh@%$install_sh%g
23758 s%@AMTARFLAGS@%$AMTARFLAGS%g
23759 s%@SET_MAKE@%$SET_MAKE%g
23760 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
23761 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23762 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23763 s%@top_builddir@%$top_builddir%g
23764 s%@ldap_subdir@%$ldap_subdir%g
23768 s%@OBJEXT@%$OBJEXT%g
23769 s%@EXEEXT@%$EXEEXT%g
23771 s%@RANLIB@%$RANLIB%g
23773 s%@DLLTOOL@%$DLLTOOL%g
23775 s%@OBJDUMP@%$OBJDUMP%g
23777 s%@LIBTOOL@%$LIBTOOL%g
23779 s%@PERLBIN@%$PERLBIN%g
23780 s%@OL_MKDEP@%$OL_MKDEP%g
23781 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23782 s%@LTSTATIC@%$LTSTATIC%g
23783 s%@LIBOBJS@%$LIBOBJS%g
23784 s%@LIBSRCS@%$LIBSRCS%g
23786 s%@WITH_TLS@%$WITH_TLS%g
23787 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23788 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23789 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23790 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23791 s%@BUILD_BDB@%$BUILD_BDB%g
23792 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23793 s%@BUILD_HDB@%$BUILD_HDB%g
23794 s%@BUILD_LDAP@%$BUILD_LDAP%g
23795 s%@BUILD_LDBM@%$BUILD_LDBM%g
23796 s%@BUILD_META@%$BUILD_META%g
23797 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23798 s%@BUILD_NULL@%$BUILD_NULL%g
23799 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23800 s%@BUILD_PERL@%$BUILD_PERL%g
23801 s%@BUILD_SHELL@%$BUILD_SHELL%g
23802 s%@BUILD_SQL@%$BUILD_SQL%g
23803 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
23804 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
23805 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23806 s%@LDAP_LIBS@%$LDAP_LIBS%g
23807 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23808 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23809 s%@LDBM_LIBS@%$LDBM_LIBS%g
23810 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23811 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23812 s%@WRAP_LIBS@%$WRAP_LIBS%g
23813 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23814 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23815 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23816 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23817 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23818 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
23819 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23820 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23821 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23822 s%@KRB4_LIBS@%$KRB4_LIBS%g
23823 s%@KRB5_LIBS@%$KRB5_LIBS%g
23824 s%@SASL_LIBS@%$SASL_LIBS%g
23825 s%@TLS_LIBS@%$TLS_LIBS%g
23826 s%@MODULES_LIBS@%$MODULES_LIBS%g
23827 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23828 s%@LIBSLAPI@%$LIBSLAPI%g
23829 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23830 s%@AUTH_LIBS@%$AUTH_LIBS%g
23831 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23832 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23833 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23834 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23839 cat >> $CONFIG_STATUS <<\EOF
23841 # Split the substitutions into bite-sized pieces for seds with
23842 # small command number limits, like on Digital OSF/1 and HP-UX.
23843 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23844 ac_file=1 # Number of current file.
23845 ac_beg=1 # First line for current file.
23846 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23849 while $ac_more_lines; do
23850 if test $ac_beg -gt 1; then
23851 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23853 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23855 if test ! -s conftest.s$ac_file; then
23856 ac_more_lines=false
23857 rm -f conftest.s$ac_file
23859 if test -z "$ac_sed_cmds"; then
23860 ac_sed_cmds="sed -f conftest.s$ac_file"
23862 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23864 ac_file=`expr $ac_file + 1`
23866 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23869 if test -z "$ac_sed_cmds"; then
23874 cat >> $CONFIG_STATUS <<EOF
23876 CONFIG_FILES=\${CONFIG_FILES-"\
23877 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23878 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23879 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23880 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23881 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23882 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23883 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23884 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23885 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23886 include/Makefile:build/top.mk:include/Makefile.in \
23887 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23888 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23889 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23890 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23891 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23892 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23893 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23894 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23895 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23896 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23897 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23898 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23899 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23900 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23901 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23902 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23903 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23904 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23905 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23906 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23907 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23908 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23909 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23910 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23911 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23912 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23914 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23917 cat >> $CONFIG_STATUS <<\EOF
23918 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23921 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23922 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23923 *) ac_file_in="${ac_file}.in" ;;
23926 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23928 # Remove last slash and all that follows it. Not all systems have dirname.
23929 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23930 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23931 # The file is in a subdirectory.
23932 test ! -d "$ac_dir" && mkdir "$ac_dir"
23933 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23934 # A "../" for each directory in $ac_dir_suffix.
23935 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23937 ac_dir_suffix= ac_dots=
23940 case "$ac_given_srcdir" in
23942 if test -z "$ac_dots"; then top_srcdir=.
23943 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23944 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23945 *) # Relative path.
23946 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23947 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23950 case "$ac_given_INSTALL" in
23951 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23952 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23955 echo creating "$ac_file"
23957 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23959 *[Mm]akefile*) ac_comsub="1i\\
23960 # $configure_input" ;;
23964 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23966 s%@configure_input@%$configure_input%g
23967 s%@srcdir@%$srcdir%g
23968 s%@top_srcdir@%$top_srcdir%g
23969 s%@INSTALL@%$INSTALL%g
23970 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23977 # ac_d sets the value in "#define NAME VALUE" lines.
23978 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23979 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23982 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23983 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23984 ac_uB='\([ ]\)%\1#\2define\3'
23987 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23988 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23989 ac_eB='$%\1#\2define\3'
23993 if test "${CONFIG_HEADERS+set}" != set; then
23995 cat >> $CONFIG_STATUS <<EOF
23996 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23998 cat >> $CONFIG_STATUS <<\EOF
24000 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24003 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24004 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24005 *) ac_file_in="${ac_file}.in" ;;
24008 echo creating $ac_file
24010 rm -f conftest.frag conftest.in conftest.out
24011 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24012 cat $ac_file_inputs > conftest.in
24016 # Transform confdefs.h into a sed script conftest.vals that substitutes
24017 # the proper values into config.h.in to produce config.h. And first:
24018 # Protect against being on the right side of a sed subst in config.status.
24019 # Protect against being in an unquoted here document in config.status.
24020 rm -f conftest.vals
24021 cat > conftest.hdr <<\EOF
24024 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24028 sed -n -f conftest.hdr confdefs.h > conftest.vals
24031 # This sed command replaces #undef with comments. This is necessary, for
24032 # example, in the case of _POSIX_SOURCE, which is predefined and required
24033 # on some systems where configure will not decide to define it.
24034 cat >> conftest.vals <<\EOF
24035 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24038 # Break up conftest.vals because some shells have a limit on
24039 # the size of here documents, and old seds have small limits too.
24041 rm -f conftest.tail
24044 ac_lines=`grep -c . conftest.vals`
24045 # grep -c gives empty output for an empty file on some AIX systems.
24046 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24047 # Write a limited-size here document to conftest.frag.
24048 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24049 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24051 sed -f conftest.frag conftest.in > conftest.out
24053 mv conftest.out conftest.in
24054 ' >> $CONFIG_STATUS
24055 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24056 rm -f conftest.vals
24057 mv conftest.tail conftest.vals
24059 rm -f conftest.vals
24061 cat >> $CONFIG_STATUS <<\EOF
24062 rm -f conftest.frag conftest.h
24063 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24064 cat conftest.in >> conftest.h
24066 if cmp -s $ac_file conftest.h 2>/dev/null; then
24067 echo "$ac_file is unchanged"
24070 # Remove last slash and all that follows it. Not all systems have dirname.
24071 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24072 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24073 # The file is in a subdirectory.
24074 test ! -d "$ac_dir" && mkdir "$ac_dir"
24077 mv conftest.h $ac_file
24082 cat >> $CONFIG_STATUS <<EOF
24085 cat >> $CONFIG_STATUS <<\EOF
24089 echo Please run \"make depend\" to build dependencies
24093 chmod +x $CONFIG_STATUS
24094 rm -fr confdefs* $ac_clean_files
24095 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1