3 # from OpenLDAP: pkg/ldap/configure.in,v 1.408.2.25 2003/01/03 17:59:16 kurt Exp
5 # Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-ipv6 enable IPv6 support [auto]"
43 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
45 --enable-x-compile enable cross compiling [no]"
47 --with-cyrus-sasl with Cyrus SASL support [auto]"
49 --with-fetch with freeBSD fetch URL support [auto]"
51 --with-kerberos with Kerberos support [auto]"
53 --with-readline with readline support [auto]"
55 --with-threads with threads [auto]"
57 --with-tls with TLS/SSL support [auto]"
59 --with-yielding-select with implicitly yielding select [auto]"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd [yes]"
66 --enable-aci enable per-object ACIs (experimental) [no]"
68 --enable-cleartext enable cleartext passwords [yes]"
70 --enable-crypt enable crypt(3) passwords [no]"
72 --enable-dynamic enable linking built binaries with dynamic libs [no]"
74 --enable-kpasswd enable Kerberos password verification [no]"
76 --enable-lmpasswd enable LAN Manager passwords [no]"
78 --enable-spasswd enable (Cyrus) SASL password verification [no]"
80 --enable-modules enable dynamic module support [no]"
82 --enable-phonetic enable phonetic/soundex [no]"
84 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
86 --enable-rlookups enable reverse lookups of client hostnames [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [yes]"
94 --with-bdb-module module type static|dynamic [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type static|dynamic [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type static|dynamic [static]"
104 --enable-ldbm enable ldbm backend [no]"
106 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
108 --with-ldbm-module module type static|dynamic [static]"
110 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type static|dynamic [static]"
116 --enable-monitor enable monitor backend [no]"
118 --with-monitor-module module type static|dynamic [static]"
120 --enable-null enable null backend [no]"
122 --with-null-module module type static|dynamic [static]"
124 --enable-passwd enable passwd backend [no]"
126 --with-passwd-module module type static|dynamic [static]"
128 --enable-perl enable perl backend [no]"
130 --with-perl-module module type static|dynamic [static]"
132 --enable-shell enable shell backend [no]"
134 --with-shell-module module type static|dynamic [static]"
136 --enable-sql enable sql backend [no]"
138 --with-sql-module module type static|dynamic [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
146 Library Generation & Linking Options"
148 --enable-static[=PKGS] build static libraries [default=yes]"
150 --enable-shared[=PKGS] build shared libraries [default=yes]"
152 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
154 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
156 # Find the correct PATH separator. Usually this is `:', but
157 # DJGPP uses `;' like DOS.
158 if test "X${PATH_SEPARATOR+set}" != Xset; then
159 UNAME=${UNAME-`uname 2>/dev/null`}
161 *-DOS) lt_cv_sys_path_separator=';' ;;
162 *) lt_cv_sys_path_separator=':' ;;
164 PATH_SEPARATOR=$lt_cv_sys_path_separator
168 # Check that we are running under the correct shell.
169 SHELL=${CONFIG_SHELL-/bin/sh}
173 # Remove one level of quotation (which was required for Make).
174 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
179 if test "X$1" = X--no-reexec; then
180 # Discard the --no-reexec flag, and continue.
182 elif test "X$1" = X--fallback-echo; then
183 # Avoid inline document here, it may be left over
185 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
186 # Yippee, $echo works!
189 # Restart under the correct shell.
190 exec $SHELL "$0" --no-reexec ${1+"$@"}
193 if test "X$1" = X--fallback-echo; then
194 # used as fallback echo
202 # The HP-UX ksh and POSIX shell print the target directory to stdout
204 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
206 if test -z "$ECHO"; then
207 if test "X${echo_test_string+set}" != Xset; then
208 # find a string as large as possible, as long as the shell can cope with it
209 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
210 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
211 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
212 echo_test_string="`eval $cmd`" &&
213 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
220 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
221 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
222 test "X$echo_testing_string" = "X$echo_test_string"; then
225 # The Solaris, AIX, and Digital Unix default echo programs unquote
226 # backslashes. This makes it impossible to quote backslashes using
227 # echo "$something" | sed 's/\\/\\\\/g'
229 # So, first we look for a working echo in the user's PATH.
231 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
232 for dir in $PATH /usr/ucb; do
233 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
234 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
235 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
236 test "X$echo_testing_string" = "X$echo_test_string"; then
243 if test "X$echo" = Xecho; then
244 # We didn't find a better echo, so look for alternatives.
245 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
246 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
247 test "X$echo_testing_string" = "X$echo_test_string"; then
248 # This shell has a builtin print -r that does the trick.
250 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
251 test "X$CONFIG_SHELL" != X/bin/ksh; then
252 # If we have ksh, try running configure again with it.
253 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
254 export ORIGINAL_CONFIG_SHELL
255 CONFIG_SHELL=/bin/ksh
257 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
261 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
262 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
263 test "X$echo_testing_string" = "X$echo_test_string"; then
266 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
267 test "X$echo_testing_string" = 'X\t' &&
268 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
270 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
272 SHELL="$CONFIG_SHELL"
274 echo="$CONFIG_SHELL $0 --fallback-echo"
275 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
276 test "X$echo_testing_string" = 'X\t' &&
277 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
278 test "X$echo_testing_string" = "X$echo_test_string"; then
279 echo="$CONFIG_SHELL $0 --fallback-echo"
281 # maybe with a smaller string...
284 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
285 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
292 if test "$prev" != 'sed 50q "$0"'; then
293 echo_test_string=`eval $prev`
294 export echo_test_string
295 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
297 # Oops. We lost completely, so just stick with echo.
306 # Copy echo and quote the copy suitably for passing to libtool from
307 # the Makefile, instead of quoting the original, which is used later.
309 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
310 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
315 --disable-libtool-lock avoid locking (might break parallel builds)"
317 --with-pic try to use only PIC/non-PIC objects [default=use both]"
320 See INSTALL file for further details."
322 # Initialize some variables set by options.
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
326 cache_file=./config.cache
335 program_transform_name=s,x,x,
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
356 # Initialize some other variables.
359 SHELL=${CONFIG_SHELL-/bin/sh}
360 # Maximum number of lines to put in a shell here document.
367 # If the previous option needs an argument, assign it.
368 if test -n "$ac_prev"; then
369 eval "$ac_prev=\$ac_option"
375 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
379 # Accept the important Cygnus configure options, so we can diagnose typos.
383 -bindir | --bindir | --bindi | --bind | --bin | --bi)
385 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
386 bindir="$ac_optarg" ;;
388 -build | --build | --buil | --bui | --bu)
390 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
391 build="$ac_optarg" ;;
393 -cache-file | --cache-file | --cache-fil | --cache-fi \
394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
395 ac_prev=cache_file ;;
396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
398 cache_file="$ac_optarg" ;;
400 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
402 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
404 datadir="$ac_optarg" ;;
406 -disable-* | --disable-*)
407 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
412 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
413 eval "enable_${ac_feature}=no" ;;
415 -enable-* | --enable-*)
416 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
421 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
426 eval "enable_${ac_feature}='$ac_optarg'" ;;
428 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
429 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
430 | --exec | --exe | --ex)
431 ac_prev=exec_prefix ;;
432 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
433 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
434 | --exec=* | --exe=* | --ex=*)
435 exec_prefix="$ac_optarg" ;;
437 -gas | --gas | --ga | --g)
438 # Obsolete; use --with-gas.
441 -help | --help | --hel | --he)
442 # Omit some internal or obsolete options to make the list less imposing.
443 # This message is too long to be a string in the A/UX 3.1 sh.
445 Usage: configure [options] [host]
446 Options: [defaults in brackets after descriptions]
448 --cache-file=FILE cache test results in FILE
449 --help print this message
450 --no-create do not create output files
451 --quiet, --silent do not print \`checking...' messages
452 --version print the version of autoconf that created configure
453 Directory and file names:
454 --prefix=PREFIX install architecture-independent files in PREFIX
456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
458 --bindir=DIR user executables in DIR [EPREFIX/bin]
459 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
460 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
461 --datadir=DIR read-only architecture-independent data in DIR
463 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
464 --sharedstatedir=DIR modifiable architecture-independent data in DIR
466 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
467 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
468 --includedir=DIR C header files in DIR [PREFIX/include]
469 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
470 --infodir=DIR info documentation in DIR [PREFIX/info]
471 --mandir=DIR man documentation in DIR [PREFIX/man]
472 --srcdir=DIR find the sources in DIR [configure dir or ..]
473 --program-prefix=PREFIX prepend PREFIX to installed program names
474 --program-suffix=SUFFIX append SUFFIX to installed program names
475 --program-transform-name=PROGRAM
476 run sed PROGRAM on installed program names
480 --build=BUILD configure for building on BUILD [BUILD=HOST]
481 --host=HOST configure for HOST [guessed]
482 --target=TARGET configure for TARGET [TARGET=HOST]
483 Features and packages:
484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
488 --x-includes=DIR X include files are in DIR
489 --x-libraries=DIR X library files are in DIR
491 if test -n "$ac_help"; then
492 echo "--enable and --with options recognized:$ac_help"
496 -host | --host | --hos | --ho)
498 -host=* | --host=* | --hos=* | --ho=*)
501 -includedir | --includedir | --includedi | --included | --include \
502 | --includ | --inclu | --incl | --inc)
503 ac_prev=includedir ;;
504 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
505 | --includ=* | --inclu=* | --incl=* | --inc=*)
506 includedir="$ac_optarg" ;;
508 -infodir | --infodir | --infodi | --infod | --info | --inf)
510 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
511 infodir="$ac_optarg" ;;
513 -libdir | --libdir | --libdi | --libd)
515 -libdir=* | --libdir=* | --libdi=* | --libd=*)
516 libdir="$ac_optarg" ;;
518 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
519 | --libexe | --libex | --libe)
520 ac_prev=libexecdir ;;
521 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
522 | --libexe=* | --libex=* | --libe=*)
523 libexecdir="$ac_optarg" ;;
525 -localstatedir | --localstatedir | --localstatedi | --localstated \
526 | --localstate | --localstat | --localsta | --localst \
527 | --locals | --local | --loca | --loc | --lo)
528 ac_prev=localstatedir ;;
529 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
530 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
531 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
532 localstatedir="$ac_optarg" ;;
534 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
536 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
537 mandir="$ac_optarg" ;;
540 # Obsolete; use --without-fp.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
547 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
548 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
551 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
552 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
553 | --oldin | --oldi | --old | --ol | --o)
554 ac_prev=oldincludedir ;;
555 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
556 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
557 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
558 oldincludedir="$ac_optarg" ;;
560 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
562 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
563 prefix="$ac_optarg" ;;
565 -program-prefix | --program-prefix | --program-prefi | --program-pref \
566 | --program-pre | --program-pr | --program-p)
567 ac_prev=program_prefix ;;
568 -program-prefix=* | --program-prefix=* | --program-prefi=* \
569 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
570 program_prefix="$ac_optarg" ;;
572 -program-suffix | --program-suffix | --program-suffi | --program-suff \
573 | --program-suf | --program-su | --program-s)
574 ac_prev=program_suffix ;;
575 -program-suffix=* | --program-suffix=* | --program-suffi=* \
576 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
577 program_suffix="$ac_optarg" ;;
579 -program-transform-name | --program-transform-name \
580 | --program-transform-nam | --program-transform-na \
581 | --program-transform-n | --program-transform- \
582 | --program-transform | --program-transfor \
583 | --program-transfo | --program-transf \
584 | --program-trans | --program-tran \
585 | --progr-tra | --program-tr | --program-t)
586 ac_prev=program_transform_name ;;
587 -program-transform-name=* | --program-transform-name=* \
588 | --program-transform-nam=* | --program-transform-na=* \
589 | --program-transform-n=* | --program-transform-=* \
590 | --program-transform=* | --program-transfor=* \
591 | --program-transfo=* | --program-transf=* \
592 | --program-trans=* | --program-tran=* \
593 | --progr-tra=* | --program-tr=* | --program-t=*)
594 program_transform_name="$ac_optarg" ;;
596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
597 | -silent | --silent | --silen | --sile | --sil)
600 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
602 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
604 sbindir="$ac_optarg" ;;
606 -sharedstatedir | --sharedstatedir | --sharedstatedi \
607 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
608 | --sharedst | --shareds | --shared | --share | --shar \
610 ac_prev=sharedstatedir ;;
611 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
612 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
613 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
615 sharedstatedir="$ac_optarg" ;;
617 -site | --site | --sit)
619 -site=* | --site=* | --sit=*)
622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
625 srcdir="$ac_optarg" ;;
627 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
628 | --syscon | --sysco | --sysc | --sys | --sy)
629 ac_prev=sysconfdir ;;
630 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
631 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
632 sysconfdir="$ac_optarg" ;;
634 -target | --target | --targe | --targ | --tar | --ta | --t)
636 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
637 target="$ac_optarg" ;;
639 -v | -verbose | --verbose | --verbos | --verbo | --verb)
642 -version | --version | --versio | --versi | --vers)
643 echo "configure generated by autoconf version 2.13.1"
647 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
648 # Reject names that are not valid shell variable names.
649 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
650 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
652 ac_package=`echo $ac_package| sed 's/-/_/g'`
657 eval "with_${ac_package}='$ac_optarg'" ;;
659 -without-* | --without-*)
660 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
661 # Reject names that are not valid shell variable names.
662 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
663 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
665 ac_package=`echo $ac_package| sed 's/-/_/g'`
666 eval "with_${ac_package}=no" ;;
669 # Obsolete; use --with-x.
672 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
673 | --x-incl | --x-inc | --x-in | --x-i)
674 ac_prev=x_includes ;;
675 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
676 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
677 x_includes="$ac_optarg" ;;
679 -x-libraries | --x-libraries | --x-librarie | --x-librari \
680 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
681 ac_prev=x_libraries ;;
682 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
683 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
684 x_libraries="$ac_optarg" ;;
686 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
690 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
691 echo "configure: warning: $ac_option: invalid host type" 1>&2
693 if test "x$nonopt" != xNONE; then
694 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
702 if test -n "$ac_prev"; then
703 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
708 # File descriptor usage:
711 # 2 errors and warnings
712 # 3 some systems may open it to /dev/tty
713 # 4 used on the Kubota Titan
714 # 6 checking for... messages and results
715 # 5 compiler messages saved in config.log
716 if test "$silent" = yes; then
724 This file contains any messages produced by compilers while
725 running configure, to aid debugging if configure makes a mistake.
728 # Strip out --no-create and --no-recursion so they do not pile up.
729 # Also quote any args containing shell metacharacters.
734 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
735 | --no-cr | --no-c) ;;
736 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
737 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
738 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
739 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
740 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
745 # Only set these to C if already set. These must not be set unconditionally
746 # because not all systems understand e.g. LANG=C (notably SCO).
747 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
748 # Non-C LC_CTYPE values break the ctype check.
749 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
750 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
751 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
752 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
755 rm -rf conftest* confdefs.h
756 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
759 # A filename unique to this package, relative to the directory that
760 # configure is in, which we can look for to find out if srcdir is correct.
761 ac_unique_file=build/version.sh
763 # Find the source files, if location was not specified.
764 if test -z "$srcdir"; then
765 ac_srcdir_defaulted=yes
766 # Try the directory containing this script, then its parent.
768 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
769 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
771 if test ! -r $srcdir/$ac_unique_file; then
775 ac_srcdir_defaulted=no
777 if test ! -r $srcdir/$ac_unique_file; then
778 if test "$ac_srcdir_defaulted" = yes; then
779 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
781 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
784 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
786 # Prefer explicitly selected file to automatically selected ones.
787 if test -z "$CONFIG_SITE"; then
788 if test "x$prefix" != xNONE; then
789 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
791 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
794 for ac_site_file in $CONFIG_SITE; do
795 if test -r "$ac_site_file"; then
796 echo "loading site script $ac_site_file"
803 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
804 ac_cpp='$CPP $CPPFLAGS'
805 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
806 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
807 cross_compiling=$ac_cv_prog_cc_cross
811 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
812 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
813 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
820 ac_n= ac_c='\c' ac_t=
824 # set unset (borrowed from autoconf 2.49c)
825 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
831 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
834 for ac_dir in build $srcdir/build; do
835 if test -f $ac_dir/install-sh; then
837 ac_install_sh="$ac_aux_dir/install-sh -c"
839 elif test -f $ac_dir/install.sh; then
841 ac_install_sh="$ac_aux_dir/install.sh -c"
843 elif test -f $ac_dir/shtool; then
845 ac_install_sh="$ac_aux_dir/shtool install -c"
849 if test -z "$ac_aux_dir"; then
850 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
852 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
853 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
854 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
856 eval `$ac_aux_dir/version.sh`
857 if test -z "$OL_STRING"; then
858 { echo "configure: error: could not determine version" 1>&2; exit 1; }
861 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
862 ac_cv_shtool="$ac_aux_dir/shtool"
864 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
867 SHTOOL="$ac_cv_shtool"
869 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
870 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
872 echo "Configuring ${TB}${OL_STRING}${TN} ..."
875 echo $ac_n "checking host system type""... $ac_c" 1>&6
876 echo "configure:877: checking host system type" >&5
877 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
879 # Make sure we can run config.sub.
880 if $ac_config_sub sun4 >/dev/null 2>&1; then :
881 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
884 ac_cv_host_alias=$host
885 case "$ac_cv_host_alias" in
889 if ac_cv_host_alias=`$ac_config_guess`; then :
890 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
892 *) ac_cv_host_alias=$nonopt ;;
896 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
897 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo $ac_n "(cached) $ac_c" 1>&6
904 echo "$ac_t""$ac_cv_host" 1>&6
907 host_alias=$ac_cv_host_alias
908 host_cpu=$ac_cv_host_cpu
909 host_vendor=$ac_cv_host_vendor
910 host_os=$ac_cv_host_os
916 echo $ac_n "checking target system type""... $ac_c" 1>&6
917 echo "configure:918: checking target system type" >&5
918 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
920 # Make sure we can run config.sub.
921 if $ac_config_sub sun4 >/dev/null 2>&1; then :
922 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
925 ac_cv_target_alias=$target
926 case "$ac_cv_target_alias" in
930 ac_cv_target_alias=$host_alias ;;
932 *) ac_cv_target_alias=$nonopt ;;
936 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
937 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
938 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
939 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941 echo $ac_n "(cached) $ac_c" 1>&6
944 echo "$ac_t""$ac_cv_target" 1>&6
947 target_alias=$ac_cv_target_alias
948 target_cpu=$ac_cv_target_cpu
949 target_vendor=$ac_cv_target_vendor
950 target_os=$ac_cv_target_os
956 echo $ac_n "checking build system type""... $ac_c" 1>&6
957 echo "configure:958: checking build system type" >&5
958 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
960 # Make sure we can run config.sub.
961 if $ac_config_sub sun4 >/dev/null 2>&1; then :
962 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 ac_cv_build_alias=$build
966 case "$ac_cv_build_alias" in
970 ac_cv_build_alias=$host_alias ;;
972 *) ac_cv_build_alias=$nonopt ;;
976 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
977 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
981 echo $ac_n "(cached) $ac_c" 1>&6
984 echo "$ac_t""$ac_cv_build" 1>&6
987 build_alias=$ac_cv_build_alias
988 build_cpu=$ac_cv_build_cpu
989 build_vendor=$ac_cv_build_vendor
990 build_os=$ac_cv_build_os
996 # Do some error checking and defaulting for the host and target type.
998 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1001 # 1. You are not allowed to specify --host, --target, and nonopt at the
1003 # 2. Host defaults to nonopt.
1004 # 3. If nonopt is not specified, then host defaults to the current host,
1005 # as determined by config.guess.
1006 # 4. Target and build default to nonopt.
1007 # 5. If nonopt is not specified, then target and build default to host.
1009 # The aliases save the names the user supplied, while $host etc.
1010 # will get canonicalized.
1011 case $host---$target---$nonopt in
1012 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1013 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016 test "$host_alias" != "$target_alias" &&
1017 test "$program_prefix$program_suffix$program_transform_name" = \
1019 program_prefix=${target_alias}-
1022 # Find a good install program. We prefer a C program (faster),
1023 # so one script is as good as another. But avoid the broken or
1024 # incompatible versions:
1025 # SysV /etc/install, /usr/sbin/install
1026 # SunOS /usr/etc/install
1027 # IRIX /sbin/install
1029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1032 # ./install, which can be erroneously created by make from ./install.sh.
1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1034 echo "configure:1035: checking for a BSD compatible install" >&5
1035 if test -z "$INSTALL"; then
1036 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1040 for ac_dir in $PATH; do
1041 # Account for people who put trailing slashes in PATH elements.
1043 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1045 # OSF1 and SCO ODT 3.0 have their own names for install.
1046 # Don't use installbsd from OSF since it installs stuff as root
1048 for ac_prog in ginstall scoinst install; do
1049 if test -f $ac_dir/$ac_prog; then
1050 if test $ac_prog = install &&
1051 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1052 # AIX install. It has an incompatible calling convention.
1054 elif test $ac_prog = install &&
1055 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # program-specific install script used by HP pwplus--don't use.
1059 ac_cv_path_install="$ac_dir/$ac_prog -c"
1070 if test "${ac_cv_path_install+set}" = set; then
1071 INSTALL="$ac_cv_path_install"
1073 # As a last resort, use the slow shell script. We don't cache a
1074 # path for INSTALL within a source directory, because that will
1075 # break other packages using the cache if that directory is
1076 # removed, or if the path is relative.
1077 INSTALL="$ac_install_sh"
1080 echo "$ac_t""$INSTALL" 1>&6
1082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1083 # It thinks the first close brace ends the variable substitution.
1084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1090 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether build environment is sane" >&5
1094 echo timestamp > conftestfile
1095 # Do `set' in a subshell so we don't clobber the current shell's
1096 # arguments. Must try -L first in case configure is actually a
1097 # symlink; some systems play weird games with the mod time of symlinks
1098 # (eg FreeBSD returns the mod time of the symlink's containing
1101 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1102 if test "$*" = "X"; then
1104 set X `ls -t $srcdir/configure conftestfile`
1106 if test "$*" != "X $srcdir/configure conftestfile" \
1107 && test "$*" != "X conftestfile $srcdir/configure"; then
1109 # If neither matched, then we have a broken ls. This can happen
1110 # if, for instance, CONFIG_SHELL is bash and it inherits a
1111 # broken ls alias from the environment. This has actually
1112 # happened. Such a system could not be considered "sane".
1113 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1114 alias in your environment" 1>&2; exit 1; }
1117 test "$2" = conftestfile
1123 { echo "configure: error: newly created file is older than distributed files!
1124 Check your system clock" 1>&2; exit 1; }
1127 echo "$ac_t""yes" 1>&6
1128 if test "$program_transform_name" = s,x,x,; then
1129 program_transform_name=
1131 # Double any \ or $. echo might interpret backslashes.
1132 cat <<\EOF_SED > conftestsed
1133 s,\\,\\\\,g; s,\$,$$,g
1135 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1138 test "$program_prefix" != NONE &&
1139 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1140 # Use a double $ so make ignores it.
1141 test "$program_suffix" != NONE &&
1142 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1144 # sed with no file args requires a program.
1145 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1147 for ac_prog in mawk gawk nawk awk
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AWK"; then
1157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1181 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${MAKE-make} sets \${MAKE}" >&5
1183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 cat > conftestmake <<\EOF
1189 @echo 'ac_maketemp="${MAKE}"'
1191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1193 if test -n "$ac_maketemp"; then
1194 eval ac_cv_prog_make_${ac_make}_set=yes
1196 eval ac_cv_prog_make_${ac_make}_set=no
1200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1204 echo "$ac_t""no" 1>&6
1205 SET_MAKE="MAKE=${MAKE-make}"
1214 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1215 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1220 missing_dir=`cd $ac_aux_dir && pwd`
1221 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1222 echo "configure:1223: checking for working aclocal" >&5
1223 # Run test in a subshell; some versions of sh will print an error if
1224 # an executable is not found, even if stderr is redirected.
1225 # Redirect stdin to placate older versions of autoconf. Sigh.
1226 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1228 echo "$ac_t""found" 1>&6
1230 ACLOCAL="$missing_dir/missing aclocal"
1231 echo "$ac_t""missing" 1>&6
1234 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1235 echo "configure:1236: checking for working autoconf" >&5
1236 # Run test in a subshell; some versions of sh will print an error if
1237 # an executable is not found, even if stderr is redirected.
1238 # Redirect stdin to placate older versions of autoconf. Sigh.
1239 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1241 echo "$ac_t""found" 1>&6
1243 AUTOCONF="$missing_dir/missing autoconf"
1244 echo "$ac_t""missing" 1>&6
1247 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1248 echo "configure:1249: checking for working automake" >&5
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (automake --version) < /dev/null > /dev/null 2>&1; then
1254 echo "$ac_t""found" 1>&6
1256 AUTOMAKE="$missing_dir/missing automake"
1257 echo "$ac_t""missing" 1>&6
1260 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working autoheader" >&5
1262 # Run test in a subshell; some versions of sh will print an error if
1263 # an executable is not found, even if stderr is redirected.
1264 # Redirect stdin to placate older versions of autoconf. Sigh.
1265 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1266 AUTOHEADER=autoheader
1267 echo "$ac_t""found" 1>&6
1269 AUTOHEADER="$missing_dir/missing autoheader"
1270 echo "$ac_t""missing" 1>&6
1273 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working makeinfo" >&5
1275 # Run test in a subshell; some versions of sh will print an error if
1276 # an executable is not found, even if stderr is redirected.
1277 # Redirect stdin to placate older versions of autoconf. Sigh.
1278 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1280 echo "$ac_t""found" 1>&6
1282 MAKEINFO="$missing_dir/missing makeinfo"
1283 echo "$ac_t""missing" 1>&6
1286 install_sh="$missing_dir/install-sh"
1287 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1289 for ac_prog in gnutar gtar tar
1291 # Extract the first word of "$ac_prog", so it can be a program name with args.
1292 set dummy $ac_prog; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -n "$AMTAR"; then
1299 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_AMTAR="$ac_prog"
1313 AMTAR="$ac_cv_prog_AMTAR"
1314 if test -n "$AMTAR"; then
1315 echo "$ac_t""$AMTAR" 1>&6
1317 echo "$ac_t""no" 1>&6
1320 test -n "$AMTAR" && break
1325 if test -n "$AMTAR"; then
1326 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1331 cat >> confdefs.h <<EOF
1332 #define OPENLDAP_PACKAGE "$PACKAGE"
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_VERSION "$VERSION"
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION $OL_API_INC
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1357 OPENLDAP_LIBVERSION=$OL_API_LIB
1359 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1363 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1364 echo "configure:1365: checking configure arguments" >&5
1369 ldap_subdir="/openldap"
1371 # Check whether --with-subdir or --without-subdir was given.
1372 if test "${with_subdir+set}" = set; then
1373 withval="$with_subdir"
1380 ldap_subdir="$withval"
1383 ldap_subdir="/$withval"
1390 # OpenLDAP --enable-debug
1391 # Check whether --enable-debug or --disable-debug was given.
1392 if test "${enable_debug+set}" = set; then
1393 enableval="$enable_debug"
1396 for ol_val in auto yes no ; do
1397 if test "$enableval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1404 ol_enable_debug="$ol_arg"
1407 ol_enable_debug="yes"
1409 # end --enable-debug
1410 # OpenLDAP --enable-syslog
1411 # Check whether --enable-syslog or --disable-syslog was given.
1412 if test "${enable_syslog+set}" = set; then
1413 enableval="$enable_syslog"
1416 for ol_val in auto yes no ; do
1417 if test "$enableval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1424 ol_enable_syslog="$ol_arg"
1427 ol_enable_syslog="auto"
1429 # end --enable-syslog
1430 # OpenLDAP --enable-proctitle
1431 # Check whether --enable-proctitle or --disable-proctitle was given.
1432 if test "${enable_proctitle+set}" = set; then
1433 enableval="$enable_proctitle"
1436 for ol_val in auto yes no ; do
1437 if test "$enableval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1444 ol_enable_proctitle="$ol_arg"
1447 ol_enable_proctitle="yes"
1449 # end --enable-proctitle
1450 # OpenLDAP --enable-cache
1451 # Check whether --enable-cache or --disable-cache was given.
1452 if test "${enable_cache+set}" = set; then
1453 enableval="$enable_cache"
1456 for ol_val in auto yes no ; do
1457 if test "$enableval" = "$ol_val" ; then
1461 if test "$ol_arg" = "invalid" ; then
1462 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1464 ol_enable_cache="$ol_arg"
1467 ol_enable_cache="no"
1469 # end --enable-cache
1470 # OpenLDAP --enable-referrals
1471 # Check whether --enable-referrals or --disable-referrals was given.
1472 if test "${enable_referrals+set}" = set; then
1473 enableval="$enable_referrals"
1476 for ol_val in auto yes no ; do
1477 if test "$enableval" = "$ol_val" ; then
1481 if test "$ol_arg" = "invalid" ; then
1482 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1484 ol_enable_referrals="$ol_arg"
1487 ol_enable_referrals="no"
1489 # end --enable-referrals
1490 ol_enable_kbind=${ol_enable_kbind-no}
1491 # OpenLDAP --enable-ipv6
1492 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1493 if test "${enable_ipv6+set}" = set; then
1494 enableval="$enable_ipv6"
1497 for ol_val in auto yes no ; do
1498 if test "$enableval" = "$ol_val" ; then
1502 if test "$ol_arg" = "invalid" ; then
1503 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1505 ol_enable_ipv6="$ol_arg"
1508 ol_enable_ipv6="auto"
1511 # OpenLDAP --enable-local
1512 # Check whether --enable-local or --disable-local was given.
1513 if test "${enable_local+set}" = set; then
1514 enableval="$enable_local"
1517 for ol_val in auto yes no ; do
1518 if test "$enableval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1525 ol_enable_local="$ol_arg"
1528 ol_enable_local="auto"
1530 # end --enable-local
1531 # OpenLDAP --enable-x_compile
1532 # Check whether --enable-x_compile or --disable-x_compile was given.
1533 if test "${enable_x_compile+set}" = set; then
1534 enableval="$enable_x_compile"
1537 for ol_val in yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1545 ol_enable_x_compile="$ol_arg"
1548 ol_enable_x_compile="no"
1550 # end --enable-x_compile
1553 # OpenLDAP --with-cyrus_sasl
1554 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1555 if test "${with_cyrus_sasl+set}" = set; then
1556 withval="$with_cyrus_sasl"
1559 for ol_val in auto yes no ; do
1560 if test "$withval" = "$ol_val" ; then
1564 if test "$ol_arg" = "invalid" ; then
1565 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1567 ol_with_cyrus_sasl="$ol_arg"
1570 ol_with_cyrus_sasl="auto"
1572 # end --with-cyrus_sasl
1574 # OpenLDAP --with-fetch
1575 # Check whether --with-fetch or --without-fetch was given.
1576 if test "${with_fetch+set}" = set; then
1577 withval="$with_fetch"
1580 for ol_val in auto yes no ; do
1581 if test "$withval" = "$ol_val" ; then
1585 if test "$ol_arg" = "invalid" ; then
1586 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1588 ol_with_fetch="$ol_arg"
1591 ol_with_fetch="auto"
1595 # OpenLDAP --with-kerberos
1596 # Check whether --with-kerberos or --without-kerberos was given.
1597 if test "${with_kerberos+set}" = set; then
1598 withval="$with_kerberos"
1601 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1602 if test "$withval" = "$ol_val" ; then
1606 if test "$ol_arg" = "invalid" ; then
1607 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1609 ol_with_kerberos="$ol_arg"
1612 ol_with_kerberos="auto"
1614 # end --with-kerberos
1616 # OpenLDAP --with-readline
1617 # Check whether --with-readline or --without-readline was given.
1618 if test "${with_readline+set}" = set; then
1619 withval="$with_readline"
1622 for ol_val in auto yes no ; do
1623 if test "$withval" = "$ol_val" ; then
1627 if test "$ol_arg" = "invalid" ; then
1628 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1630 ol_with_readline="$ol_arg"
1633 ol_with_readline="auto"
1635 # end --with-readline
1637 # OpenLDAP --with-threads
1638 # Check whether --with-threads or --without-threads was given.
1639 if test "${with_threads+set}" = set; then
1640 withval="$with_threads"
1643 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1644 if test "$withval" = "$ol_val" ; then
1648 if test "$ol_arg" = "invalid" ; then
1649 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1651 ol_with_threads="$ol_arg"
1654 ol_with_threads="auto"
1656 # end --with-threads
1658 # OpenLDAP --with-tls
1659 # Check whether --with-tls or --without-tls was given.
1660 if test "${with_tls+set}" = set; then
1664 for ol_val in auto ssleay openssl yes no ; do
1665 if test "$withval" = "$ol_val" ; then
1669 if test "$ol_arg" = "invalid" ; then
1670 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1672 ol_with_tls="$ol_arg"
1679 # OpenLDAP --with-yielding_select
1680 # Check whether --with-yielding_select or --without-yielding_select was given.
1681 if test "${with_yielding_select+set}" = set; then
1682 withval="$with_yielding_select"
1685 for ol_val in auto yes no manual ; do
1686 if test "$withval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1693 ol_with_yielding_select="$ol_arg"
1696 ol_with_yielding_select="auto"
1698 # end --with-yielding_select
1702 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1703 if test "${with_xxslapdoptions+set}" = set; then
1704 withval="$with_xxslapdoptions"
1708 # OpenLDAP --enable-slapd
1709 # Check whether --enable-slapd or --disable-slapd was given.
1710 if test "${enable_slapd+set}" = set; then
1711 enableval="$enable_slapd"
1714 for ol_val in auto yes no ; do
1715 if test "$enableval" = "$ol_val" ; then
1719 if test "$ol_arg" = "invalid" ; then
1720 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1722 ol_enable_slapd="$ol_arg"
1725 ol_enable_slapd="yes"
1727 # end --enable-slapd
1728 # OpenLDAP --enable-aci
1729 # Check whether --enable-aci or --disable-aci was given.
1730 if test "${enable_aci+set}" = set; then
1731 enableval="$enable_aci"
1734 for ol_val in auto yes no ; do
1735 if test "$enableval" = "$ol_val" ; then
1739 if test "$ol_arg" = "invalid" ; then
1740 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1742 ol_enable_aci="$ol_arg"
1748 # OpenLDAP --enable-cleartext
1749 # Check whether --enable-cleartext or --disable-cleartext was given.
1750 if test "${enable_cleartext+set}" = set; then
1751 enableval="$enable_cleartext"
1754 for ol_val in auto yes no ; do
1755 if test "$enableval" = "$ol_val" ; then
1759 if test "$ol_arg" = "invalid" ; then
1760 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1762 ol_enable_cleartext="$ol_arg"
1765 ol_enable_cleartext="yes"
1767 # end --enable-cleartext
1768 # OpenLDAP --enable-crypt
1769 # Check whether --enable-crypt or --disable-crypt was given.
1770 if test "${enable_crypt+set}" = set; then
1771 enableval="$enable_crypt"
1774 for ol_val in auto yes no ; do
1775 if test "$enableval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1782 ol_enable_crypt="$ol_arg"
1785 ol_enable_crypt="no"
1787 # end --enable-crypt
1788 # OpenLDAP --enable-dynamic
1789 # Check whether --enable-dynamic or --disable-dynamic was given.
1790 if test "${enable_dynamic+set}" = set; then
1791 enableval="$enable_dynamic"
1794 for ol_val in auto yes no ; do
1795 if test "$enableval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1802 ol_enable_dynamic="$ol_arg"
1805 ol_enable_dynamic="no"
1807 # end --enable-dynamic
1808 # OpenLDAP --enable-kpasswd
1809 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1810 if test "${enable_kpasswd+set}" = set; then
1811 enableval="$enable_kpasswd"
1814 for ol_val in auto yes no ; do
1815 if test "$enableval" = "$ol_val" ; then
1819 if test "$ol_arg" = "invalid" ; then
1820 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1822 ol_enable_kpasswd="$ol_arg"
1825 ol_enable_kpasswd="no"
1827 # end --enable-kpasswd
1828 # OpenLDAP --enable-lmpasswd
1829 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1830 if test "${enable_lmpasswd+set}" = set; then
1831 enableval="$enable_lmpasswd"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1842 ol_enable_lmpasswd="$ol_arg"
1845 ol_enable_lmpasswd="no"
1847 # end --enable-lmpasswd
1848 # OpenLDAP --enable-spasswd
1849 # Check whether --enable-spasswd or --disable-spasswd was given.
1850 if test "${enable_spasswd+set}" = set; then
1851 enableval="$enable_spasswd"
1854 for ol_val in auto yes no ; do
1855 if test "$enableval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1862 ol_enable_spasswd="$ol_arg"
1865 ol_enable_spasswd="no"
1867 # end --enable-spasswd
1868 # OpenLDAP --enable-modules
1869 # Check whether --enable-modules or --disable-modules was given.
1870 if test "${enable_modules+set}" = set; then
1871 enableval="$enable_modules"
1874 for ol_val in auto yes no ; do
1875 if test "$enableval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1882 ol_enable_modules="$ol_arg"
1885 ol_enable_modules="no"
1887 # end --enable-modules
1888 ol_enable_multimaster=${ol_enable_multimaster-no}
1889 # OpenLDAP --enable-phonetic
1890 # Check whether --enable-phonetic or --disable-phonetic was given.
1891 if test "${enable_phonetic+set}" = set; then
1892 enableval="$enable_phonetic"
1895 for ol_val in auto yes no ; do
1896 if test "$enableval" = "$ol_val" ; then
1900 if test "$ol_arg" = "invalid" ; then
1901 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1903 ol_enable_phonetic="$ol_arg"
1906 ol_enable_phonetic="no"
1908 # end --enable-phonetic
1909 # OpenLDAP --enable-rewrite
1910 # Check whether --enable-rewrite or --disable-rewrite was given.
1911 if test "${enable_rewrite+set}" = set; then
1912 enableval="$enable_rewrite"
1915 for ol_val in auto yes no ; do
1916 if test "$enableval" = "$ol_val" ; then
1920 if test "$ol_arg" = "invalid" ; then
1921 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1923 ol_enable_rewrite="$ol_arg"
1926 ol_enable_rewrite="no"
1928 # end --enable-rewrite
1929 # OpenLDAP --enable-rlookups
1930 # Check whether --enable-rlookups or --disable-rlookups was given.
1931 if test "${enable_rlookups+set}" = set; then
1932 enableval="$enable_rlookups"
1935 for ol_val in auto yes no ; do
1936 if test "$enableval" = "$ol_val" ; then
1940 if test "$ol_arg" = "invalid" ; then
1941 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1943 ol_enable_rlookups="$ol_arg"
1946 ol_enable_rlookups="no"
1948 # end --enable-rlookups
1949 # OpenLDAP --enable-slp
1950 # Check whether --enable-slp or --disable-slp was given.
1951 if test "${enable_slp+set}" = set; then
1952 enableval="$enable_slp"
1955 for ol_val in auto yes no ; do
1956 if test "$enableval" = "$ol_val" ; then
1960 if test "$ol_arg" = "invalid" ; then
1961 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1963 ol_enable_slp="$ol_arg"
1969 # OpenLDAP --enable-wrappers
1970 # Check whether --enable-wrappers or --disable-wrappers was given.
1971 if test "${enable_wrappers+set}" = set; then
1972 enableval="$enable_wrappers"
1975 for ol_val in auto yes no ; do
1976 if test "$enableval" = "$ol_val" ; then
1980 if test "$ol_arg" = "invalid" ; then
1981 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1983 ol_enable_wrappers="$ol_arg"
1986 ol_enable_wrappers="no"
1988 # end --enable-wrappers
1990 # OpenLDAP --enable-bdb
1991 # Check whether --enable-bdb or --disable-bdb was given.
1992 if test "${enable_bdb+set}" = set; then
1993 enableval="$enable_bdb"
1996 for ol_val in auto yes no ; do
1997 if test "$enableval" = "$ol_val" ; then
2001 if test "$ol_arg" = "invalid" ; then
2002 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2004 ol_enable_bdb="$ol_arg"
2010 # OpenLDAP --with-bdb_module
2011 # Check whether --with-bdb_module or --without-bdb_module was given.
2012 if test "${with_bdb_module+set}" = set; then
2013 withval="$with_bdb_module"
2016 for ol_val in static dynamic ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2024 ol_with_bdb_module="$ol_arg"
2027 ol_with_bdb_module="static"
2029 # end --with-bdb_module
2031 # OpenLDAP --enable-dnssrv
2032 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2033 if test "${enable_dnssrv+set}" = set; then
2034 enableval="$enable_dnssrv"
2037 for ol_val in auto yes no ; do
2038 if test "$enableval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2045 ol_enable_dnssrv="$ol_arg"
2048 ol_enable_dnssrv="no"
2050 # end --enable-dnssrv
2051 # OpenLDAP --with-dnssrv_module
2052 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2053 if test "${with_dnssrv_module+set}" = set; then
2054 withval="$with_dnssrv_module"
2057 for ol_val in static dynamic ; do
2058 if test "$withval" = "$ol_val" ; then
2062 if test "$ol_arg" = "invalid" ; then
2063 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2065 ol_with_dnssrv_module="$ol_arg"
2068 ol_with_dnssrv_module="static"
2070 # end --with-dnssrv_module
2072 # OpenLDAP --enable-ldap
2073 # Check whether --enable-ldap or --disable-ldap was given.
2074 if test "${enable_ldap+set}" = set; then
2075 enableval="$enable_ldap"
2078 for ol_val in auto yes no ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2086 ol_enable_ldap="$ol_arg"
2092 # OpenLDAP --with-ldap_module
2093 # Check whether --with-ldap_module or --without-ldap_module was given.
2094 if test "${with_ldap_module+set}" = set; then
2095 withval="$with_ldap_module"
2098 for ol_val in static dynamic ; do
2099 if test "$withval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2106 ol_with_ldap_module="$ol_arg"
2109 ol_with_ldap_module="static"
2111 # end --with-ldap_module
2113 # OpenLDAP --enable-ldbm
2114 # Check whether --enable-ldbm or --disable-ldbm was given.
2115 if test "${enable_ldbm+set}" = set; then
2116 enableval="$enable_ldbm"
2119 for ol_val in auto yes no ; do
2120 if test "$enableval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2127 ol_enable_ldbm="$ol_arg"
2133 # OpenLDAP --with-ldbm_api
2134 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2135 if test "${with_ldbm_api+set}" = set; then
2136 withval="$with_ldbm_api"
2139 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2140 if test "$withval" = "$ol_val" ; then
2144 if test "$ol_arg" = "invalid" ; then
2145 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2147 ol_with_ldbm_api="$ol_arg"
2150 ol_with_ldbm_api="auto"
2152 # end --with-ldbm_api
2154 # OpenLDAP --with-ldbm_module
2155 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2156 if test "${with_ldbm_module+set}" = set; then
2157 withval="$with_ldbm_module"
2160 for ol_val in static dynamic ; do
2161 if test "$withval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2168 ol_with_ldbm_module="$ol_arg"
2171 ol_with_ldbm_module="static"
2173 # end --with-ldbm_module
2175 # OpenLDAP --with-ldbm_type
2176 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2177 if test "${with_ldbm_type+set}" = set; then
2178 withval="$with_ldbm_type"
2181 for ol_val in auto btree hash ; do
2182 if test "$withval" = "$ol_val" ; then
2186 if test "$ol_arg" = "invalid" ; then
2187 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2189 ol_with_ldbm_type="$ol_arg"
2192 ol_with_ldbm_type="auto"
2194 # end --with-ldbm_type
2196 # OpenLDAP --enable-meta
2197 # Check whether --enable-meta or --disable-meta was given.
2198 if test "${enable_meta+set}" = set; then
2199 enableval="$enable_meta"
2202 for ol_val in auto yes no ; do
2203 if test "$enableval" = "$ol_val" ; then
2207 if test "$ol_arg" = "invalid" ; then
2208 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2210 ol_enable_meta="$ol_arg"
2216 # OpenLDAP --with-meta_module
2217 # Check whether --with-meta_module or --without-meta_module was given.
2218 if test "${with_meta_module+set}" = set; then
2219 withval="$with_meta_module"
2222 for ol_val in static dynamic ; do
2223 if test "$withval" = "$ol_val" ; then
2227 if test "$ol_arg" = "invalid" ; then
2228 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2230 ol_with_meta_module="$ol_arg"
2233 ol_with_meta_module="static"
2235 # end --with-meta_module
2237 # OpenLDAP --enable-monitor
2238 # Check whether --enable-monitor or --disable-monitor was given.
2239 if test "${enable_monitor+set}" = set; then
2240 enableval="$enable_monitor"
2243 for ol_val in auto yes no ; do
2244 if test "$enableval" = "$ol_val" ; then
2248 if test "$ol_arg" = "invalid" ; then
2249 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2251 ol_enable_monitor="$ol_arg"
2254 ol_enable_monitor="no"
2256 # end --enable-monitor
2257 # OpenLDAP --with-monitor_module
2258 # Check whether --with-monitor_module or --without-monitor_module was given.
2259 if test "${with_monitor_module+set}" = set; then
2260 withval="$with_monitor_module"
2263 for ol_val in static dynamic ; do
2264 if test "$withval" = "$ol_val" ; then
2268 if test "$ol_arg" = "invalid" ; then
2269 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2271 ol_with_monitor_module="$ol_arg"
2274 ol_with_monitor_module="static"
2276 # end --with-monitor_module
2278 # OpenLDAP --enable-null
2279 # Check whether --enable-null or --disable-null was given.
2280 if test "${enable_null+set}" = set; then
2281 enableval="$enable_null"
2284 for ol_val in auto yes no ; do
2285 if test "$enableval" = "$ol_val" ; then
2289 if test "$ol_arg" = "invalid" ; then
2290 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2292 ol_enable_null="$ol_arg"
2298 # OpenLDAP --with-null_module
2299 # Check whether --with-null_module or --without-null_module was given.
2300 if test "${with_null_module+set}" = set; then
2301 withval="$with_null_module"
2304 for ol_val in static dynamic ; do
2305 if test "$withval" = "$ol_val" ; then
2309 if test "$ol_arg" = "invalid" ; then
2310 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2312 ol_with_null_module="$ol_arg"
2315 ol_with_null_module="static"
2317 # end --with-null_module
2319 # OpenLDAP --enable-passwd
2320 # Check whether --enable-passwd or --disable-passwd was given.
2321 if test "${enable_passwd+set}" = set; then
2322 enableval="$enable_passwd"
2325 for ol_val in auto yes no ; do
2326 if test "$enableval" = "$ol_val" ; then
2330 if test "$ol_arg" = "invalid" ; then
2331 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2333 ol_enable_passwd="$ol_arg"
2336 ol_enable_passwd="no"
2338 # end --enable-passwd
2339 # OpenLDAP --with-passwd_module
2340 # Check whether --with-passwd_module or --without-passwd_module was given.
2341 if test "${with_passwd_module+set}" = set; then
2342 withval="$with_passwd_module"
2345 for ol_val in static dynamic ; do
2346 if test "$withval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2353 ol_with_passwd_module="$ol_arg"
2356 ol_with_passwd_module="static"
2358 # end --with-passwd_module
2360 # OpenLDAP --enable-perl
2361 # Check whether --enable-perl or --disable-perl was given.
2362 if test "${enable_perl+set}" = set; then
2363 enableval="$enable_perl"
2366 for ol_val in auto yes no ; do
2367 if test "$enableval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2374 ol_enable_perl="$ol_arg"
2380 # OpenLDAP --with-perl_module
2381 # Check whether --with-perl_module or --without-perl_module was given.
2382 if test "${with_perl_module+set}" = set; then
2383 withval="$with_perl_module"
2386 for ol_val in static dynamic ; do
2387 if test "$withval" = "$ol_val" ; then
2391 if test "$ol_arg" = "invalid" ; then
2392 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2394 ol_with_perl_module="$ol_arg"
2397 ol_with_perl_module="static"
2399 # end --with-perl_module
2401 # OpenLDAP --enable-shell
2402 # Check whether --enable-shell or --disable-shell was given.
2403 if test "${enable_shell+set}" = set; then
2404 enableval="$enable_shell"
2407 for ol_val in auto yes no ; do
2408 if test "$enableval" = "$ol_val" ; then
2412 if test "$ol_arg" = "invalid" ; then
2413 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2415 ol_enable_shell="$ol_arg"
2418 ol_enable_shell="no"
2420 # end --enable-shell
2421 # OpenLDAP --with-shell_module
2422 # Check whether --with-shell_module or --without-shell_module was given.
2423 if test "${with_shell_module+set}" = set; then
2424 withval="$with_shell_module"
2427 for ol_val in static dynamic ; do
2428 if test "$withval" = "$ol_val" ; then
2432 if test "$ol_arg" = "invalid" ; then
2433 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2435 ol_with_shell_module="$ol_arg"
2438 ol_with_shell_module="static"
2440 # end --with-shell_module
2442 # OpenLDAP --enable-sql
2443 # Check whether --enable-sql or --disable-sql was given.
2444 if test "${enable_sql+set}" = set; then
2445 enableval="$enable_sql"
2448 for ol_val in auto yes no ; do
2449 if test "$enableval" = "$ol_val" ; then
2453 if test "$ol_arg" = "invalid" ; then
2454 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2456 ol_enable_sql="$ol_arg"
2462 # OpenLDAP --with-sql_module
2463 # Check whether --with-sql_module or --without-sql_module was given.
2464 if test "${with_sql_module+set}" = set; then
2465 withval="$with_sql_module"
2468 for ol_val in static dynamic ; do
2469 if test "$withval" = "$ol_val" ; then
2473 if test "$ol_arg" = "invalid" ; then
2474 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2476 ol_with_sql_module="$ol_arg"
2479 ol_with_sql_module="static"
2481 # end --with-sql_module
2484 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2485 if test "${with_xxslurpdoptions+set}" = set; then
2486 withval="$with_xxslurpdoptions"
2490 # OpenLDAP --enable-slurpd
2491 # Check whether --enable-slurpd or --disable-slurpd was given.
2492 if test "${enable_slurpd+set}" = set; then
2493 enableval="$enable_slurpd"
2496 for ol_val in auto yes no ; do
2497 if test "$enableval" = "$ol_val" ; then
2501 if test "$ol_arg" = "invalid" ; then
2502 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2504 ol_enable_slurpd="$ol_arg"
2507 ol_enable_slurpd="auto"
2509 # end --enable-slurpd
2511 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2512 if test "${with_xxliboptions+set}" = set; then
2513 withval="$with_xxliboptions"
2517 # Check whether --enable-static or --disable-static was given.
2518 if test "${enable_static+set}" = set; then
2519 enableval="$enable_static"
2520 p=${PACKAGE-default}
2522 yes) enable_static=yes ;;
2523 no) enable_static=no ;;
2526 # Look at the argument we got. We use all the common list separators.
2527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2528 for pkg in $enableval; do
2529 if test "X$pkg" = "X$p"; then
2540 # Check whether --enable-shared or --disable-shared was given.
2541 if test "${enable_shared+set}" = set; then
2542 enableval="$enable_shared"
2543 p=${PACKAGE-default}
2545 yes) enable_shared=yes ;;
2546 no) enable_shared=no ;;
2549 # Look at the argument we got. We use all the common list separators.
2550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2551 for pkg in $enableval; do
2552 if test "X$pkg" = "X$p"; then
2566 if test $ol_enable_slapd = no ; then
2567 if test $ol_enable_bdb = yes ; then
2568 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2570 if test $ol_enable_dnssrv = yes ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2573 if test $ol_enable_ldap = yes ; then
2574 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2576 if test $ol_enable_ldbm = yes ; then
2577 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2579 if test $ol_enable_meta = yes ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2582 if test $ol_enable_monitor = yes ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2585 if test $ol_enable_null = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2588 if test $ol_enable_passwd = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2591 if test $ol_enable_perl = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2594 if test $ol_enable_shell = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2597 if test $ol_enable_sql = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2600 if test $ol_enable_modules = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2603 if test $ol_enable_multimaster = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2606 if test $ol_enable_wrappers = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2609 if test $ol_enable_phonetic = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2612 if test $ol_enable_rlookups = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2615 if test $ol_enable_aci = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2618 if test $ol_with_ldbm_api != auto ; then
2619 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2621 if test $ol_with_ldbm_type != auto ; then
2622 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2624 if test $ol_with_bdb_module != static ; then
2625 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2627 if test $ol_with_dnssrv_module != static ; then
2628 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2630 if test $ol_with_ldap_module != static ; then
2631 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2633 if test $ol_with_ldbm_module != static ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2636 if test $ol_with_meta_module != static ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2639 if test $ol_with_monitor_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2642 if test $ol_with_null_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2645 if test $ol_with_passwd_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2648 if test $ol_with_perl_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2651 if test $ol_with_shell_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2654 if test $ol_with_sql_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2657 if test $ol_enable_slurpd = yes ; then
2658 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2660 if test $ol_enable_rewrite = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2664 # force settings to no
2670 ol_enable_monitor=no
2677 ol_enable_modules=no
2678 ol_enable_multimaster=no
2679 ol_enable_phonetic=no
2680 ol_enable_rlookups=no
2682 ol_enable_wrappers=no
2683 ol_enable_dynamic=no
2686 ol_with_ldbm_type=no
2688 ol_with_bdb_module=static
2689 ol_with_dnssrv_module=static
2690 ol_with_ldap_module=static
2691 ol_with_ldbm_module=static
2692 ol_with_meta_module=static
2693 ol_with_monitor_module=static
2694 ol_with_null_module=static
2695 ol_with_passwd_module=static
2696 ol_with_perl_module=static
2697 ol_with_shell_module=static
2698 ol_with_sql_module=static
2702 ol_enable_rewrite=no
2704 elif test $ol_enable_ldbm = no ; then
2706 if test $ol_with_ldbm_api != auto ; then
2707 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2710 if test $ol_with_ldbm_type != auto ; then
2711 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2714 if test $ol_with_ldbm_module != static ; then
2715 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2718 if test $ol_enable_modules != yes -a \
2719 $ol_enable_bdb = no -a \
2720 $ol_enable_dnssrv = no -a \
2721 $ol_enable_ldap = no -a \
2722 $ol_enable_meta = no -a \
2723 $ol_enable_monitor = no -a \
2724 $ol_enable_null = no -a \
2725 $ol_enable_passwd = no -a \
2726 $ol_enable_perl = no -a \
2727 $ol_enable_shell = no -a \
2728 $ol_enable_sql = no ; then
2730 if test $ol_enable_slapd = yes ; then
2731 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2733 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2739 ol_with_ldbm_type=no
2740 ol_with_ldbm_module=static
2742 if test $ol_enable_bdb != no ; then
2743 ol_with_ldbm_api=berkeley
2747 if test $ol_with_ldbm_api = gdbm -a \
2748 $ol_with_ldbm_type = btree ; then
2749 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2751 if test $ol_with_ldbm_api = mdbm -a \
2752 $ol_with_ldbm_type = btree ; then
2753 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2755 if test $ol_with_ldbm_api = ndbm -a \
2756 $ol_with_ldbm_type = btree ; then
2757 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2760 if test $ol_enable_bdb = yes ; then
2761 if test $ol_with_ldbm_api = auto ; then
2762 ol_with_ldbm_api=berkeley
2763 elif test $ol_with_ldbm_api != berkeley ; then
2764 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2767 elif test $ol_enable_bdb = auto ; then
2768 if test $ol_with_ldbm_api != berkeley \
2769 -o $ol_with_ldbm_api != auto ; then
2770 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2776 if test $ol_enable_slurpd = yes ; then
2777 if test $ol_with_threads = no ; then
2778 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2782 if test $ol_enable_lmpasswd = yes ; then
2783 if test $ol_with_tls = no ; then
2784 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2788 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2789 if test $ol_with_kerberos = no ; then
2790 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2791 elif test $ol_with_kerberos = auto ; then
2792 ol_with_kerberos=yes
2795 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2796 if test $ol_with_kerberos = auto ; then
2798 elif test $ol_with_kerberos != no ; then
2799 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2804 if test $ol_enable_spasswd = yes ; then
2805 if test $ol_with_cyrus_sasl = no ; then
2806 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2808 ol_with_cyrus_sasl=yes
2811 echo "$ac_t""done" 1>&6
2839 BUILD_BDB_DYNAMIC=static
2840 BUILD_DNSSRV_DYNAMIC=static
2841 BUILD_LDAP_DYNAMIC=static
2842 BUILD_LDBM_DYNAMIC=static
2843 BUILD_META_DYNAMIC=static
2844 BUILD_MONITOR_DYNAMIC=static
2845 BUILD_NULL_DYNAMIC=static
2846 BUILD_PASSWD_DYNAMIC=static
2847 BUILD_PERL_DYNAMIC=static
2848 BUILD_SHELL_DYNAMIC=static
2849 BUILD_SQL_DYNAMIC=static
2851 SLAPD_MODULES_LDFLAGS=
2852 SLAPD_MODULES_CPPFLAGS=
2854 SLAPD_STATIC_BACKENDS=
2855 SLAPD_DYNAMIC_BACKENDS=
2877 # Find a good install program. We prefer a C program (faster),
2878 # so one script is as good as another. But avoid the broken or
2879 # incompatible versions:
2880 # SysV /etc/install, /usr/sbin/install
2881 # SunOS /usr/etc/install
2882 # IRIX /sbin/install
2884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2887 # ./install, which can be erroneously created by make from ./install.sh.
2888 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2889 echo "configure:2890: checking for a BSD compatible install" >&5
2890 if test -z "$INSTALL"; then
2891 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2895 for ac_dir in $PATH; do
2896 # Account for people who put trailing slashes in PATH elements.
2898 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2900 # OSF1 and SCO ODT 3.0 have their own names for install.
2901 # Don't use installbsd from OSF since it installs stuff as root
2903 for ac_prog in ginstall scoinst install; do
2904 if test -f $ac_dir/$ac_prog; then
2905 if test $ac_prog = install &&
2906 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2907 # AIX install. It has an incompatible calling convention.
2909 elif test $ac_prog = install &&
2910 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2911 # program-specific install script used by HP pwplus--don't use.
2914 ac_cv_path_install="$ac_dir/$ac_prog -c"
2925 if test "${ac_cv_path_install+set}" = set; then
2926 INSTALL="$ac_cv_path_install"
2928 # As a last resort, use the slow shell script. We don't cache a
2929 # path for INSTALL within a source directory, because that will
2930 # break other packages using the cache if that directory is
2931 # removed, or if the path is relative.
2932 INSTALL="$ac_install_sh"
2935 echo "$ac_t""$INSTALL" 1>&6
2937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2938 # It thinks the first close brace ends the variable substitution.
2939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2946 cat >> confdefs.h <<\EOF
2947 #define HAVE_MKVERSION 1
2955 *-*-aix*) if test -z "$CC" ; then
2956 case "$ol_with_threads" in
2957 auto | yes | posix) ol_aix_threads=yes ;;
2963 if test $ol_aix_threads = yes ; then
2964 if test -z "${CC}" ; then
2965 for ac_prog in cc_r xlc_r cc
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2970 echo "configure:2971: checking for $ac_word" >&5
2971 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2979 for ac_dir in $ac_dummy; do
2980 test -z "$ac_dir" && ac_dir=.
2981 if test -f $ac_dir/$ac_word; then
2982 ac_cv_prog_CC="$ac_prog"
2990 if test -n "$CC"; then
2991 echo "$ac_t""$CC" 1>&6
2993 echo "$ac_t""no" 1>&6
2996 test -n "$CC" && break
3000 if test "$CC" = cc ; then
3001 if test $ol_with_threads != auto ; then
3002 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3004 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3010 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3011 ol_with_threads=posix
3012 ol_cv_pthread_create=yes
3016 if test -z "${CC}"; then
3017 for ac_prog in cc gcc
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_word" >&5
3023 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3031 for ac_dir in $ac_dummy; do
3032 test -z "$ac_dir" && ac_dir=.
3033 if test -f $ac_dir/$ac_word; then
3034 ac_cv_prog_CC="$ac_prog"
3042 if test -n "$CC"; then
3043 echo "$ac_t""$CC" 1>&6
3045 echo "$ac_t""no" 1>&6
3048 test -n "$CC" && break
3050 test -n "$CC" || CC="missing"
3053 if test "${CC}" = "missing" ; then
3054 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3058 if test -z "${AR}"; then
3059 for ac_prog in ar gar
3061 # Extract the first word of "$ac_prog", so it can be a program name with args.
3062 set dummy $ac_prog; ac_word=$2
3063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3064 echo "configure:3065: checking for $ac_word" >&5
3065 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 if test -n "$AR"; then
3069 ac_cv_prog_AR="$AR" # Let the user override the test.
3071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3073 for ac_dir in $ac_dummy; do
3074 test -z "$ac_dir" && ac_dir=.
3075 if test -f $ac_dir/$ac_word; then
3076 ac_cv_prog_AR="$ac_prog"
3084 if test -n "$AR"; then
3085 echo "$ac_t""$AR" 1>&6
3087 echo "$ac_t""no" 1>&6
3090 test -n "$AR" && break
3092 test -n "$AR" || AR="missing"
3095 if test "${AR}" = "missing" ; then
3096 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3102 # Find the correct PATH separator. Usually this is `:', but
3103 # DJGPP uses `;' like DOS.
3104 if test "X${PATH_SEPARATOR+set}" != Xset; then
3105 UNAME=${UNAME-`uname 2>/dev/null`}
3107 *-DOS) lt_cv_sys_path_separator=';' ;;
3108 *) lt_cv_sys_path_separator=':' ;;
3110 PATH_SEPARATOR=$lt_cv_sys_path_separator
3113 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3114 echo "configure:3115: checking for Cygwin environment" >&5
3115 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3125 #define __CYGWIN__ __CYGWIN32__
3130 if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3142 echo "$ac_t""$ac_cv_cygwin" 1>&6
3144 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3145 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3146 echo "configure:3147: checking for mingw32 environment" >&5
3147 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3158 if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3170 echo "$ac_t""$ac_cv_mingw32" 1>&6
3172 test "$ac_cv_mingw32" = yes && MINGW32=yes
3173 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3174 echo "configure:3175: checking for EMX OS/2 environment" >&5
3175 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3186 if { (eval echo configure:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3198 echo "$ac_t""$ac_cv_emxos2" 1>&6
3200 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3201 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3202 echo "configure:3203: checking how to run the C preprocessor" >&5
3203 # On Suns, sometimes $CPP names a directory.
3204 if test -n "$CPP" && test -d "$CPP"; then
3207 if test -z "$CPP"; then
3208 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 # This must be in double quotes, not single quotes, because CPP may get
3212 # substituted into the Makefile and "${CC-cc}" will confuse make.
3214 # On the NeXT, cc -E runs the code through the compiler's parser,
3215 # not just through cpp.
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3223 { (eval echo configure:3224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3225 if test -z "$ac_err"; then
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 CPP="${CC-cc} -E -traditional-cpp"
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3240 { (eval echo configure:3241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3242 if test -z "$ac_err"; then
3246 echo "configure: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 CPP="${CC-cc} -nologo -E"
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3257 { (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3259 if test -z "$ac_err"; then
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3273 ac_cv_prog_CPP="$CPP"
3275 CPP="$ac_cv_prog_CPP"
3277 ac_cv_prog_CPP="$CPP"
3279 echo "$ac_t""$CPP" 1>&6
3281 # Check whether --enable-fast-install or --disable-fast-install was given.
3282 if test "${enable_fast_install+set}" = set; then
3283 enableval="$enable_fast_install"
3284 p=${PACKAGE-default}
3286 yes) enable_fast_install=yes ;;
3287 no) enable_fast_install=no ;;
3289 enable_fast_install=no
3290 # Look at the argument we got. We use all the common list separators.
3291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3292 for pkg in $enableval; do
3293 if test "X$pkg" = "X$p"; then
3294 enable_fast_install=yes
3301 enable_fast_install=yes
3304 # Extract the first word of "gcc", so it can be a program name with args.
3305 set dummy gcc; ac_word=$2
3306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_word" >&5
3308 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 for ac_dir in $ac_dummy; do
3317 test -z "$ac_dir" && ac_dir=.
3318 if test -f $ac_dir/$ac_word; then
3327 if test -n "$CC"; then
3328 echo "$ac_t""$CC" 1>&6
3330 echo "$ac_t""no" 1>&6
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 for ac_dir in $ac_dummy; do
3348 test -z "$ac_dir" && ac_dir=.
3349 if test -f $ac_dir/$ac_word; then
3350 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3351 ac_prog_rejected=yes
3359 if test $ac_prog_rejected = yes; then
3360 # We found a bogon in the path, so make sure we never use it.
3361 set dummy $ac_cv_prog_CC
3363 if test $# -gt 0; then
3364 # We chose a different compiler from the bogus one.
3365 # However, it has the same basename, so the bogon will be chosen
3366 # first if we set CC to just the basename; use the full file name.
3368 set dummy "$ac_dir/$ac_word" "$@"
3376 if test -n "$CC"; then
3377 echo "$ac_t""$CC" 1>&6
3379 echo "$ac_t""no" 1>&6
3382 if test -z "$CC"; then
3383 case "`uname -s`" in
3384 *win32* | *WIN32* | *CYGWIN*)
3385 # Extract the first word of "cl", so it can be a program name with args.
3386 set dummy cl; ac_word=$2
3387 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3388 echo "configure:3389: checking for $ac_word" >&5
3389 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3397 for ac_dir in $ac_dummy; do
3398 test -z "$ac_dir" && ac_dir=.
3399 if test -f $ac_dir/$ac_word; then
3408 if test -n "$CC"; then
3409 echo "$ac_t""$CC" 1>&6
3411 echo "$ac_t""no" 1>&6
3416 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3419 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3420 echo "configure:3421: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3423 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3426 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3427 cross_compiling=$ac_cv_prog_cc_cross
3429 cat > conftest.$ac_ext << EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3436 if { (eval echo configure:3437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3437 ac_cv_prog_cc_works=yes
3438 # If we can't run a trivial program, we are probably using a cross compiler.
3439 if (./conftest; exit) 2>/dev/null; then
3440 ac_cv_prog_cc_cross=no
3442 ac_cv_prog_cc_cross=yes
3445 echo "configure: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 ac_cv_prog_cc_works=no
3451 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3454 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3455 cross_compiling=$ac_cv_prog_cc_cross
3457 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3458 if test $ac_cv_prog_cc_works = no; then
3459 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3461 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3462 echo "configure:3463: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3463 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3464 cross_compiling=$ac_cv_prog_cc_cross
3466 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3467 echo "configure:3468: checking whether we are using GNU C" >&5
3468 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.c <<EOF
3476 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3483 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3485 if test $ac_cv_prog_gcc = yes; then
3491 ac_test_CFLAGS="${CFLAGS+set}"
3492 ac_save_CFLAGS="$CFLAGS"
3494 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3495 echo "configure:3496: checking whether ${CC-cc} accepts -g" >&5
3496 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 echo 'void f(){}' > conftest.c
3500 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3509 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS="$ac_save_CFLAGS"
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3519 if test "$GCC" = yes; then
3526 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3527 if test "${with_gnu_ld+set}" = set; then
3528 withval="$with_gnu_ld"
3529 test "$withval" = no || with_gnu_ld=yes
3535 if test "$GCC" = yes; then
3536 # Check if gcc -print-prog-name=ld gives a path.
3537 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3538 echo "configure:3539: checking for ld used by GCC" >&5
3541 # gcc leaves a trailing carriage return which upsets mingw
3542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3547 # Accept absolute paths.
3548 [\\/]* | [A-Za-z]:[\\/]*)
3549 re_direlt='/[^/][^/]*/\.\./'
3550 # Canonicalize the path of ld
3551 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3552 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3553 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3555 test -z "$LD" && LD="$ac_prog"
3558 # If it fails, then pretend we aren't using GCC.
3562 # If it is relative, then search for the first ld in PATH.
3566 elif test "$with_gnu_ld" = yes; then
3567 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3568 echo "configure:3569: checking for GNU ld" >&5
3570 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3571 echo "configure:3572: checking for non-GNU ld" >&5
3573 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 if test -z "$LD"; then
3577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3578 for ac_dir in $PATH; do
3579 test -z "$ac_dir" && ac_dir=.
3580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3581 lt_cv_path_LD="$ac_dir/$ac_prog"
3582 # Check to see if the program is GNU ld. I'd rather use --version,
3583 # but apparently some GNU ld's only accept -v.
3584 # Break only if it was the GNU/non-GNU ld that we prefer.
3585 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3586 test "$with_gnu_ld" != no && break
3588 test "$with_gnu_ld" != yes && break
3594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3599 if test -n "$LD"; then
3600 echo "$ac_t""$LD" 1>&6
3602 echo "$ac_t""no" 1>&6
3604 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3605 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3606 echo "configure:3607: checking if the linker ($LD) is GNU ld" >&5
3607 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3611 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3612 lt_cv_prog_gnu_ld=yes
3614 lt_cv_prog_gnu_ld=no
3618 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3619 with_gnu_ld=$lt_cv_prog_gnu_ld
3622 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3623 echo "configure:3624: checking for $LD option to reload object files" >&5
3624 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3625 echo $ac_n "(cached) $ac_c" 1>&6
3627 lt_cv_ld_reload_flag='-r'
3630 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3631 reload_flag=$lt_cv_ld_reload_flag
3632 test -n "$reload_flag" && reload_flag=" $reload_flag"
3634 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3635 echo "configure:3636: checking for BSD-compatible nm" >&5
3636 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 if test -n "$NM"; then
3640 # Let the user override the test.
3643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3644 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3645 test -z "$ac_dir" && ac_dir=.
3646 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3647 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3648 # Check to see if the nm accepts a BSD-compat flag.
3649 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3650 # nm: unknown option "B" ignored
3651 # Tru64's nm complains that /dev/null is an invalid object file
3652 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3653 lt_cv_path_NM="$tmp_nm -B"
3655 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3656 lt_cv_path_NM="$tmp_nm -p"
3659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3660 continue # so that we can try to find one that supports BSD flags
3665 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3670 echo "$ac_t""$NM" 1>&6
3672 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3673 echo "configure:3674: checking for a sed that does not truncate output" >&5
3674 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 # Loop through the user's path and test for sed and gsed.
3678 # Then use that list of sed's as ones to test for truncation.
3679 as_executable_p="test -f"
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_prog in sed gsed; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3688 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3694 # Create a temporary directory, and hook for its removal unless debugging.
3697 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3698 trap '{ (exit 1); exit 1; }' 1 2 13 15
3701 # Create a (secure) tmp directory for tmp files.
3704 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3705 test -n "$tmp" && test -d "$tmp"
3708 tmp=$TMPDIR/sed$$-$RANDOM
3709 (umask 077 && mkdir $tmp)
3712 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3713 { (exit 1); exit 1; }
3717 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3718 # along with /bin/sed that truncates output.
3719 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3720 test ! -f ${_sed} && break
3721 cat /dev/null > "$tmp/sed.in"
3723 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3724 # Check for GNU sed and select it if it is found.
3725 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3726 lt_cv_path_SED=${_sed}
3730 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3731 mv "$tmp/sed.tmp" "$tmp/sed.in"
3732 cp "$tmp/sed.in" "$tmp/sed.nl"
3733 echo >>"$tmp/sed.nl"
3734 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3735 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3736 # 40000 chars as input seems more than enough
3737 test $_count -gt 10 && break
3738 _count=`expr $_count + 1`
3739 if test $_count -gt $_max; then
3741 lt_cv_path_SED=$_sed
3749 if test "X$SED" != "X"; then
3754 echo "$ac_t""$SED" 1>&6
3756 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3757 echo "configure:3758: checking whether ln -s works" >&5
3758 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3762 if ln -s X conftestdata 2>/dev/null
3765 ac_cv_prog_LN_S="ln -s"
3770 LN_S="$ac_cv_prog_LN_S"
3771 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3772 echo "$ac_t""yes" 1>&6
3774 echo "$ac_t""no" 1>&6
3777 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3778 echo "configure:3779: checking how to recognise dependent libraries" >&5
3779 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 lt_cv_file_magic_cmd='$MAGIC_CMD'
3783 lt_cv_file_magic_test_file=
3784 lt_cv_deplibs_check_method='unknown'
3785 # Need to set the preceding variable on all platforms that support
3786 # interlibrary dependencies.
3787 # 'none' -- dependencies not supported.
3788 # `unknown' -- same as none, but documents that we really don't know.
3789 # 'pass_all' -- all dependencies passed with no checks.
3790 # 'test_compile' -- check by making test program.
3791 # 'file_magic [[regex]]' -- check by looking for files in library path
3792 # which responds to the $file_magic_cmd with a given egrep regex.
3793 # If you have `file' or equivalent on your system and you're not sure
3794 # whether `pass_all' will *always* work, you probably want this one.
3798 lt_cv_deplibs_check_method=pass_all
3802 lt_cv_deplibs_check_method=pass_all
3806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3807 lt_cv_file_magic_cmd='/usr/bin/file -L'
3808 lt_cv_file_magic_test_file=/shlib/libc.so
3811 cygwin* | mingw* | pw32*)
3812 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3813 lt_cv_file_magic_cmd='$OBJDUMP -f'
3816 darwin* | rhapsody*)
3817 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3818 lt_cv_file_magic_cmd='/usr/bin/file -L'
3820 rhapsody* | darwin1.[012])
3821 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3824 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3830 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3833 # Not sure whether the presence of OpenBSD here was a mistake.
3834 # Let's accept both of them until this is cleared up.
3835 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3836 lt_cv_file_magic_cmd=/usr/bin/file
3837 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3841 lt_cv_deplibs_check_method=pass_all
3846 lt_cv_deplibs_check_method=pass_all
3850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3851 lt_cv_file_magic_cmd=/usr/bin/file
3852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3855 irix5* | irix6* | nonstopux*)
3857 irix5* | nonstopux*)
3858 # this will be overridden with pass_all, but let us keep it just in case
3859 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3863 *-32|*"-32 ") libmagic=32-bit;;
3864 *-n32|*"-n32 ") libmagic=N32;;
3865 *-64|*"-64 ") libmagic=64-bit;;
3866 *) libmagic=never-match;;
3868 # this will be overridden with pass_all, but let us keep it just in case
3869 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3872 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3873 lt_cv_deplibs_check_method=pass_all
3876 # This must be Linux ELF.
3879 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3880 lt_cv_deplibs_check_method=pass_all ;;
3882 # glibc up to 2.1.1 does not perform some relocations on ARM
3883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3885 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3889 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3890 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3898 lt_cv_file_magic_cmd=/usr/bin/file
3899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3903 lt_cv_file_magic_cmd=/usr/bin/file
3904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3908 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3912 osf3* | osf4* | osf5*)
3913 # this will be overridden with pass_all, but let us keep it just in case
3914 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3915 lt_cv_file_magic_test_file=/shlib/libc.so
3916 lt_cv_deplibs_check_method=pass_all
3920 lt_cv_deplibs_check_method=pass_all
3924 lt_cv_deplibs_check_method=pass_all
3925 lt_cv_file_magic_test_file=/lib/libc.so
3928 sysv5uw[78]* | sysv4*uw2*)
3929 lt_cv_deplibs_check_method=pass_all
3932 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3933 case $host_vendor in
3935 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]'
3936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3939 lt_cv_deplibs_check_method=pass_all
3942 lt_cv_file_magic_cmd='/bin/file'
3943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3946 lt_cv_file_magic_cmd='/bin/file'
3947 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3948 lt_cv_file_magic_test_file=/lib/libc.so
3951 lt_cv_deplibs_check_method=pass_all
3959 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3960 file_magic_cmd=$lt_cv_file_magic_cmd
3961 deplibs_check_method=$lt_cv_deplibs_check_method
3963 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3964 echo "configure:3965: checking for object suffix" >&5
3965 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3969 echo 'int i = 1;' > conftest.$ac_ext
3970 if { (eval echo configure:3971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 for ac_file in conftest.*; do
3974 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3978 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3983 echo "$ac_t""$ac_cv_objext" 1>&6
3984 OBJEXT=$ac_cv_objext
3985 ac_objext=$ac_cv_objext
3990 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3991 echo "configure:3992: checking for executable suffix" >&5
3992 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3995 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3999 echo 'int main () { return 0; }' > conftest.$ac_ext
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4002 for file in conftest.*; do
4004 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4005 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4009 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4012 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4017 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4018 echo "$ac_t""${ac_cv_exeext}" 1>&6
4021 if test $host != $build; then
4022 ac_tool_prefix=${host_alias}-
4030 # Check for command to grab the raw symbol name followed by C symbol from nm.
4031 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4032 echo "configure:4033: checking command to parse $NM output" >&5
4033 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4037 # These are sane defaults that work on at least a few old systems.
4038 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4040 # Character class describing NM global symbol codes.
4041 symcode='[BCDEGRST]'
4043 # Regexp to match symbols that can be accessed directly from C.
4044 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4046 # Transform the above into a raw symbol and a C symbol.
4047 symxfrm='\1 \2\3 \3'
4049 # Transform an extracted symbol line into a proper C declaration
4050 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4052 # Transform an extracted symbol line into symbol name and symbol address
4053 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'"
4055 # Define system-specific variables.
4060 cygwin* | mingw* | pw32*)
4061 symcode='[ABCDGISTW]'
4063 hpux*) # Its linker distinguishes data from code symbols
4064 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4065 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'"
4068 symcode='[BCDEGRST]'
4071 symcode='[BCDEGQRST]'
4081 # Handle CRLF in mingw tool chain
4085 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4089 # If we're using GNU nm, then use its standard symbol codes.
4090 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4091 symcode='[ABCDGISTW]'
4094 # Try without a prefix undercore, then with it.
4095 for ac_symprfx in "" "_"; do
4097 # Write the raw and C identifiers.
4098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4100 # Check to see that the pipe works correctly.
4103 cat > conftest.$ac_ext <<EOF
4108 void nm_test_func(){}
4112 int main(){nm_test_var='a';nm_test_func();return(0);}
4115 if { (eval echo configure:4116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4116 # Now try to grab the symbols.
4118 if { (eval echo configure:4119: \"$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
4119 # Try sorting and uniquifying the output.
4120 if sort "$nlist" | uniq > "$nlist"T; then
4121 mv -f "$nlist"T "$nlist"
4126 # Make sure that we snagged all the symbols we need.
4127 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4128 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4129 cat <<EOF > conftest.$ac_ext
4135 # Now generate the symbol file.
4136 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4138 cat <<EOF >> conftest.$ac_ext
4139 #if defined (__STDC__) && __STDC__
4140 # define lt_ptr void *
4142 # define lt_ptr char *
4146 /* The mapping between symbol names and symbols. */
4151 lt_preloaded_symbols[] =
4154 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4155 cat <<\EOF >> conftest.$ac_ext
4163 # Now try linking the two files.
4164 mv conftest.$ac_objext conftstm.$ac_objext
4166 save_CFLAGS="$CFLAGS"
4167 LIBS="conftstm.$ac_objext"
4168 CFLAGS="$CFLAGS$no_builtin_flag"
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4173 CFLAGS="$save_CFLAGS"
4175 echo "cannot find nm_test_func in $nlist" >&5
4178 echo "cannot find nm_test_var in $nlist" >&5
4181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4184 echo "$progname: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 rm -f conftest* conftst*
4189 # Do not use the global_symbol_pipe unless it works.
4190 if test "$pipe_works" = yes; then
4193 lt_cv_sys_global_symbol_pipe=
4199 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4200 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4201 global_symbol_to_cdecl=
4202 global_symbol_to_c_name_address=
4204 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4205 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4207 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4209 echo "$ac_t""failed" 1>&6
4211 echo "$ac_t""ok" 1>&6
4214 for ac_hdr in dlfcn.h
4216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4218 echo "configure:4219: checking for $ac_hdr" >&5
4219 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4228 { (eval echo configure:4229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4230 if test -z "$ac_err"; then
4232 eval "ac_cv_header_$ac_safe=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 eval "ac_cv_header_$ac_safe=no"
4242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_hdr 1
4250 echo "$ac_t""no" 1>&6
4259 # Only perform the check for file, if the check method requires it
4260 case $deplibs_check_method in
4262 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4263 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4264 echo "configure:4265: checking for ${ac_tool_prefix}file" >&5
4265 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4276 ac_save_MAGIC_CMD="$MAGIC_CMD"
4277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4278 ac_dummy="/usr/bin:$PATH"
4279 for ac_dir in $ac_dummy; do
4280 test -z "$ac_dir" && ac_dir=.
4281 if test -f $ac_dir/${ac_tool_prefix}file; then
4282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4283 if test -n "$file_magic_test_file"; then
4284 case $deplibs_check_method in
4286 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4289 egrep "$file_magic_regex" > /dev/null; then
4294 *** Warning: the command libtool uses to detect shared libraries,
4295 *** $file_magic_cmd, produces output that libtool cannot recognize.
4296 *** The result is that libtool may fail to recognize shared libraries
4297 *** as such. This will affect the creation of libtool libraries that
4298 *** depend on shared libraries, but programs linked with such libtool
4299 *** libraries will work regardless of this problem. Nevertheless, you
4300 *** may want to report the problem to your system manager and/or to
4301 *** bug-libtool@gnu.org
4311 MAGIC_CMD="$ac_save_MAGIC_CMD"
4316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4317 if test -n "$MAGIC_CMD"; then
4318 echo "$ac_t""$MAGIC_CMD" 1>&6
4320 echo "$ac_t""no" 1>&6
4323 if test -z "$lt_cv_path_MAGIC_CMD"; then
4324 if test -n "$ac_tool_prefix"; then
4325 echo $ac_n "checking for file""... $ac_c" 1>&6
4326 echo "configure:4327: checking for file" >&5
4327 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4332 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4338 ac_save_MAGIC_CMD="$MAGIC_CMD"
4339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4340 ac_dummy="/usr/bin:$PATH"
4341 for ac_dir in $ac_dummy; do
4342 test -z "$ac_dir" && ac_dir=.
4343 if test -f $ac_dir/file; then
4344 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4345 if test -n "$file_magic_test_file"; then
4346 case $deplibs_check_method in
4348 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4351 egrep "$file_magic_regex" > /dev/null; then
4356 *** Warning: the command libtool uses to detect shared libraries,
4357 *** $file_magic_cmd, produces output that libtool cannot recognize.
4358 *** The result is that libtool may fail to recognize shared libraries
4359 *** as such. This will affect the creation of libtool libraries that
4360 *** depend on shared libraries, but programs linked with such libtool
4361 *** libraries will work regardless of this problem. Nevertheless, you
4362 *** may want to report the problem to your system manager and/or to
4363 *** bug-libtool@gnu.org
4373 MAGIC_CMD="$ac_save_MAGIC_CMD"
4378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4379 if test -n "$MAGIC_CMD"; then
4380 echo "$ac_t""$MAGIC_CMD" 1>&6
4382 echo "$ac_t""no" 1>&6
4394 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 if test -n "$RANLIB"; then
4402 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
4416 RANLIB="$ac_cv_prog_RANLIB"
4417 if test -n "$RANLIB"; then
4418 echo "$ac_t""$RANLIB" 1>&6
4420 echo "$ac_t""no" 1>&6
4424 if test -z "$ac_cv_prog_RANLIB"; then
4425 if test -n "$ac_tool_prefix"; then
4426 # Extract the first word of "ranlib", so it can be a program name with args.
4427 set dummy ranlib; 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_RANLIB+set}\" = set"; then
4431 echo $ac_n "(cached) $ac_c" 1>&6
4433 if test -n "$RANLIB"; then
4434 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
4446 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4449 RANLIB="$ac_cv_prog_RANLIB"
4450 if test -n "$RANLIB"; then
4451 echo "$ac_t""$RANLIB" 1>&6
4453 echo "$ac_t""no" 1>&6
4461 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4462 set dummy ${ac_tool_prefix}strip; ac_word=$2
4463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4464 echo "configure:4465: checking for $ac_word" >&5
4465 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 if test -n "$STRIP"; then
4469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4473 for ac_dir in $ac_dummy; do
4474 test -z "$ac_dir" && ac_dir=.
4475 if test -f $ac_dir/$ac_word; then
4476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4483 STRIP="$ac_cv_prog_STRIP"
4484 if test -n "$STRIP"; then
4485 echo "$ac_t""$STRIP" 1>&6
4487 echo "$ac_t""no" 1>&6
4491 if test -z "$ac_cv_prog_STRIP"; then
4492 if test -n "$ac_tool_prefix"; then
4493 # Extract the first word of "strip", so it can be a program name with args.
4494 set dummy strip; ac_word=$2
4495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_word" >&5
4497 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 if test -n "$STRIP"; then
4501 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4505 for ac_dir in $ac_dummy; do
4506 test -z "$ac_dir" && ac_dir=.
4507 if test -f $ac_dir/$ac_word; then
4508 ac_cv_prog_STRIP="strip"
4513 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4516 STRIP="$ac_cv_prog_STRIP"
4517 if test -n "$STRIP"; then
4518 echo "$ac_t""$STRIP" 1>&6
4520 echo "$ac_t""no" 1>&6
4530 enable_win32_dll=yes
4532 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4533 if test "${enable_libtool_lock+set}" = set; then
4534 enableval="$enable_libtool_lock"
4538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4540 # Some flags need to be propagated to the compiler or linker for good
4544 # Find out which ABI we are using.
4545 echo '#line 4546 "configure"' > conftest.$ac_ext
4546 if { (eval echo configure:4547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4547 case `/usr/bin/file conftest.$ac_objext` in
4563 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4564 SAVE_CFLAGS="$CFLAGS"
4565 CFLAGS="$CFLAGS -belf"
4566 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4567 echo "configure:4568: checking whether the C compiler needs -belf" >&5
4568 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4573 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4574 ac_cpp='$CPP $CPPFLAGS'
4575 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4576 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4577 cross_compiling=$ac_cv_prog_cc_cross
4579 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4589 lt_cv_cc_needs_belf=yes
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4594 lt_cv_cc_needs_belf=no
4598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4602 cross_compiling=$ac_cv_prog_cc_cross
4606 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4607 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4608 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4609 CFLAGS="$SAVE_CFLAGS"
4613 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4614 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4615 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_word" >&5
4618 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 if test -n "$DLLTOOL"; then
4622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4626 for ac_dir in $ac_dummy; do
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f $ac_dir/$ac_word; then
4629 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4636 DLLTOOL="$ac_cv_prog_DLLTOOL"
4637 if test -n "$DLLTOOL"; then
4638 echo "$ac_t""$DLLTOOL" 1>&6
4640 echo "$ac_t""no" 1>&6
4644 if test -z "$ac_cv_prog_DLLTOOL"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "dlltool", so it can be a program name with args.
4647 set dummy dlltool; ac_word=$2
4648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_word" >&5
4650 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 if test -n "$DLLTOOL"; then
4654 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4658 for ac_dir in $ac_dummy; do
4659 test -z "$ac_dir" && ac_dir=.
4660 if test -f $ac_dir/$ac_word; then
4661 ac_cv_prog_DLLTOOL="dlltool"
4666 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4669 DLLTOOL="$ac_cv_prog_DLLTOOL"
4670 if test -n "$DLLTOOL"; then
4671 echo "$ac_t""$DLLTOOL" 1>&6
4673 echo "$ac_t""no" 1>&6
4681 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}as; ac_word=$2
4683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_word" >&5
4685 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 if test -n "$AS"; then
4689 ac_cv_prog_AS="$AS" # Let the user override the test.
4691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4693 for ac_dir in $ac_dummy; do
4694 test -z "$ac_dir" && ac_dir=.
4695 if test -f $ac_dir/$ac_word; then
4696 ac_cv_prog_AS="${ac_tool_prefix}as"
4704 if test -n "$AS"; then
4705 echo "$ac_t""$AS" 1>&6
4707 echo "$ac_t""no" 1>&6
4711 if test -z "$ac_cv_prog_AS"; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "as", so it can be a program name with args.
4714 set dummy as; ac_word=$2
4715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_word" >&5
4717 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 if test -n "$AS"; then
4721 ac_cv_prog_AS="$AS" # Let the user override the test.
4723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4725 for ac_dir in $ac_dummy; do
4726 test -z "$ac_dir" && ac_dir=.
4727 if test -f $ac_dir/$ac_word; then
4733 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4737 if test -n "$AS"; then
4738 echo "$ac_t""$AS" 1>&6
4740 echo "$ac_t""no" 1>&6
4748 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4749 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_word" >&5
4752 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 if test -n "$OBJDUMP"; then
4756 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4760 for ac_dir in $ac_dummy; do
4761 test -z "$ac_dir" && ac_dir=.
4762 if test -f $ac_dir/$ac_word; then
4763 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4770 OBJDUMP="$ac_cv_prog_OBJDUMP"
4771 if test -n "$OBJDUMP"; then
4772 echo "$ac_t""$OBJDUMP" 1>&6
4774 echo "$ac_t""no" 1>&6
4778 if test -z "$ac_cv_prog_OBJDUMP"; then
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "objdump", so it can be a program name with args.
4781 set dummy objdump; ac_word=$2
4782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4783 echo "configure:4784: checking for $ac_word" >&5
4784 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 if test -n "$OBJDUMP"; then
4788 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4792 for ac_dir in $ac_dummy; do
4793 test -z "$ac_dir" && ac_dir=.
4794 if test -f $ac_dir/$ac_word; then
4795 ac_cv_prog_OBJDUMP="objdump"
4800 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4803 OBJDUMP="$ac_cv_prog_OBJDUMP"
4804 if test -n "$OBJDUMP"; then
4805 echo "$ac_t""$OBJDUMP" 1>&6
4807 echo "$ac_t""no" 1>&6
4816 # recent cygwin and mingw systems supply a stub DllMain which the user
4817 # can override, but on older systems we have to supply one
4818 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4819 echo "configure:4820: checking if libtool should supply DllMain function" >&5
4820 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4828 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4834 lt_cv_need_dllmain=no
4836 echo "configure: failed program was:" >&5
4837 cat conftest.$ac_ext >&5
4839 lt_cv_need_dllmain=yes
4844 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4847 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4848 # old mingw systems require "-dll" to link a DLL, while more recent ones
4850 SAVE_CFLAGS="$CFLAGS"
4851 CFLAGS="$CFLAGS -mdll"
4852 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4853 echo "configure:4854: checking how to link DLLs" >&5
4854 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 lt_cv_cc_dll_switch=-mdll
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 lt_cv_cc_dll_switch=-dll
4877 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4878 CFLAGS="$SAVE_CFLAGS" ;;
4879 *-*-cygwin* | *-*-pw32*)
4880 # cygwin systems need to pass --dll to the linker, and not link
4881 # crt.o which will require a WinMain@16 definition.
4882 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4888 # Sed substitution that helps us do robust quoting. It backslashifies
4889 # metacharacters that are still active within double-quoted strings.
4890 Xsed='sed -e s/^X//'
4891 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4893 # Same as above, but do not quote variable references.
4894 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4896 # Sed substitution to delay expansion of an escaped shell variable in a
4897 # double_quote_subst'ed string.
4898 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4904 default_ofile=libtool
4905 can_build_shared=yes
4907 # All known linkers require a `.a' archive for static linking (except M$VC,
4908 # which needs '.lib').
4910 ltmain="$ac_aux_dir/ltmain.sh"
4911 ofile="$default_ofile"
4912 with_gnu_ld="$lt_cv_prog_gnu_ld"
4913 need_locks="$enable_libtool_lock"
4916 old_CFLAGS="$CFLAGS"
4918 # Set sane defaults for various variables
4919 test -z "$AR" && AR=ar
4920 test -z "$AR_FLAGS" && AR_FLAGS=cru
4921 test -z "$AS" && AS=as
4922 test -z "$CC" && CC=cc
4923 test -z "$DLLTOOL" && DLLTOOL=dlltool
4924 test -z "$LD" && LD=ld
4925 test -z "$LN_S" && LN_S="ln -s"
4926 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4927 test -z "$NM" && NM=nm
4928 test -z "$OBJDUMP" && OBJDUMP=objdump
4929 test -z "$RANLIB" && RANLIB=:
4930 test -z "$STRIP" && STRIP=:
4931 test -z "$ac_objext" && ac_objext=o
4933 if test x"$host" != x"$build"; then
4934 ac_tool_prefix=${host_alias}-
4939 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4942 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4947 # AIX sometimes has problems with the GCC collect2 program. For some
4948 # reason, if we set the COLLECT_NAMES environment variable, the problems
4949 # vanish in a puff of smoke.
4950 if test "X${COLLECT_NAMES+set}" != Xset; then
4952 export COLLECT_NAMES
4957 # Determine commands to create old-style static archives.
4958 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4959 old_postinstall_cmds='chmod 644 $oldlib'
4960 old_postuninstall_cmds=
4962 if test -n "$RANLIB"; then
4965 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4968 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4971 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4974 # Allow CC to be a program name with arguments.
4978 ## FIXME: this should be a separate macro
4980 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4981 echo "configure:4982: checking for objdir" >&5
4982 rm -f .libs 2>/dev/null
4983 mkdir .libs 2>/dev/null
4984 if test -d .libs; then
4987 # MS-DOS does not allow filenames that begin with a dot.
4990 rmdir .libs 2>/dev/null
4991 echo "$ac_t""$objdir" 1>&6
4996 ## FIXME: this should be a separate macro
4998 # Check whether --with-pic or --without-pic was given.
4999 if test "${with_pic+set}" = set; then
5006 test -z "$pic_mode" && pic_mode=default
5008 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5009 # in isolation, and that seeing it set (from the cache) indicates that
5010 # the associated values are set (in the cache) correctly too.
5011 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $compiler option to produce PIC" >&5
5013 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5017 lt_cv_prog_cc_shlib=
5019 lt_cv_prog_cc_static=
5020 lt_cv_prog_cc_no_builtin=
5021 lt_cv_prog_cc_can_build_shared=$can_build_shared
5023 if test "$GCC" = yes; then
5024 lt_cv_prog_cc_wl='-Wl,'
5025 lt_cv_prog_cc_static='-static'
5029 # Below there is a dirty hack to force normal static linking with -ldl
5030 # The problem is because libdl dynamically linked with both libc and
5031 # libC (AIX C++ library), which obviously doesn't included in libraries
5032 # list by gcc. This cause undefined symbols with -static flags.
5033 # This hack allows C programs to be linked with "-static -ldl", but
5034 # not sure about C++ programs.
5035 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5038 # FIXME: we need at least 68020 code to build shared libraries, but
5039 # adding the `-m68020' flag to GCC prevents building anything better,
5041 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5044 # PIC is the default for these OSes.
5046 darwin* | rhapsody*)
5047 # PIC is the default on this platform
5048 # Common symbols not allowed in MH_DYLIB files
5049 lt_cv_prog_cc_pic='-fno-common'
5051 cygwin* | mingw* | pw32* | os2*)
5052 # This hack is so that the source file can tell whether it is being
5053 # built for inclusion in a dll (and should export symbols for example).
5054 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5057 if test -d /usr/nec; then
5058 lt_cv_prog_cc_pic=-Kconform_pic
5062 lt_cv_prog_cc_pic='-fPIC'
5066 # PORTME Check for PIC flags for the system compiler.
5068 aix3* | aix4* | aix5*)
5069 lt_cv_prog_cc_wl='-Wl,'
5070 # All AIX code is PIC.
5071 if test "$host_cpu" = ia64; then
5072 # AIX 5 now supports IA64 processor
5073 lt_cv_prog_cc_static='-Bstatic'
5075 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5079 hpux9* | hpux10* | hpux11*)
5080 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5081 lt_cv_prog_cc_wl='-Wl,'
5082 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5083 lt_cv_prog_cc_pic='+Z'
5086 irix5* | irix6* | nonstopux*)
5087 lt_cv_prog_cc_wl='-Wl,'
5088 lt_cv_prog_cc_static='-non_shared'
5089 # PIC (with -KPIC) is the default.
5092 cygwin* | mingw* | pw32* | os2*)
5093 # This hack is so that the source file can tell whether it is being
5094 # built for inclusion in a dll (and should export symbols for example).
5095 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5099 lt_cv_prog_cc_pic='-KPIC'
5100 lt_cv_prog_cc_static='-Bstatic'
5103 osf3* | osf4* | osf5*)
5104 # All OSF/1 code is PIC.
5105 lt_cv_prog_cc_wl='-Wl,'
5106 lt_cv_prog_cc_static='-non_shared'
5110 lt_cv_prog_cc_pic='-Kpic'
5111 lt_cv_prog_cc_static='-dn'
5112 lt_cv_prog_cc_shlib='-belf'
5116 lt_cv_prog_cc_pic='-KPIC'
5117 lt_cv_prog_cc_static='-Bstatic'
5118 lt_cv_prog_cc_wl='-Wl,'
5122 lt_cv_prog_cc_pic='-PIC'
5123 lt_cv_prog_cc_static='-Bstatic'
5124 lt_cv_prog_cc_wl='-Qoption ld '
5127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5128 lt_cv_prog_cc_pic='-KPIC'
5129 lt_cv_prog_cc_static='-Bstatic'
5130 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_pic='-pic'
5135 lt_cv_prog_cc_static='-Bstatic'
5139 if test -d /usr/nec ;then
5140 lt_cv_prog_cc_pic='-Kconform_pic'
5141 lt_cv_prog_cc_static='-Bstatic'
5146 lt_cv_prog_cc_can_build_shared=no
5153 if test -z "$lt_cv_prog_cc_pic"; then
5154 echo "$ac_t""none" 1>&6
5156 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5158 # Check to make sure the pic_flag actually works.
5159 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5160 echo "configure:5161: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5161 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 save_CFLAGS="$CFLAGS"
5165 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5166 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure"
5168 #include "confdefs.h"
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5177 hpux9* | hpux10* | hpux11*)
5178 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5179 # they create non-PIC objects. So, if there were any warnings, we
5180 # assume that PIC is not supported.
5181 if test -s conftest.err; then
5182 lt_cv_prog_cc_pic_works=no
5184 lt_cv_prog_cc_pic_works=yes
5188 lt_cv_prog_cc_pic_works=yes
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 lt_cv_prog_cc_pic_works=no
5200 CFLAGS="$save_CFLAGS"
5205 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5207 lt_cv_prog_cc_can_build_shared=no
5209 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5212 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5217 # Check for any special shared library compilation flags.
5218 if test -n "$lt_cv_prog_cc_shlib"; then
5219 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5220 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5222 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5223 lt_cv_prog_cc_can_build_shared=no
5227 ## FIXME: this should be a separate macro
5229 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5230 echo "configure:5231: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5231 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5232 echo $ac_n "(cached) $ac_c" 1>&6
5234 lt_cv_prog_cc_static_works=no
5235 save_LDFLAGS="$LDFLAGS"
5236 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5247 lt_cv_prog_cc_static_works=yes
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5253 LDFLAGS="$save_LDFLAGS"
5258 # Belt *and* braces to stop my trousers falling down:
5259 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5260 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5262 pic_flag="$lt_cv_prog_cc_pic"
5263 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5264 wl="$lt_cv_prog_cc_wl"
5265 link_static_flag="$lt_cv_prog_cc_static"
5266 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5267 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5272 ## FIXME: this should be a separate macro
5274 # Check to see if options -o and -c are simultaneously supported by compiler
5275 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5276 echo "configure:5277: checking if $compiler supports -c -o file.$ac_objext" >&5
5277 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5281 $rm -r conftest 2>/dev/null
5284 echo "int some_variable = 0;" > conftest.$ac_ext
5286 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5287 # that will create temporary files in the current directory regardless of
5288 # the output directory. Thus, making CWD read-only will cause this test
5289 # to fail, enabling locking or at least warning the user not to do parallel
5292 save_CFLAGS="$CFLAGS"
5293 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5296 # The compiler can only warn and ignore the option if not recognized
5297 # So say no if there are warnings
5298 if test -s out/conftest.err; then
5299 lt_cv_compiler_c_o=no
5301 lt_cv_compiler_c_o=yes
5304 # Append any errors to the config.log.
5305 cat out/conftest.err 1>&5
5306 lt_cv_compiler_c_o=no
5308 CFLAGS="$save_CFLAGS"
5314 $rm -r conftest 2>/dev/null
5318 compiler_c_o=$lt_cv_compiler_c_o
5319 echo "$ac_t""$compiler_c_o" 1>&6
5321 if test x"$compiler_c_o" = x"yes"; then
5322 # Check to see if we can write to a .lo
5323 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5324 echo "configure:5325: checking if $compiler supports -c -o file.lo" >&5
5325 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5329 lt_cv_compiler_o_lo=no
5330 save_CFLAGS="$CFLAGS"
5331 CFLAGS="$CFLAGS -c -o conftest.lo"
5332 save_objext="$ac_objext"
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5339 int some_variable = 0;
5342 if { (eval echo configure:5343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5344 # The compiler can only warn and ignore the option if not recognized
5345 # So say no if there are warnings
5346 if test -s conftest.err; then
5347 lt_cv_compiler_o_lo=no
5349 lt_cv_compiler_o_lo=yes
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5357 ac_objext="$save_objext"
5358 CFLAGS="$save_CFLAGS"
5362 compiler_o_lo=$lt_cv_compiler_o_lo
5363 echo "$ac_t""$compiler_o_lo" 1>&6
5370 ## FIXME: this should be a separate macro
5372 # Check to see if we can do hard links to lock some files if needed
5373 hard_links="nottested"
5374 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5375 # do not overwrite the value of need_locks provided by the user
5376 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5377 echo "configure:5378: checking if we can lock with hard links" >&5
5380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5382 ln conftest.a conftest.b 2>&5 || hard_links=no
5383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5384 echo "$ac_t""$hard_links" 1>&6
5385 if test "$hard_links" = no; then
5386 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5395 ## FIXME: this should be a separate macro
5397 if test "$GCC" = yes; then
5398 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5399 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5400 echo "configure:5401: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5401 echo "int some_variable = 0;" > conftest.$ac_ext
5402 save_CFLAGS="$CFLAGS"
5403 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5404 compiler_rtti_exceptions=no
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5410 int some_variable = 0;
5413 if { (eval echo configure:5414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5415 # The compiler can only warn and ignore the option if not recognized
5416 # So say no if there are warnings
5417 if test -s conftest.err; then
5418 compiler_rtti_exceptions=no
5420 compiler_rtti_exceptions=yes
5424 echo "configure: failed program was:" >&5
5425 cat conftest.$ac_ext >&5
5428 CFLAGS="$save_CFLAGS"
5429 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5431 if test "$compiler_rtti_exceptions" = "yes"; then
5432 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5434 no_builtin_flag=' -fno-builtin'
5440 ## FIXME: this should be a separate macro
5442 # See if the linker supports building shared libraries.
5443 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5444 echo "configure:5445: checking whether the linker ($LD) supports shared libraries" >&5
5446 allow_undefined_flag=
5448 need_lib_prefix=unknown
5449 need_version=unknown
5450 # when you set need_version to no, make sure it does not cause -set_version
5451 # flags to be left without arguments
5453 archive_expsym_cmds=
5454 old_archive_from_new_cmds=
5455 old_archive_from_expsyms_cmds=
5456 export_dynamic_flag_spec=
5457 whole_archive_flag_spec=
5458 thread_safe_flag_spec=
5459 hardcode_into_libs=no
5460 hardcode_libdir_flag_spec=
5461 hardcode_libdir_separator=
5464 hardcode_shlibpath_var=unsupported
5466 link_all_deplibs=unknown
5467 always_export_symbols=no
5468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5469 # include_expsyms should be a list of space-separated symbols to be *always*
5470 # included in the symbol list
5472 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5473 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5474 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5475 # as well as any symbol that contains `d'.
5476 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5477 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5478 # platforms (ab)use it in PIC code, but their linkers get confused if
5479 # the symbol is explicitly referenced. Since portable code cannot
5480 # rely on this symbol name, it's probably fine to never include it in
5481 # preloaded symbol tables.
5482 extract_expsyms_cmds=
5485 cygwin* | mingw* | pw32*)
5486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5487 # When not using gcc, we currently assume that we are using
5488 # Microsoft Visual C++.
5489 if test "$GCC" != yes; then
5499 if test "$with_gnu_ld" = yes; then
5500 # If archive_cmds runs LD, not CC, wlarc should be empty
5503 # See if GNU ld supports shared libraries.
5505 aix3* | aix4* | aix5*)
5506 # On AIX, the GNU linker is very broken
5507 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5512 *** to be unable to reliably create shared libraries on AIX.
5513 *** Therefore, libtool is disabling shared libraries support. If you
5514 *** really care for shared libraries, you may want to modify your PATH
5515 *** so that a non-GNU linker is found, and then restart.
5521 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)'
5522 hardcode_libdir_flag_spec='-L$libdir'
5523 hardcode_minus_L=yes
5525 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5526 # that the semantics of dynamic libraries on AmigaOS, at least up
5527 # to version 4, is to share data among multiple programs linked
5528 # with the same dynamic library. Since this doesn't match the
5529 # behavior of shared libraries on other platforms, we can use
5535 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5536 allow_undefined_flag=unsupported
5537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5538 # support --undefined. This deserves some investigation. FIXME
5539 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5545 cygwin* | mingw* | pw32*)
5546 # hardcode_libdir_flag_spec is actually meaningless, as there is
5547 # no search path for DLLs.
5548 hardcode_libdir_flag_spec='-L$libdir'
5549 allow_undefined_flag=unsupported
5550 always_export_symbols=yes
5552 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5553 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5554 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5555 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5556 else $CC -o impgen impgen.c ; fi)~
5557 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5559 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5561 # cygwin and mingw dlls have different entry points and sets of symbols
5563 # FIXME: what about values for MSVC?
5564 dll_entry=__cygwin_dll_entry@12
5565 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5569 dll_entry=_DllMainCRTStartup@12
5570 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5574 # mingw and cygwin differ, and it's simplest to just exclude the union
5575 # of the two symbol sets.
5576 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5578 # recent cygwin and mingw systems supply a stub DllMain which the user
5579 # can override, but on older systems we have to supply one (in ltdll.c)
5580 if test "x$lt_cv_need_dllmain" = "xyes"; then
5581 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5582 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~
5583 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5589 # Extract the symbol export list from an `--export-all' def file,
5590 # then regenerate the def file from the symbol export list, so that
5591 # the compiled dll only exports the symbol export list.
5592 # Be careful not to strip the DATA tag left be newer dlltools.
5593 export_symbols_cmds="$ltdll_cmds"'
5594 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5595 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5597 # If the export-symbols file already is a .def file (1st line
5598 # is EXPORTS), use it as is.
5599 # If DATA tags from a recent dlltool are present, honour them!
5600 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5601 cp $export_symbols $output_objdir/$soname-def;
5603 echo EXPORTS > $output_objdir/$soname-def;
5605 cat $export_symbols | while read symbol; do
5608 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5609 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5610 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5612 _lt_hint=`expr 1 + \$_lt_hint`;
5616 $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~
5617 $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~
5618 $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~
5619 $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~
5620 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5625 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5628 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5629 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5634 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5639 *** create shared libraries on Solaris systems. Therefore, libtool
5640 *** is disabling shared libraries support. We urge you to upgrade GNU
5641 *** binutils to release 2.9.1 or newer. Another option is to modify
5642 *** your PATH or compiler configuration so that the native linker is
5643 *** used, and then restart.
5646 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5655 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5658 hardcode_shlibpath_var=no
5662 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5671 if test "$ld_shlibs" = yes; then
5672 runpath_var=LD_RUN_PATH
5673 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5674 export_dynamic_flag_spec='${wl}--export-dynamic'
5676 cygwin* | mingw* | pw32*)
5677 # dlltool doesn't understand --whole-archive et. al.
5678 whole_archive_flag_spec=
5681 # ancient GNU ld didn't support --whole-archive et. al.
5682 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5683 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5685 whole_archive_flag_spec=
5691 # PORTME fill in a description of your system's linker (not GNU ld)
5694 allow_undefined_flag=unsupported
5695 always_export_symbols=yes
5696 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'
5697 # Note: this linker hardcodes the directories in LIBPATH if there
5698 # are no directories specified by -L.
5699 hardcode_minus_L=yes
5700 if test "$GCC" = yes && test -z "$link_static_flag"; then
5701 # Neither direct hardcoding nor static linking is supported with a
5703 hardcode_direct=unsupported
5708 if test "$host_cpu" = ia64; then
5709 # On IA64, the linker does run time linking by default, so we don't
5710 # have to do anything special.
5711 aix_use_runtimelinking=no
5712 exp_sym_flag='-Bexport'
5715 aix_use_runtimelinking=no
5717 # Test if we are trying to use run time linking or normal
5718 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5719 # need to do runtime linking.
5720 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5721 for ld_flag in $LDFLAGS; do
5724 aix_use_runtimelinking=yes
5731 exp_sym_flag='-bexport'
5732 no_entry_flag='-bnoentry'
5735 # When large executables or shared objects are built, AIX ld can
5736 # have problems creating the table of contents. If linking a library
5737 # or program results in "error TOC overflow" add -mminimal-toc to
5738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5743 hardcode_libdir_separator=':'
5744 if test "$GCC" = yes; then
5745 case $host_os in aix4.[012]|aix4.[012].*)
5746 collect2name=`${CC} -print-prog-name=collect2`
5747 if test -f "$collect2name" && \
5748 strings "$collect2name" | grep resolve_lib_name >/dev/null
5750 # We have reworked collect2
5753 # We have old collect2
5754 hardcode_direct=unsupported
5755 # It fails to find uninstalled libraries when the uninstalled
5756 # path is not listed in the libpath. Setting hardcode_minus_L
5757 # to unsupported forces relinking
5758 hardcode_minus_L=yes
5759 hardcode_libdir_flag_spec='-L$libdir'
5760 hardcode_libdir_separator=
5764 shared_flag='-shared'
5767 if test "$host_cpu" = ia64; then
5768 shared_flag='${wl}-G'
5770 if test "$aix_use_runtimelinking" = yes; then
5771 shared_flag='${wl}-G'
5773 shared_flag='${wl}-bM:SRE'
5778 # It seems that -bexpall can do strange things, so it is better to
5779 # generate a list of symbols to export.
5780 always_export_symbols=yes
5781 if test "$aix_use_runtimelinking" = yes; then
5782 # Warning - without using the other runtime loading flags (-brtl),
5783 # -berok will link without error, but may produce a broken library.
5784 allow_undefined_flag='-berok'
5785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5786 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"
5788 if test "$host_cpu" = ia64; then
5789 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5790 allow_undefined_flag="-z nodefs"
5791 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"
5793 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5794 # Warning - without using the other run time loading flags,
5795 # -berok will link without error, but may produce a broken library.
5796 allow_undefined_flag='${wl}-berok'
5797 # This is a bit strange, but is similar to how AIX traditionally builds
5798 # it's shared libraries.
5799 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'
5805 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)'
5806 hardcode_libdir_flag_spec='-L$libdir'
5807 hardcode_minus_L=yes
5808 # see comment about different semantics on the GNU ld section
5812 cygwin* | mingw* | pw32*)
5813 # When not using gcc, we currently assume that we are using
5814 # Microsoft Visual C++.
5815 # hardcode_libdir_flag_spec is actually meaningless, as there is
5816 # no search path for DLLs.
5817 hardcode_libdir_flag_spec=' '
5818 allow_undefined_flag=unsupported
5819 # Tell ltmain to make .lib files, not .a files.
5821 # FIXME: Setting linknames here is a bad hack.
5822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5823 # The linker will automatically build a .lib file if we build a DLL.
5824 old_archive_from_new_cmds='true'
5825 # FIXME: Should let the user specify the lib program.
5826 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5827 fix_srcfile_path='`cygpath -w "$srcfile"`'
5830 darwin* | rhapsody*)
5832 rhapsody* | darwin1.[012])
5833 allow_undefined_flag='-undefined suppress'
5836 allow_undefined_flag='-flat_namespace -undefined suppress'
5839 # FIXME: Relying on posixy $() will cause problems for
5840 # cross-compilation, but unfortunately the echo tests do not
5841 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5842 # `"' quotes if we put them in here... so don't!
5843 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)'
5844 # We need to add '_' to the symbols in $export_symbols first
5845 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5847 hardcode_shlibpath_var=no
5848 whole_archive_flag_spec='-all_load $convenience'
5855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5856 # support. Future versions do this automatically, but an explicit c++rt0.o
5857 # does not break anything, and helps significantly (at the cost of a little
5860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5861 hardcode_libdir_flag_spec='-R$libdir'
5863 hardcode_shlibpath_var=no
5866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5870 hardcode_minus_L=yes
5871 hardcode_shlibpath_var=no
5874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5876 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5877 hardcode_libdir_flag_spec='-R$libdir'
5879 hardcode_shlibpath_var=no
5882 hpux9* | hpux10* | hpux11*)
5884 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' ;;
5885 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5888 hardcode_libdir_separator=:
5890 hardcode_minus_L=yes # Not in the search PATH, but as the default
5891 # location of the library.
5892 export_dynamic_flag_spec='${wl}-E'
5895 irix5* | irix6* | nonstopux*)
5896 if test "$GCC" = yes; then
5897 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'
5898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5900 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'
5901 hardcode_libdir_flag_spec='-rpath $libdir'
5903 hardcode_libdir_separator=:
5904 link_all_deplibs=yes
5908 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5911 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5913 hardcode_libdir_flag_spec='-R$libdir'
5915 hardcode_shlibpath_var=no
5919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5922 hardcode_libdir_separator=:
5923 hardcode_shlibpath_var=no
5928 hardcode_shlibpath_var=no
5929 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5932 export_dynamic_flag_spec='${wl}-E'
5935 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5937 hardcode_libdir_flag_spec='-R$libdir'
5940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5948 hardcode_libdir_flag_spec='-L$libdir'
5949 hardcode_minus_L=yes
5950 allow_undefined_flag=unsupported
5951 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'
5952 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5956 if test "$GCC" = yes; then
5957 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5958 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'
5960 allow_undefined_flag=' -expect_unresolved \*'
5961 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'
5963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5964 hardcode_libdir_separator=:
5967 osf4* | osf5*) # as osf3* with the addition of -msym flag
5968 if test "$GCC" = yes; then
5969 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5970 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'
5971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5973 allow_undefined_flag=' -expect_unresolved \*'
5974 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'
5975 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5976 $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'
5978 #Both c and cxx compiler support -rpath directly
5979 hardcode_libdir_flag_spec='-rpath $libdir'
5981 hardcode_libdir_separator=:
5985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_shlibpath_var=no
5987 runpath_var=LD_RUN_PATH
5988 hardcode_runpath_var=yes
5989 export_dynamic_flag_spec='${wl}-Bexport'
5993 # gcc --version < 3.0 without binutils cannot create self contained
5994 # shared libraries reliably, requiring libgcc.a to resolve some of
5995 # the object symbols generated in some cases. Libraries that use
5996 # assert need libgcc.a to resolve __eprintf, for example. Linking
5997 # a copy of libgcc.a into every shared library to guarantee resolving
5998 # such symbols causes other problems: According to Tim Van Holder
5999 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6000 # (to the application) exception stack for one thing.
6001 no_undefined_flag=' -z defs'
6002 if test "$GCC" = yes; then
6003 case `$CC --version 2>/dev/null` in
6007 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6008 *** create self contained shared libraries on Solaris systems, without
6009 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6010 *** -no-undefined support, which will at least allow you to build shared
6011 *** libraries. However, you may find that when you link such libraries
6012 *** into an application without using GCC, you have to manually add
6013 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6014 *** upgrade to a newer version of GCC. Another option is to rebuild your
6015 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6022 # $CC -shared without GNU ld will not create a library from C++
6023 # object files and a static libstdc++, better avoid it by now
6024 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6027 hardcode_libdir_flag_spec='-R$libdir'
6028 hardcode_shlibpath_var=no
6030 solaris2.[0-5] | solaris2.[0-5].*) ;;
6031 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6032 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6034 link_all_deplibs=yes
6038 if test "x$host_vendor" = xsequent; then
6039 # Use $CC to link under sequent, because it throws in some extra .o
6040 # files that make .init and .fini sections work.
6041 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6043 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6045 hardcode_libdir_flag_spec='-L$libdir'
6047 hardcode_minus_L=yes
6048 hardcode_shlibpath_var=no
6052 case $host_vendor in
6054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6055 hardcode_direct=yes # is this really true???
6058 ## LD is ld it makes a PLAMLIB
6059 ## CC just makes a GrossModule.
6060 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6061 reload_cmds='$CC -r -o $output$reload_objs'
6065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6066 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6069 runpath_var='LD_RUN_PATH'
6070 hardcode_shlibpath_var=no
6074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6075 hardcode_shlibpath_var=no
6076 export_dynamic_flag_spec='-Bexport'
6080 no_undefined_flag=' -z text'
6081 # $CC -shared without GNU ld will not create a library from C++
6082 # object files and a static libstdc++, better avoid it by now
6083 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6084 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6085 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6086 hardcode_libdir_flag_spec=
6087 hardcode_shlibpath_var=no
6088 runpath_var='LD_RUN_PATH'
6092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6093 hardcode_libdir_flag_spec='-L$libdir'
6094 hardcode_shlibpath_var=no
6098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6099 hardcode_libdir_flag_spec='-L$libdir'
6100 hardcode_shlibpath_var=no
6104 if test -d /usr/nec; then
6105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6106 hardcode_shlibpath_var=no
6107 runpath_var=LD_RUN_PATH
6108 hardcode_runpath_var=yes
6114 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6117 hardcode_shlibpath_var=no
6118 hardcode_runpath_var=yes
6119 runpath_var=LD_RUN_PATH
6122 sysv5uw7* | unixware7*)
6123 no_undefined_flag='${wl}-z ${wl}text'
6124 if test "$GCC" = yes; then
6125 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6127 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6129 runpath_var='LD_RUN_PATH'
6130 hardcode_shlibpath_var=no
6138 echo "$ac_t""$ld_shlibs" 1>&6
6139 test "$ld_shlibs" = no && can_build_shared=no
6143 ## FIXME: this should be a separate macro
6145 # Check hardcoding attributes.
6146 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6147 echo "configure:6148: checking how to hardcode library paths into programs" >&5
6149 if test -n "$hardcode_libdir_flag_spec" || \
6150 test -n "$runpath_var"; then
6152 # We can hardcode non-existant directories.
6153 if test "$hardcode_direct" != no &&
6154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6155 # have to relink, otherwise we might link with an installed library
6156 # when we should be linking with a yet-to-be-installed one
6157 ## test "$hardcode_shlibpath_var" != no &&
6158 test "$hardcode_minus_L" != no; then
6159 # Linking always hardcodes the temporary library directory.
6160 hardcode_action=relink
6162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6163 hardcode_action=immediate
6166 # We cannot hardcode anything, or else we can only hardcode existing
6168 hardcode_action=unsupported
6170 echo "$ac_t""$hardcode_action" 1>&6
6174 ## FIXME: this should be a separate macro
6178 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6179 echo "configure:6180: checking whether stripping libraries is possible" >&5
6180 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6181 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6182 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6183 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6193 ## FIXME: this should be a separate macro
6195 # PORTME Fill in your ld.so characteristics
6196 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6197 echo "configure:6198: checking dynamic linker characteristics" >&5
6199 libname_spec='lib$name'
6206 shlibpath_overrides_runpath=unknown
6208 dynamic_linker="$host_os ld.so"
6209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6215 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6216 shlibpath_var=LIBPATH
6218 # AIX has no versioning support, so we append a major version to the name.
6219 soname_spec='${libname}${release}.so$major'
6226 hardcode_into_libs=yes
6227 if test "$host_cpu" = ia64; then
6228 # AIX 5 supports IA64
6229 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6230 shlibpath_var=LD_LIBRARY_PATH
6232 # With GCC up to 2.95.x, collect2 would create an import file
6233 # for dependence libraries. The import file would start with
6234 # the line `#! .'. This would cause the generated library to
6235 # depend on `.', always an invalid library. This was fixed in
6236 # development snapshots of GCC prior to 3.0.
6238 aix4 | aix4.[01] | aix4.[01].*)
6239 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6241 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6248 # AIX (on Power*) has no versioning support, so currently we can
6249 # not hardcode correct soname into executable. Probably we can
6250 # add versioning support to collect2, so additional links can
6251 # be useful in future.
6252 if test "$aix_use_runtimelinking" = yes; then
6253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6254 # instead of lib<name>.a to let people know that these are not
6255 # typical AIX shared libraries.
6256 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6258 # We preserve .a as extension for shared libraries through AIX4.2
6259 # and later when we are not doing run time linking.
6260 library_names_spec='${libname}${release}.a $libname.a'
6261 soname_spec='${libname}${release}.so$major'
6263 shlibpath_var=LIBPATH
6265 hardcode_into_libs=yes
6269 library_names_spec='$libname.ixlibrary $libname.a'
6270 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6271 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'
6275 library_names_spec='${libname}.so'
6276 dynamic_linker="$host_os ld.so"
6277 shlibpath_var=LIBRARY_PATH
6283 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6284 soname_spec='${libname}${release}.so$major'
6285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6286 shlibpath_var=LD_LIBRARY_PATH
6287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6289 export_dynamic_flag_spec=-rdynamic
6290 # the default ld.so.conf also contains /usr/contrib/lib and
6291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6292 # libtool to hard-code these into programs
6295 cygwin* | mingw* | pw32*)
6296 version_type=windows
6299 case $GCC,$host_os in
6301 library_names_spec='$libname.dll.a'
6302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6303 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6304 dldir=$destdir/`dirname \$dlpath`~
6305 test -d \$dldir || mkdir -p \$dldir~
6306 $install_prog .libs/$dlname \$dldir/$dlname'
6307 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6308 dlpath=$dir/\$dldll~
6312 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6319 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6322 dynamic_linker='Win32 ld.exe'
6323 # FIXME: first we should search . and the directory the executable is in
6327 darwin* | rhapsody*)
6328 dynamic_linker="$host_os dyld"
6332 # FIXME: Relying on posixy $() will cause problems for
6333 # cross-compilation, but unfortunately the echo tests do not
6334 # yet detect zsh echo's removal of \ escapes.
6335 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)'
6336 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6337 shlibpath_overrides_runpath=yes
6338 shlibpath_var=DYLD_LIBRARY_PATH
6346 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6347 version_type=freebsd-$objformat
6348 case $version_type in
6350 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6355 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6359 shlibpath_var=LD_LIBRARY_PATH
6362 shlibpath_overrides_runpath=yes
6365 shlibpath_overrides_runpath=no
6366 hardcode_into_libs=yes
6375 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6376 soname_spec='${libname}${release}.so$major'
6377 shlibpath_var=LD_LIBRARY_PATH
6378 hardcode_into_libs=yes
6381 hpux9* | hpux10* | hpux11*)
6382 # Give a soname corresponding to the major version so that dld.sl refuses to
6383 # link against other versions.
6384 dynamic_linker="$host_os dld.sl"
6388 shlibpath_var=SHLIB_PATH
6389 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6390 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6391 soname_spec='${libname}${release}.sl$major'
6392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6393 postinstall_cmds='chmod 555 $lib'
6396 irix5* | irix6* | nonstopux*)
6398 nonstopux*) version_type=nonstopux ;;
6399 *) version_type=irix ;;
6403 soname_spec='${libname}${release}.so$major'
6404 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6406 irix5* | nonstopux*)
6410 case $LD in # libtool.m4 will add one of these switches to LD
6411 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6412 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6413 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6414 *) libsuff= shlibsuff= libmagic=never-match;;
6418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6419 shlibpath_overrides_runpath=no
6420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6424 # No shared lib support for Linux oldld, aout, or coff.
6425 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6429 # This must be Linux ELF.
6434 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6435 soname_spec='${libname}${release}.so$major'
6436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6437 shlibpath_var=LD_LIBRARY_PATH
6438 shlibpath_overrides_runpath=no
6439 # This implies no fast_install, which is unacceptable.
6440 # Some rework will be needed to allow for fast_install
6441 # before this can be enabled.
6442 hardcode_into_libs=yes
6444 # We used to test for /lib/ld.so.1 and disable shared libraries on
6445 # powerpc, because MkLinux only supported shared libraries with the
6446 # GNU dynamic linker. Since this was broken with cross compilers,
6447 # most powerpc-linux boxes support dynamic linking these days and
6448 # people can always --disable-shared, the test was removed, and we
6449 # assume the GNU/Linux dynamic linker is in use.
6450 dynamic_linker='GNU/Linux ld.so'
6457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6458 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6460 dynamic_linker='NetBSD (a.out) ld.so'
6462 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6463 soname_spec='${libname}${release}.so$major'
6464 dynamic_linker='NetBSD ld.elf_so'
6466 shlibpath_var=LD_LIBRARY_PATH
6467 shlibpath_overrides_runpath=yes
6468 hardcode_into_libs=yes
6473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6474 shlibpath_var=LD_LIBRARY_PATH
6475 shlibpath_overrides_runpath=yes
6482 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6484 openbsd2.[89] | openbsd2.[89].*)
6485 shlibpath_overrides_runpath=no
6488 shlibpath_overrides_runpath=yes
6492 shlibpath_overrides_runpath=yes
6494 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6496 shlibpath_var=LD_LIBRARY_PATH
6500 libname_spec='$name'
6502 library_names_spec='$libname.dll $libname.a'
6503 dynamic_linker='OS/2 ld.exe'
6504 shlibpath_var=LIBPATH
6507 osf3* | osf4* | osf5*)
6510 soname_spec='${libname}${release}.so$major'
6511 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6512 shlibpath_var=LD_LIBRARY_PATH
6513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6515 hardcode_into_libs=yes
6520 soname_spec='${libname}${release}.so$major'
6521 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6522 shlibpath_var=LD_LIBRARY_PATH
6529 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6530 soname_spec='${libname}${release}.so$major'
6531 shlibpath_var=LD_LIBRARY_PATH
6532 shlibpath_overrides_runpath=yes
6533 hardcode_into_libs=yes
6534 # ldd complains unless libraries are executable
6535 postinstall_cmds='chmod +x $lib'
6540 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6541 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6542 shlibpath_var=LD_LIBRARY_PATH
6543 shlibpath_overrides_runpath=yes
6544 if test "$with_gnu_ld" = yes; then
6550 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6552 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6553 soname_spec='${libname}${release}.so$major'
6554 shlibpath_var=LD_LIBRARY_PATH
6555 case $host_vendor in
6557 shlibpath_overrides_runpath=no
6559 export_dynamic_flag_spec='${wl}-Blargedynsym'
6560 runpath_var=LD_RUN_PATH
6568 shlibpath_overrides_runpath=no
6569 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6576 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6577 soname_spec='${libname}${release}.so$major'
6578 shlibpath_var=LD_LIBRARY_PATH
6585 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6586 soname_spec='${libname}${release}.so$major'
6587 shlibpath_var=LD_LIBRARY_PATH
6591 if test -d /usr/nec ;then
6593 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6594 soname_spec='$libname.so.$major'
6595 shlibpath_var=LD_LIBRARY_PATH
6603 echo "$ac_t""$dynamic_linker" 1>&6
6604 test "$dynamic_linker" = no && can_build_shared=no
6608 ## FIXME: this should be a separate macro
6610 # Report the final consequences.
6611 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6612 echo "configure:6613: checking if libtool supports shared libraries" >&5
6613 echo "$ac_t""$can_build_shared" 1>&6
6617 ## FIXME: this should be a separate macro
6619 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6620 echo "configure:6621: checking whether to build shared libraries" >&5
6621 test "$can_build_shared" = "no" && enable_shared=no
6623 # On AIX, shared libraries and static libraries use the same namespace, and
6624 # are all built from PIC.
6627 test "$enable_shared" = yes && enable_static=no
6628 if test -n "$RANLIB"; then
6629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6630 postinstall_cmds='$RANLIB $lib'
6635 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6636 test "$enable_shared" = yes && enable_static=no
6640 echo "$ac_t""$enable_shared" 1>&6
6644 ## FIXME: this should be a separate macro
6646 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6647 echo "configure:6648: checking whether to build static libraries" >&5
6648 # Make sure either enable_shared or enable_static is yes.
6649 test "$enable_shared" = yes || enable_static=yes
6650 echo "$ac_t""$enable_static" 1>&6
6654 if test "$hardcode_action" = relink; then
6655 # Fast installation is not supported
6656 enable_fast_install=no
6657 elif test "$shlibpath_overrides_runpath" = yes ||
6658 test "$enable_shared" = no; then
6659 # Fast installation is not necessary
6660 enable_fast_install=needless
6663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6664 if test "$GCC" = yes; then
6665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6668 if test "x$enable_dlopen" != xyes; then
6669 enable_dlopen=unknown
6670 enable_dlopen_self=unknown
6671 enable_dlopen_self_static=unknown
6678 lt_cv_dlopen="load_add_on"
6680 lt_cv_dlopen_self=yes
6683 cygwin* | mingw* | pw32*)
6684 lt_cv_dlopen="LoadLibrary"
6689 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6690 echo "configure:6691: checking for shl_load" >&5
6691 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char shl_load(); below. */
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 eval "ac_cv_func_shl_load=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_func_shl_load=no"
6731 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 lt_cv_dlopen="shl_load"
6735 echo "$ac_t""no" 1>&6
6736 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6737 echo "configure:6738: checking for shl_load in -ldld" >&5
6738 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 ac_save_LIBS="$LIBS"
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_lib_$ac_lib_var=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_lib_$ac_lib_var=no"
6766 LIBS="$ac_save_LIBS"
6769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6771 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6773 echo "$ac_t""no" 1>&6
6774 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6775 echo "configure:6776: checking for dlopen" >&5
6776 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* System header to define __stub macros and hopefully few prototypes,
6783 which can conflict with char dlopen(); below. */
6785 /* Override any gcc2 internal prototype to avoid an error. */
6786 /* We use char because int might match the return type of a gcc2
6787 builtin and then its argument prototype would still apply. */
6793 /* The GNU C library defines this for functions which it implements
6794 to always fail with ENOSYS. Some functions are actually named
6795 something starting with __ and the normal name is an alias. */
6796 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6806 eval "ac_cv_func_dlopen=yes"
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 eval "ac_cv_func_dlopen=no"
6816 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6818 lt_cv_dlopen="dlopen"
6820 echo "$ac_t""no" 1>&6
6821 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6822 echo "configure:6823: checking for dlopen in -ldl" >&5
6823 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6824 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_save_LIBS="$LIBS"
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_lib_$ac_lib_var=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_lib_$ac_lib_var=no"
6851 LIBS="$ac_save_LIBS"
6854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6858 echo "$ac_t""no" 1>&6
6859 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6860 echo "configure:6861: checking for dlopen in -lsvld" >&5
6861 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6865 ac_save_LIBS="$LIBS"
6867 cat > conftest.$ac_ext <<EOF
6868 #line 6869 "configure"
6869 #include "confdefs.h"
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6879 if { (eval echo configure:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6881 eval "ac_cv_lib_$ac_lib_var=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6886 eval "ac_cv_lib_$ac_lib_var=no"
6889 LIBS="$ac_save_LIBS"
6892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6893 echo "$ac_t""yes" 1>&6
6894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6896 echo "$ac_t""no" 1>&6
6897 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6898 echo "configure:6899: checking for dld_link in -ldld" >&5
6899 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 ac_save_LIBS="$LIBS"
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 /* Override any gcc2 internal prototype to avoid an error. */
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6917 if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6919 eval "ac_cv_lib_$ac_lib_var=yes"
6921 echo "configure: failed program was:" >&5
6922 cat conftest.$ac_ext >&5
6924 eval "ac_cv_lib_$ac_lib_var=no"
6927 LIBS="$ac_save_LIBS"
6930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6931 echo "$ac_t""yes" 1>&6
6932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6934 echo "$ac_t""no" 1>&6
6955 if test "x$lt_cv_dlopen" != xno; then
6961 case $lt_cv_dlopen in
6963 save_CPPFLAGS="$CPPFLAGS"
6964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6966 save_LDFLAGS="$LDFLAGS"
6967 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6970 LIBS="$lt_cv_dlopen_libs $LIBS"
6972 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6973 echo "configure:6974: checking whether a program can dlopen itself" >&5
6974 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6977 if test "$cross_compiling" = yes; then :
6978 lt_cv_dlopen_self=cross
6980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6981 lt_status=$lt_dlunknown
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6993 # define LT_DLGLOBAL RTLD_GLOBAL
6996 # define LT_DLGLOBAL DL_GLOBAL
6998 # define LT_DLGLOBAL 0
7002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7003 find out it does not work in some platform. */
7004 #ifndef LT_DLLAZY_OR_NOW
7006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7009 # define LT_DLLAZY_OR_NOW DL_LAZY
7012 # define LT_DLLAZY_OR_NOW RTLD_NOW
7015 # define LT_DLLAZY_OR_NOW DL_NOW
7017 # define LT_DLLAZY_OR_NOW 0
7025 extern "C" void exit (int);
7028 void fnord() { int i=42;}
7031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7032 int status = $lt_dlunknown;
7036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7038 /* dlclose (self); */
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7045 (./conftest; exit; ) 2>/dev/null
7048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7050 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7053 # compilation failed
7054 lt_cv_dlopen_self=no
7062 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7064 if test "x$lt_cv_dlopen_self" = xyes; then
7065 LDFLAGS="$LDFLAGS $link_static_flag"
7066 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7067 echo "configure:7068: checking whether a statically linked program can dlopen itself" >&5
7068 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 if test "$cross_compiling" = yes; then :
7072 lt_cv_dlopen_self_static=cross
7074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7075 lt_status=$lt_dlunknown
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7087 # define LT_DLGLOBAL RTLD_GLOBAL
7090 # define LT_DLGLOBAL DL_GLOBAL
7092 # define LT_DLGLOBAL 0
7096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7097 find out it does not work in some platform. */
7098 #ifndef LT_DLLAZY_OR_NOW
7100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7103 # define LT_DLLAZY_OR_NOW DL_LAZY
7106 # define LT_DLLAZY_OR_NOW RTLD_NOW
7109 # define LT_DLLAZY_OR_NOW DL_NOW
7111 # define LT_DLLAZY_OR_NOW 0
7119 extern "C" void exit (int);
7122 void fnord() { int i=42;}
7125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7126 int status = $lt_dlunknown;
7130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7132 /* dlclose (self); */
7138 if { (eval echo configure:7139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7139 (./conftest; exit; ) 2>/dev/null
7142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7144 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7147 # compilation failed
7148 lt_cv_dlopen_self_static=no
7156 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7159 CPPFLAGS="$save_CPPFLAGS"
7160 LDFLAGS="$save_LDFLAGS"
7165 case $lt_cv_dlopen_self in
7166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7167 *) enable_dlopen_self=unknown ;;
7170 case $lt_cv_dlopen_self_static in
7171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7172 *) enable_dlopen_self_static=unknown ;;
7177 ## FIXME: this should be a separate macro
7179 if test "$enable_shared" = yes && test "$GCC" = yes; then
7180 case $archive_cmds in
7182 # FIXME: we may have to deal with multi-command sequences.
7185 # Test whether the compiler implicitly links with -lc since on some
7186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7187 # to ld, don't add -lc before -lgcc.
7188 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7189 echo "configure:7190: checking whether -lc should be explicitly linked in" >&5
7190 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7194 echo 'static int dummy;' > conftest.$ac_ext
7196 if { (eval echo configure:7197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7199 libobjs=conftest.$ac_objext
7201 wl=$lt_cv_prog_cc_wl
7207 save_allow_undefined_flag=$allow_undefined_flag
7208 allow_undefined_flag=
7209 if { (eval echo configure:7210: \"$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; }
7211 lt_cv_archive_cmds_need_lc=no
7213 lt_cv_archive_cmds_need_lc=yes
7215 allow_undefined_flag=$save_allow_undefined_flag
7217 cat conftest.err 1>&5
7221 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7225 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7229 ## FIXME: this should be a separate macro
7231 # The second clause should only fire when bootstrapping the
7232 # libtool distribution, otherwise you forgot to ship ltmain.sh
7233 # with your package, and you will get complaints that there are
7234 # no rules to generate ltmain.sh.
7235 if test -f "$ltmain"; then
7238 # If there is no Makefile yet, we rely on a make rule to execute
7239 # `config.status --recheck' to rerun these tests and create the
7240 # libtool script then.
7241 test -f Makefile && make "$ltmain"
7244 if test -f "$ltmain"; then
7245 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7248 echo creating $ofile
7250 # Now quote all the things that may contain metacharacters while being
7251 # careful not to overquote the AC_SUBSTed values. We take copies of the
7252 # variables and quote the copies for generation of the libtool script.
7253 for var in echo old_CC old_CFLAGS SED \
7254 AR AR_FLAGS CC LD LN_S NM SHELL \
7255 reload_flag reload_cmds wl \
7256 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7257 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7258 library_names_spec soname_spec \
7259 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7260 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7261 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7262 old_striplib striplib file_magic_cmd export_symbols_cmds \
7263 deplibs_check_method allow_undefined_flag no_undefined_flag \
7264 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7265 global_symbol_to_c_name_address \
7266 hardcode_libdir_flag_spec hardcode_libdir_separator \
7267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7268 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7271 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7272 old_postinstall_cmds | old_postuninstall_cmds | \
7273 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7274 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7275 postinstall_cmds | postuninstall_cmds | \
7276 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7277 # Double-quote double-evaled strings.
7278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7286 cat <<__EOF__ > "${ofile}T"
7289 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7290 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7293 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7294 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7296 # This program is free software; you can redistribute it and/or modify
7297 # it under the terms of the GNU General Public License as published by
7298 # the Free Software Foundation; either version 2 of the License, or
7299 # (at your option) any later version.
7301 # This program is distributed in the hope that it will be useful, but
7302 # WITHOUT ANY WARRANTY; without even the implied warranty of
7303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7304 # General Public License for more details.
7306 # You should have received a copy of the GNU General Public License
7307 # along with this program; if not, write to the Free Software
7308 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7310 # As a special exception to the GNU General Public License, if you
7311 # distribute this file as part of a program that contains a
7312 # configuration script generated by Autoconf, you may include it under
7313 # the same distribution terms that you use for the rest of that program.
7315 # A sed that does not truncate output.
7318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7319 Xsed="${SED} -e s/^X//"
7321 # The HP-UX ksh and POSIX shell print the target directory to stdout
7323 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7325 # ### BEGIN LIBTOOL CONFIG
7327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7329 # Shell to use when invoking shell scripts.
7332 # Whether or not to build shared libraries.
7333 build_libtool_libs=$enable_shared
7335 # Whether or not to build static libraries.
7336 build_old_libs=$enable_static
7338 # Whether or not to add -lc for building shared libraries.
7339 build_libtool_need_lc=$need_lc
7341 # Whether or not to optimize for fast installation.
7342 fast_install=$enable_fast_install
7345 host_alias=$host_alias
7348 # An echo program that does not interpret backslashes.
7353 AR_FLAGS=$lt_AR_FLAGS
7355 # The default C compiler.
7358 # Is the compiler the GNU C compiler?
7361 # The linker used to build libraries.
7364 # Whether we need hard or soft links.
7367 # A BSD-compatible nm program.
7370 # A symbol stripping program
7373 # Used to examine libraries when file_magic_cmd begins "file"
7374 MAGIC_CMD=$MAGIC_CMD
7376 # Used on cygwin: DLL creation program.
7379 # Used on cygwin: object dumper.
7382 # Used on cygwin: assembler.
7385 # The name of the directory that contains temporary libtool files.
7388 # How to create reloadable object files.
7389 reload_flag=$lt_reload_flag
7390 reload_cmds=$lt_reload_cmds
7392 # How to pass a linker flag through the compiler.
7395 # Object file suffix (normally "o").
7398 # Old archive suffix (normally "a").
7401 # Executable file suffix (normally "").
7404 # Additional compiler flags for building library objects.
7405 pic_flag=$lt_pic_flag
7408 # Does compiler simultaneously support -c and -o options?
7409 compiler_c_o=$lt_compiler_c_o
7411 # Can we write directly to a .lo ?
7412 compiler_o_lo=$lt_compiler_o_lo
7414 # Must we lock files when doing compilation ?
7415 need_locks=$lt_need_locks
7417 # Do we need the lib prefix for modules?
7418 need_lib_prefix=$need_lib_prefix
7420 # Do we need a version for libraries?
7421 need_version=$need_version
7423 # Whether dlopen is supported.
7424 dlopen_support=$enable_dlopen
7426 # Whether dlopen of programs is supported.
7427 dlopen_self=$enable_dlopen_self
7429 # Whether dlopen of statically linked programs is supported.
7430 dlopen_self_static=$enable_dlopen_self_static
7432 # Compiler flag to prevent dynamic linking.
7433 link_static_flag=$lt_link_static_flag
7435 # Compiler flag to turn off builtin functions.
7436 no_builtin_flag=$lt_no_builtin_flag
7438 # Compiler flag to allow reflexive dlopens.
7439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7441 # Compiler flag to generate shared objects directly from archives.
7442 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7444 # Compiler flag to generate thread-safe objects.
7445 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7447 # Library versioning type.
7448 version_type=$version_type
7450 # Format of library name prefix.
7451 libname_spec=$lt_libname_spec
7453 # List of archive names. First name is the real one, the rest are links.
7454 # The last name is the one that the linker finds with -lNAME.
7455 library_names_spec=$lt_library_names_spec
7457 # The coded name of the library, if different from the real name.
7458 soname_spec=$lt_soname_spec
7460 # Commands used to build and install an old-style archive.
7462 old_archive_cmds=$lt_old_archive_cmds
7463 old_postinstall_cmds=$lt_old_postinstall_cmds
7464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7466 # Create an old-style archive from a shared archive.
7467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7469 # Create a temporary old-style archive to link instead of a shared archive.
7470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7472 # Commands used to build and install a shared archive.
7473 archive_cmds=$lt_archive_cmds
7474 archive_expsym_cmds=$lt_archive_expsym_cmds
7475 postinstall_cmds=$lt_postinstall_cmds
7476 postuninstall_cmds=$lt_postuninstall_cmds
7478 # Commands to strip libraries.
7479 old_striplib=$lt_old_striplib
7480 striplib=$lt_striplib
7482 # Method to check whether dependent libraries are shared objects.
7483 deplibs_check_method=$lt_deplibs_check_method
7485 # Command to use when deplibs_check_method == file_magic.
7486 file_magic_cmd=$lt_file_magic_cmd
7488 # Flag that allows shared libraries with undefined symbols to be built.
7489 allow_undefined_flag=$lt_allow_undefined_flag
7491 # Flag that forces no undefined symbols.
7492 no_undefined_flag=$lt_no_undefined_flag
7494 # Commands used to finish a libtool library installation in a directory.
7495 finish_cmds=$lt_finish_cmds
7497 # Same as above, but a single script fragment to be evaled but not shown.
7498 finish_eval=$lt_finish_eval
7500 # Take the output of nm and produce a listing of raw symbols and C names.
7501 global_symbol_pipe=$lt_global_symbol_pipe
7503 # Transform the output of nm in a proper C declaration
7504 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7506 # Transform the output of nm in a C name address pair
7507 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7509 # This is the shared library runtime path variable.
7510 runpath_var=$runpath_var
7512 # This is the shared library path variable.
7513 shlibpath_var=$shlibpath_var
7515 # Is shlibpath searched before the hard-coded library search path?
7516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7518 # How to hardcode a shared library path into an executable.
7519 hardcode_action=$hardcode_action
7521 # Whether we should hardcode library paths into libraries.
7522 hardcode_into_libs=$hardcode_into_libs
7524 # Flag to hardcode \$libdir into a binary during linking.
7525 # This must work even if \$libdir does not exist.
7526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7528 # Whether we need a single -rpath flag with a separated argument.
7529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7531 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7533 hardcode_direct=$hardcode_direct
7535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7537 hardcode_minus_L=$hardcode_minus_L
7539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7540 # the resulting binary.
7541 hardcode_shlibpath_var=$hardcode_shlibpath_var
7543 # Variables whose values should be saved in libtool wrapper scripts and
7544 # restored at relink time.
7545 variables_saved_for_relink="$variables_saved_for_relink"
7547 # Whether libtool must link a program against all its dependency libraries.
7548 link_all_deplibs=$link_all_deplibs
7550 # Compile-time system search path for libraries
7551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7553 # Run-time system search path for libraries
7554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7556 # Fix the shell variable \$srcfile for the compiler.
7557 fix_srcfile_path="$fix_srcfile_path"
7559 # Set to yes if exported symbols are required.
7560 always_export_symbols=$always_export_symbols
7562 # The commands to list exported symbols.
7563 export_symbols_cmds=$lt_export_symbols_cmds
7565 # The commands to extract the exported symbol list from a shared archive.
7566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7568 # Symbols that should not be listed in the preloaded symbols.
7569 exclude_expsyms=$lt_exclude_expsyms
7571 # Symbols that must always be exported.
7572 include_expsyms=$lt_include_expsyms
7574 # ### END LIBTOOL CONFIG
7580 cat <<\EOF >> "${ofile}T"
7582 # AIX sometimes has problems with the GCC collect2 program. For some
7583 # reason, if we set the COLLECT_NAMES environment variable, the problems
7584 # vanish in a puff of smoke.
7585 if test "X${COLLECT_NAMES+set}" != Xset; then
7587 export COLLECT_NAMES
7594 cygwin* | mingw* | pw32* | os2*)
7595 cat <<'EOF' >> "${ofile}T"
7596 # This is a source program that is used to create dlls on Windows
7597 # Don't remove nor modify the starting and closing comments
7598 # /* ltdll.c starts here */
7599 # #define WIN32_LEAN_AND_MEAN
7600 # #include <windows.h>
7601 # #undef WIN32_LEAN_AND_MEAN
7602 # #include <stdio.h>
7604 # #ifndef __CYGWIN__
7605 # # ifdef __CYGWIN32__
7606 # # define __CYGWIN__ __CYGWIN32__
7610 # #ifdef __cplusplus
7613 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7614 # #ifdef __cplusplus
7619 # #include <cygwin/cygwin_dll.h>
7620 # DECLARE_CYGWIN_DLL( DllMain );
7622 # HINSTANCE __hDllInstance_base;
7625 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7627 # __hDllInstance_base = hInst;
7630 # /* ltdll.c ends here */
7631 # This is a source program that is used to create import libraries
7632 # on Windows for dlls which lack them. Don't remove nor modify the
7633 # starting and closing comments
7634 # /* impgen.c starts here */
7635 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7637 # This file is part of GNU libtool.
7639 # This program is free software; you can redistribute it and/or modify
7640 # it under the terms of the GNU General Public License as published by
7641 # the Free Software Foundation; either version 2 of the License, or
7642 # (at your option) any later version.
7644 # This program is distributed in the hope that it will be useful,
7645 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7647 # GNU General Public License for more details.
7649 # You should have received a copy of the GNU General Public License
7650 # along with this program; if not, write to the Free Software
7651 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7654 # #include <stdio.h> /* for printf() */
7655 # #include <unistd.h> /* for open(), lseek(), read() */
7656 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7657 # #include <string.h> /* for strdup() */
7659 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7661 # #define O_BINARY 0
7664 # static unsigned int
7665 # pe_get16 (fd, offset)
7669 # unsigned char b[2];
7670 # lseek (fd, offset, SEEK_SET);
7672 # return b[0] + (b[1]<<8);
7675 # static unsigned int
7676 # pe_get32 (fd, offset)
7680 # unsigned char b[4];
7681 # lseek (fd, offset, SEEK_SET);
7683 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7686 # static unsigned int
7690 # unsigned char *b = ptr;
7691 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7700 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7701 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7702 # unsigned long name_rvas, nexp;
7703 # unsigned char *expdata, *erva;
7704 # char *filename, *dll_name;
7706 # filename = argv[1];
7708 # dll = open(filename, O_RDONLY|O_BINARY);
7712 # dll_name = filename;
7714 # for (i=0; filename[i]; i++)
7715 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7716 # dll_name = filename + i +1;
7718 # pe_header_offset = pe_get32 (dll, 0x3c);
7719 # opthdr_ofs = pe_header_offset + 4 + 20;
7720 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7722 # if (num_entries < 1) /* no exports */
7725 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7726 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7727 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7728 # secptr = (pe_header_offset + 4 + 20 +
7729 # pe_get16 (dll, pe_header_offset + 4 + 16));
7732 # for (i = 0; i < nsections; i++)
7735 # unsigned long secptr1 = secptr + 40 * i;
7736 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7737 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7738 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7739 # lseek(dll, secptr1, SEEK_SET);
7740 # read(dll, sname, 8);
7741 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7743 # expptr = fptr + (export_rva - vaddr);
7744 # if (export_rva + export_size > vaddr + vsize)
7745 # export_size = vsize - (export_rva - vaddr);
7750 # expdata = (unsigned char*)malloc(export_size);
7751 # lseek (dll, expptr, SEEK_SET);
7752 # read (dll, expdata, export_size);
7753 # erva = expdata - export_rva;
7755 # nexp = pe_as32 (expdata+24);
7756 # name_rvas = pe_as32 (expdata+32);
7758 # printf ("EXPORTS\n");
7759 # for (i = 0; i<nexp; i++)
7761 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7762 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7767 # /* impgen.c ends here */
7773 # We use sed instead of cat because bash on DJGPP gets confused if
7774 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7775 # text mode, it properly converts lines to CR/LF. This bash problem
7776 # is reportedly fixed, but why not run on old versions too?
7777 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7779 mv -f "${ofile}T" "$ofile" || \
7780 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7790 # This can be used to rebuild libtool when needed
7791 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7793 # Always use our own libtool.
7794 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7796 # Prevent multiple expansion
7800 for ac_prog in mawk gawk nawk awk
7802 # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy $ac_prog; ac_word=$2
7804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7805 echo "configure:7806: checking for $ac_word" >&5
7806 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6
7809 if test -n "$AWK"; then
7810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7814 for ac_dir in $ac_dummy; do
7815 test -z "$ac_dir" && ac_dir=.
7816 if test -f $ac_dir/$ac_word; then
7817 ac_cv_prog_AWK="$ac_prog"
7824 AWK="$ac_cv_prog_AWK"
7825 if test -n "$AWK"; then
7826 echo "$ac_t""$AWK" 1>&6
7828 echo "$ac_t""no" 1>&6
7831 test -n "$AWK" && break
7834 # test for ln hardlink support
7835 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7836 echo "configure:7837: checking whether ln works" >&5
7837 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7840 rm -f conftest.src conftest.dst
7841 echo "conftest" > conftest.src
7842 if ln conftest.src conftest.dst 2>/dev/null
7844 ol_cv_prog_LN_H="ln"
7846 ol_cv_prog_LN_H="cp"
7848 rm -f conftest.src conftest.dst
7851 LN_H="$ol_cv_prog_LN_H"
7852 if test "$ol_cv_prog_LN_H" = "ln"; then
7853 echo "$ac_t""yes" 1>&6
7855 echo "$ac_t""no" 1>&6
7858 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7859 echo "configure:7860: checking whether ln -s works" >&5
7860 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7864 if ln -s X conftestdata 2>/dev/null
7867 ac_cv_prog_LN_S="ln -s"
7872 LN_S="$ac_cv_prog_LN_S"
7873 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7874 echo "$ac_t""yes" 1>&6
7876 echo "$ac_t""no" 1>&6
7880 # Extract the first word of "sendmail", so it can be a program name with args.
7881 set dummy sendmail; ac_word=$2
7882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7883 echo "configure:7884: checking for $ac_word" >&5
7884 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7889 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7892 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7896 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7897 for ac_dir in $ac_dummy; do
7898 test -z "$ac_dir" && ac_dir=.
7899 if test -f $ac_dir/$ac_word; then
7900 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7905 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7909 SENDMAIL="$ac_cv_path_SENDMAIL"
7910 if test -n "$SENDMAIL"; then
7911 echo "$ac_t""$SENDMAIL" 1>&6
7913 echo "$ac_t""no" 1>&6
7916 # Extract the first word of "vi", so it can be a program name with args.
7917 set dummy vi; ac_word=$2
7918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7919 echo "configure:7920: checking for $ac_word" >&5
7920 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7925 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7928 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7932 ac_dummy="$PATH:/usr/ucb"
7933 for ac_dir in $ac_dummy; do
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f $ac_dir/$ac_word; then
7936 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7941 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7945 EDITOR="$ac_cv_path_EDITOR"
7946 if test -n "$EDITOR"; then
7947 echo "$ac_t""$EDITOR" 1>&6
7949 echo "$ac_t""no" 1>&6
7954 if test $ol_enable_perl != no ; then
7955 # Extract the first word of "perl", so it can be a program name with args.
7956 set dummy perl; ac_word=$2
7957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7958 echo "configure:7959: checking for $ac_word" >&5
7959 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7960 echo $ac_n "(cached) $ac_c" 1>&6
7964 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7967 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7972 for ac_dir in $ac_dummy; do
7973 test -z "$ac_dir" && ac_dir=.
7974 if test -f $ac_dir/$ac_word; then
7975 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7980 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7984 PERLBIN="$ac_cv_path_PERLBIN"
7985 if test -n "$PERLBIN"; then
7986 echo "$ac_t""$PERLBIN" 1>&6
7988 echo "$ac_t""no" 1>&6
7992 if test "no$PERLBIN" = "no" ; then
7993 if test $ol_enable_perl = yes ; then
7994 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7998 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7999 if test x"$ol_with_perl_module" = "xstatic" ; then
8000 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
8002 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
8008 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8009 echo "configure:8010: checking how to run the C preprocessor" >&5
8010 # On Suns, sometimes $CPP names a directory.
8011 if test -n "$CPP" && test -d "$CPP"; then
8014 if test -z "$CPP"; then
8015 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
8016 echo $ac_n "(cached) $ac_c" 1>&6
8018 # This must be in double quotes, not single quotes, because CPP may get
8019 # substituted into the Makefile and "${CC-cc}" will confuse make.
8021 # On the NeXT, cc -E runs the code through the compiler's parser,
8022 # not just through cpp.
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8030 { (eval echo configure:8031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8032 if test -z "$ac_err"; then
8036 echo "configure: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8039 CPP="${CC-cc} -E -traditional-cpp"
8040 cat > conftest.$ac_ext <<EOF
8041 #line 8042 "configure"
8042 #include "confdefs.h"
8046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8047 { (eval echo configure:8048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8049 if test -z "$ac_err"; then
8053 echo "configure: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8056 CPP="${CC-cc} -nologo -E"
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8064 { (eval echo configure:8065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8066 if test -z "$ac_err"; then
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8080 ac_cv_prog_CPP="$CPP"
8082 CPP="$ac_cv_prog_CPP"
8084 ac_cv_prog_CPP="$CPP"
8086 echo "$ac_t""$CPP" 1>&6
8089 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8090 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8092 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8093 echo "configure: warning: programs compiled here do run here..." 1>&2
8094 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8096 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8097 echo "configure: warning: programs compiled here do not run here..." 1>&2
8098 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8102 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8103 echo "configure:8104: checking for Cygwin environment" >&5
8104 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 cat > conftest.$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8114 #define __CYGWIN__ __CYGWIN32__
8119 if { (eval echo configure:8120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8131 echo "$ac_t""$ac_cv_cygwin" 1>&6
8133 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8134 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8135 echo "configure:8136: checking for mingw32 environment" >&5
8136 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8147 if { (eval echo configure:8148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8151 echo "configure: failed program was:" >&5
8152 cat conftest.$ac_ext >&5
8159 echo "$ac_t""$ac_cv_mingw32" 1>&6
8161 test "$ac_cv_mingw32" = yes && MINGW32=yes
8165 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8166 echo "configure:8167: checking for executable suffix" >&5
8167 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8168 echo $ac_n "(cached) $ac_c" 1>&6
8170 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8174 echo 'int main () { return 0; }' > conftest.$ac_ext
8176 if { (eval echo configure:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8177 for file in conftest.*; do
8179 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8180 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8184 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8187 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8192 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8193 echo "$ac_t""${ac_cv_exeext}" 1>&6
8196 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8197 echo "configure:8198: checking for object suffix" >&5
8198 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8199 echo $ac_n "(cached) $ac_c" 1>&6
8202 echo 'int i = 1;' > conftest.$ac_ext
8203 if { (eval echo configure:8204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8204 for ac_file in conftest.*; do
8207 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8211 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8216 echo "$ac_t""$ac_cv_objext" 1>&6
8217 OBJEXT=$ac_cv_objext
8218 ac_objext=$ac_cv_objext
8221 cat >> confdefs.h <<EOF
8222 #define EXEEXT "${EXEEXT}"
8226 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8227 echo "configure:8228: checking for be_app in -lbe" >&5
8228 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 ac_save_LIBS="$LIBS"
8233 LIBS="-lbe -lroot -lnet $LIBS"
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8246 if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 eval "ac_cv_lib_$ac_lib_var=yes"
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8253 eval "ac_cv_lib_$ac_lib_var=no"
8256 LIBS="$ac_save_LIBS"
8259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 LIBS="$LIBS -lbe -lroot -lnet"
8263 echo "$ac_t""no" 1>&6
8271 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8272 echo "configure:8273: checking for ${CC-cc} option to accept ANSI C" >&5
8273 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8276 am_cv_prog_cc_stdc=no
8278 # Don't try gcc -ansi; that turns off useful extensions and
8279 # breaks some systems' header files.
8280 # AIX -qlanglvl=ansi
8281 # Ultrix and OSF/1 -std1
8282 # HP-UX 10.20 and later -Ae
8283 # HP-UX older versions -Aa -D_HPUX_SOURCE
8284 # SVR4 -Xc -D__EXTENSIONS__
8285 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8287 CC="$ac_save_CC $ac_arg"
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8293 #include <sys/types.h>
8294 #include <sys/stat.h>
8295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8296 struct buf { int x; };
8297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8298 static char *e (p, i)
8304 static char *f (char * (*g) (char **, int), char **p, ...)
8309 s = g (p, va_arg (v,int));
8313 int test (int i, double x);
8314 struct s1 {int (*f) (int a);};
8315 struct s2 {int (*f) (double a);};
8316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8326 if { (eval echo configure:8327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8328 am_cv_prog_cc_stdc="$ac_arg"; break
8330 echo "configure: failed program was:" >&5
8331 cat conftest.$ac_ext >&5
8339 if test -z "$am_cv_prog_cc_stdc"; then
8340 echo "$ac_t""none needed" 1>&6
8342 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8344 case "x$am_cv_prog_cc_stdc" in
8346 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8349 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8350 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8353 # test for make depend flag
8356 if test -z "${MKDEP}"; then
8358 if test -z "${MKDEP_FLAGS}"; then
8359 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8360 echo "configure:8361: checking for ${OL_MKDEP} depend flag" >&5
8361 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8362 echo $ac_n "(cached) $ac_c" 1>&6
8366 for flag in "-M" "-xM"; do
8367 cat > conftest.c <<EOF
8370 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8371 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8373 if test ! -f conftest."${ac_object}" ; then
8375 OL_MKDEP_FLAGS="$flag"
8384 echo "$ac_t""$ol_cv_mkdep" 1>&6
8387 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8392 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8397 if test "${ol_cv_mkdep}" = no ; then
8398 # this will soon become an error
8399 echo "configure: warning: do not know how to generate dependencies" 1>&2
8402 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8403 echo "configure:8404: checking for afopen in -ls" >&5
8404 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8405 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 ac_save_LIBS="$LIBS"
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8413 /* Override any gcc2 internal prototype to avoid an error. */
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8422 if { (eval echo configure:8423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8424 eval "ac_cv_lib_$ac_lib_var=yes"
8426 echo "configure: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 eval "ac_cv_lib_$ac_lib_var=no"
8432 LIBS="$ac_save_LIBS"
8435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8436 echo "$ac_t""yes" 1>&6
8439 cat >> confdefs.h <<\EOF
8440 #define HAVE_AIX_SECURITY 1
8445 echo "$ac_t""no" 1>&6
8451 ac_cv_func_getopt=no
8452 cat >> confdefs.h <<\EOF
8453 #define BOTH_STRINGS_H 1
8460 if test $ol_enable_modules != no ; then
8461 for ac_hdr in ltdl.h
8463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8465 echo "configure:8466: checking for $ac_hdr" >&5
8466 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 cat > conftest.$ac_ext <<EOF
8470 #line 8471 "configure"
8471 #include "confdefs.h"
8474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8475 { (eval echo configure:8476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8477 if test -z "$ac_err"; then
8479 eval "ac_cv_header_$ac_safe=yes"
8482 echo "configure: failed program was:" >&5
8483 cat conftest.$ac_ext >&5
8485 eval "ac_cv_header_$ac_safe=no"
8489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6
8491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8492 cat >> confdefs.h <<EOF
8493 #define $ac_tr_hdr 1
8497 echo "$ac_t""no" 1>&6
8502 if test $ac_cv_header_ltdl_h = no ; then
8503 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8506 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8507 echo "configure:8508: checking for lt_dlinit in -lltdl" >&5
8508 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8510 echo $ac_n "(cached) $ac_c" 1>&6
8512 ac_save_LIBS="$LIBS"
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8517 /* Override any gcc2 internal prototype to avoid an error. */
8518 /* We use char because int might match the return type of a gcc2
8519 builtin and then its argument prototype would still apply. */
8526 if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8528 eval "ac_cv_lib_$ac_lib_var=yes"
8530 echo "configure: failed program was:" >&5
8531 cat conftest.$ac_ext >&5
8533 eval "ac_cv_lib_$ac_lib_var=no"
8536 LIBS="$ac_save_LIBS"
8539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8540 echo "$ac_t""yes" 1>&6
8543 cat >> confdefs.h <<\EOF
8544 #define HAVE_LIBLTDL 1
8549 echo "$ac_t""no" 1>&6
8553 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8554 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8558 ol_with_bdb_module=static
8559 ol_with_dnssrv_module=static
8560 ol_with_ldap_module=static
8561 ol_with_ldbm_module=static
8562 ol_with_meta_module=static
8563 ol_with_monitor_module=static
8564 ol_with_null_module=static
8565 ol_with_passwd_module=static
8566 ol_with_perl_module=static
8567 ol_with_shell_module=static
8568 ol_with_sql_module=static
8572 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8573 echo "configure:8574: checking for EBCDIC" >&5
8574 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8583 #include <__ASCII__/generate_error.h>
8587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8588 { (eval echo configure:8589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8590 if test -z "$ac_err"; then
8592 ol_cv_cpp_ebcdic=yes
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8603 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8604 if test $ol_cv_cpp_ebcdic = yes ; then
8605 cat >> confdefs.h <<\EOF
8606 #define HAVE_EBCDIC 1
8611 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8612 echo "configure:8613: checking for ANSI C header files" >&5
8613 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8625 { (eval echo configure:8626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8627 if test -z "$ac_err"; then
8629 ol_cv_header_stdc=yes
8632 echo "configure: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8635 ol_cv_header_stdc=no
8639 if test $ol_cv_header_stdc = yes; then
8640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8647 egrep "memchr" >/dev/null 2>&1; then
8651 ol_cv_header_stdc=no
8657 if test $ol_cv_header_stdc = yes; then
8658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8659 cat > conftest.$ac_ext <<EOF
8660 #line 8661 "configure"
8661 #include "confdefs.h"
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 egrep "free" >/dev/null 2>&1; then
8669 ol_cv_header_stdc=no
8675 if test $ol_cv_header_stdc = yes; then
8676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8677 if test "$cross_compiling" = yes; then
8680 cat > conftest.$ac_ext <<EOF
8681 #line 8682 "configure"
8682 #include "confdefs.h"
8685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8688 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8689 || ('j' <= (c) && (c) <= 'r') \
8690 || ('s' <= (c) && (c) <= 'z'))
8691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8694 int main () { int i; for (i = 0; i < 256; i++)
8695 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8699 if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8703 echo "configure: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 ol_cv_header_stdc=no
8714 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8715 if test $ol_cv_header_stdc = yes; then
8716 cat >> confdefs.h <<\EOF
8717 #define STDC_HEADERS 1
8721 ac_cv_header_stdc=disable
8724 if test $ol_cv_header_stdc != yes; then
8725 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8729 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8732 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8733 echo "configure:8734: checking for $ac_hdr that defines DIR" >&5
8734 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <sys/types.h>
8746 if { (eval echo configure:8747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8748 eval "ac_cv_header_dirent_$ac_safe=yes"
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8753 eval "ac_cv_header_dirent_$ac_safe=no"
8757 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8758 echo "$ac_t""yes" 1>&6
8759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8760 cat >> confdefs.h <<EOF
8761 #define $ac_tr_hdr 1
8763 ac_header_dirent=$ac_hdr; break
8765 echo "$ac_t""no" 1>&6
8768 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8769 if test $ac_header_dirent = dirent.h; then
8770 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8771 echo "configure:8772: checking for opendir in -ldir" >&5
8772 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8773 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
8776 ac_save_LIBS="$LIBS"
8778 cat > conftest.$ac_ext <<EOF
8779 #line 8780 "configure"
8780 #include "confdefs.h"
8781 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8790 if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8792 eval "ac_cv_lib_$ac_lib_var=yes"
8794 echo "configure: failed program was:" >&5
8795 cat conftest.$ac_ext >&5
8797 eval "ac_cv_lib_$ac_lib_var=no"
8800 LIBS="$ac_save_LIBS"
8803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8804 echo "$ac_t""yes" 1>&6
8807 echo "$ac_t""no" 1>&6
8811 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8812 echo "configure:8813: checking for opendir in -lx" >&5
8813 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8815 echo $ac_n "(cached) $ac_c" 1>&6
8817 ac_save_LIBS="$LIBS"
8819 cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8822 /* Override any gcc2 internal prototype to avoid an error. */
8823 /* We use char because int might match the return type of a gcc2
8824 builtin and then its argument prototype would still apply. */
8831 if { (eval echo configure:8832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8833 eval "ac_cv_lib_$ac_lib_var=yes"
8835 echo "configure: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8838 eval "ac_cv_lib_$ac_lib_var=no"
8841 LIBS="$ac_save_LIBS"
8844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8845 echo "$ac_t""yes" 1>&6
8848 echo "$ac_t""no" 1>&6
8853 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8854 echo "configure:8855: checking for sys/wait.h that is POSIX.1 compatible" >&5
8855 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 #include <sys/types.h>
8862 #include <sys/wait.h>
8864 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8867 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8872 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8875 if { (eval echo configure:8876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8877 ac_cv_header_sys_wait_h=yes
8879 echo "configure: failed program was:" >&5
8880 cat conftest.$ac_ext >&5
8882 ac_cv_header_sys_wait_h=no
8887 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8888 if test $ac_cv_header_sys_wait_h = yes; then
8889 cat >> confdefs.h <<\EOF
8890 #define HAVE_SYS_WAIT_H 1
8895 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8896 echo "configure:8897: checking POSIX termios" >&5
8897 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8900 cat > conftest.$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8903 #include <sys/types.h>
8905 #include <termios.h>
8907 /* SunOS 4.0.3 has termios.h but not the library calls. */
8911 if { (eval echo configure:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8913 am_cv_sys_posix_termios=yes
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8918 am_cv_sys_posix_termios=no
8923 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8926 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8927 echo "configure:8928: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8928 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8929 echo $ac_n "(cached) $ac_c" 1>&6
8931 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8933 gwinsz_in_termios_h=no
8934 if test $am_cv_sys_posix_termios = yes; then
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 #include <sys/types.h>
8939 # include <termios.h>
8945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946 egrep "yes" >/dev/null 2>&1; then
8948 gwinsz_in_termios_h=yes
8954 if test $gwinsz_in_termios_h = no; then
8955 cat > conftest.$ac_ext <<EOF
8956 #line 8957 "configure"
8957 #include "confdefs.h"
8958 #include <sys/types.h>
8959 # include <sys/ioctl.h>
8965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8966 egrep "yes" >/dev/null 2>&1; then
8968 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8976 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8977 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8978 cat >> confdefs.h <<\EOF
8979 #define GWINSZ_IN_SYS_IOCTL 1
8984 if test $am_cv_sys_posix_termios = yes ; then
8985 cat >> confdefs.h <<\EOF
8986 #define HAVE_POSIX_TERMIOS 1
9038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9040 echo "configure:9041: checking for $ac_hdr" >&5
9041 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9050 { (eval echo configure:9051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9052 if test -z "$ac_err"; then
9054 eval "ac_cv_header_$ac_safe=yes"
9057 echo "configure: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9060 eval "ac_cv_header_$ac_safe=no"
9064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9065 echo "$ac_t""yes" 1>&6
9066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9067 cat >> confdefs.h <<EOF
9068 #define $ac_tr_hdr 1
9072 echo "$ac_t""no" 1>&6
9079 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
9080 echo "configure:9081: checking for dlopen" >&5
9081 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
9082 echo $ac_n "(cached) $ac_c" 1>&6
9084 cat > conftest.$ac_ext <<EOF
9085 #line 9086 "configure"
9086 #include "confdefs.h"
9087 /* System header to define __stub macros and hopefully few prototypes,
9088 which can conflict with char dlopen(); below. */
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9098 /* The GNU C library defines this for functions which it implements
9099 to always fail with ENOSYS. Some functions are actually named
9100 something starting with __ and the normal name is an alias. */
9101 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9109 if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111 eval "ac_cv_func_dlopen=yes"
9113 echo "configure: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9116 eval "ac_cv_func_dlopen=no"
9121 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9122 echo "$ac_t""yes" 1>&6
9125 echo "$ac_t""no" 1>&6
9126 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9127 echo "configure:9128: checking for dlopen in -ldl" >&5
9128 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9129 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9132 ac_save_LIBS="$LIBS"
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9137 /* Override any gcc2 internal prototype to avoid an error. */
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9146 if { (eval echo configure:9147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9148 eval "ac_cv_lib_$ac_lib_var=yes"
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 eval "ac_cv_lib_$ac_lib_var=no"
9156 LIBS="$ac_save_LIBS"
9159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9160 echo "$ac_t""yes" 1>&6
9161 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9162 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9163 cat >> confdefs.h <<EOF
9164 #define $ac_tr_lib 1
9170 echo "$ac_t""no" 1>&6
9176 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9177 echo "configure:9178: checking for sigset in -lV3" >&5
9178 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9182 ac_save_LIBS="$LIBS"
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9198 eval "ac_cv_lib_$ac_lib_var=yes"
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9203 eval "ac_cv_lib_$ac_lib_var=no"
9206 LIBS="$ac_save_LIBS"
9209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9210 echo "$ac_t""yes" 1>&6
9211 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9213 cat >> confdefs.h <<EOF
9214 #define $ac_tr_lib 1
9220 echo "$ac_t""no" 1>&6
9224 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9225 echo "configure:9226: checking for winsock" >&5
9227 for curlib in ws2_32 wsock32; do
9228 LIBS="$LIBS -l$curlib"
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9235 char closesocket@4();
9236 char gethostname@8();
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9258 if test $have_winsock = yes; then
9259 cat >> confdefs.h <<\EOF
9260 #define HAVE_WINSOCK 1
9263 ac_cv_func_socket=yes
9264 ac_cv_func_select=yes
9265 ac_cv_func_closesocket=yes
9266 ac_cv_func_gethostname=yes
9267 if test $curlib = ws2_32; then
9268 have_winsock=winsock2
9269 cat >> confdefs.h <<\EOF
9270 #define HAVE_WINSOCK2 1
9278 echo "$ac_t""$have_winsock" 1>&6
9281 echo $ac_n "checking for socket""... $ac_c" 1>&6
9282 echo "configure:9283: checking for socket" >&5
9283 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9286 cat > conftest.$ac_ext <<EOF
9287 #line 9288 "configure"
9288 #include "confdefs.h"
9289 /* System header to define __stub macros and hopefully few prototypes,
9290 which can conflict with char socket(); below. */
9292 /* Override any gcc2 internal prototype to avoid an error. */
9293 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9300 /* The GNU C library defines this for functions which it implements
9301 to always fail with ENOSYS. Some functions are actually named
9302 something starting with __ and the normal name is an alias. */
9303 #if defined (__stub_socket) || defined (__stub___socket)
9311 if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9313 eval "ac_cv_func_socket=yes"
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9318 eval "ac_cv_func_socket=no"
9323 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9324 echo "$ac_t""yes" 1>&6
9327 echo "$ac_t""no" 1>&6
9329 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9330 echo "configure:9331: checking for main in -lsocket" >&5
9331 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9333 echo $ac_n "(cached) $ac_c" 1>&6
9335 ac_save_LIBS="$LIBS"
9336 LIBS="-lsocket $LIBS"
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9347 eval "ac_cv_lib_$ac_lib_var=yes"
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 eval "ac_cv_lib_$ac_lib_var=no"
9355 LIBS="$ac_save_LIBS"
9358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9359 echo "$ac_t""yes" 1>&6
9360 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9362 cat >> confdefs.h <<EOF
9363 #define $ac_tr_lib 1
9366 LIBS="-lsocket $LIBS"
9369 echo "$ac_t""no" 1>&6
9372 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9373 echo "configure:9374: checking for main in -lnet" >&5
9374 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9375 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9378 ac_save_LIBS="$LIBS"
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure"
9382 #include "confdefs.h"
9388 if { (eval echo configure:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9390 eval "ac_cv_lib_$ac_lib_var=yes"
9392 echo "configure: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9395 eval "ac_cv_lib_$ac_lib_var=no"
9398 LIBS="$ac_save_LIBS"
9401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9402 echo "$ac_t""yes" 1>&6
9403 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9405 cat >> confdefs.h <<EOF
9406 #define $ac_tr_lib 1
9412 echo "$ac_t""no" 1>&6
9415 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9416 echo "configure:9417: checking for main in -lnsl_s" >&5
9417 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9421 ac_save_LIBS="$LIBS"
9422 LIBS="-lnsl_s $LIBS"
9423 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure"
9425 #include "confdefs.h"
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9433 eval "ac_cv_lib_$ac_lib_var=yes"
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 eval "ac_cv_lib_$ac_lib_var=no"
9441 LIBS="$ac_save_LIBS"
9444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9445 echo "$ac_t""yes" 1>&6
9446 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9447 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9448 cat >> confdefs.h <<EOF
9449 #define $ac_tr_lib 1
9452 LIBS="-lnsl_s $LIBS"
9455 echo "$ac_t""no" 1>&6
9458 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9459 echo "configure:9460: checking for main in -lnsl" >&5
9460 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9461 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9464 ac_save_LIBS="$LIBS"
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9474 if { (eval echo configure:9475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9476 eval "ac_cv_lib_$ac_lib_var=yes"
9478 echo "configure: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9481 eval "ac_cv_lib_$ac_lib_var=no"
9484 LIBS="$ac_save_LIBS"
9487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9488 echo "$ac_t""yes" 1>&6
9489 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9490 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9491 cat >> confdefs.h <<EOF
9492 #define $ac_tr_lib 1
9498 echo "$ac_t""no" 1>&6
9501 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9502 echo "configure:9503: checking for socket in -linet" >&5
9503 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9504 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9507 ac_save_LIBS="$LIBS"
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 /* We use char because int might match the return type of a gcc2
9514 builtin and then its argument prototype would still apply. */
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9523 eval "ac_cv_lib_$ac_lib_var=yes"
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9528 eval "ac_cv_lib_$ac_lib_var=no"
9531 LIBS="$ac_save_LIBS"
9534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9535 echo "$ac_t""yes" 1>&6
9536 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9538 cat >> confdefs.h <<EOF
9539 #define $ac_tr_lib 1
9545 echo "$ac_t""no" 1>&6
9548 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9549 echo "configure:9550: checking for main in -lgen" >&5
9550 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9551 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9554 ac_save_LIBS="$LIBS"
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9566 eval "ac_cv_lib_$ac_lib_var=yes"
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9571 eval "ac_cv_lib_$ac_lib_var=no"
9574 LIBS="$ac_save_LIBS"
9577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9578 echo "$ac_t""yes" 1>&6
9579 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9580 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9581 cat >> confdefs.h <<EOF
9582 #define $ac_tr_lib 1
9588 echo "$ac_t""no" 1>&6
9595 echo $ac_n "checking for select""... $ac_c" 1>&6
9596 echo "configure:9597: checking for select" >&5
9597 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 /* System header to define __stub macros and hopefully few prototypes,
9604 which can conflict with char select(); below. */
9606 /* Override any gcc2 internal prototype to avoid an error. */
9607 /* We use char because int might match the return type of a gcc2
9608 builtin and then its argument prototype would still apply. */
9614 /* The GNU C library defines this for functions which it implements
9615 to always fail with ENOSYS. Some functions are actually named
9616 something starting with __ and the normal name is an alias. */
9617 #if defined (__stub_select) || defined (__stub___select)
9625 if { (eval echo configure:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9627 eval "ac_cv_func_select=yes"
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9632 eval "ac_cv_func_select=no"
9637 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9638 echo "$ac_t""yes" 1>&6
9641 echo "$ac_t""no" 1>&6
9642 { echo "configure: error: select() required." 1>&2; exit 1; }
9646 if test "${ac_cv_header_winsock_h}" != yes; then
9647 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9648 echo "configure:9649: checking types of arguments for select()" >&5
9649 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9652 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9653 echo $ac_n "(cached) $ac_c" 1>&6
9655 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9656 echo $ac_n "(cached) $ac_c" 1>&6
9658 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9659 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9660 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9661 cat > conftest.$ac_ext <<EOF
9662 #line 9663 "configure"
9663 #include "confdefs.h"
9664 #ifdef HAVE_SYS_TYPES_H
9665 #include <sys/types.h>
9667 #ifdef HAVE_SYS_TIME_H
9668 #include <sys/time.h>
9670 #ifdef HAVE_SYS_SELECT_H
9671 #include <sys/select.h>
9673 #ifdef HAVE_SYS_SOCKET_H
9674 #include <sys/socket.h>
9676 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);
9681 if { (eval echo configure:9682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9683 ac_not_found=no ; break 3
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9700 if test "$ac_not_found" = yes; then
9701 ac_cv_func_select_arg1=int
9702 ac_cv_func_select_arg234='int *'
9703 ac_cv_func_select_arg5='struct timeval *'
9705 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9706 cat >> confdefs.h <<EOF
9707 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9710 cat >> confdefs.h <<EOF
9711 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9714 cat >> confdefs.h <<EOF
9715 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9722 for ac_hdr in regex.h
9724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9726 echo "configure:9727: checking for $ac_hdr" >&5
9727 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9736 { (eval echo configure:9737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9738 if test -z "$ac_err"; then
9740 eval "ac_cv_header_$ac_safe=yes"
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9746 eval "ac_cv_header_$ac_safe=no"
9750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9751 echo "$ac_t""yes" 1>&6
9752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9753 cat >> confdefs.h <<EOF
9754 #define $ac_tr_hdr 1
9758 echo "$ac_t""no" 1>&6
9762 if test "$ac_cv_header_regex_h" != yes ; then
9763 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9766 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9767 echo "configure:9768: checking for library containing regfree" >&5
9768 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9771 ac_func_search_save_LIBS="$LIBS"
9772 ac_cv_search_regfree="no"
9773 cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9776 /* Override any gcc2 internal prototype to avoid an error. */
9777 /* We use char because int might match the return type of a gcc2
9778 builtin and then its argument prototype would still apply. */
9785 if { (eval echo configure:9786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9787 ac_cv_search_regfree="none required"
9789 echo "configure: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9793 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 ac_cv_search_regfree="-l$ac_lib"
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9817 LIBS="$ac_func_search_save_LIBS"
9820 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9821 if test "$ac_cv_search_regfree" != "no"; then
9822 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9825 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9829 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9830 echo "configure:9831: checking for compatible POSIX regex" >&5
9831 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9835 if test "$cross_compiling" = yes; then
9836 ol_cv_c_posix_regex=cross
9838 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure"
9840 #include "confdefs.h"
9842 #include <sys/types.h>
9844 static char *pattern, *string;
9852 if(regcomp(&re, pattern, 0)) {
9856 string = "ALL MATCH";
9858 rc = regexec(&re, string, 0, (void*)0, 0);
9865 if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9867 ol_cv_c_posix_regex=yes
9869 echo "configure: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9872 ol_cv_c_posix_regex=no
9879 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9881 if test "$ol_cv_c_posix_regex" = no ; then
9882 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9887 for ac_hdr in sys/uuid.h
9889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9891 echo "configure:9892: checking for $ac_hdr" >&5
9892 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9895 cat > conftest.$ac_ext <<EOF
9896 #line 9897 "configure"
9897 #include "confdefs.h"
9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903 if test -z "$ac_err"; then
9905 eval "ac_cv_header_$ac_safe=yes"
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 eval "ac_cv_header_$ac_safe=no"
9915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9918 cat >> confdefs.h <<EOF
9919 #define $ac_tr_hdr 1
9923 echo "$ac_t""no" 1>&6
9927 if test $ac_cv_header_sys_uuid_h = yes ; then
9930 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9931 echo "configure:9932: checking for library containing uuid_to_str" >&5
9932 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9935 ac_func_search_save_LIBS="$LIBS"
9936 ac_cv_search_uuid_to_str="no"
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 /* Override any gcc2 internal prototype to avoid an error. */
9941 /* We use char because int might match the return type of a gcc2
9942 builtin and then its argument prototype would still apply. */
9949 if { (eval echo configure:9950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9951 ac_cv_search_uuid_to_str="none required"
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9957 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9958 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9959 cat > conftest.$ac_ext <<EOF
9960 #line 9961 "configure"
9961 #include "confdefs.h"
9962 /* Override any gcc2 internal prototype to avoid an error. */
9963 /* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9971 if { (eval echo configure:9972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9973 ac_cv_search_uuid_to_str="-l$ac_lib"
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9981 LIBS="$ac_func_search_save_LIBS"
9984 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9985 if test "$ac_cv_search_uuid_to_str" != "no"; then
9986 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9993 if test have_uuid = yes ; then
9994 cat >> confdefs.h <<\EOF
9995 #define HAVE_UUID_TO_STR 1
9999 test "$ac_cv_search_uuid_to_str" = "none required" || \
10000 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10004 if test $have_uuid = no ; then
10005 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10006 echo "configure:10007: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10008 LIBS="$LIBS -lrpcrt4"
10009 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10013 char UuidCreate@4();
10014 char UuidToStringA@8();
10023 if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10033 if test $need_rpcrt = yes; then
10034 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10037 echo "$ac_t""$need_rpcrt" 1>&6
10041 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10042 echo "configure:10043: checking for res_query" >&5
10043 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10046 cat > conftest.$ac_ext <<EOF
10047 #line 10048 "configure"
10048 #include "confdefs.h"
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char res_query(); below. */
10051 #include <assert.h>
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10060 /* The GNU C library defines this for functions which it implements
10061 to always fail with ENOSYS. Some functions are actually named
10062 something starting with __ and the normal name is an alias. */
10063 #if defined (__stub_res_query) || defined (__stub___res_query)
10071 if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10073 eval "ac_cv_func_res_query=yes"
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10078 eval "ac_cv_func_res_query=no"
10083 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10084 echo "$ac_t""yes" 1>&6
10087 echo "$ac_t""no" 1>&6
10090 if test $ac_cv_func_res_query = no ; then
10091 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10092 echo "configure:10093: checking for __res_query" >&5
10093 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10094 echo $ac_n "(cached) $ac_c" 1>&6
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10099 /* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char __res_query(); below. */
10101 #include <assert.h>
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105 char __res_query();
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined (__stub___res_query) || defined (__stub_____res_query)
10121 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10123 eval "ac_cv_func___res_query=yes"
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 eval "ac_cv_func___res_query=no"
10133 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10137 echo "$ac_t""no" 1>&6
10140 ac_cv_func_res_query=$ac_cv_func___res_query
10143 if test $ac_cv_func_res_query = no ; then
10144 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10145 echo "configure:10146: checking for res_query in -lbind" >&5
10146 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10147 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10148 echo $ac_n "(cached) $ac_c" 1>&6
10150 ac_save_LIBS="$LIBS"
10151 LIBS="-lbind $LIBS"
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10164 if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10166 eval "ac_cv_lib_$ac_lib_var=yes"
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10171 eval "ac_cv_lib_$ac_lib_var=no"
10174 LIBS="$ac_save_LIBS"
10177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10178 echo "$ac_t""yes" 1>&6
10179 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10181 cat >> confdefs.h <<EOF
10182 #define $ac_tr_lib 1
10185 LIBS="-lbind $LIBS"
10188 echo "$ac_t""no" 1>&6
10191 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10194 if test $ac_cv_func_res_query = no ; then
10195 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10196 echo "configure:10197: checking for __res_query in -lbind" >&5
10197 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10198 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10199 echo $ac_n "(cached) $ac_c" 1>&6
10201 ac_save_LIBS="$LIBS"
10202 LIBS="-lbind $LIBS"
10203 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure"
10205 #include "confdefs.h"
10206 /* Override any gcc2 internal prototype to avoid an error. */
10207 /* We use char because int might match the return type of a gcc2
10208 builtin and then its argument prototype would still apply. */
10209 char __res_query();
10215 if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10217 eval "ac_cv_lib_$ac_lib_var=yes"
10219 echo "configure: failed program was:" >&5
10220 cat conftest.$ac_ext >&5
10222 eval "ac_cv_lib_$ac_lib_var=no"
10225 LIBS="$ac_save_LIBS"
10228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10229 echo "$ac_t""yes" 1>&6
10230 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10232 cat >> confdefs.h <<EOF
10233 #define $ac_tr_lib 1
10236 LIBS="-lbind $LIBS"
10239 echo "$ac_t""no" 1>&6
10242 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10245 if test $ac_cv_func_res_query = no ; then
10246 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10247 echo "configure:10248: checking for res_query in -lresolv" >&5
10248 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10249 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10252 ac_save_LIBS="$LIBS"
10253 LIBS="-lresolv $LIBS"
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 /* Override any gcc2 internal prototype to avoid an error. */
10258 /* We use char because int might match the return type of a gcc2
10259 builtin and then its argument prototype would still apply. */
10266 if { (eval echo configure:10267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10268 eval "ac_cv_lib_$ac_lib_var=yes"
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10273 eval "ac_cv_lib_$ac_lib_var=no"
10276 LIBS="$ac_save_LIBS"
10279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10280 echo "$ac_t""yes" 1>&6
10281 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10283 cat >> confdefs.h <<EOF
10284 #define $ac_tr_lib 1
10287 LIBS="-lresolv $LIBS"
10290 echo "$ac_t""no" 1>&6
10293 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10296 if test $ac_cv_func_res_query = no ; then
10297 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10298 echo "configure:10299: checking for __res_query in -lresolv" >&5
10299 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10300 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10303 ac_save_LIBS="$LIBS"
10304 LIBS="-lresolv $LIBS"
10305 cat > conftest.$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 /* Override any gcc2 internal prototype to avoid an error. */
10309 /* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10311 char __res_query();
10317 if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10319 eval "ac_cv_lib_$ac_lib_var=yes"
10321 echo "configure: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10324 eval "ac_cv_lib_$ac_lib_var=no"
10327 LIBS="$ac_save_LIBS"
10330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10331 echo "$ac_t""yes" 1>&6
10332 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10334 cat >> confdefs.h <<EOF
10335 #define $ac_tr_lib 1
10338 LIBS="-lresolv $LIBS"
10341 echo "$ac_t""no" 1>&6
10344 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10347 if test "$ac_cv_func_res_query" = yes ; then
10348 cat >> confdefs.h <<\EOF
10349 #define HAVE_RES_QUERY 1
10353 if test $ol_enable_dnssrv != no ; then
10358 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10359 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10362 for ac_func in getaddrinfo gai_strerror inet_ntop
10364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10365 echo "configure:10366: checking for $ac_func" >&5
10366 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 /* System header to define __stub macros and hopefully few prototypes,
10373 which can conflict with char $ac_func(); below. */
10374 #include <assert.h>
10375 /* Override any gcc2 internal prototype to avoid an error. */
10376 /* We use char because int might match the return type of a gcc2
10377 builtin and then its argument prototype would still apply. */
10383 /* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10396 eval "ac_cv_func_$ac_func=yes"
10398 echo "configure: failed program was:" >&5
10399 cat conftest.$ac_ext >&5
10401 eval "ac_cv_func_$ac_func=no"
10406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10407 echo "$ac_t""yes" 1>&6
10408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10409 cat >> confdefs.h <<EOF
10410 #define $ac_tr_func 1
10414 echo "$ac_t""no" 1>&6
10420 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10421 if test $ol_enable_ipv6 = yes ; then
10422 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10424 elif test $ol_enable_ipv6 != no ; then
10425 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10426 echo "configure:10427: checking INET6_ADDRSTRLEN" >&5
10427 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10428 echo $ac_n "(cached) $ac_c" 1>&6
10431 cat > conftest.$ac_ext <<EOF
10432 #line 10433 "configure"
10433 #include "confdefs.h"
10435 # include <netinet/in.h>
10436 # ifdef INET6_ADDRSTRLEN
10437 __has_inet6_addrstrlen__;
10441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10442 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10444 ol_cv_inet6_addrstrlen=yes
10447 ol_cv_inet6_addrstrlen=no
10453 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10456 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10457 echo "configure:10458: checking struct sockaddr_storage" >&5
10458 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10459 echo $ac_n "(cached) $ac_c" 1>&6
10462 cat > conftest.$ac_ext <<EOF
10463 #line 10464 "configure"
10464 #include "confdefs.h"
10466 #include <sys/types.h>
10467 #include <sys/socket.h>
10471 struct sockaddr_storage ss;
10475 if { (eval echo configure:10476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10477 ol_cv_struct_sockaddr_storage=yes
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10482 ol_cv_struct_sockaddr_storage=no
10487 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10489 if test $ol_cv_inet6_addrstrlen = yes \
10490 -a $ol_cv_struct_sockaddr_storage = yes ; then
10492 elif test $ol_enable_ipv6 = yes \
10493 -a $ol_cv_inet6_addrstrlen = no ; then
10494 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10495 elif test $ol_enable_ipv6 = yes \
10496 -a $ol_cv_struct_sockaddr_storage = no ; then
10497 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10501 if test $ol_enable_local != no ; then
10502 for ac_hdr in sys/un.h
10504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10506 echo "configure:10507: checking for $ac_hdr" >&5
10507 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10512 "configure"
10512 #include "confdefs.h"
10515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10516 { (eval echo configure:10517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10518 if test -z "$ac_err"; then
10520 eval "ac_cv_header_$ac_safe=yes"
10523 echo "configure: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10526 eval "ac_cv_header_$ac_safe=no"
10530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10533 cat >> confdefs.h <<EOF
10534 #define $ac_tr_hdr 1
10538 echo "$ac_t""no" 1>&6
10543 if test $ol_enable_local = auto ; then
10544 ol_enable_local=$ac_cv_header_sys_un_h
10545 elif test $ac_cv_header_sys_un_h = no ; then
10546 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10555 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10556 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10557 -o $ol_with_kerberos = k425 ; then
10559 for ac_hdr in krb5.h
10561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10563 echo "configure:10564: checking for $ac_hdr" >&5
10564 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10573 { (eval echo configure:10574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10575 if test -z "$ac_err"; then
10577 eval "ac_cv_header_$ac_safe=yes"
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10583 eval "ac_cv_header_$ac_safe=no"
10587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10588 echo "$ac_t""yes" 1>&6
10589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10590 cat >> confdefs.h <<EOF
10591 #define $ac_tr_hdr 1
10595 echo "$ac_t""no" 1>&6
10600 if test $ac_cv_header_krb5_h = yes ; then
10601 for ac_hdr in heim_err.h
10603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10605 echo "configure:10606: checking for $ac_hdr" >&5
10606 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10615 { (eval echo configure:10616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10617 if test -z "$ac_err"; then
10619 eval "ac_cv_header_$ac_safe=yes"
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10625 eval "ac_cv_header_$ac_safe=no"
10629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10632 cat >> confdefs.h <<EOF
10633 #define $ac_tr_hdr 1
10637 echo "$ac_t""no" 1>&6
10641 if test $ac_cv_header_heim_err_h = yes ; then
10647 if test $krb5_impl = mit; then
10648 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10649 echo "configure:10650: checking for main in -lk5crypto" >&5
10650 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10654 ac_save_LIBS="$LIBS"
10655 LIBS="-lk5crypto $LIBS"
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10664 if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10666 eval "ac_cv_lib_$ac_lib_var=yes"
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10671 eval "ac_cv_lib_$ac_lib_var=no"
10674 LIBS="$ac_save_LIBS"
10677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10678 echo "$ac_t""yes" 1>&6
10679 krb5crypto=k5crypto
10681 echo "$ac_t""no" 1>&6
10686 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10687 echo "configure:10688: checking for main in -lkrb5" >&5
10688 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10692 ac_save_LIBS="$LIBS"
10693 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10702 if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10704 eval "ac_cv_lib_$ac_lib_var=yes"
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10709 eval "ac_cv_lib_$ac_lib_var=no"
10712 LIBS="$ac_save_LIBS"
10715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
10718 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10720 echo "$ac_t""no" 1>&6
10725 elif test $krb5_impl = heimdal; then
10726 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10727 echo "configure:10728: checking for main in -ldes" >&5
10728 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10730 echo $ac_n "(cached) $ac_c" 1>&6
10732 ac_save_LIBS="$LIBS"
10734 cat > conftest.$ac_ext <<EOF
10735 #line 10736 "configure"
10736 #include "confdefs.h"
10742 if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 eval "ac_cv_lib_$ac_lib_var=yes"
10746 echo "configure: failed program was:" >&5
10747 cat conftest.$ac_ext >&5
10749 eval "ac_cv_lib_$ac_lib_var=no"
10752 LIBS="$ac_save_LIBS"
10755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10756 echo "$ac_t""yes" 1>&6
10759 echo "$ac_t""no" 1>&6
10764 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10765 echo "configure:10766: checking for main in -lkrb5" >&5
10766 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10767 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10768 echo $ac_n "(cached) $ac_c" 1>&6
10770 ac_save_LIBS="$LIBS"
10771 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10780 if { (eval echo configure:10781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10782 eval "ac_cv_lib_$ac_lib_var=yes"
10784 echo "configure: failed program was:" >&5
10785 cat conftest.$ac_ext >&5
10787 eval "ac_cv_lib_$ac_lib_var=no"
10790 LIBS="$ac_save_LIBS"
10793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10794 echo "$ac_t""yes" 1>&6
10796 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10798 echo "$ac_t""no" 1>&6
10803 cat >> confdefs.h <<\EOF
10804 #define HAVE_HEIMDAL_KERBEROS 1
10810 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10813 if test $have_krb5 = yes ; then
10816 cat >> confdefs.h <<\EOF
10817 #define HAVE_KRB5 1
10821 if test $ol_enable_kpasswd != no ; then
10822 ol_link_kpasswd=yes;
10825 if test $ol_with_kerberos = k5only ; then
10826 ol_with_kerberos=found
10829 elif test $ol_with_kerberos != auto ; then
10830 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10836 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10837 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10839 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10843 echo "configure:10844: checking for $ac_hdr" >&5
10844 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10845 echo $ac_n "(cached) $ac_c" 1>&6
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10853 { (eval echo configure:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10855 if test -z "$ac_err"; then
10857 eval "ac_cv_header_$ac_safe=yes"
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10863 eval "ac_cv_header_$ac_safe=no"
10867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10870 cat >> confdefs.h <<EOF
10871 #define $ac_tr_hdr 1
10875 echo "$ac_t""no" 1>&6
10880 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10881 if test $krb5_impl = mit; then
10882 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10883 echo "configure:10884: checking for main in -lkrb4" >&5
10884 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10885 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10886 echo $ac_n "(cached) $ac_c" 1>&6
10888 ac_save_LIBS="$LIBS"
10889 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10898 if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10900 eval "ac_cv_lib_$ac_lib_var=yes"
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10905 eval "ac_cv_lib_$ac_lib_var=no"
10908 LIBS="$ac_save_LIBS"
10911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10914 KRB4_LIBS="-lkrb4 -ldes425"
10916 echo "$ac_t""no" 1>&6
10921 elif test $krb5_impl = heimdal; then
10922 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10923 echo "configure:10924: checking for main in -lkrb4" >&5
10924 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10928 ac_save_LIBS="$LIBS"
10929 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10930 cat > conftest.$ac_ext <<EOF
10931 #line 10932 "configure"
10932 #include "confdefs.h"
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10940 eval "ac_cv_lib_$ac_lib_var=yes"
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 eval "ac_cv_lib_$ac_lib_var=no"
10948 LIBS="$ac_save_LIBS"
10951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10952 echo "$ac_t""yes" 1>&6
10956 echo "$ac_t""no" 1>&6
10963 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10966 if test $have_k425 = yes ; then
10967 ol_with_kerberos=found
10970 cat >> confdefs.h <<\EOF
10971 #define HAVE_KRB425 1
10974 cat >> confdefs.h <<\EOF
10975 #define HAVE_KRB4 1
10979 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10980 echo "configure:10981: checking for des_debug in Kerberos libraries" >&5
10981 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10982 echo $ac_n "(cached) $ac_c" 1>&6
10986 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10987 cat > conftest.$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10991 #include <kerberosIV/krb.h>
10992 #include <kerberosIV/des.h>
10993 extern int des_debug;
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003 ol_cv_var_des_debug=yes
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 ol_cv_var_des_debug=no
11015 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11017 if test $ol_cv_var_des_debug = yes ; then
11018 cat >> confdefs.h <<\EOF
11019 #define HAVE_DES_DEBUG 1
11029 if test $ol_link_krb5 = yes ; then
11030 ol_with_kerberos=found
11033 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11034 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11036 for ac_hdr in krb.h des.h krb-archaeology.h
11038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11040 echo "configure:11041: checking for $ac_hdr" >&5
11041 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11042 echo $ac_n "(cached) $ac_c" 1>&6
11044 cat > conftest.$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11050 { (eval echo configure:11051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11052 if test -z "$ac_err"; then
11054 eval "ac_cv_header_$ac_safe=yes"
11057 echo "configure: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 eval "ac_cv_header_$ac_safe=no"
11064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11065 echo "$ac_t""yes" 1>&6
11066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11067 cat >> confdefs.h <<EOF
11068 #define $ac_tr_hdr 1
11072 echo "$ac_t""no" 1>&6
11077 if test $ac_cv_header_krb_h = yes ; then
11078 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11079 echo "configure:11080: checking for main in -lkrb" >&5
11080 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11081 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11082 echo $ac_n "(cached) $ac_c" 1>&6
11084 ac_save_LIBS="$LIBS"
11085 LIBS="-lkrb -ldes $LIBS"
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11096 eval "ac_cv_lib_$ac_lib_var=yes"
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 eval "ac_cv_lib_$ac_lib_var=no"
11104 LIBS="$ac_save_LIBS"
11107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11108 echo "$ac_t""yes" 1>&6
11111 echo "$ac_t""no" 1>&6
11116 if test $have_k4 = yes ; then
11117 ol_with_kerberos=found
11120 cat >> confdefs.h <<\EOF
11121 #define HAVE_KRB4 1
11125 KRB4_LIBS="-lkrb -ldes"
11127 if test $ac_cv_header_krb_archaeology_h = yes ; then
11128 cat >> confdefs.h <<\EOF
11129 #define HAVE_KTH_KERBEROS 1
11137 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11138 ol_link_kpasswd=yes
11141 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11144 elif test $ol_enable_kbind = yes ; then
11145 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11148 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11149 cat >> confdefs.h <<\EOF
11150 #define HAVE_KERBEROS 1
11154 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11155 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11159 if test $ol_with_tls != no ; then
11160 for ac_hdr in openssl/ssl.h ssl.h
11162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11164 echo "configure:11165: checking for $ac_hdr" >&5
11165 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11166 echo $ac_n "(cached) $ac_c" 1>&6
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11174 { (eval echo configure:11175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11176 if test -z "$ac_err"; then
11178 eval "ac_cv_header_$ac_safe=yes"
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11184 eval "ac_cv_header_$ac_safe=no"
11188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11189 echo "$ac_t""yes" 1>&6
11190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11191 cat >> confdefs.h <<EOF
11192 #define $ac_tr_hdr 1
11196 echo "$ac_t""no" 1>&6
11201 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11202 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11203 echo "configure:11204: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11204 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11205 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11208 ac_save_LIBS="$LIBS"
11209 LIBS="-lssl -lcrypto $LIBS"
11210 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11213 /* Override any gcc2 internal prototype to avoid an error. */
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11216 char SSLeay_add_ssl_algorithms();
11219 SSLeay_add_ssl_algorithms()
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 eval "ac_cv_lib_$ac_lib_var=yes"
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 eval "ac_cv_lib_$ac_lib_var=no"
11232 LIBS="$ac_save_LIBS"
11235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11236 echo "$ac_t""yes" 1>&6
11240 echo "$ac_t""no" 1>&6
11245 if test $have_ssleay = no ; then
11246 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11247 echo "configure:11248: checking for SSL_library_init in -lssl" >&5
11248 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11249 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11250 echo $ac_n "(cached) $ac_c" 1>&6
11252 ac_save_LIBS="$LIBS"
11253 LIBS="-lssl -lcrypto $LIBS"
11254 cat > conftest.$ac_ext <<EOF
11255 #line 11256 "configure"
11256 #include "confdefs.h"
11257 /* Override any gcc2 internal prototype to avoid an error. */
11258 /* We use char because int might match the return type of a gcc2
11259 builtin and then its argument prototype would still apply. */
11260 char SSL_library_init();
11266 if { (eval echo configure:11267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11268 eval "ac_cv_lib_$ac_lib_var=yes"
11270 echo "configure: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11273 eval "ac_cv_lib_$ac_lib_var=no"
11276 LIBS="$ac_save_LIBS"
11279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11280 echo "$ac_t""yes" 1>&6
11284 echo "$ac_t""no" 1>&6
11290 if test $have_ssleay = no ; then
11291 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11292 echo "configure:11293: checking for ssl3_accept in -lssl" >&5
11293 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11294 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11297 ac_save_LIBS="$LIBS"
11298 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11305 char ssl3_accept();
11311 if { (eval echo configure:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11313 eval "ac_cv_lib_$ac_lib_var=yes"
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 eval "ac_cv_lib_$ac_lib_var=no"
11321 LIBS="$ac_save_LIBS"
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11329 echo "$ac_t""no" 1>&6
11335 if test $have_ssleay = yes ; then
11339 cat >> confdefs.h <<\EOF
11340 #define HAVE_SSLEAY 1
11344 if test $need_rsaref = yes; then
11345 cat >> confdefs.h <<\EOF
11346 #define HAVE_RSAREF 1
11350 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11352 TLS_LIBS="-lssl -lcrypto"
11358 echo "configure: warning: TLS data protection not supported!" 1>&2
11361 if test $ol_link_tls = yes ; then
11362 cat >> confdefs.h <<\EOF
11367 elif test $ol_with_tls = auto ; then
11368 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11369 echo "configure: warning: TLS data protection not supported!" 1>&2
11371 elif test $ol_with_tls != no ; then
11372 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11375 if test $ol_enable_lmpasswd != no; then
11376 if test $ol_link_tls != yes ; then
11377 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11380 cat >> confdefs.h <<\EOF
11381 #define SLAPD_LMHASH 1
11388 gethostbyname_r gethostbyaddr_r \
11391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11392 echo "configure:11393: checking for $ac_func" >&5
11393 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11398 "configure"
11398 #include "confdefs.h"
11399 /* System header to define __stub macros and hopefully few prototypes,
11400 which can conflict with char $ac_func(); below. */
11401 #include <assert.h>
11402 /* Override any gcc2 internal prototype to avoid an error. */
11403 /* We use char because int might match the return type of a gcc2
11404 builtin and then its argument prototype would still apply. */
11410 /* The GNU C library defines this for functions which it implements
11411 to always fail with ENOSYS. Some functions are actually named
11412 something starting with __ and the normal name is an alias. */
11413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11421 if { (eval echo configure:11422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11423 eval "ac_cv_func_$ac_func=yes"
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11428 eval "ac_cv_func_$ac_func=no"
11433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11434 echo "$ac_t""yes" 1>&6
11435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11436 cat >> confdefs.h <<EOF
11437 #define $ac_tr_func 1
11441 echo "$ac_t""no" 1>&6
11446 if test "$ac_cv_func_ctime_r" = no ; then
11447 ol_cv_func_ctime_r_nargs=0
11449 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11450 echo "configure:11451: checking number of arguments of ctime_r" >&5
11451 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11454 cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11459 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11462 if { (eval echo configure:11463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11464 ol_cv_func_ctime_r_nargs3=yes
11466 echo "configure: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11469 ol_cv_func_ctime_r_nargs3=no
11473 cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11478 time_t ti; char *buffer; ctime_r(&ti,buffer);
11481 if { (eval echo configure:11482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11483 ol_cv_func_ctime_r_nargs2=yes
11485 echo "configure: failed program was:" >&5
11486 cat conftest.$ac_ext >&5
11488 ol_cv_func_ctime_r_nargs2=no
11492 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11493 $ol_cv_func_ctime_r_nargs2 = no ; then
11495 ol_cv_func_ctime_r_nargs=3
11497 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11498 $ol_cv_func_ctime_r_nargs2 = yes ; then
11500 ol_cv_func_ctime_r_nargs=2
11503 ol_cv_func_ctime_r_nargs=0
11508 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11510 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11511 cat >> confdefs.h <<EOF
11512 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11519 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11520 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11521 echo "configure:11522: checking number of arguments of gethostbyname_r" >&5
11522 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 #include <sys/types.h>
11529 #include <sys/socket.h>
11530 #include <netinet/in.h>
11532 #define BUFSIZE (sizeof(struct hostent)+10)
11534 struct hostent hent; char buffer[BUFSIZE];
11535 int bufsize=BUFSIZE;int h_errno;
11536 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11537 buffer, bufsize, &h_errno);
11540 if { (eval echo configure:11541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11542 ol_cv_func_gethostbyname_r_nargs5=yes
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11547 ol_cv_func_gethostbyname_r_nargs5=no
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include <sys/types.h>
11555 #include <sys/socket.h>
11556 #include <netinet/in.h>
11558 #define BUFSIZE (sizeof(struct hostent)+10)
11560 struct hostent hent;struct hostent *rhent;
11561 char buffer[BUFSIZE];
11562 int bufsize=BUFSIZE;int h_errno;
11563 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11567 if { (eval echo configure:11568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11569 ol_cv_func_gethostbyname_r_nargs6=yes
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11574 ol_cv_func_gethostbyname_r_nargs6=no
11578 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11579 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11581 ol_cv_func_gethostbyname_r_nargs=5
11583 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11584 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11586 ol_cv_func_gethostbyname_r_nargs=6
11589 ol_cv_func_gethostbyname_r_nargs=0
11594 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11595 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11596 cat >> confdefs.h <<EOF
11597 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11603 ol_cv_func_gethostbyname_r_nargs=0
11606 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11607 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11608 echo "configure:11609: checking number of arguments of gethostbyaddr_r" >&5
11609 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11610 echo $ac_n "(cached) $ac_c" 1>&6
11612 cat > conftest.$ac_ext <<EOF
11613 #line 11614 "configure"
11614 #include "confdefs.h"
11615 #include <sys/types.h>
11616 #include <sys/socket.h>
11617 #include <netinet/in.h>
11619 #define BUFSIZE (sizeof(struct hostent)+10)
11621 struct hostent hent; char buffer[BUFSIZE];
11622 struct in_addr add;
11623 size_t alen=sizeof(struct in_addr);
11624 int bufsize=BUFSIZE;int h_errno;
11625 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11626 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11629 if { (eval echo configure:11630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11631 ol_cv_func_gethostbyaddr_r_nargs7=yes
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11636 ol_cv_func_gethostbyaddr_r_nargs7=no
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11643 #include <sys/types.h>
11644 #include <sys/socket.h>
11645 #include <netinet/in.h>
11647 #define BUFSIZE (sizeof(struct hostent)+10)
11649 struct hostent hent;
11650 struct hostent *rhent; char buffer[BUFSIZE];
11651 struct in_addr add;
11652 size_t alen=sizeof(struct in_addr);
11653 int bufsize=BUFSIZE;int h_errno;
11654 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11655 alen, AF_INET, &hent, buffer, bufsize,
11659 if { (eval echo configure:11660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11661 ol_cv_func_gethostbyaddr_r_nargs8=yes
11663 echo "configure: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11666 ol_cv_func_gethostbyaddr_r_nargs8=no
11670 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11671 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11673 ol_cv_func_gethostbyaddr_r_nargs=7
11675 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11676 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11678 ol_cv_func_gethostbyaddr_r_nargs=8
11681 ol_cv_func_gethostbyaddr_r_nargs=0
11686 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11687 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11688 cat >> confdefs.h <<EOF
11689 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11695 ol_cv_func_gethostbyaddr_r_nargs=0
11698 if test "$ac_cv_func_ctime_r" = yes \
11699 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11700 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11701 -a "$ac_cv_func_gethostbyname_r" = yes \
11702 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11703 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11704 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11705 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11706 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11709 cat >> confdefs.h <<\EOF
11710 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11717 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11718 -o $ol_with_threads = nt ; then
11721 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11722 echo "configure:11723: checking for _beginthread" >&5
11723 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char _beginthread(); below. */
11731 #include <assert.h>
11732 /* Override any gcc2 internal prototype to avoid an error. */
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11735 char _beginthread();
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11753 eval "ac_cv_func__beginthread=yes"
11755 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5
11758 eval "ac_cv_func__beginthread=no"
11763 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11764 echo "$ac_t""yes" 1>&6
11767 echo "$ac_t""no" 1>&6
11771 if test $ac_cv_func__beginthread = yes ; then
11772 cat >> confdefs.h <<\EOF
11773 #define HAVE_NT_THREADS 1
11776 ol_cv_nt_threads=yes
11780 if test "$ol_cv_nt_threads" = yes ; then
11782 ol_with_threads=found
11783 ol_with_yielding_select=yes
11785 cat >> confdefs.h <<\EOF
11786 #define HAVE_NT_SERVICE_MANAGER 1
11789 cat >> confdefs.h <<\EOF
11790 #define HAVE_NT_EVENT_LOG 1
11795 if test $ol_with_threads = nt ; then
11796 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11800 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11801 -o $ol_with_threads = posix ; then
11803 for ac_hdr in pthread.h
11805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11807 echo "configure:11808: checking for $ac_hdr" >&5
11808 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11811 cat > conftest.$ac_ext <<EOF
11812 #line 11813 "configure"
11813 #include "confdefs.h"
11816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11817 { (eval echo configure:11818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11819 if test -z "$ac_err"; then
11821 eval "ac_cv_header_$ac_safe=yes"
11824 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5
11827 eval "ac_cv_header_$ac_safe=no"
11831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11832 echo "$ac_t""yes" 1>&6
11833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11834 cat >> confdefs.h <<EOF
11835 #define $ac_tr_hdr 1
11839 echo "$ac_t""no" 1>&6
11844 if test $ac_cv_header_pthread_h = yes ; then
11845 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11846 echo "configure:11847: checking POSIX thread version" >&5
11847 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11848 echo $ac_n "(cached) $ac_c" 1>&6
11851 cat > conftest.$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11855 # include <pthread.h>
11859 int i = PTHREAD_CREATE_JOINABLE;
11863 if { (eval echo configure:11864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11866 cat > conftest.$ac_ext <<EOF
11867 #line 11868 "configure"
11868 #include "confdefs.h"
11869 #include <pthread.h>
11871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11872 egrep "pthread_detach" >/dev/null 2>&1; then
11874 ol_cv_pthread_version=10
11877 ol_cv_pthread_version=8
11882 echo "configure: failed program was:" >&5
11883 cat conftest.$ac_ext >&5
11886 cat > conftest.$ac_ext <<EOF
11887 #line 11888 "configure"
11888 #include "confdefs.h"
11890 # include <pthread.h>
11891 # ifdef PTHREAD_CREATE_UNDETACHED
11896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11897 egrep "draft7" >/dev/null 2>&1; then
11899 ol_cv_pthread_version=7
11903 cat > conftest.$ac_ext <<EOF
11904 #line 11905 "configure"
11905 #include "confdefs.h"
11906 #include <pthread.h>
11908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11909 egrep "pthread_attr_init" >/dev/null 2>&1; then
11911 ol_cv_pthread_version=6
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11919 # include <pthread.h>
11920 #ifdef PTHREAD_MUTEX_INITIALIZER
11925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11926 egrep "draft5" >/dev/null 2>&1; then
11928 ol_cv_pthread_version=5
11931 ol_cv_pthread_version=4
11946 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11949 if test $ol_cv_pthread_version != 0 ; then
11950 cat >> confdefs.h <<EOF
11951 #define HAVE_PTHREADS $ol_cv_pthread_version
11955 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11958 # consider threads found
11959 ol_with_threads=found
11962 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11963 echo "configure:11964: checking for LinuxThreads pthread.h" >&5
11964 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11967 cat > conftest.$ac_ext <<EOF
11968 #line 11969 "configure"
11969 #include "confdefs.h"
11970 #include <pthread.h>
11972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11973 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11975 ol_cv_header_linux_threads=yes
11978 ol_cv_header_linux_threads=no
11985 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11986 if test $ol_cv_header_linux_threads = yes; then
11987 cat >> confdefs.h <<\EOF
11988 #define HAVE_LINUX_THREADS 1
11994 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11995 echo "configure:11996: checking for GNU Pth pthread.h" >&5
11996 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 #include <pthread.h>
12003 #ifdef _POSIX_THREAD_IS_GNU_PTH
12008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12009 egrep "__gnu_pth__" >/dev/null 2>&1; then
12011 ol_cv_header_gnu_pth_pthread_h=yes
12014 ol_cv_header_gnu_pth_pthread_h=no
12021 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
12024 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
12025 for ac_hdr in sched.h
12027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12029 echo "configure:12030: checking for $ac_hdr" >&5
12030 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12033 cat > conftest.$ac_ext <<EOF
12034 #line 12035 "configure"
12035 #include "confdefs.h"
12038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12039 { (eval echo configure:12040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12041 if test -z "$ac_err"; then
12043 eval "ac_cv_header_$ac_safe=yes"
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12049 eval "ac_cv_header_$ac_safe=no"
12053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12054 echo "$ac_t""yes" 1>&6
12055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12056 cat >> confdefs.h <<EOF
12057 #define $ac_tr_hdr 1
12061 echo "$ac_t""no" 1>&6
12068 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
12069 echo "configure:12070: checking for pthread_create in default libraries" >&5
12070 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
12071 echo $ac_n "(cached) $ac_c" 1>&6
12074 if test "$cross_compiling" = yes; then
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 /* pthread test headers */
12079 #include <pthread.h>
12080 #if HAVE_PTHREADS < 7
12084 #define NULL (void*)0
12087 static void *task(p)
12090 return (void *) (p == NULL);
12095 /* pthread test function */
12096 #ifndef PTHREAD_CREATE_DETACHED
12097 #define PTHREAD_CREATE_DETACHED 1
12101 int detach = PTHREAD_CREATE_DETACHED;
12103 #if HAVE_PTHREADS > 4
12104 /* Final pthreads */
12105 pthread_attr_t attr;
12107 status = pthread_attr_init(&attr);
12108 if( status ) return status;
12110 #if HAVE_PTHREADS < 7
12111 status = pthread_attr_setdetachstate(&attr, &detach);
12112 if( status < 0 ) status = errno;
12114 status = pthread_attr_setdetachstate(&attr, detach);
12116 if( status ) return status;
12117 status = pthread_create( &t, &attr, task, NULL );
12118 #if HAVE_PTHREADS < 7
12119 if( status < 0 ) status = errno;
12121 if( status ) return status;
12123 /* Draft 4 pthreads */
12124 status = pthread_create( &t, pthread_attr_default, task, NULL );
12125 if( status ) return errno;
12127 /* give thread a chance to complete */
12128 /* it should remain joinable and hence detachable */
12131 status = pthread_detach( &t );
12132 if( status ) return errno;
12135 #ifdef HAVE_LINUX_THREADS
12136 pthread_kill_other_threads_np();
12143 if { (eval echo configure:12144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12145 ol_cv_pthread_create=yes
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12150 ol_cv_pthread_create=no
12154 cat > conftest.$ac_ext <<EOF
12155 #line 12156 "configure"
12156 #include "confdefs.h"
12157 /* pthread test headers */
12158 #include <pthread.h>
12159 #if HAVE_PTHREADS < 7
12163 #define NULL (void*)0
12166 static void *task(p)
12169 return (void *) (p == NULL);
12173 int main(argc, argv)
12178 /* pthread test function */
12179 #ifndef PTHREAD_CREATE_DETACHED
12180 #define PTHREAD_CREATE_DETACHED 1
12184 int detach = PTHREAD_CREATE_DETACHED;
12186 #if HAVE_PTHREADS > 4
12187 /* Final pthreads */
12188 pthread_attr_t attr;
12190 status = pthread_attr_init(&attr);
12191 if( status ) return status;
12193 #if HAVE_PTHREADS < 7
12194 status = pthread_attr_setdetachstate(&attr, &detach);
12195 if( status < 0 ) status = errno;
12197 status = pthread_attr_setdetachstate(&attr, detach);
12199 if( status ) return status;
12200 status = pthread_create( &t, &attr, task, NULL );
12201 #if HAVE_PTHREADS < 7
12202 if( status < 0 ) status = errno;
12204 if( status ) return status;
12206 /* Draft 4 pthreads */
12207 status = pthread_create( &t, pthread_attr_default, task, NULL );
12208 if( status ) return errno;
12210 /* give thread a chance to complete */
12211 /* it should remain joinable and hence detachable */
12214 status = pthread_detach( &t );
12215 if( status ) return errno;
12218 #ifdef HAVE_LINUX_THREADS
12219 pthread_kill_other_threads_np();
12227 if { (eval echo configure:12228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12229 ol_cv_pthread_create=yes
12231 echo "configure: failed program was:" >&5
12232 cat conftest.$ac_ext >&5
12234 ol_cv_pthread_create=no
12241 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12243 if test $ol_cv_pthread_create != no ; then
12244 ol_link_threads=posix
12245 ol_link_pthreads=""
12248 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12249 if test "$ol_link_threads" = no ; then
12251 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12252 echo "configure:12253: checking for pthread link with -kthread" >&5
12253 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12259 LIBS="-kthread $LIBS"
12261 if test "$cross_compiling" = yes; then
12262 cat > conftest.$ac_ext <<EOF
12263 #line 12264 "configure"
12264 #include "confdefs.h"
12265 /* pthread test headers */
12266 #include <pthread.h>
12267 #if HAVE_PTHREADS < 7
12271 #define NULL (void*)0
12274 static void *task(p)
12277 return (void *) (p == NULL);
12282 /* pthread test function */
12283 #ifndef PTHREAD_CREATE_DETACHED
12284 #define PTHREAD_CREATE_DETACHED 1
12288 int detach = PTHREAD_CREATE_DETACHED;
12290 #if HAVE_PTHREADS > 4
12291 /* Final pthreads */
12292 pthread_attr_t attr;
12294 status = pthread_attr_init(&attr);
12295 if( status ) return status;
12297 #if HAVE_PTHREADS < 7
12298 status = pthread_attr_setdetachstate(&attr, &detach);
12299 if( status < 0 ) status = errno;
12301 status = pthread_attr_setdetachstate(&attr, detach);
12303 if( status ) return status;
12304 status = pthread_create( &t, &attr, task, NULL );
12305 #if HAVE_PTHREADS < 7
12306 if( status < 0 ) status = errno;
12308 if( status ) return status;
12310 /* Draft 4 pthreads */
12311 status = pthread_create( &t, pthread_attr_default, task, NULL );
12312 if( status ) return errno;
12314 /* give thread a chance to complete */
12315 /* it should remain joinable and hence detachable */
12318 status = pthread_detach( &t );
12319 if( status ) return errno;
12322 #ifdef HAVE_LINUX_THREADS
12323 pthread_kill_other_threads_np();
12330 if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12332 ol_cv_pthread_kthread=yes
12334 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12337 ol_cv_pthread_kthread=no
12341 cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12344 /* pthread test headers */
12345 #include <pthread.h>
12346 #if HAVE_PTHREADS < 7
12350 #define NULL (void*)0
12353 static void *task(p)
12356 return (void *) (p == NULL);
12360 int main(argc, argv)
12365 /* pthread test function */
12366 #ifndef PTHREAD_CREATE_DETACHED
12367 #define PTHREAD_CREATE_DETACHED 1
12371 int detach = PTHREAD_CREATE_DETACHED;
12373 #if HAVE_PTHREADS > 4
12374 /* Final pthreads */
12375 pthread_attr_t attr;
12377 status = pthread_attr_init(&attr);
12378 if( status ) return status;
12380 #if HAVE_PTHREADS < 7
12381 status = pthread_attr_setdetachstate(&attr, &detach);
12382 if( status < 0 ) status = errno;
12384 status = pthread_attr_setdetachstate(&attr, detach);
12386 if( status ) return status;
12387 status = pthread_create( &t, &attr, task, NULL );
12388 #if HAVE_PTHREADS < 7
12389 if( status < 0 ) status = errno;
12391 if( status ) return status;
12393 /* Draft 4 pthreads */
12394 status = pthread_create( &t, pthread_attr_default, task, NULL );
12395 if( status ) return errno;
12397 /* give thread a chance to complete */
12398 /* it should remain joinable and hence detachable */
12401 status = pthread_detach( &t );
12402 if( status ) return errno;
12405 #ifdef HAVE_LINUX_THREADS
12406 pthread_kill_other_threads_np();
12414 if { (eval echo configure:12415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12416 ol_cv_pthread_kthread=yes
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12421 ol_cv_pthread_kthread=no
12432 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12434 if test $ol_cv_pthread_kthread = yes ; then
12435 ol_link_pthreads="-kthread"
12436 ol_link_threads=posix
12440 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12441 if test "$ol_link_threads" = no ; then
12443 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12444 echo "configure:12445: checking for pthread link with -pthread" >&5
12445 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12451 LIBS="-pthread $LIBS"
12453 if test "$cross_compiling" = yes; then
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457 /* pthread test headers */
12458 #include <pthread.h>
12459 #if HAVE_PTHREADS < 7
12463 #define NULL (void*)0
12466 static void *task(p)
12469 return (void *) (p == NULL);
12474 /* pthread test function */
12475 #ifndef PTHREAD_CREATE_DETACHED
12476 #define PTHREAD_CREATE_DETACHED 1
12480 int detach = PTHREAD_CREATE_DETACHED;
12482 #if HAVE_PTHREADS > 4
12483 /* Final pthreads */
12484 pthread_attr_t attr;
12486 status = pthread_attr_init(&attr);
12487 if( status ) return status;
12489 #if HAVE_PTHREADS < 7
12490 status = pthread_attr_setdetachstate(&attr, &detach);
12491 if( status < 0 ) status = errno;
12493 status = pthread_attr_setdetachstate(&attr, detach);
12495 if( status ) return status;
12496 status = pthread_create( &t, &attr, task, NULL );
12497 #if HAVE_PTHREADS < 7
12498 if( status < 0 ) status = errno;
12500 if( status ) return status;
12502 /* Draft 4 pthreads */
12503 status = pthread_create( &t, pthread_attr_default, task, NULL );
12504 if( status ) return errno;
12506 /* give thread a chance to complete */
12507 /* it should remain joinable and hence detachable */
12510 status = pthread_detach( &t );
12511 if( status ) return errno;
12514 #ifdef HAVE_LINUX_THREADS
12515 pthread_kill_other_threads_np();
12522 if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12524 ol_cv_pthread_pthread=yes
12526 echo "configure: failed program was:" >&5
12527 cat conftest.$ac_ext >&5
12529 ol_cv_pthread_pthread=no
12533 cat > conftest.$ac_ext <<EOF
12534 #line 12535 "configure"
12535 #include "confdefs.h"
12536 /* pthread test headers */
12537 #include <pthread.h>
12538 #if HAVE_PTHREADS < 7
12542 #define NULL (void*)0
12545 static void *task(p)
12548 return (void *) (p == NULL);
12552 int main(argc, argv)
12557 /* pthread test function */
12558 #ifndef PTHREAD_CREATE_DETACHED
12559 #define PTHREAD_CREATE_DETACHED 1
12563 int detach = PTHREAD_CREATE_DETACHED;
12565 #if HAVE_PTHREADS > 4
12566 /* Final pthreads */
12567 pthread_attr_t attr;
12569 status = pthread_attr_init(&attr);
12570 if( status ) return status;
12572 #if HAVE_PTHREADS < 7
12573 status = pthread_attr_setdetachstate(&attr, &detach);
12574 if( status < 0 ) status = errno;
12576 status = pthread_attr_setdetachstate(&attr, detach);
12578 if( status ) return status;
12579 status = pthread_create( &t, &attr, task, NULL );
12580 #if HAVE_PTHREADS < 7
12581 if( status < 0 ) status = errno;
12583 if( status ) return status;
12585 /* Draft 4 pthreads */
12586 status = pthread_create( &t, pthread_attr_default, task, NULL );
12587 if( status ) return errno;
12589 /* give thread a chance to complete */
12590 /* it should remain joinable and hence detachable */
12593 status = pthread_detach( &t );
12594 if( status ) return errno;
12597 #ifdef HAVE_LINUX_THREADS
12598 pthread_kill_other_threads_np();
12606 if { (eval echo configure:12607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12608 ol_cv_pthread_pthread=yes
12610 echo "configure: failed program was:" >&5
12611 cat conftest.$ac_ext >&5
12613 ol_cv_pthread_pthread=no
12624 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12626 if test $ol_cv_pthread_pthread = yes ; then
12627 ol_link_pthreads="-pthread"
12628 ol_link_threads=posix
12632 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12633 if test "$ol_link_threads" = no ; then
12635 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12636 echo "configure:12637: checking for pthread link with -pthreads" >&5
12637 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12638 echo $ac_n "(cached) $ac_c" 1>&6
12643 LIBS="-pthreads $LIBS"
12645 if test "$cross_compiling" = yes; then
12646 cat > conftest.$ac_ext <<EOF
12647 #line 12648 "configure"
12648 #include "confdefs.h"
12649 /* pthread test headers */
12650 #include <pthread.h>
12651 #if HAVE_PTHREADS < 7
12655 #define NULL (void*)0
12658 static void *task(p)
12661 return (void *) (p == NULL);
12666 /* pthread test function */
12667 #ifndef PTHREAD_CREATE_DETACHED
12668 #define PTHREAD_CREATE_DETACHED 1
12672 int detach = PTHREAD_CREATE_DETACHED;
12674 #if HAVE_PTHREADS > 4
12675 /* Final pthreads */
12676 pthread_attr_t attr;
12678 status = pthread_attr_init(&attr);
12679 if( status ) return status;
12681 #if HAVE_PTHREADS < 7
12682 status = pthread_attr_setdetachstate(&attr, &detach);
12683 if( status < 0 ) status = errno;
12685 status = pthread_attr_setdetachstate(&attr, detach);
12687 if( status ) return status;
12688 status = pthread_create( &t, &attr, task, NULL );
12689 #if HAVE_PTHREADS < 7
12690 if( status < 0 ) status = errno;
12692 if( status ) return status;
12694 /* Draft 4 pthreads */
12695 status = pthread_create( &t, pthread_attr_default, task, NULL );
12696 if( status ) return errno;
12698 /* give thread a chance to complete */
12699 /* it should remain joinable and hence detachable */
12702 status = pthread_detach( &t );
12703 if( status ) return errno;
12706 #ifdef HAVE_LINUX_THREADS
12707 pthread_kill_other_threads_np();
12714 if { (eval echo configure:12715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12716 ol_cv_pthread_pthreads=yes
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12721 ol_cv_pthread_pthreads=no
12725 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure"
12727 #include "confdefs.h"
12728 /* pthread test headers */
12729 #include <pthread.h>
12730 #if HAVE_PTHREADS < 7
12734 #define NULL (void*)0
12737 static void *task(p)
12740 return (void *) (p == NULL);
12744 int main(argc, argv)
12749 /* pthread test function */
12750 #ifndef PTHREAD_CREATE_DETACHED
12751 #define PTHREAD_CREATE_DETACHED 1
12755 int detach = PTHREAD_CREATE_DETACHED;
12757 #if HAVE_PTHREADS > 4
12758 /* Final pthreads */
12759 pthread_attr_t attr;
12761 status = pthread_attr_init(&attr);
12762 if( status ) return status;
12764 #if HAVE_PTHREADS < 7
12765 status = pthread_attr_setdetachstate(&attr, &detach);
12766 if( status < 0 ) status = errno;
12768 status = pthread_attr_setdetachstate(&attr, detach);
12770 if( status ) return status;
12771 status = pthread_create( &t, &attr, task, NULL );
12772 #if HAVE_PTHREADS < 7
12773 if( status < 0 ) status = errno;
12775 if( status ) return status;
12777 /* Draft 4 pthreads */
12778 status = pthread_create( &t, pthread_attr_default, task, NULL );
12779 if( status ) return errno;
12781 /* give thread a chance to complete */
12782 /* it should remain joinable and hence detachable */
12785 status = pthread_detach( &t );
12786 if( status ) return errno;
12789 #ifdef HAVE_LINUX_THREADS
12790 pthread_kill_other_threads_np();
12798 if { (eval echo configure:12799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12800 ol_cv_pthread_pthreads=yes
12802 echo "configure: failed program was:" >&5
12803 cat conftest.$ac_ext >&5
12805 ol_cv_pthread_pthreads=no
12816 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12818 if test $ol_cv_pthread_pthreads = yes ; then
12819 ol_link_pthreads="-pthreads"
12820 ol_link_threads=posix
12824 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12825 if test "$ol_link_threads" = no ; then
12827 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12828 echo "configure:12829: checking for pthread link with -mthreads" >&5
12829 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12830 echo $ac_n "(cached) $ac_c" 1>&6
12835 LIBS="-mthreads $LIBS"
12837 if test "$cross_compiling" = yes; then
12838 cat > conftest.$ac_ext <<EOF
12839 #line 12840 "configure"
12840 #include "confdefs.h"
12841 /* pthread test headers */
12842 #include <pthread.h>
12843 #if HAVE_PTHREADS < 7
12847 #define NULL (void*)0
12850 static void *task(p)
12853 return (void *) (p == NULL);
12858 /* pthread test function */
12859 #ifndef PTHREAD_CREATE_DETACHED
12860 #define PTHREAD_CREATE_DETACHED 1
12864 int detach = PTHREAD_CREATE_DETACHED;
12866 #if HAVE_PTHREADS > 4
12867 /* Final pthreads */
12868 pthread_attr_t attr;
12870 status = pthread_attr_init(&attr);
12871 if( status ) return status;
12873 #if HAVE_PTHREADS < 7
12874 status = pthread_attr_setdetachstate(&attr, &detach);
12875 if( status < 0 ) status = errno;
12877 status = pthread_attr_setdetachstate(&attr, detach);
12879 if( status ) return status;
12880 status = pthread_create( &t, &attr, task, NULL );
12881 #if HAVE_PTHREADS < 7
12882 if( status < 0 ) status = errno;
12884 if( status ) return status;
12886 /* Draft 4 pthreads */
12887 status = pthread_create( &t, pthread_attr_default, task, NULL );
12888 if( status ) return errno;
12890 /* give thread a chance to complete */
12891 /* it should remain joinable and hence detachable */
12894 status = pthread_detach( &t );
12895 if( status ) return errno;
12898 #ifdef HAVE_LINUX_THREADS
12899 pthread_kill_other_threads_np();
12906 if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12908 ol_cv_pthread_mthreads=yes
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12913 ol_cv_pthread_mthreads=no
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 /* pthread test headers */
12921 #include <pthread.h>
12922 #if HAVE_PTHREADS < 7
12926 #define NULL (void*)0
12929 static void *task(p)
12932 return (void *) (p == NULL);
12936 int main(argc, argv)
12941 /* pthread test function */
12942 #ifndef PTHREAD_CREATE_DETACHED
12943 #define PTHREAD_CREATE_DETACHED 1
12947 int detach = PTHREAD_CREATE_DETACHED;
12949 #if HAVE_PTHREADS > 4
12950 /* Final pthreads */
12951 pthread_attr_t attr;
12953 status = pthread_attr_init(&attr);
12954 if( status ) return status;
12956 #if HAVE_PTHREADS < 7
12957 status = pthread_attr_setdetachstate(&attr, &detach);
12958 if( status < 0 ) status = errno;
12960 status = pthread_attr_setdetachstate(&attr, detach);
12962 if( status ) return status;
12963 status = pthread_create( &t, &attr, task, NULL );
12964 #if HAVE_PTHREADS < 7
12965 if( status < 0 ) status = errno;
12967 if( status ) return status;
12969 /* Draft 4 pthreads */
12970 status = pthread_create( &t, pthread_attr_default, task, NULL );
12971 if( status ) return errno;
12973 /* give thread a chance to complete */
12974 /* it should remain joinable and hence detachable */
12977 status = pthread_detach( &t );
12978 if( status ) return errno;
12981 #ifdef HAVE_LINUX_THREADS
12982 pthread_kill_other_threads_np();
12990 if { (eval echo configure:12991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12992 ol_cv_pthread_mthreads=yes
12994 echo "configure: failed program was:" >&5
12995 cat conftest.$ac_ext >&5
12997 ol_cv_pthread_mthreads=no
13008 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
13010 if test $ol_cv_pthread_mthreads = yes ; then
13011 ol_link_pthreads="-mthreads"
13012 ol_link_threads=posix
13016 # Pthread try link: -thread (ol_cv_pthread_thread)
13017 if test "$ol_link_threads" = no ; then
13019 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
13020 echo "configure:13021: checking for pthread link with -thread" >&5
13021 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
13022 echo $ac_n "(cached) $ac_c" 1>&6
13027 LIBS="-thread $LIBS"
13029 if test "$cross_compiling" = yes; then
13030 cat > conftest.$ac_ext <<EOF
13031 #line 13032 "configure"
13032 #include "confdefs.h"
13033 /* pthread test headers */
13034 #include <pthread.h>
13035 #if HAVE_PTHREADS < 7
13039 #define NULL (void*)0
13042 static void *task(p)
13045 return (void *) (p == NULL);
13050 /* pthread test function */
13051 #ifndef PTHREAD_CREATE_DETACHED
13052 #define PTHREAD_CREATE_DETACHED 1
13056 int detach = PTHREAD_CREATE_DETACHED;
13058 #if HAVE_PTHREADS > 4
13059 /* Final pthreads */
13060 pthread_attr_t attr;
13062 status = pthread_attr_init(&attr);
13063 if( status ) return status;
13065 #if HAVE_PTHREADS < 7
13066 status = pthread_attr_setdetachstate(&attr, &detach);
13067 if( status < 0 ) status = errno;
13069 status = pthread_attr_setdetachstate(&attr, detach);
13071 if( status ) return status;
13072 status = pthread_create( &t, &attr, task, NULL );
13073 #if HAVE_PTHREADS < 7
13074 if( status < 0 ) status = errno;
13076 if( status ) return status;
13078 /* Draft 4 pthreads */
13079 status = pthread_create( &t, pthread_attr_default, task, NULL );
13080 if( status ) return errno;
13082 /* give thread a chance to complete */
13083 /* it should remain joinable and hence detachable */
13086 status = pthread_detach( &t );
13087 if( status ) return errno;
13090 #ifdef HAVE_LINUX_THREADS
13091 pthread_kill_other_threads_np();
13098 if { (eval echo configure:13099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13100 ol_cv_pthread_thread=yes
13102 echo "configure: failed program was:" >&5
13103 cat conftest.$ac_ext >&5
13105 ol_cv_pthread_thread=no
13109 cat > conftest.$ac_ext <<EOF
13110 #line 13111 "configure"
13111 #include "confdefs.h"
13112 /* pthread test headers */
13113 #include <pthread.h>
13114 #if HAVE_PTHREADS < 7
13118 #define NULL (void*)0
13121 static void *task(p)
13124 return (void *) (p == NULL);
13128 int main(argc, argv)
13133 /* pthread test function */
13134 #ifndef PTHREAD_CREATE_DETACHED
13135 #define PTHREAD_CREATE_DETACHED 1
13139 int detach = PTHREAD_CREATE_DETACHED;
13141 #if HAVE_PTHREADS > 4
13142 /* Final pthreads */
13143 pthread_attr_t attr;
13145 status = pthread_attr_init(&attr);
13146 if( status ) return status;
13148 #if HAVE_PTHREADS < 7
13149 status = pthread_attr_setdetachstate(&attr, &detach);
13150 if( status < 0 ) status = errno;
13152 status = pthread_attr_setdetachstate(&attr, detach);
13154 if( status ) return status;
13155 status = pthread_create( &t, &attr, task, NULL );
13156 #if HAVE_PTHREADS < 7
13157 if( status < 0 ) status = errno;
13159 if( status ) return status;
13161 /* Draft 4 pthreads */
13162 status = pthread_create( &t, pthread_attr_default, task, NULL );
13163 if( status ) return errno;
13165 /* give thread a chance to complete */
13166 /* it should remain joinable and hence detachable */
13169 status = pthread_detach( &t );
13170 if( status ) return errno;
13173 #ifdef HAVE_LINUX_THREADS
13174 pthread_kill_other_threads_np();
13182 if { (eval echo configure:13183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13184 ol_cv_pthread_thread=yes
13186 echo "configure: failed program was:" >&5
13187 cat conftest.$ac_ext >&5
13189 ol_cv_pthread_thread=no
13200 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13202 if test $ol_cv_pthread_thread = yes ; then
13203 ol_link_pthreads="-thread"
13204 ol_link_threads=posix
13209 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13210 if test "$ol_link_threads" = no ; then
13211 # try -lpthread -lmach -lexc -lc_r
13212 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13213 echo "configure:13214: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13214 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13215 echo $ac_n "(cached) $ac_c" 1>&6
13220 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13222 if test "$cross_compiling" = yes; then
13223 cat > conftest.$ac_ext <<EOF
13224 #line 13225 "configure"
13225 #include "confdefs.h"
13226 /* pthread test headers */
13227 #include <pthread.h>
13228 #if HAVE_PTHREADS < 7
13232 #define NULL (void*)0
13235 static void *task(p)
13238 return (void *) (p == NULL);
13243 /* pthread test function */
13244 #ifndef PTHREAD_CREATE_DETACHED
13245 #define PTHREAD_CREATE_DETACHED 1
13249 int detach = PTHREAD_CREATE_DETACHED;
13251 #if HAVE_PTHREADS > 4
13252 /* Final pthreads */
13253 pthread_attr_t attr;
13255 status = pthread_attr_init(&attr);
13256 if( status ) return status;
13258 #if HAVE_PTHREADS < 7
13259 status = pthread_attr_setdetachstate(&attr, &detach);
13260 if( status < 0 ) status = errno;
13262 status = pthread_attr_setdetachstate(&attr, detach);
13264 if( status ) return status;
13265 status = pthread_create( &t, &attr, task, NULL );
13266 #if HAVE_PTHREADS < 7
13267 if( status < 0 ) status = errno;
13269 if( status ) return status;
13271 /* Draft 4 pthreads */
13272 status = pthread_create( &t, pthread_attr_default, task, NULL );
13273 if( status ) return errno;
13275 /* give thread a chance to complete */
13276 /* it should remain joinable and hence detachable */
13279 status = pthread_detach( &t );
13280 if( status ) return errno;
13283 #ifdef HAVE_LINUX_THREADS
13284 pthread_kill_other_threads_np();
13291 if { (eval echo configure:13292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13293 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13295 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13298 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13302 cat > conftest.$ac_ext <<EOF
13303 #line 13304 "configure"
13304 #include "confdefs.h"
13305 /* pthread test headers */
13306 #include <pthread.h>
13307 #if HAVE_PTHREADS < 7
13311 #define NULL (void*)0
13314 static void *task(p)
13317 return (void *) (p == NULL);
13321 int main(argc, argv)
13326 /* pthread test function */
13327 #ifndef PTHREAD_CREATE_DETACHED
13328 #define PTHREAD_CREATE_DETACHED 1
13332 int detach = PTHREAD_CREATE_DETACHED;
13334 #if HAVE_PTHREADS > 4
13335 /* Final pthreads */
13336 pthread_attr_t attr;
13338 status = pthread_attr_init(&attr);
13339 if( status ) return status;
13341 #if HAVE_PTHREADS < 7
13342 status = pthread_attr_setdetachstate(&attr, &detach);
13343 if( status < 0 ) status = errno;
13345 status = pthread_attr_setdetachstate(&attr, detach);
13347 if( status ) return status;
13348 status = pthread_create( &t, &attr, task, NULL );
13349 #if HAVE_PTHREADS < 7
13350 if( status < 0 ) status = errno;
13352 if( status ) return status;
13354 /* Draft 4 pthreads */
13355 status = pthread_create( &t, pthread_attr_default, task, NULL );
13356 if( status ) return errno;
13358 /* give thread a chance to complete */
13359 /* it should remain joinable and hence detachable */
13362 status = pthread_detach( &t );
13363 if( status ) return errno;
13366 #ifdef HAVE_LINUX_THREADS
13367 pthread_kill_other_threads_np();
13375 if { (eval echo configure:13376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13377 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13379 echo "configure: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13382 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13393 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13395 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13396 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13397 ol_link_threads=posix
13401 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13402 if test "$ol_link_threads" = no ; then
13403 # try -lpthread -lmach -lexc
13404 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13405 echo "configure:13406: checking for pthread link with -lpthread -lmach -lexc" >&5
13406 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13407 echo $ac_n "(cached) $ac_c" 1>&6
13412 LIBS="-lpthread -lmach -lexc $LIBS"
13414 if test "$cross_compiling" = yes; then
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13418 /* pthread test headers */
13419 #include <pthread.h>
13420 #if HAVE_PTHREADS < 7
13424 #define NULL (void*)0
13427 static void *task(p)
13430 return (void *) (p == NULL);
13435 /* pthread test function */
13436 #ifndef PTHREAD_CREATE_DETACHED
13437 #define PTHREAD_CREATE_DETACHED 1
13441 int detach = PTHREAD_CREATE_DETACHED;
13443 #if HAVE_PTHREADS > 4
13444 /* Final pthreads */
13445 pthread_attr_t attr;
13447 status = pthread_attr_init(&attr);
13448 if( status ) return status;
13450 #if HAVE_PTHREADS < 7
13451 status = pthread_attr_setdetachstate(&attr, &detach);
13452 if( status < 0 ) status = errno;
13454 status = pthread_attr_setdetachstate(&attr, detach);
13456 if( status ) return status;
13457 status = pthread_create( &t, &attr, task, NULL );
13458 #if HAVE_PTHREADS < 7
13459 if( status < 0 ) status = errno;
13461 if( status ) return status;
13463 /* Draft 4 pthreads */
13464 status = pthread_create( &t, pthread_attr_default, task, NULL );
13465 if( status ) return errno;
13467 /* give thread a chance to complete */
13468 /* it should remain joinable and hence detachable */
13471 status = pthread_detach( &t );
13472 if( status ) return errno;
13475 #ifdef HAVE_LINUX_THREADS
13476 pthread_kill_other_threads_np();
13483 if { (eval echo configure:13484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13485 ol_cv_pthread_lpthread_lmach_lexc=yes
13487 echo "configure: failed program was:" >&5
13488 cat conftest.$ac_ext >&5
13490 ol_cv_pthread_lpthread_lmach_lexc=no
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13497 /* pthread test headers */
13498 #include <pthread.h>
13499 #if HAVE_PTHREADS < 7
13503 #define NULL (void*)0
13506 static void *task(p)
13509 return (void *) (p == NULL);
13513 int main(argc, argv)
13518 /* pthread test function */
13519 #ifndef PTHREAD_CREATE_DETACHED
13520 #define PTHREAD_CREATE_DETACHED 1
13524 int detach = PTHREAD_CREATE_DETACHED;
13526 #if HAVE_PTHREADS > 4
13527 /* Final pthreads */
13528 pthread_attr_t attr;
13530 status = pthread_attr_init(&attr);
13531 if( status ) return status;
13533 #if HAVE_PTHREADS < 7
13534 status = pthread_attr_setdetachstate(&attr, &detach);
13535 if( status < 0 ) status = errno;
13537 status = pthread_attr_setdetachstate(&attr, detach);
13539 if( status ) return status;
13540 status = pthread_create( &t, &attr, task, NULL );
13541 #if HAVE_PTHREADS < 7
13542 if( status < 0 ) status = errno;
13544 if( status ) return status;
13546 /* Draft 4 pthreads */
13547 status = pthread_create( &t, pthread_attr_default, task, NULL );
13548 if( status ) return errno;
13550 /* give thread a chance to complete */
13551 /* it should remain joinable and hence detachable */
13554 status = pthread_detach( &t );
13555 if( status ) return errno;
13558 #ifdef HAVE_LINUX_THREADS
13559 pthread_kill_other_threads_np();
13567 if { (eval echo configure:13568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13569 ol_cv_pthread_lpthread_lmach_lexc=yes
13571 echo "configure: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13574 ol_cv_pthread_lpthread_lmach_lexc=no
13585 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13587 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13588 ol_link_pthreads="-lpthread -lmach -lexc"
13589 ol_link_threads=posix
13594 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13595 if test "$ol_link_threads" = no ; then
13596 # try -lpthread -Wl,-woff,85
13597 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13598 echo "configure:13599: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13599 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13605 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13607 if test "$cross_compiling" = yes; then
13608 cat > conftest.$ac_ext <<EOF
13609 #line 13610 "configure"
13610 #include "confdefs.h"
13611 /* pthread test headers */
13612 #include <pthread.h>
13613 #if HAVE_PTHREADS < 7
13617 #define NULL (void*)0
13620 static void *task(p)
13623 return (void *) (p == NULL);
13628 /* pthread test function */
13629 #ifndef PTHREAD_CREATE_DETACHED
13630 #define PTHREAD_CREATE_DETACHED 1
13634 int detach = PTHREAD_CREATE_DETACHED;
13636 #if HAVE_PTHREADS > 4
13637 /* Final pthreads */
13638 pthread_attr_t attr;
13640 status = pthread_attr_init(&attr);
13641 if( status ) return status;
13643 #if HAVE_PTHREADS < 7
13644 status = pthread_attr_setdetachstate(&attr, &detach);
13645 if( status < 0 ) status = errno;
13647 status = pthread_attr_setdetachstate(&attr, detach);
13649 if( status ) return status;
13650 status = pthread_create( &t, &attr, task, NULL );
13651 #if HAVE_PTHREADS < 7
13652 if( status < 0 ) status = errno;
13654 if( status ) return status;
13656 /* Draft 4 pthreads */
13657 status = pthread_create( &t, pthread_attr_default, task, NULL );
13658 if( status ) return errno;
13660 /* give thread a chance to complete */
13661 /* it should remain joinable and hence detachable */
13664 status = pthread_detach( &t );
13665 if( status ) return errno;
13668 #ifdef HAVE_LINUX_THREADS
13669 pthread_kill_other_threads_np();
13676 if { (eval echo configure:13677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13678 ol_cv_pthread_lib_lpthread_woff=yes
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13683 ol_cv_pthread_lib_lpthread_woff=no
13687 cat > conftest.$ac_ext <<EOF
13688 #line 13689 "configure"
13689 #include "confdefs.h"
13690 /* pthread test headers */
13691 #include <pthread.h>
13692 #if HAVE_PTHREADS < 7
13696 #define NULL (void*)0
13699 static void *task(p)
13702 return (void *) (p == NULL);
13706 int main(argc, argv)
13711 /* pthread test function */
13712 #ifndef PTHREAD_CREATE_DETACHED
13713 #define PTHREAD_CREATE_DETACHED 1
13717 int detach = PTHREAD_CREATE_DETACHED;
13719 #if HAVE_PTHREADS > 4
13720 /* Final pthreads */
13721 pthread_attr_t attr;
13723 status = pthread_attr_init(&attr);
13724 if( status ) return status;
13726 #if HAVE_PTHREADS < 7
13727 status = pthread_attr_setdetachstate(&attr, &detach);
13728 if( status < 0 ) status = errno;
13730 status = pthread_attr_setdetachstate(&attr, detach);
13732 if( status ) return status;
13733 status = pthread_create( &t, &attr, task, NULL );
13734 #if HAVE_PTHREADS < 7
13735 if( status < 0 ) status = errno;
13737 if( status ) return status;
13739 /* Draft 4 pthreads */
13740 status = pthread_create( &t, pthread_attr_default, task, NULL );
13741 if( status ) return errno;
13743 /* give thread a chance to complete */
13744 /* it should remain joinable and hence detachable */
13747 status = pthread_detach( &t );
13748 if( status ) return errno;
13751 #ifdef HAVE_LINUX_THREADS
13752 pthread_kill_other_threads_np();
13760 if { (eval echo configure:13761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13762 ol_cv_pthread_lib_lpthread_woff=yes
13764 echo "configure: failed program was:" >&5
13765 cat conftest.$ac_ext >&5
13767 ol_cv_pthread_lib_lpthread_woff=no
13778 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13780 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13781 ol_link_pthreads="-lpthread -Wl,-woff,85"
13782 ol_link_threads=posix
13787 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13788 if test "$ol_link_threads" = no ; then
13790 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13791 echo "configure:13792: checking for pthread link with -lpthread" >&5
13792 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13793 echo $ac_n "(cached) $ac_c" 1>&6
13798 LIBS="-lpthread $LIBS"
13800 if test "$cross_compiling" = yes; then
13801 cat > conftest.$ac_ext <<EOF
13802 #line 13803 "configure"
13803 #include "confdefs.h"
13804 /* pthread test headers */
13805 #include <pthread.h>
13806 #if HAVE_PTHREADS < 7
13810 #define NULL (void*)0
13813 static void *task(p)
13816 return (void *) (p == NULL);
13821 /* pthread test function */
13822 #ifndef PTHREAD_CREATE_DETACHED
13823 #define PTHREAD_CREATE_DETACHED 1
13827 int detach = PTHREAD_CREATE_DETACHED;
13829 #if HAVE_PTHREADS > 4
13830 /* Final pthreads */
13831 pthread_attr_t attr;
13833 status = pthread_attr_init(&attr);
13834 if( status ) return status;
13836 #if HAVE_PTHREADS < 7
13837 status = pthread_attr_setdetachstate(&attr, &detach);
13838 if( status < 0 ) status = errno;
13840 status = pthread_attr_setdetachstate(&attr, detach);
13842 if( status ) return status;
13843 status = pthread_create( &t, &attr, task, NULL );
13844 #if HAVE_PTHREADS < 7
13845 if( status < 0 ) status = errno;
13847 if( status ) return status;
13849 /* Draft 4 pthreads */
13850 status = pthread_create( &t, pthread_attr_default, task, NULL );
13851 if( status ) return errno;
13853 /* give thread a chance to complete */
13854 /* it should remain joinable and hence detachable */
13857 status = pthread_detach( &t );
13858 if( status ) return errno;
13861 #ifdef HAVE_LINUX_THREADS
13862 pthread_kill_other_threads_np();
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13871 ol_cv_pthread_lpthread=yes
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13876 ol_cv_pthread_lpthread=no
13880 cat > conftest.$ac_ext <<EOF
13881 #line 13882 "configure"
13882 #include "confdefs.h"
13883 /* pthread test headers */
13884 #include <pthread.h>
13885 #if HAVE_PTHREADS < 7
13889 #define NULL (void*)0
13892 static void *task(p)
13895 return (void *) (p == NULL);
13899 int main(argc, argv)
13904 /* pthread test function */
13905 #ifndef PTHREAD_CREATE_DETACHED
13906 #define PTHREAD_CREATE_DETACHED 1
13910 int detach = PTHREAD_CREATE_DETACHED;
13912 #if HAVE_PTHREADS > 4
13913 /* Final pthreads */
13914 pthread_attr_t attr;
13916 status = pthread_attr_init(&attr);
13917 if( status ) return status;
13919 #if HAVE_PTHREADS < 7
13920 status = pthread_attr_setdetachstate(&attr, &detach);
13921 if( status < 0 ) status = errno;
13923 status = pthread_attr_setdetachstate(&attr, detach);
13925 if( status ) return status;
13926 status = pthread_create( &t, &attr, task, NULL );
13927 #if HAVE_PTHREADS < 7
13928 if( status < 0 ) status = errno;
13930 if( status ) return status;
13932 /* Draft 4 pthreads */
13933 status = pthread_create( &t, pthread_attr_default, task, NULL );
13934 if( status ) return errno;
13936 /* give thread a chance to complete */
13937 /* it should remain joinable and hence detachable */
13940 status = pthread_detach( &t );
13941 if( status ) return errno;
13944 #ifdef HAVE_LINUX_THREADS
13945 pthread_kill_other_threads_np();
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13955 ol_cv_pthread_lpthread=yes
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13960 ol_cv_pthread_lpthread=no
13971 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13973 if test $ol_cv_pthread_lpthread = yes ; then
13974 ol_link_pthreads="-lpthread"
13975 ol_link_threads=posix
13979 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13980 if test "$ol_link_threads" = no ; then
13982 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13983 echo "configure:13984: checking for pthread link with -lc_r" >&5
13984 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13985 echo $ac_n "(cached) $ac_c" 1>&6
13992 if test "$cross_compiling" = yes; then
13993 cat > conftest.$ac_ext <<EOF
13994 #line 13995 "configure"
13995 #include "confdefs.h"
13996 /* pthread test headers */
13997 #include <pthread.h>
13998 #if HAVE_PTHREADS < 7
14002 #define NULL (void*)0
14005 static void *task(p)
14008 return (void *) (p == NULL);
14013 /* pthread test function */
14014 #ifndef PTHREAD_CREATE_DETACHED
14015 #define PTHREAD_CREATE_DETACHED 1
14019 int detach = PTHREAD_CREATE_DETACHED;
14021 #if HAVE_PTHREADS > 4
14022 /* Final pthreads */
14023 pthread_attr_t attr;
14025 status = pthread_attr_init(&attr);
14026 if( status ) return status;
14028 #if HAVE_PTHREADS < 7
14029 status = pthread_attr_setdetachstate(&attr, &detach);
14030 if( status < 0 ) status = errno;
14032 status = pthread_attr_setdetachstate(&attr, detach);
14034 if( status ) return status;
14035 status = pthread_create( &t, &attr, task, NULL );
14036 #if HAVE_PTHREADS < 7
14037 if( status < 0 ) status = errno;
14039 if( status ) return status;
14041 /* Draft 4 pthreads */
14042 status = pthread_create( &t, pthread_attr_default, task, NULL );
14043 if( status ) return errno;
14045 /* give thread a chance to complete */
14046 /* it should remain joinable and hence detachable */
14049 status = pthread_detach( &t );
14050 if( status ) return errno;
14053 #ifdef HAVE_LINUX_THREADS
14054 pthread_kill_other_threads_np();
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14063 ol_cv_pthread_lc_r=yes
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14068 ol_cv_pthread_lc_r=no
14072 cat > conftest.$ac_ext <<EOF
14073 #line 14074 "configure"
14074 #include "confdefs.h"
14075 /* pthread test headers */
14076 #include <pthread.h>
14077 #if HAVE_PTHREADS < 7
14081 #define NULL (void*)0
14084 static void *task(p)
14087 return (void *) (p == NULL);
14091 int main(argc, argv)
14096 /* pthread test function */
14097 #ifndef PTHREAD_CREATE_DETACHED
14098 #define PTHREAD_CREATE_DETACHED 1
14102 int detach = PTHREAD_CREATE_DETACHED;
14104 #if HAVE_PTHREADS > 4
14105 /* Final pthreads */
14106 pthread_attr_t attr;
14108 status = pthread_attr_init(&attr);
14109 if( status ) return status;
14111 #if HAVE_PTHREADS < 7
14112 status = pthread_attr_setdetachstate(&attr, &detach);
14113 if( status < 0 ) status = errno;
14115 status = pthread_attr_setdetachstate(&attr, detach);
14117 if( status ) return status;
14118 status = pthread_create( &t, &attr, task, NULL );
14119 #if HAVE_PTHREADS < 7
14120 if( status < 0 ) status = errno;
14122 if( status ) return status;
14124 /* Draft 4 pthreads */
14125 status = pthread_create( &t, pthread_attr_default, task, NULL );
14126 if( status ) return errno;
14128 /* give thread a chance to complete */
14129 /* it should remain joinable and hence detachable */
14132 status = pthread_detach( &t );
14133 if( status ) return errno;
14136 #ifdef HAVE_LINUX_THREADS
14137 pthread_kill_other_threads_np();
14145 if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14147 ol_cv_pthread_lc_r=yes
14149 echo "configure: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14152 ol_cv_pthread_lc_r=no
14163 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14165 if test $ol_cv_pthread_lc_r = yes ; then
14166 ol_link_pthreads="-lc_r"
14167 ol_link_threads=posix
14172 # Pthread try link: -threads (ol_cv_pthread_threads)
14173 if test "$ol_link_threads" = no ; then
14175 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14176 echo "configure:14177: checking for pthread link with -threads" >&5
14177 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14178 echo $ac_n "(cached) $ac_c" 1>&6
14183 LIBS="-threads $LIBS"
14185 if test "$cross_compiling" = yes; then
14186 cat > conftest.$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 /* pthread test headers */
14190 #include <pthread.h>
14191 #if HAVE_PTHREADS < 7
14195 #define NULL (void*)0
14198 static void *task(p)
14201 return (void *) (p == NULL);
14206 /* pthread test function */
14207 #ifndef PTHREAD_CREATE_DETACHED
14208 #define PTHREAD_CREATE_DETACHED 1
14212 int detach = PTHREAD_CREATE_DETACHED;
14214 #if HAVE_PTHREADS > 4
14215 /* Final pthreads */
14216 pthread_attr_t attr;
14218 status = pthread_attr_init(&attr);
14219 if( status ) return status;
14221 #if HAVE_PTHREADS < 7
14222 status = pthread_attr_setdetachstate(&attr, &detach);
14223 if( status < 0 ) status = errno;
14225 status = pthread_attr_setdetachstate(&attr, detach);
14227 if( status ) return status;
14228 status = pthread_create( &t, &attr, task, NULL );
14229 #if HAVE_PTHREADS < 7
14230 if( status < 0 ) status = errno;
14232 if( status ) return status;
14234 /* Draft 4 pthreads */
14235 status = pthread_create( &t, pthread_attr_default, task, NULL );
14236 if( status ) return errno;
14238 /* give thread a chance to complete */
14239 /* it should remain joinable and hence detachable */
14242 status = pthread_detach( &t );
14243 if( status ) return errno;
14246 #ifdef HAVE_LINUX_THREADS
14247 pthread_kill_other_threads_np();
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14256 ol_cv_pthread_threads=yes
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 ol_cv_pthread_threads=no
14265 cat > conftest.$ac_ext <<EOF
14266 #line 14267 "configure"
14267 #include "confdefs.h"
14268 /* pthread test headers */
14269 #include <pthread.h>
14270 #if HAVE_PTHREADS < 7
14274 #define NULL (void*)0
14277 static void *task(p)
14280 return (void *) (p == NULL);
14284 int main(argc, argv)
14289 /* pthread test function */
14290 #ifndef PTHREAD_CREATE_DETACHED
14291 #define PTHREAD_CREATE_DETACHED 1
14295 int detach = PTHREAD_CREATE_DETACHED;
14297 #if HAVE_PTHREADS > 4
14298 /* Final pthreads */
14299 pthread_attr_t attr;
14301 status = pthread_attr_init(&attr);
14302 if( status ) return status;
14304 #if HAVE_PTHREADS < 7
14305 status = pthread_attr_setdetachstate(&attr, &detach);
14306 if( status < 0 ) status = errno;
14308 status = pthread_attr_setdetachstate(&attr, detach);
14310 if( status ) return status;
14311 status = pthread_create( &t, &attr, task, NULL );
14312 #if HAVE_PTHREADS < 7
14313 if( status < 0 ) status = errno;
14315 if( status ) return status;
14317 /* Draft 4 pthreads */
14318 status = pthread_create( &t, pthread_attr_default, task, NULL );
14319 if( status ) return errno;
14321 /* give thread a chance to complete */
14322 /* it should remain joinable and hence detachable */
14325 status = pthread_detach( &t );
14326 if( status ) return errno;
14329 #ifdef HAVE_LINUX_THREADS
14330 pthread_kill_other_threads_np();
14338 if { (eval echo configure:14339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14340 ol_cv_pthread_threads=yes
14342 echo "configure: failed program was:" >&5
14343 cat conftest.$ac_ext >&5
14345 ol_cv_pthread_threads=no
14356 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14358 if test $ol_cv_pthread_threads = yes ; then
14359 ol_link_pthreads="-threads"
14360 ol_link_threads=posix
14365 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14366 if test "$ol_link_threads" = no ; then
14367 # try -lpthreads -lmach -lexc -lc_r
14368 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14369 echo "configure:14370: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14370 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14376 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14378 if test "$cross_compiling" = yes; then
14379 cat > conftest.$ac_ext <<EOF
14380 #line 14381 "configure"
14381 #include "confdefs.h"
14382 /* pthread test headers */
14383 #include <pthread.h>
14384 #if HAVE_PTHREADS < 7
14388 #define NULL (void*)0
14391 static void *task(p)
14394 return (void *) (p == NULL);
14399 /* pthread test function */
14400 #ifndef PTHREAD_CREATE_DETACHED
14401 #define PTHREAD_CREATE_DETACHED 1
14405 int detach = PTHREAD_CREATE_DETACHED;
14407 #if HAVE_PTHREADS > 4
14408 /* Final pthreads */
14409 pthread_attr_t attr;
14411 status = pthread_attr_init(&attr);
14412 if( status ) return status;
14414 #if HAVE_PTHREADS < 7
14415 status = pthread_attr_setdetachstate(&attr, &detach);
14416 if( status < 0 ) status = errno;
14418 status = pthread_attr_setdetachstate(&attr, detach);
14420 if( status ) return status;
14421 status = pthread_create( &t, &attr, task, NULL );
14422 #if HAVE_PTHREADS < 7
14423 if( status < 0 ) status = errno;
14425 if( status ) return status;
14427 /* Draft 4 pthreads */
14428 status = pthread_create( &t, pthread_attr_default, task, NULL );
14429 if( status ) return errno;
14431 /* give thread a chance to complete */
14432 /* it should remain joinable and hence detachable */
14435 status = pthread_detach( &t );
14436 if( status ) return errno;
14439 #ifdef HAVE_LINUX_THREADS
14440 pthread_kill_other_threads_np();
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14449 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14451 echo "configure: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14454 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14458 cat > conftest.$ac_ext <<EOF
14459 #line 14460 "configure"
14460 #include "confdefs.h"
14461 /* pthread test headers */
14462 #include <pthread.h>
14463 #if HAVE_PTHREADS < 7
14467 #define NULL (void*)0
14470 static void *task(p)
14473 return (void *) (p == NULL);
14477 int main(argc, argv)
14482 /* pthread test function */
14483 #ifndef PTHREAD_CREATE_DETACHED
14484 #define PTHREAD_CREATE_DETACHED 1
14488 int detach = PTHREAD_CREATE_DETACHED;
14490 #if HAVE_PTHREADS > 4
14491 /* Final pthreads */
14492 pthread_attr_t attr;
14494 status = pthread_attr_init(&attr);
14495 if( status ) return status;
14497 #if HAVE_PTHREADS < 7
14498 status = pthread_attr_setdetachstate(&attr, &detach);
14499 if( status < 0 ) status = errno;
14501 status = pthread_attr_setdetachstate(&attr, detach);
14503 if( status ) return status;
14504 status = pthread_create( &t, &attr, task, NULL );
14505 #if HAVE_PTHREADS < 7
14506 if( status < 0 ) status = errno;
14508 if( status ) return status;
14510 /* Draft 4 pthreads */
14511 status = pthread_create( &t, pthread_attr_default, task, NULL );
14512 if( status ) return errno;
14514 /* give thread a chance to complete */
14515 /* it should remain joinable and hence detachable */
14518 status = pthread_detach( &t );
14519 if( status ) return errno;
14522 #ifdef HAVE_LINUX_THREADS
14523 pthread_kill_other_threads_np();
14531 if { (eval echo configure:14532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14533 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14535 echo "configure: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14538 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14549 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14551 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14552 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14553 ol_link_threads=posix
14557 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14558 if test "$ol_link_threads" = no ; then
14559 # try -lpthreads -lmach -lexc
14560 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14561 echo "configure:14562: checking for pthread link with -lpthreads -lmach -lexc" >&5
14562 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14563 echo $ac_n "(cached) $ac_c" 1>&6
14568 LIBS="-lpthreads -lmach -lexc $LIBS"
14570 if test "$cross_compiling" = yes; then
14571 cat > conftest.$ac_ext <<EOF
14572 #line 14573 "configure"
14573 #include "confdefs.h"
14574 /* pthread test headers */
14575 #include <pthread.h>
14576 #if HAVE_PTHREADS < 7
14580 #define NULL (void*)0
14583 static void *task(p)
14586 return (void *) (p == NULL);
14591 /* pthread test function */
14592 #ifndef PTHREAD_CREATE_DETACHED
14593 #define PTHREAD_CREATE_DETACHED 1
14597 int detach = PTHREAD_CREATE_DETACHED;
14599 #if HAVE_PTHREADS > 4
14600 /* Final pthreads */
14601 pthread_attr_t attr;
14603 status = pthread_attr_init(&attr);
14604 if( status ) return status;
14606 #if HAVE_PTHREADS < 7
14607 status = pthread_attr_setdetachstate(&attr, &detach);
14608 if( status < 0 ) status = errno;
14610 status = pthread_attr_setdetachstate(&attr, detach);
14612 if( status ) return status;
14613 status = pthread_create( &t, &attr, task, NULL );
14614 #if HAVE_PTHREADS < 7
14615 if( status < 0 ) status = errno;
14617 if( status ) return status;
14619 /* Draft 4 pthreads */
14620 status = pthread_create( &t, pthread_attr_default, task, NULL );
14621 if( status ) return errno;
14623 /* give thread a chance to complete */
14624 /* it should remain joinable and hence detachable */
14627 status = pthread_detach( &t );
14628 if( status ) return errno;
14631 #ifdef HAVE_LINUX_THREADS
14632 pthread_kill_other_threads_np();
14639 if { (eval echo configure:14640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14641 ol_cv_pthread_lpthreads_lmach_lexc=yes
14643 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14646 ol_cv_pthread_lpthreads_lmach_lexc=no
14650 cat > conftest.$ac_ext <<EOF
14651 #line 14652 "configure"
14652 #include "confdefs.h"
14653 /* pthread test headers */
14654 #include <pthread.h>
14655 #if HAVE_PTHREADS < 7
14659 #define NULL (void*)0
14662 static void *task(p)
14665 return (void *) (p == NULL);
14669 int main(argc, argv)
14674 /* pthread test function */
14675 #ifndef PTHREAD_CREATE_DETACHED
14676 #define PTHREAD_CREATE_DETACHED 1
14680 int detach = PTHREAD_CREATE_DETACHED;
14682 #if HAVE_PTHREADS > 4
14683 /* Final pthreads */
14684 pthread_attr_t attr;
14686 status = pthread_attr_init(&attr);
14687 if( status ) return status;
14689 #if HAVE_PTHREADS < 7
14690 status = pthread_attr_setdetachstate(&attr, &detach);
14691 if( status < 0 ) status = errno;
14693 status = pthread_attr_setdetachstate(&attr, detach);
14695 if( status ) return status;
14696 status = pthread_create( &t, &attr, task, NULL );
14697 #if HAVE_PTHREADS < 7
14698 if( status < 0 ) status = errno;
14700 if( status ) return status;
14702 /* Draft 4 pthreads */
14703 status = pthread_create( &t, pthread_attr_default, task, NULL );
14704 if( status ) return errno;
14706 /* give thread a chance to complete */
14707 /* it should remain joinable and hence detachable */
14710 status = pthread_detach( &t );
14711 if( status ) return errno;
14714 #ifdef HAVE_LINUX_THREADS
14715 pthread_kill_other_threads_np();
14723 if { (eval echo configure:14724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14725 ol_cv_pthread_lpthreads_lmach_lexc=yes
14727 echo "configure: failed program was:" >&5
14728 cat conftest.$ac_ext >&5
14730 ol_cv_pthread_lpthreads_lmach_lexc=no
14741 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14743 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14744 ol_link_pthreads="-lpthreads -lmach -lexc"
14745 ol_link_threads=posix
14749 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14750 if test "$ol_link_threads" = no ; then
14751 # try -lpthreads -lexc
14752 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14753 echo "configure:14754: checking for pthread link with -lpthreads -lexc" >&5
14754 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14755 echo $ac_n "(cached) $ac_c" 1>&6
14760 LIBS="-lpthreads -lexc $LIBS"
14762 if test "$cross_compiling" = yes; then
14763 cat > conftest.$ac_ext <<EOF
14764 #line 14765 "configure"
14765 #include "confdefs.h"
14766 /* pthread test headers */
14767 #include <pthread.h>
14768 #if HAVE_PTHREADS < 7
14772 #define NULL (void*)0
14775 static void *task(p)
14778 return (void *) (p == NULL);
14783 /* pthread test function */
14784 #ifndef PTHREAD_CREATE_DETACHED
14785 #define PTHREAD_CREATE_DETACHED 1
14789 int detach = PTHREAD_CREATE_DETACHED;
14791 #if HAVE_PTHREADS > 4
14792 /* Final pthreads */
14793 pthread_attr_t attr;
14795 status = pthread_attr_init(&attr);
14796 if( status ) return status;
14798 #if HAVE_PTHREADS < 7
14799 status = pthread_attr_setdetachstate(&attr, &detach);
14800 if( status < 0 ) status = errno;
14802 status = pthread_attr_setdetachstate(&attr, detach);
14804 if( status ) return status;
14805 status = pthread_create( &t, &attr, task, NULL );
14806 #if HAVE_PTHREADS < 7
14807 if( status < 0 ) status = errno;
14809 if( status ) return status;
14811 /* Draft 4 pthreads */
14812 status = pthread_create( &t, pthread_attr_default, task, NULL );
14813 if( status ) return errno;
14815 /* give thread a chance to complete */
14816 /* it should remain joinable and hence detachable */
14819 status = pthread_detach( &t );
14820 if( status ) return errno;
14823 #ifdef HAVE_LINUX_THREADS
14824 pthread_kill_other_threads_np();
14831 if { (eval echo configure:14832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14833 ol_cv_pthread_lpthreads_lexc=yes
14835 echo "configure: failed program was:" >&5
14836 cat conftest.$ac_ext >&5
14838 ol_cv_pthread_lpthreads_lexc=no
14842 cat > conftest.$ac_ext <<EOF
14843 #line 14844 "configure"
14844 #include "confdefs.h"
14845 /* pthread test headers */
14846 #include <pthread.h>
14847 #if HAVE_PTHREADS < 7
14851 #define NULL (void*)0
14854 static void *task(p)
14857 return (void *) (p == NULL);
14861 int main(argc, argv)
14866 /* pthread test function */
14867 #ifndef PTHREAD_CREATE_DETACHED
14868 #define PTHREAD_CREATE_DETACHED 1
14872 int detach = PTHREAD_CREATE_DETACHED;
14874 #if HAVE_PTHREADS > 4
14875 /* Final pthreads */
14876 pthread_attr_t attr;
14878 status = pthread_attr_init(&attr);
14879 if( status ) return status;
14881 #if HAVE_PTHREADS < 7
14882 status = pthread_attr_setdetachstate(&attr, &detach);
14883 if( status < 0 ) status = errno;
14885 status = pthread_attr_setdetachstate(&attr, detach);
14887 if( status ) return status;
14888 status = pthread_create( &t, &attr, task, NULL );
14889 #if HAVE_PTHREADS < 7
14890 if( status < 0 ) status = errno;
14892 if( status ) return status;
14894 /* Draft 4 pthreads */
14895 status = pthread_create( &t, pthread_attr_default, task, NULL );
14896 if( status ) return errno;
14898 /* give thread a chance to complete */
14899 /* it should remain joinable and hence detachable */
14902 status = pthread_detach( &t );
14903 if( status ) return errno;
14906 #ifdef HAVE_LINUX_THREADS
14907 pthread_kill_other_threads_np();
14915 if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14917 ol_cv_pthread_lpthreads_lexc=yes
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14922 ol_cv_pthread_lpthreads_lexc=no
14933 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14935 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14936 ol_link_pthreads="-lpthreads -lexc"
14937 ol_link_threads=posix
14942 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14943 if test "$ol_link_threads" = no ; then
14945 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14946 echo "configure:14947: checking for pthread link with -lpthreads" >&5
14947 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14948 echo $ac_n "(cached) $ac_c" 1>&6
14953 LIBS="-lpthreads $LIBS"
14955 if test "$cross_compiling" = yes; then
14956 cat > conftest.$ac_ext <<EOF
14957 #line 14958 "configure"
14958 #include "confdefs.h"
14959 /* pthread test headers */
14960 #include <pthread.h>
14961 #if HAVE_PTHREADS < 7
14965 #define NULL (void*)0
14968 static void *task(p)
14971 return (void *) (p == NULL);
14976 /* pthread test function */
14977 #ifndef PTHREAD_CREATE_DETACHED
14978 #define PTHREAD_CREATE_DETACHED 1
14982 int detach = PTHREAD_CREATE_DETACHED;
14984 #if HAVE_PTHREADS > 4
14985 /* Final pthreads */
14986 pthread_attr_t attr;
14988 status = pthread_attr_init(&attr);
14989 if( status ) return status;
14991 #if HAVE_PTHREADS < 7
14992 status = pthread_attr_setdetachstate(&attr, &detach);
14993 if( status < 0 ) status = errno;
14995 status = pthread_attr_setdetachstate(&attr, detach);
14997 if( status ) return status;
14998 status = pthread_create( &t, &attr, task, NULL );
14999 #if HAVE_PTHREADS < 7
15000 if( status < 0 ) status = errno;
15002 if( status ) return status;
15004 /* Draft 4 pthreads */
15005 status = pthread_create( &t, pthread_attr_default, task, NULL );
15006 if( status ) return errno;
15008 /* give thread a chance to complete */
15009 /* it should remain joinable and hence detachable */
15012 status = pthread_detach( &t );
15013 if( status ) return errno;
15016 #ifdef HAVE_LINUX_THREADS
15017 pthread_kill_other_threads_np();
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15026 ol_cv_pthread_lib_lpthreads=yes
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15031 ol_cv_pthread_lib_lpthreads=no
15035 cat > conftest.$ac_ext <<EOF
15036 #line 15037 "configure"
15037 #include "confdefs.h"
15038 /* pthread test headers */
15039 #include <pthread.h>
15040 #if HAVE_PTHREADS < 7
15044 #define NULL (void*)0
15047 static void *task(p)
15050 return (void *) (p == NULL);
15054 int main(argc, argv)
15059 /* pthread test function */
15060 #ifndef PTHREAD_CREATE_DETACHED
15061 #define PTHREAD_CREATE_DETACHED 1
15065 int detach = PTHREAD_CREATE_DETACHED;
15067 #if HAVE_PTHREADS > 4
15068 /* Final pthreads */
15069 pthread_attr_t attr;
15071 status = pthread_attr_init(&attr);
15072 if( status ) return status;
15074 #if HAVE_PTHREADS < 7
15075 status = pthread_attr_setdetachstate(&attr, &detach);
15076 if( status < 0 ) status = errno;
15078 status = pthread_attr_setdetachstate(&attr, detach);
15080 if( status ) return status;
15081 status = pthread_create( &t, &attr, task, NULL );
15082 #if HAVE_PTHREADS < 7
15083 if( status < 0 ) status = errno;
15085 if( status ) return status;
15087 /* Draft 4 pthreads */
15088 status = pthread_create( &t, pthread_attr_default, task, NULL );
15089 if( status ) return errno;
15091 /* give thread a chance to complete */
15092 /* it should remain joinable and hence detachable */
15095 status = pthread_detach( &t );
15096 if( status ) return errno;
15099 #ifdef HAVE_LINUX_THREADS
15100 pthread_kill_other_threads_np();
15108 if { (eval echo configure:15109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15110 ol_cv_pthread_lib_lpthreads=yes
15112 echo "configure: failed program was:" >&5
15113 cat conftest.$ac_ext >&5
15115 ol_cv_pthread_lib_lpthreads=no
15126 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15128 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15129 ol_link_pthreads="-lpthreads"
15130 ol_link_threads=posix
15135 if test $ol_link_threads != no ; then
15136 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15138 save_CPPFLAGS="$CPPFLAGS"
15140 LIBS="$LTHREAD_LIBS $LIBS"
15142 for ac_func in sched_yield pthread_yield thr_yield
15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15145 echo "configure:15146: checking for $ac_func" >&5
15146 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15149 cat > conftest.$ac_ext <<EOF
15150 #line 15151 "configure"
15151 #include "confdefs.h"
15152 /* System header to define __stub macros and hopefully few prototypes,
15153 which can conflict with char $ac_func(); below. */
15154 #include <assert.h>
15155 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15163 /* The GNU C library defines this for functions which it implements
15164 to always fail with ENOSYS. Some functions are actually named
15165 something starting with __ and the normal name is an alias. */
15166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15174 if { (eval echo configure:15175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15176 eval "ac_cv_func_$ac_func=yes"
15178 echo "configure: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15181 eval "ac_cv_func_$ac_func=no"
15186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15187 echo "$ac_t""yes" 1>&6
15188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15189 cat >> confdefs.h <<EOF
15190 #define $ac_tr_func 1
15194 echo "$ac_t""no" 1>&6
15199 if test $ac_cv_func_sched_yield = no -a \
15200 $ac_cv_func_pthread_yield = no -a \
15201 $ac_cv_func_thr_yield = no ; then
15202 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15203 echo "configure:15204: checking for sched_yield in -lrt" >&5
15204 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15205 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15206 echo $ac_n "(cached) $ac_c" 1>&6
15208 ac_save_LIBS="$LIBS"
15210 cat > conftest.$ac_ext <<EOF
15211 #line 15212 "configure"
15212 #include "confdefs.h"
15213 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15216 char sched_yield();
15222 if { (eval echo configure:15223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15224 eval "ac_cv_lib_$ac_lib_var=yes"
15226 echo "configure: failed program was:" >&5
15227 cat conftest.$ac_ext >&5
15229 eval "ac_cv_lib_$ac_lib_var=no"
15232 LIBS="$ac_save_LIBS"
15235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15236 echo "$ac_t""yes" 1>&6
15237 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15238 cat >> confdefs.h <<\EOF
15239 #define HAVE_SCHED_YIELD 1
15242 ac_cv_func_sched_yield=yes
15244 echo "$ac_t""no" 1>&6
15245 ac_cv_func_sched_yield=no
15249 if test $ac_cv_func_sched_yield = no -a \
15250 $ac_cv_func_pthread_yield = no -a \
15251 "$ac_cv_func_thr_yield" = no ; then
15252 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15255 for ac_func in pthread_kill pthread_rwlock_destroy
15257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15258 echo "configure:15259: checking for $ac_func" >&5
15259 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15260 echo $ac_n "(cached) $ac_c" 1>&6
15262 cat > conftest.$ac_ext <<EOF
15263 #line 15264 "configure"
15264 #include "confdefs.h"
15265 /* System header to define __stub macros and hopefully few prototypes,
15266 which can conflict with char $ac_func(); below. */
15267 #include <assert.h>
15268 /* Override any gcc2 internal prototype to avoid an error. */
15269 /* We use char because int might match the return type of a gcc2
15270 builtin and then its argument prototype would still apply. */
15276 /* The GNU C library defines this for functions which it implements
15277 to always fail with ENOSYS. Some functions are actually named
15278 something starting with __ and the normal name is an alias. */
15279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15287 if { (eval echo configure:15288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15289 eval "ac_cv_func_$ac_func=yes"
15291 echo "configure: failed program was:" >&5
15292 cat conftest.$ac_ext >&5
15294 eval "ac_cv_func_$ac_func=no"
15299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15300 echo "$ac_t""yes" 1>&6
15301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15302 cat >> confdefs.h <<EOF
15303 #define $ac_tr_func 1
15307 echo "$ac_t""no" 1>&6
15312 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15313 echo "configure:15314: checking for pthread_detach with <pthread.h>" >&5
15314 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15315 echo $ac_n "(cached) $ac_c" 1>&6
15318 cat > conftest.$ac_ext <<EOF
15319 #line 15320 "configure"
15320 #include "confdefs.h"
15322 #include <pthread.h>
15324 #define NULL (void*)0
15328 pthread_detach(NULL);
15331 if { (eval echo configure:15332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15333 ol_cv_func_pthread_detach=yes
15335 echo "configure: failed program was:" >&5
15336 cat conftest.$ac_ext >&5
15338 ol_cv_func_pthread_detach=no
15344 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15346 if test $ol_cv_func_pthread_detach = no ; then
15347 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15350 cat >> confdefs.h <<\EOF
15351 #define HAVE_PTHREAD_DETACH 1
15356 pthread_setconcurrency \
15357 pthread_getconcurrency \
15358 thr_setconcurrency \
15359 thr_getconcurrency \
15362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15363 echo "configure:15364: checking for $ac_func" >&5
15364 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15365 echo $ac_n "(cached) $ac_c" 1>&6
15367 cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370 /* System header to define __stub macros and hopefully few prototypes,
15371 which can conflict with char $ac_func(); below. */
15372 #include <assert.h>
15373 /* Override any gcc2 internal prototype to avoid an error. */
15374 /* We use char because int might match the return type of a gcc2
15375 builtin and then its argument prototype would still apply. */
15381 /* The GNU C library defines this for functions which it implements
15382 to always fail with ENOSYS. Some functions are actually named
15383 something starting with __ and the normal name is an alias. */
15384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15392 if { (eval echo configure:15393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15394 eval "ac_cv_func_$ac_func=yes"
15396 echo "configure: failed program was:" >&5
15397 cat conftest.$ac_ext >&5
15399 eval "ac_cv_func_$ac_func=no"
15404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15405 echo "$ac_t""yes" 1>&6
15406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15407 cat >> confdefs.h <<EOF
15408 #define $ac_tr_func 1
15412 echo "$ac_t""no" 1>&6
15418 for ac_func in pthread_kill_other_threads_np
15420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15421 echo "configure:15422: checking for $ac_func" >&5
15422 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15423 echo $ac_n "(cached) $ac_c" 1>&6
15425 cat > conftest.$ac_ext <<EOF
15426 #line 15427 "configure"
15427 #include "confdefs.h"
15428 /* System header to define __stub macros and hopefully few prototypes,
15429 which can conflict with char $ac_func(); below. */
15430 #include <assert.h>
15431 /* Override any gcc2 internal prototype to avoid an error. */
15432 /* We use char because int might match the return type of a gcc2
15433 builtin and then its argument prototype would still apply. */
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
15454 echo "configure: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15457 eval "ac_cv_func_$ac_func=no"
15462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15463 echo "$ac_t""yes" 1>&6
15464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15465 cat >> confdefs.h <<EOF
15466 #define $ac_tr_func 1
15470 echo "$ac_t""no" 1>&6
15474 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15475 echo "configure:15476: checking for LinuxThreads implementation" >&5
15476 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15477 echo $ac_n "(cached) $ac_c" 1>&6
15479 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15482 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15487 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15488 echo "configure:15489: checking for LinuxThreads consistency" >&5
15489 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15490 echo $ac_n "(cached) $ac_c" 1>&6
15493 if test $ol_cv_header_linux_threads = yes -a \
15494 $ol_cv_sys_linux_threads = yes; then
15495 ol_cv_linux_threads=yes
15496 elif test $ol_cv_header_linux_threads = no -a \
15497 $ol_cv_sys_linux_threads = no; then
15498 ol_cv_linux_threads=no
15500 ol_cv_linux_threads=error
15505 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15508 if test $ol_cv_linux_threads = error; then
15509 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15512 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15513 echo "configure:15514: checking if pthread_create() works" >&5
15514 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
15518 if test "$cross_compiling" = yes; then
15519 ol_cv_pthread_create_works=yes
15521 cat > conftest.$ac_ext <<EOF
15522 #line 15523 "configure"
15523 #include "confdefs.h"
15524 /* pthread test headers */
15525 #include <pthread.h>
15526 #if HAVE_PTHREADS < 7
15530 #define NULL (void*)0
15533 static void *task(p)
15536 return (void *) (p == NULL);
15540 int main(argc, argv)
15545 /* pthread test function */
15546 #ifndef PTHREAD_CREATE_DETACHED
15547 #define PTHREAD_CREATE_DETACHED 1
15551 int detach = PTHREAD_CREATE_DETACHED;
15553 #if HAVE_PTHREADS > 4
15554 /* Final pthreads */
15555 pthread_attr_t attr;
15557 status = pthread_attr_init(&attr);
15558 if( status ) return status;
15560 #if HAVE_PTHREADS < 7
15561 status = pthread_attr_setdetachstate(&attr, &detach);
15562 if( status < 0 ) status = errno;
15564 status = pthread_attr_setdetachstate(&attr, detach);
15566 if( status ) return status;
15567 status = pthread_create( &t, &attr, task, NULL );
15568 #if HAVE_PTHREADS < 7
15569 if( status < 0 ) status = errno;
15571 if( status ) return status;
15573 /* Draft 4 pthreads */
15574 status = pthread_create( &t, pthread_attr_default, task, NULL );
15575 if( status ) return errno;
15577 /* give thread a chance to complete */
15578 /* it should remain joinable and hence detachable */
15581 status = pthread_detach( &t );
15582 if( status ) return errno;
15585 #ifdef HAVE_LINUX_THREADS
15586 pthread_kill_other_threads_np();
15594 if { (eval echo configure:15595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15596 ol_cv_pthread_create_works=yes
15598 echo "configure: failed program was:" >&5
15599 cat conftest.$ac_ext >&5
15601 ol_cv_pthread_create_works=no
15608 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15610 if test $ol_cv_pthread_create_works = no ; then
15611 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15614 if test $ol_with_yielding_select = auto ; then
15615 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15616 echo "configure:15617: checking if select yields when using pthreads" >&5
15617 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15618 echo $ac_n "(cached) $ac_c" 1>&6
15621 if test "$cross_compiling" = yes; then
15622 ol_cv_pthread_select_yields=cross
15624 cat > conftest.$ac_ext <<EOF
15625 #line 15626 "configure"
15626 #include "confdefs.h"
15628 #include <sys/types.h>
15629 #include <sys/time.h>
15630 #include <unistd.h>
15631 #include <pthread.h>
15633 #define NULL (void*) 0
15636 static int fildes[2];
15638 static void *task(p)
15650 FD_SET(fildes[0], &rfds);
15652 /* we're not interested in any fds */
15653 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15660 exit(0); /* if we exit here, the select blocked the whole process */
15663 int main(argc, argv)
15669 /* create a pipe to select */
15670 if(pipe(&fildes[0])) {
15675 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15676 (void) pthread_setconcurrency(2);
15678 #ifdef HAVE_THR_SETCONCURRENCY
15679 /* Set Solaris LWP concurrency to 2 */
15680 thr_setconcurrency(2);
15684 #if HAVE_PTHREADS < 6
15685 pthread_create(&t, pthread_attr_default, task, NULL);
15687 pthread_create(&t, NULL, task, NULL);
15690 /* make sure task runs first */
15693 #elif defined( HAVE_SCHED_YIELD )
15695 #elif defined( HAVE_PTHREAD_YIELD )
15702 if { (eval echo configure:15703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15704 ol_cv_pthread_select_yields=no
15706 echo "configure: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15709 ol_cv_pthread_select_yields=yes
15716 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15718 if test $ol_cv_pthread_select_yields = cross ; then
15719 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15722 if test $ol_cv_pthread_select_yields = yes ; then
15723 ol_with_yielding_select=yes
15727 CPPFLAGS="$save_CPPFLAGS"
15730 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15734 if test $ol_with_threads = posix ; then
15735 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15739 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15740 -o $ol_with_threads = mach ; then
15742 for ac_hdr in mach/cthreads.h cthreads.h
15744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15746 echo "configure:15747: checking for $ac_hdr" >&5
15747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15748 echo $ac_n "(cached) $ac_c" 1>&6
15750 cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15756 { (eval echo configure:15757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15758 if test -z "$ac_err"; then
15760 eval "ac_cv_header_$ac_safe=yes"
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15766 eval "ac_cv_header_$ac_safe=no"
15770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15771 echo "$ac_t""yes" 1>&6
15772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15773 cat >> confdefs.h <<EOF
15774 #define $ac_tr_hdr 1
15778 echo "$ac_t""no" 1>&6
15782 if test $ac_cv_header_mach_cthreads_h = yes ; then
15783 ol_with_threads=found
15785 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15786 echo "configure:15787: checking for cthread_fork" >&5
15787 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15788 echo $ac_n "(cached) $ac_c" 1>&6
15790 cat > conftest.$ac_ext <<EOF
15791 #line 15792 "configure"
15792 #include "confdefs.h"
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char cthread_fork(); below. */
15795 #include <assert.h>
15796 /* Override any gcc2 internal prototype to avoid an error. */
15797 /* We use char because int might match the return type of a gcc2
15798 builtin and then its argument prototype would still apply. */
15799 char cthread_fork();
15804 /* The GNU C library defines this for functions which it implements
15805 to always fail with ENOSYS. Some functions are actually named
15806 something starting with __ and the normal name is an alias. */
15807 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15815 if { (eval echo configure:15816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15817 eval "ac_cv_func_cthread_fork=yes"
15819 echo "configure: failed program was:" >&5
15820 cat conftest.$ac_ext >&5
15822 eval "ac_cv_func_cthread_fork=no"
15827 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15828 echo "$ac_t""yes" 1>&6
15829 ol_link_threads=yes
15831 echo "$ac_t""no" 1>&6
15835 if test $ol_link_threads = no ; then
15836 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15837 echo "configure:15838: checking for cthread_fork with -all_load" >&5
15838 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15839 echo $ac_n "(cached) $ac_c" 1>&6
15843 LIBS="-all_load $LIBS"
15844 cat > conftest.$ac_ext <<EOF
15845 #line 15846 "configure"
15846 #include "confdefs.h"
15847 #include <mach/cthreads.h>
15850 cthread_fork((void *)0, (void *)0);
15854 if { (eval echo configure:15855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856 ol_cv_cthread_all_load=yes
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15861 ol_cv_cthread_all_load=no
15868 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15870 if test $ol_cv_cthread_all_load = yes ; then
15871 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15872 ol_link_threads=mach
15873 ol_with_threads=found
15877 elif test $ac_cv_header_cthreads_h = yes ; then
15879 ol_with_threads=found
15882 LIBS="$LIBS -lthreads"
15883 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15884 echo "configure:15885: checking for cthread_fork" >&5
15885 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15886 echo $ac_n "(cached) $ac_c" 1>&6
15888 cat > conftest.$ac_ext <<EOF
15889 #line 15890 "configure"
15890 #include "confdefs.h"
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char cthread_fork(); below. */
15893 #include <assert.h>
15894 /* Override any gcc2 internal prototype to avoid an error. */
15895 /* We use char because int might match the return type of a gcc2
15896 builtin and then its argument prototype would still apply. */
15897 char cthread_fork();
15902 /* The GNU C library defines this for functions which it implements
15903 to always fail with ENOSYS. Some functions are actually named
15904 something starting with __ and the normal name is an alias. */
15905 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15913 if { (eval echo configure:15914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15915 eval "ac_cv_func_cthread_fork=yes"
15917 echo "configure: failed program was:" >&5
15918 cat conftest.$ac_ext >&5
15920 eval "ac_cv_func_cthread_fork=no"
15925 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15926 echo "$ac_t""yes" 1>&6
15927 ol_link_threads=yes
15929 echo "$ac_t""no" 1>&6
15934 if test $ol_link_threads = yes ; then
15935 LTHREAD_LIBS="-lthreads"
15936 ol_link_threads=mach
15937 ol_with_threads=found
15939 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15942 elif test $ol_with_threads = mach ; then
15943 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15946 if test $ol_link_threads = mach ; then
15947 cat >> confdefs.h <<\EOF
15948 #define HAVE_MACH_CTHREADS 1
15951 elif test $ol_with_threads = found ; then
15952 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15956 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15957 -o $ol_with_threads = pth ; then
15959 for ac_hdr in pth.h
15961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15963 echo "configure:15964: checking for $ac_hdr" >&5
15964 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15965 echo $ac_n "(cached) $ac_c" 1>&6
15967 cat > conftest.$ac_ext <<EOF
15968 #line 15969 "configure"
15969 #include "confdefs.h"
15972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15973 { (eval echo configure:15974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15975 if test -z "$ac_err"; then
15977 eval "ac_cv_header_$ac_safe=yes"
15980 echo "configure: failed program was:" >&5
15981 cat conftest.$ac_ext >&5
15983 eval "ac_cv_header_$ac_safe=no"
15987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15988 echo "$ac_t""yes" 1>&6
15989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15990 cat >> confdefs.h <<EOF
15991 #define $ac_tr_hdr 1
15995 echo "$ac_t""no" 1>&6
16000 if test $ac_cv_header_pth_h = yes ; then
16001 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16002 echo "configure:16003: checking for pth_version in -lpth" >&5
16003 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16004 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16005 echo $ac_n "(cached) $ac_c" 1>&6
16007 ac_save_LIBS="$LIBS"
16009 cat > conftest.$ac_ext <<EOF
16010 #line 16011 "configure"
16011 #include "confdefs.h"
16012 /* Override any gcc2 internal prototype to avoid an error. */
16013 /* We use char because int might match the return type of a gcc2
16014 builtin and then its argument prototype would still apply. */
16015 char pth_version();
16021 if { (eval echo configure:16022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16023 eval "ac_cv_lib_$ac_lib_var=yes"
16025 echo "configure: failed program was:" >&5
16026 cat conftest.$ac_ext >&5
16028 eval "ac_cv_lib_$ac_lib_var=no"
16031 LIBS="$ac_save_LIBS"
16034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16035 echo "$ac_t""yes" 1>&6
16038 echo "$ac_t""no" 1>&6
16043 if test $have_pth = yes ; then
16044 cat >> confdefs.h <<\EOF
16045 #define HAVE_GNU_PTH 1
16048 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16049 ol_link_threads=pth
16050 ol_with_threads=found
16052 if test $ol_with_yielding_select = auto ; then
16053 ol_with_yielding_select=yes
16059 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16060 -o $ol_with_threads = lwp ; then
16062 for ac_hdr in thread.h synch.h
16064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16066 echo "configure:16067: checking for $ac_hdr" >&5
16067 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16068 echo $ac_n "(cached) $ac_c" 1>&6
16070 cat > conftest.$ac_ext <<EOF
16071 #line 16072 "configure"
16072 #include "confdefs.h"
16075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16076 { (eval echo configure:16077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16078 if test -z "$ac_err"; then
16080 eval "ac_cv_header_$ac_safe=yes"
16083 echo "configure: failed program was:" >&5
16084 cat conftest.$ac_ext >&5
16086 eval "ac_cv_header_$ac_safe=no"
16090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16091 echo "$ac_t""yes" 1>&6
16092 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16093 cat >> confdefs.h <<EOF
16094 #define $ac_tr_hdr 1
16098 echo "$ac_t""no" 1>&6
16102 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16103 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16104 echo "configure:16105: checking for thr_create in -lthread" >&5
16105 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16106 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16107 echo $ac_n "(cached) $ac_c" 1>&6
16109 ac_save_LIBS="$LIBS"
16110 LIBS="-lthread $LIBS"
16111 cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16114 /* Override any gcc2 internal prototype to avoid an error. */
16115 /* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16123 if { (eval echo configure:16124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16125 eval "ac_cv_lib_$ac_lib_var=yes"
16127 echo "configure: failed program was:" >&5
16128 cat conftest.$ac_ext >&5
16130 eval "ac_cv_lib_$ac_lib_var=no"
16133 LIBS="$ac_save_LIBS"
16136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16137 echo "$ac_t""yes" 1>&6
16140 echo "$ac_t""no" 1>&6
16145 if test $have_thr = yes ; then
16146 cat >> confdefs.h <<\EOF
16150 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16151 ol_link_threads=thr
16153 if test $ol_with_yielding_select = auto ; then
16154 ol_with_yielding_select=yes
16158 thr_setconcurrency \
16159 thr_getconcurrency \
16162 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16163 echo "configure:16164: checking for $ac_func" >&5
16164 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16167 cat > conftest.$ac_ext <<EOF
16168 #line 16169 "configure"
16169 #include "confdefs.h"
16170 /* System header to define __stub macros and hopefully few prototypes,
16171 which can conflict with char $ac_func(); below. */
16172 #include <assert.h>
16173 /* Override any gcc2 internal prototype to avoid an error. */
16174 /* We use char because int might match the return type of a gcc2
16175 builtin and then its argument prototype would still apply. */
16181 /* The GNU C library defines this for functions which it implements
16182 to always fail with ENOSYS. Some functions are actually named
16183 something starting with __ and the normal name is an alias. */
16184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192 if { (eval echo configure:16193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16194 eval "ac_cv_func_$ac_func=yes"
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16199 eval "ac_cv_func_$ac_func=no"
16204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16205 echo "$ac_t""yes" 1>&6
16206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16207 cat >> confdefs.h <<EOF
16208 #define $ac_tr_func 1
16212 echo "$ac_t""no" 1>&6
16219 for ac_hdr in lwp/lwp.h
16221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16223 echo "configure:16224: checking for $ac_hdr" >&5
16224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16225 echo $ac_n "(cached) $ac_c" 1>&6
16227 cat > conftest.$ac_ext <<EOF
16228 #line 16229 "configure"
16229 #include "confdefs.h"
16232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16233 { (eval echo configure:16234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16235 if test -z "$ac_err"; then
16237 eval "ac_cv_header_$ac_safe=yes"
16240 echo "configure: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16243 eval "ac_cv_header_$ac_safe=no"
16247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16248 echo "$ac_t""yes" 1>&6
16249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16250 cat >> confdefs.h <<EOF
16251 #define $ac_tr_hdr 1
16255 echo "$ac_t""no" 1>&6
16259 if test $ac_cv_header_lwp_lwp_h = yes ; then
16260 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16261 echo "configure:16262: checking for lwp_create in -llwp" >&5
16262 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16263 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16264 echo $ac_n "(cached) $ac_c" 1>&6
16266 ac_save_LIBS="$LIBS"
16268 cat > conftest.$ac_ext <<EOF
16269 #line 16270 "configure"
16270 #include "confdefs.h"
16271 /* Override any gcc2 internal prototype to avoid an error. */
16272 /* We use char because int might match the return type of a gcc2
16273 builtin and then its argument prototype would still apply. */
16280 if { (eval echo configure:16281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16282 eval "ac_cv_lib_$ac_lib_var=yes"
16284 echo "configure: failed program was:" >&5
16285 cat conftest.$ac_ext >&5
16287 eval "ac_cv_lib_$ac_lib_var=no"
16290 LIBS="$ac_save_LIBS"
16293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16294 echo "$ac_t""yes" 1>&6
16297 echo "$ac_t""no" 1>&6
16302 if test $have_lwp = yes ; then
16303 cat >> confdefs.h <<\EOF
16307 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16308 ol_link_threads=lwp
16310 if test $ol_with_yielding_select = auto ; then
16311 ol_with_yielding_select=no
16317 if test $ol_with_yielding_select = yes ; then
16318 cat >> confdefs.h <<\EOF
16319 #define HAVE_YIELDING_SELECT 1
16324 if test $ol_with_threads = manual ; then
16325 ol_link_threads=yes
16327 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16329 for ac_hdr in pthread.h sched.h
16331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16333 echo "configure:16334: checking for $ac_hdr" >&5
16334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16335 echo $ac_n "(cached) $ac_c" 1>&6
16337 cat > conftest.$ac_ext <<EOF
16338 #line 16339 "configure"
16339 #include "confdefs.h"
16342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16343 { (eval echo configure:16344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16345 if test -z "$ac_err"; then
16347 eval "ac_cv_header_$ac_safe=yes"
16350 echo "configure: failed program was:" >&5
16351 cat conftest.$ac_ext >&5
16353 eval "ac_cv_header_$ac_safe=no"
16357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16358 echo "$ac_t""yes" 1>&6
16359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16360 cat >> confdefs.h <<EOF
16361 #define $ac_tr_hdr 1
16365 echo "$ac_t""no" 1>&6
16369 for ac_func in sched_yield pthread_yield
16371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16372 echo "configure:16373: checking for $ac_func" >&5
16373 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16374 echo $ac_n "(cached) $ac_c" 1>&6
16376 cat > conftest.$ac_ext <<EOF
16377 #line 16378 "configure"
16378 #include "confdefs.h"
16379 /* System header to define __stub macros and hopefully few prototypes,
16380 which can conflict with char $ac_func(); below. */
16381 #include <assert.h>
16382 /* Override any gcc2 internal prototype to avoid an error. */
16383 /* We use char because int might match the return type of a gcc2
16384 builtin and then its argument prototype would still apply. */
16390 /* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16401 if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16403 eval "ac_cv_func_$ac_func=yes"
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16408 eval "ac_cv_func_$ac_func=no"
16413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16414 echo "$ac_t""yes" 1>&6
16415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16416 cat >> confdefs.h <<EOF
16417 #define $ac_tr_func 1
16421 echo "$ac_t""no" 1>&6
16426 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16427 echo "configure:16428: checking for LinuxThreads pthread.h" >&5
16428 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16429 echo $ac_n "(cached) $ac_c" 1>&6
16431 cat > conftest.$ac_ext <<EOF
16432 #line 16433 "configure"
16433 #include "confdefs.h"
16434 #include <pthread.h>
16436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16437 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16439 ol_cv_header_linux_threads=yes
16442 ol_cv_header_linux_threads=no
16449 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16450 if test $ol_cv_header_linux_threads = yes; then
16451 cat >> confdefs.h <<\EOF
16452 #define HAVE_LINUX_THREADS 1
16458 for ac_hdr in mach/cthreads.h
16460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16462 echo "configure:16463: checking for $ac_hdr" >&5
16463 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16464 echo $ac_n "(cached) $ac_c" 1>&6
16466 cat > conftest.$ac_ext <<EOF
16467 #line 16468 "configure"
16468 #include "confdefs.h"
16471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16472 { (eval echo configure:16473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16474 if test -z "$ac_err"; then
16476 eval "ac_cv_header_$ac_safe=yes"
16479 echo "configure: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16482 eval "ac_cv_header_$ac_safe=no"
16486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16487 echo "$ac_t""yes" 1>&6
16488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16489 cat >> confdefs.h <<EOF
16490 #define $ac_tr_hdr 1
16494 echo "$ac_t""no" 1>&6
16498 for ac_hdr in lwp/lwp.h
16500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16502 echo "configure:16503: checking for $ac_hdr" >&5
16503 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16504 echo $ac_n "(cached) $ac_c" 1>&6
16506 cat > conftest.$ac_ext <<EOF
16507 #line 16508 "configure"
16508 #include "confdefs.h"
16511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16512 { (eval echo configure:16513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16514 if test -z "$ac_err"; then
16516 eval "ac_cv_header_$ac_safe=yes"
16519 echo "configure: failed program was:" >&5
16520 cat conftest.$ac_ext >&5
16522 eval "ac_cv_header_$ac_safe=no"
16526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16527 echo "$ac_t""yes" 1>&6
16528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16529 cat >> confdefs.h <<EOF
16530 #define $ac_tr_hdr 1
16534 echo "$ac_t""no" 1>&6
16538 for ac_hdr in thread.h synch.h
16540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16542 echo "configure:16543: checking for $ac_hdr" >&5
16543 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16544 echo $ac_n "(cached) $ac_c" 1>&6
16546 cat > conftest.$ac_ext <<EOF
16547 #line 16548 "configure"
16548 #include "confdefs.h"
16551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16552 { (eval echo configure:16553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16554 if test -z "$ac_err"; then
16556 eval "ac_cv_header_$ac_safe=yes"
16559 echo "configure: failed program was:" >&5
16560 cat conftest.$ac_ext >&5
16562 eval "ac_cv_header_$ac_safe=no"
16566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16567 echo "$ac_t""yes" 1>&6
16568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16569 cat >> confdefs.h <<EOF
16570 #define $ac_tr_hdr 1
16574 echo "$ac_t""no" 1>&6
16580 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16581 cat >> confdefs.h <<\EOF
16582 #define REENTRANT 1
16585 cat >> confdefs.h <<\EOF
16586 #define _REENTRANT 1
16589 cat >> confdefs.h <<\EOF
16590 #define THREAD_SAFE 1
16593 cat >> confdefs.h <<\EOF
16594 #define _THREAD_SAFE 1
16597 cat >> confdefs.h <<\EOF
16598 #define THREADSAFE 1
16601 cat >> confdefs.h <<\EOF
16602 #define _THREADSAFE 1
16605 cat >> confdefs.h <<\EOF
16606 #define _SGI_MP_SOURCE 1
16610 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16611 echo "configure:16612: checking for thread specific errno" >&5
16612 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16613 echo $ac_n "(cached) $ac_c" 1>&6
16616 cat > conftest.$ac_ext <<EOF
16617 #line 16618 "configure"
16618 #include "confdefs.h"
16624 if { (eval echo configure:16625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16626 ol_cv_errno_thread_specific=yes
16628 echo "configure: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16631 ol_cv_errno_thread_specific=no
16637 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16639 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16640 echo "configure:16641: checking for thread specific h_errno" >&5
16641 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16642 echo $ac_n "(cached) $ac_c" 1>&6
16645 cat > conftest.$ac_ext <<EOF
16646 #line 16647 "configure"
16647 #include "confdefs.h"
16653 if { (eval echo configure:16654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16655 ol_cv_h_errno_thread_specific=yes
16657 echo "configure: failed program was:" >&5
16658 cat conftest.$ac_ext >&5
16660 ol_cv_h_errno_thread_specific=no
16666 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16668 if test $ol_cv_errno_thread_specific != yes \
16669 -o $ol_cv_h_errno_thread_specific != yes ; then
16670 LIBS="$LTHREAD_LIBS $LIBS"
16676 if test $ol_link_threads = no ; then
16677 if test $ol_with_threads = yes ; then
16678 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16681 if test $ol_with_threads = auto ; then
16682 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16686 cat >> confdefs.h <<\EOF
16687 #define NO_THREADS 1
16693 if test $ol_link_threads != no ; then
16694 cat >> confdefs.h <<\EOF
16695 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16702 if test $ol_with_ldbm_api = auto \
16703 -o $ol_with_ldbm_api = berkeley \
16704 -o $ol_with_ldbm_api = bcompat ; then
16706 if test $ol_with_ldbm_api = bcompat; then \
16707 for ac_hdr in db_185.h db.h
16709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16711 echo "configure:16712: checking for $ac_hdr" >&5
16712 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16713 echo $ac_n "(cached) $ac_c" 1>&6
16715 cat > conftest.$ac_ext <<EOF
16716 #line 16717 "configure"
16717 #include "confdefs.h"
16720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16721 { (eval echo configure:16722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16723 if test -z "$ac_err"; then
16725 eval "ac_cv_header_$ac_safe=yes"
16728 echo "configure: failed program was:" >&5
16729 cat conftest.$ac_ext >&5
16731 eval "ac_cv_header_$ac_safe=no"
16735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16736 echo "$ac_t""yes" 1>&6
16737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16738 cat >> confdefs.h <<EOF
16739 #define $ac_tr_hdr 1
16743 echo "$ac_t""no" 1>&6
16747 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16748 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16749 echo "configure:16750: checking if Berkeley DB header compatibility" >&5
16750 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16751 echo $ac_n "(cached) $ac_c" 1>&6
16754 cat > conftest.$ac_ext <<EOF
16755 #line 16756 "configure"
16756 #include "confdefs.h"
16759 # include <db_185.h>
16764 /* this check could be improved */
16765 #ifndef DB_VERSION_MAJOR
16766 # define DB_VERSION_MAJOR 1
16769 #if DB_VERSION_MAJOR == 1
16774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16775 egrep "__db_version_1" >/dev/null 2>&1; then
16777 ol_cv_header_db1=yes
16780 ol_cv_header_db1=no
16786 echo "$ac_t""$ol_cv_header_db1" 1>&6
16788 if test $ol_cv_header_db1 = yes ; then
16790 if test $ol_cv_lib_db = no ; then
16791 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16792 echo "configure:16793: checking for Berkeley DB link (default)" >&5
16793 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16794 echo $ac_n "(cached) $ac_c" 1>&6
16799 LIBS="$ol_DB_LIB $LIBS"
16801 cat > conftest.$ac_ext <<EOF
16802 #line 16803 "configure"
16803 #include "confdefs.h"
16805 #ifdef HAVE_DB_185_H
16806 # include <db_185.h>
16811 #ifndef DB_VERSION_MAJOR
16812 # define DB_VERSION_MAJOR 1
16816 #define NULL ((void*)0)
16821 #if DB_VERSION_MAJOR > 1
16824 int major, minor, patch;
16826 version = db_version( &major, &minor, &patch );
16828 if( major != DB_VERSION_MAJOR ||
16829 minor < DB_VERSION_MINOR )
16831 printf("Berkeley DB version mismatch\n"
16832 "\texpected: %s\n\tgot: %s\n",
16833 DB_VERSION_STRING, version);
16839 #if DB_VERSION_MAJOR > 2
16840 db_env_create( NULL, 0 );
16841 #elif DB_VERSION_MAJOR > 1
16842 db_appexit( NULL );
16844 (void) dbopen( NULL, 0, 0, 0, NULL);
16849 if { (eval echo configure:16850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16853 echo "configure: failed program was:" >&5
16854 cat conftest.$ac_ext >&5
16864 echo "$ac_t""$ol_cv_db_none" 1>&6
16866 if test $ol_cv_db_none = yes ; then
16871 if test $ol_cv_lib_db = no ; then
16872 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16873 echo "configure:16874: checking for Berkeley DB link (-ldb4)" >&5
16874 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16875 echo $ac_n "(cached) $ac_c" 1>&6
16880 LIBS="$ol_DB_LIB $LIBS"
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16886 #ifdef HAVE_DB_185_H
16887 # include <db_185.h>
16892 #ifndef DB_VERSION_MAJOR
16893 # define DB_VERSION_MAJOR 1
16897 #define NULL ((void*)0)
16902 #if DB_VERSION_MAJOR > 1
16905 int major, minor, patch;
16907 version = db_version( &major, &minor, &patch );
16909 if( major != DB_VERSION_MAJOR ||
16910 minor < DB_VERSION_MINOR )
16912 printf("Berkeley DB version mismatch\n"
16913 "\texpected: %s\n\tgot: %s\n",
16914 DB_VERSION_STRING, version);
16920 #if DB_VERSION_MAJOR > 2
16921 db_env_create( NULL, 0 );
16922 #elif DB_VERSION_MAJOR > 1
16923 db_appexit( NULL );
16925 (void) dbopen( NULL, 0, 0, 0, NULL);
16930 if { (eval echo configure:16931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16934 echo "configure: failed program was:" >&5
16935 cat conftest.$ac_ext >&5
16945 echo "$ac_t""$ol_cv_db_db4" 1>&6
16947 if test $ol_cv_db_db4 = yes ; then
16952 if test $ol_cv_lib_db = no ; then
16953 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16954 echo "configure:16955: checking for Berkeley DB link (-ldb-4)" >&5
16955 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16956 echo $ac_n "(cached) $ac_c" 1>&6
16961 LIBS="$ol_DB_LIB $LIBS"
16963 cat > conftest.$ac_ext <<EOF
16964 #line 16965 "configure"
16965 #include "confdefs.h"
16967 #ifdef HAVE_DB_185_H
16968 # include <db_185.h>
16973 #ifndef DB_VERSION_MAJOR
16974 # define DB_VERSION_MAJOR 1
16978 #define NULL ((void*)0)
16983 #if DB_VERSION_MAJOR > 1
16986 int major, minor, patch;
16988 version = db_version( &major, &minor, &patch );
16990 if( major != DB_VERSION_MAJOR ||
16991 minor < DB_VERSION_MINOR )
16993 printf("Berkeley DB version mismatch\n"
16994 "\texpected: %s\n\tgot: %s\n",
16995 DB_VERSION_STRING, version);
17001 #if DB_VERSION_MAJOR > 2
17002 db_env_create( NULL, 0 );
17003 #elif DB_VERSION_MAJOR > 1
17004 db_appexit( NULL );
17006 (void) dbopen( NULL, 0, 0, 0, NULL);
17011 if { (eval echo configure:17012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17026 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17028 if test $ol_cv_db_db_4 = yes ; then
17029 ol_cv_lib_db=-ldb-4
17033 if test $ol_cv_lib_db = no ; then
17034 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17035 echo "configure:17036: checking for Berkeley DB link (-ldb)" >&5
17036 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17037 echo $ac_n "(cached) $ac_c" 1>&6
17042 LIBS="$ol_DB_LIB $LIBS"
17044 cat > conftest.$ac_ext <<EOF
17045 #line 17046 "configure"
17046 #include "confdefs.h"
17048 #ifdef HAVE_DB_185_H
17049 # include <db_185.h>
17054 #ifndef DB_VERSION_MAJOR
17055 # define DB_VERSION_MAJOR 1
17059 #define NULL ((void*)0)
17064 #if DB_VERSION_MAJOR > 1
17067 int major, minor, patch;
17069 version = db_version( &major, &minor, &patch );
17071 if( major != DB_VERSION_MAJOR ||
17072 minor < DB_VERSION_MINOR )
17074 printf("Berkeley DB version mismatch\n"
17075 "\texpected: %s\n\tgot: %s\n",
17076 DB_VERSION_STRING, version);
17082 #if DB_VERSION_MAJOR > 2
17083 db_env_create( NULL, 0 );
17084 #elif DB_VERSION_MAJOR > 1
17085 db_appexit( NULL );
17087 (void) dbopen( NULL, 0, 0, 0, NULL);
17092 if { (eval echo configure:17093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17096 echo "configure: failed program was:" >&5
17097 cat conftest.$ac_ext >&5
17107 echo "$ac_t""$ol_cv_db_db" 1>&6
17109 if test $ol_cv_db_db = yes ; then
17114 if test $ol_cv_lib_db = no ; then
17115 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17116 echo "configure:17117: checking for Berkeley DB link (-ldb3)" >&5
17117 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17118 echo $ac_n "(cached) $ac_c" 1>&6
17123 LIBS="$ol_DB_LIB $LIBS"
17125 cat > conftest.$ac_ext <<EOF
17126 #line 17127 "configure"
17127 #include "confdefs.h"
17129 #ifdef HAVE_DB_185_H
17130 # include <db_185.h>
17135 #ifndef DB_VERSION_MAJOR
17136 # define DB_VERSION_MAJOR 1
17140 #define NULL ((void*)0)
17145 #if DB_VERSION_MAJOR > 1
17148 int major, minor, patch;
17150 version = db_version( &major, &minor, &patch );
17152 if( major != DB_VERSION_MAJOR ||
17153 minor < DB_VERSION_MINOR )
17155 printf("Berkeley DB version mismatch\n"
17156 "\texpected: %s\n\tgot: %s\n",
17157 DB_VERSION_STRING, version);
17163 #if DB_VERSION_MAJOR > 2
17164 db_env_create( NULL, 0 );
17165 #elif DB_VERSION_MAJOR > 1
17166 db_appexit( NULL );
17168 (void) dbopen( NULL, 0, 0, 0, NULL);
17173 if { (eval echo configure:17174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17177 echo "configure: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17188 echo "$ac_t""$ol_cv_db_db3" 1>&6
17190 if test $ol_cv_db_db3 = yes ; then
17195 if test $ol_cv_lib_db = no ; then
17196 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17197 echo "configure:17198: checking for Berkeley DB link (-ldb-3)" >&5
17198 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17199 echo $ac_n "(cached) $ac_c" 1>&6
17204 LIBS="$ol_DB_LIB $LIBS"
17206 cat > conftest.$ac_ext <<EOF
17207 #line 17208 "configure"
17208 #include "confdefs.h"
17210 #ifdef HAVE_DB_185_H
17211 # include <db_185.h>
17216 #ifndef DB_VERSION_MAJOR
17217 # define DB_VERSION_MAJOR 1
17221 #define NULL ((void*)0)
17226 #if DB_VERSION_MAJOR > 1
17229 int major, minor, patch;
17231 version = db_version( &major, &minor, &patch );
17233 if( major != DB_VERSION_MAJOR ||
17234 minor < DB_VERSION_MINOR )
17236 printf("Berkeley DB version mismatch\n"
17237 "\texpected: %s\n\tgot: %s\n",
17238 DB_VERSION_STRING, version);
17244 #if DB_VERSION_MAJOR > 2
17245 db_env_create( NULL, 0 );
17246 #elif DB_VERSION_MAJOR > 1
17247 db_appexit( NULL );
17249 (void) dbopen( NULL, 0, 0, 0, NULL);
17254 if { (eval echo configure:17255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17258 echo "configure: failed program was:" >&5
17259 cat conftest.$ac_ext >&5
17269 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17271 if test $ol_cv_db_db_3 = yes ; then
17272 ol_cv_lib_db=-ldb-3
17276 if test $ol_cv_lib_db = no ; then
17277 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17278 echo "configure:17279: checking for Berkeley DB link (-ldb2)" >&5
17279 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17280 echo $ac_n "(cached) $ac_c" 1>&6
17285 LIBS="$ol_DB_LIB $LIBS"
17287 cat > conftest.$ac_ext <<EOF
17288 #line 17289 "configure"
17289 #include "confdefs.h"
17291 #ifdef HAVE_DB_185_H
17292 # include <db_185.h>
17297 #ifndef DB_VERSION_MAJOR
17298 # define DB_VERSION_MAJOR 1
17302 #define NULL ((void*)0)
17307 #if DB_VERSION_MAJOR > 1
17310 int major, minor, patch;
17312 version = db_version( &major, &minor, &patch );
17314 if( major != DB_VERSION_MAJOR ||
17315 minor < DB_VERSION_MINOR )
17317 printf("Berkeley DB version mismatch\n"
17318 "\texpected: %s\n\tgot: %s\n",
17319 DB_VERSION_STRING, version);
17325 #if DB_VERSION_MAJOR > 2
17326 db_env_create( NULL, 0 );
17327 #elif DB_VERSION_MAJOR > 1
17328 db_appexit( NULL );
17330 (void) dbopen( NULL, 0, 0, 0, NULL);
17335 if { (eval echo configure:17336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17339 echo "configure: failed program was:" >&5
17340 cat conftest.$ac_ext >&5
17350 echo "$ac_t""$ol_cv_db_db2" 1>&6
17352 if test $ol_cv_db_db2 = yes ; then
17357 if test $ol_cv_lib_db = no ; then
17358 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17359 echo "configure:17360: checking for Berkeley DB link (-ldb-2)" >&5
17360 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17361 echo $ac_n "(cached) $ac_c" 1>&6
17366 LIBS="$ol_DB_LIB $LIBS"
17368 cat > conftest.$ac_ext <<EOF
17369 #line 17370 "configure"
17370 #include "confdefs.h"
17372 #ifdef HAVE_DB_185_H
17373 # include <db_185.h>
17378 #ifndef DB_VERSION_MAJOR
17379 # define DB_VERSION_MAJOR 1
17383 #define NULL ((void*)0)
17388 #if DB_VERSION_MAJOR > 1
17391 int major, minor, patch;
17393 version = db_version( &major, &minor, &patch );
17395 if( major != DB_VERSION_MAJOR ||
17396 minor < DB_VERSION_MINOR )
17398 printf("Berkeley DB version mismatch\n"
17399 "\texpected: %s\n\tgot: %s\n",
17400 DB_VERSION_STRING, version);
17406 #if DB_VERSION_MAJOR > 2
17407 db_env_create( NULL, 0 );
17408 #elif DB_VERSION_MAJOR > 1
17409 db_appexit( NULL );
17411 (void) dbopen( NULL, 0, 0, 0, NULL);
17416 if { (eval echo configure:17417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17420 echo "configure: failed program was:" >&5
17421 cat conftest.$ac_ext >&5
17431 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17433 if test $ol_cv_db_db_2 = yes ; then
17434 ol_cv_lib_db=-ldb-2
17438 if test $ol_cv_lib_db = no ; then
17439 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17440 echo "configure:17441: checking for Berkeley DB link (-ldb1)" >&5
17441 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17442 echo $ac_n "(cached) $ac_c" 1>&6
17447 LIBS="$ol_DB_LIB $LIBS"
17449 cat > conftest.$ac_ext <<EOF
17450 #line 17451 "configure"
17451 #include "confdefs.h"
17453 #ifdef HAVE_DB_185_H
17454 # include <db_185.h>
17459 #ifndef DB_VERSION_MAJOR
17460 # define DB_VERSION_MAJOR 1
17464 #define NULL ((void*)0)
17469 #if DB_VERSION_MAJOR > 1
17472 int major, minor, patch;
17474 version = db_version( &major, &minor, &patch );
17476 if( major != DB_VERSION_MAJOR ||
17477 minor < DB_VERSION_MINOR )
17479 printf("Berkeley DB version mismatch\n"
17480 "\texpected: %s\n\tgot: %s\n",
17481 DB_VERSION_STRING, version);
17487 #if DB_VERSION_MAJOR > 2
17488 db_env_create( NULL, 0 );
17489 #elif DB_VERSION_MAJOR > 1
17490 db_appexit( NULL );
17492 (void) dbopen( NULL, 0, 0, 0, NULL);
17497 if { (eval echo configure:17498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17501 echo "configure: failed program was:" >&5
17502 cat conftest.$ac_ext >&5
17512 echo "$ac_t""$ol_cv_db_db1" 1>&6
17514 if test $ol_cv_db_db1 = yes ; then
17519 if test $ol_cv_lib_db = no ; then
17520 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17521 echo "configure:17522: checking for Berkeley DB link (-ldb-1)" >&5
17522 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17523 echo $ac_n "(cached) $ac_c" 1>&6
17528 LIBS="$ol_DB_LIB $LIBS"
17530 cat > conftest.$ac_ext <<EOF
17531 #line 17532 "configure"
17532 #include "confdefs.h"
17534 #ifdef HAVE_DB_185_H
17535 # include <db_185.h>
17540 #ifndef DB_VERSION_MAJOR
17541 # define DB_VERSION_MAJOR 1
17545 #define NULL ((void*)0)
17550 #if DB_VERSION_MAJOR > 1
17553 int major, minor, patch;
17555 version = db_version( &major, &minor, &patch );
17557 if( major != DB_VERSION_MAJOR ||
17558 minor < DB_VERSION_MINOR )
17560 printf("Berkeley DB version mismatch\n"
17561 "\texpected: %s\n\tgot: %s\n",
17562 DB_VERSION_STRING, version);
17568 #if DB_VERSION_MAJOR > 2
17569 db_env_create( NULL, 0 );
17570 #elif DB_VERSION_MAJOR > 1
17571 db_appexit( NULL );
17573 (void) dbopen( NULL, 0, 0, 0, NULL);
17578 if { (eval echo configure:17579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17582 echo "configure: failed program was:" >&5
17583 cat conftest.$ac_ext >&5
17593 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17595 if test $ol_cv_db_db_1 = yes ; then
17596 ol_cv_lib_db=-ldb-1
17601 if test "$ol_cv_lib_db" != no ; then
17602 ol_cv_berkeley_db=yes
17608 ol_cv_berkeley_db=no
17611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17613 echo "configure:17614: checking for $ac_hdr" >&5
17614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17615 echo $ac_n "(cached) $ac_c" 1>&6
17617 cat > conftest.$ac_ext <<EOF
17618 #line 17619 "configure"
17619 #include "confdefs.h"
17622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17623 { (eval echo configure:17624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17625 if test -z "$ac_err"; then
17627 eval "ac_cv_header_$ac_safe=yes"
17630 echo "configure: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17633 eval "ac_cv_header_$ac_safe=no"
17637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17638 echo "$ac_t""yes" 1>&6
17639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17640 cat >> confdefs.h <<EOF
17641 #define $ac_tr_hdr 1
17645 echo "$ac_t""no" 1>&6
17649 if test $ac_cv_header_db_h = yes; then
17651 if test $ol_cv_lib_db = no ; then
17652 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17653 echo "configure:17654: checking for Berkeley DB link (default)" >&5
17654 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17655 echo $ac_n "(cached) $ac_c" 1>&6
17660 LIBS="$ol_DB_LIB $LIBS"
17662 cat > conftest.$ac_ext <<EOF
17663 #line 17664 "configure"
17664 #include "confdefs.h"
17666 #ifdef HAVE_DB_185_H
17667 # include <db_185.h>
17672 #ifndef DB_VERSION_MAJOR
17673 # define DB_VERSION_MAJOR 1
17677 #define NULL ((void*)0)
17682 #if DB_VERSION_MAJOR > 1
17685 int major, minor, patch;
17687 version = db_version( &major, &minor, &patch );
17689 if( major != DB_VERSION_MAJOR ||
17690 minor < DB_VERSION_MINOR )
17692 printf("Berkeley DB version mismatch\n"
17693 "\texpected: %s\n\tgot: %s\n",
17694 DB_VERSION_STRING, version);
17700 #if DB_VERSION_MAJOR > 2
17701 db_env_create( NULL, 0 );
17702 #elif DB_VERSION_MAJOR > 1
17703 db_appexit( NULL );
17705 (void) dbopen( NULL, 0, 0, 0, NULL);
17710 if { (eval echo configure:17711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17714 echo "configure: failed program was:" >&5
17715 cat conftest.$ac_ext >&5
17725 echo "$ac_t""$ol_cv_db_none" 1>&6
17727 if test $ol_cv_db_none = yes ; then
17732 if test $ol_cv_lib_db = no ; then
17733 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17734 echo "configure:17735: checking for Berkeley DB link (-ldb4)" >&5
17735 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17736 echo $ac_n "(cached) $ac_c" 1>&6
17741 LIBS="$ol_DB_LIB $LIBS"
17743 cat > conftest.$ac_ext <<EOF
17744 #line 17745 "configure"
17745 #include "confdefs.h"
17747 #ifdef HAVE_DB_185_H
17748 # include <db_185.h>
17753 #ifndef DB_VERSION_MAJOR
17754 # define DB_VERSION_MAJOR 1
17758 #define NULL ((void*)0)
17763 #if DB_VERSION_MAJOR > 1
17766 int major, minor, patch;
17768 version = db_version( &major, &minor, &patch );
17770 if( major != DB_VERSION_MAJOR ||
17771 minor < DB_VERSION_MINOR )
17773 printf("Berkeley DB version mismatch\n"
17774 "\texpected: %s\n\tgot: %s\n",
17775 DB_VERSION_STRING, version);
17781 #if DB_VERSION_MAJOR > 2
17782 db_env_create( NULL, 0 );
17783 #elif DB_VERSION_MAJOR > 1
17784 db_appexit( NULL );
17786 (void) dbopen( NULL, 0, 0, 0, NULL);
17791 if { (eval echo configure:17792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17795 echo "configure: failed program was:" >&5
17796 cat conftest.$ac_ext >&5
17806 echo "$ac_t""$ol_cv_db_db4" 1>&6
17808 if test $ol_cv_db_db4 = yes ; then
17813 if test $ol_cv_lib_db = no ; then
17814 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17815 echo "configure:17816: checking for Berkeley DB link (-ldb-4)" >&5
17816 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17817 echo $ac_n "(cached) $ac_c" 1>&6
17822 LIBS="$ol_DB_LIB $LIBS"
17824 cat > conftest.$ac_ext <<EOF
17825 #line 17826 "configure"
17826 #include "confdefs.h"
17828 #ifdef HAVE_DB_185_H
17829 # include <db_185.h>
17834 #ifndef DB_VERSION_MAJOR
17835 # define DB_VERSION_MAJOR 1
17839 #define NULL ((void*)0)
17844 #if DB_VERSION_MAJOR > 1
17847 int major, minor, patch;
17849 version = db_version( &major, &minor, &patch );
17851 if( major != DB_VERSION_MAJOR ||
17852 minor < DB_VERSION_MINOR )
17854 printf("Berkeley DB version mismatch\n"
17855 "\texpected: %s\n\tgot: %s\n",
17856 DB_VERSION_STRING, version);
17862 #if DB_VERSION_MAJOR > 2
17863 db_env_create( NULL, 0 );
17864 #elif DB_VERSION_MAJOR > 1
17865 db_appexit( NULL );
17867 (void) dbopen( NULL, 0, 0, 0, NULL);
17872 if { (eval echo configure:17873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17876 echo "configure: failed program was:" >&5
17877 cat conftest.$ac_ext >&5
17887 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17889 if test $ol_cv_db_db_4 = yes ; then
17890 ol_cv_lib_db=-ldb-4
17894 if test $ol_cv_lib_db = no ; then
17895 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17896 echo "configure:17897: checking for Berkeley DB link (-ldb)" >&5
17897 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17898 echo $ac_n "(cached) $ac_c" 1>&6
17903 LIBS="$ol_DB_LIB $LIBS"
17905 cat > conftest.$ac_ext <<EOF
17906 #line 17907 "configure"
17907 #include "confdefs.h"
17909 #ifdef HAVE_DB_185_H
17910 # include <db_185.h>
17915 #ifndef DB_VERSION_MAJOR
17916 # define DB_VERSION_MAJOR 1
17920 #define NULL ((void*)0)
17925 #if DB_VERSION_MAJOR > 1
17928 int major, minor, patch;
17930 version = db_version( &major, &minor, &patch );
17932 if( major != DB_VERSION_MAJOR ||
17933 minor < DB_VERSION_MINOR )
17935 printf("Berkeley DB version mismatch\n"
17936 "\texpected: %s\n\tgot: %s\n",
17937 DB_VERSION_STRING, version);
17943 #if DB_VERSION_MAJOR > 2
17944 db_env_create( NULL, 0 );
17945 #elif DB_VERSION_MAJOR > 1
17946 db_appexit( NULL );
17948 (void) dbopen( NULL, 0, 0, 0, NULL);
17953 if { (eval echo configure:17954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17957 echo "configure: failed program was:" >&5
17958 cat conftest.$ac_ext >&5
17968 echo "$ac_t""$ol_cv_db_db" 1>&6
17970 if test $ol_cv_db_db = yes ; then
17975 if test $ol_cv_lib_db = no ; then
17976 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17977 echo "configure:17978: checking for Berkeley DB link (-ldb3)" >&5
17978 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17979 echo $ac_n "(cached) $ac_c" 1>&6
17984 LIBS="$ol_DB_LIB $LIBS"
17986 cat > conftest.$ac_ext <<EOF
17987 #line 17988 "configure"
17988 #include "confdefs.h"
17990 #ifdef HAVE_DB_185_H
17991 # include <db_185.h>
17996 #ifndef DB_VERSION_MAJOR
17997 # define DB_VERSION_MAJOR 1
18001 #define NULL ((void*)0)
18006 #if DB_VERSION_MAJOR > 1
18009 int major, minor, patch;
18011 version = db_version( &major, &minor, &patch );
18013 if( major != DB_VERSION_MAJOR ||
18014 minor < DB_VERSION_MINOR )
18016 printf("Berkeley DB version mismatch\n"
18017 "\texpected: %s\n\tgot: %s\n",
18018 DB_VERSION_STRING, version);
18024 #if DB_VERSION_MAJOR > 2
18025 db_env_create( NULL, 0 );
18026 #elif DB_VERSION_MAJOR > 1
18027 db_appexit( NULL );
18029 (void) dbopen( NULL, 0, 0, 0, NULL);
18034 if { (eval echo configure:18035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18038 echo "configure: failed program was:" >&5
18039 cat conftest.$ac_ext >&5
18049 echo "$ac_t""$ol_cv_db_db3" 1>&6
18051 if test $ol_cv_db_db3 = yes ; then
18056 if test $ol_cv_lib_db = no ; then
18057 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18058 echo "configure:18059: checking for Berkeley DB link (-ldb-3)" >&5
18059 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18060 echo $ac_n "(cached) $ac_c" 1>&6
18065 LIBS="$ol_DB_LIB $LIBS"
18067 cat > conftest.$ac_ext <<EOF
18068 #line 18069 "configure"
18069 #include "confdefs.h"
18071 #ifdef HAVE_DB_185_H
18072 # include <db_185.h>
18077 #ifndef DB_VERSION_MAJOR
18078 # define DB_VERSION_MAJOR 1
18082 #define NULL ((void*)0)
18087 #if DB_VERSION_MAJOR > 1
18090 int major, minor, patch;
18092 version = db_version( &major, &minor, &patch );
18094 if( major != DB_VERSION_MAJOR ||
18095 minor < DB_VERSION_MINOR )
18097 printf("Berkeley DB version mismatch\n"
18098 "\texpected: %s\n\tgot: %s\n",
18099 DB_VERSION_STRING, version);
18105 #if DB_VERSION_MAJOR > 2
18106 db_env_create( NULL, 0 );
18107 #elif DB_VERSION_MAJOR > 1
18108 db_appexit( NULL );
18110 (void) dbopen( NULL, 0, 0, 0, NULL);
18115 if { (eval echo configure:18116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18119 echo "configure: failed program was:" >&5
18120 cat conftest.$ac_ext >&5
18130 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18132 if test $ol_cv_db_db_3 = yes ; then
18133 ol_cv_lib_db=-ldb-3
18137 if test $ol_cv_lib_db = no ; then
18138 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18139 echo "configure:18140: checking for Berkeley DB link (-ldb2)" >&5
18140 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18141 echo $ac_n "(cached) $ac_c" 1>&6
18146 LIBS="$ol_DB_LIB $LIBS"
18148 cat > conftest.$ac_ext <<EOF
18149 #line 18150 "configure"
18150 #include "confdefs.h"
18152 #ifdef HAVE_DB_185_H
18153 # include <db_185.h>
18158 #ifndef DB_VERSION_MAJOR
18159 # define DB_VERSION_MAJOR 1
18163 #define NULL ((void*)0)
18168 #if DB_VERSION_MAJOR > 1
18171 int major, minor, patch;
18173 version = db_version( &major, &minor, &patch );
18175 if( major != DB_VERSION_MAJOR ||
18176 minor < DB_VERSION_MINOR )
18178 printf("Berkeley DB version mismatch\n"
18179 "\texpected: %s\n\tgot: %s\n",
18180 DB_VERSION_STRING, version);
18186 #if DB_VERSION_MAJOR > 2
18187 db_env_create( NULL, 0 );
18188 #elif DB_VERSION_MAJOR > 1
18189 db_appexit( NULL );
18191 (void) dbopen( NULL, 0, 0, 0, NULL);
18196 if { (eval echo configure:18197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18200 echo "configure: failed program was:" >&5
18201 cat conftest.$ac_ext >&5
18211 echo "$ac_t""$ol_cv_db_db2" 1>&6
18213 if test $ol_cv_db_db2 = yes ; then
18218 if test $ol_cv_lib_db = no ; then
18219 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18220 echo "configure:18221: checking for Berkeley DB link (-ldb-2)" >&5
18221 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18222 echo $ac_n "(cached) $ac_c" 1>&6
18227 LIBS="$ol_DB_LIB $LIBS"
18229 cat > conftest.$ac_ext <<EOF
18230 #line 18231 "configure"
18231 #include "confdefs.h"
18233 #ifdef HAVE_DB_185_H
18234 # include <db_185.h>
18239 #ifndef DB_VERSION_MAJOR
18240 # define DB_VERSION_MAJOR 1
18244 #define NULL ((void*)0)
18249 #if DB_VERSION_MAJOR > 1
18252 int major, minor, patch;
18254 version = db_version( &major, &minor, &patch );
18256 if( major != DB_VERSION_MAJOR ||
18257 minor < DB_VERSION_MINOR )
18259 printf("Berkeley DB version mismatch\n"
18260 "\texpected: %s\n\tgot: %s\n",
18261 DB_VERSION_STRING, version);
18267 #if DB_VERSION_MAJOR > 2
18268 db_env_create( NULL, 0 );
18269 #elif DB_VERSION_MAJOR > 1
18270 db_appexit( NULL );
18272 (void) dbopen( NULL, 0, 0, 0, NULL);
18277 if { (eval echo configure:18278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18281 echo "configure: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18292 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18294 if test $ol_cv_db_db_2 = yes ; then
18295 ol_cv_lib_db=-ldb-2
18299 if test $ol_cv_lib_db = no ; then
18300 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18301 echo "configure:18302: checking for Berkeley DB link (-ldb1)" >&5
18302 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18303 echo $ac_n "(cached) $ac_c" 1>&6
18308 LIBS="$ol_DB_LIB $LIBS"
18310 cat > conftest.$ac_ext <<EOF
18311 #line 18312 "configure"
18312 #include "confdefs.h"
18314 #ifdef HAVE_DB_185_H
18315 # include <db_185.h>
18320 #ifndef DB_VERSION_MAJOR
18321 # define DB_VERSION_MAJOR 1
18325 #define NULL ((void*)0)
18330 #if DB_VERSION_MAJOR > 1
18333 int major, minor, patch;
18335 version = db_version( &major, &minor, &patch );
18337 if( major != DB_VERSION_MAJOR ||
18338 minor < DB_VERSION_MINOR )
18340 printf("Berkeley DB version mismatch\n"
18341 "\texpected: %s\n\tgot: %s\n",
18342 DB_VERSION_STRING, version);
18348 #if DB_VERSION_MAJOR > 2
18349 db_env_create( NULL, 0 );
18350 #elif DB_VERSION_MAJOR > 1
18351 db_appexit( NULL );
18353 (void) dbopen( NULL, 0, 0, 0, NULL);
18358 if { (eval echo configure:18359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18362 echo "configure: failed program was:" >&5
18363 cat conftest.$ac_ext >&5
18373 echo "$ac_t""$ol_cv_db_db1" 1>&6
18375 if test $ol_cv_db_db1 = yes ; then
18380 if test $ol_cv_lib_db = no ; then
18381 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18382 echo "configure:18383: checking for Berkeley DB link (-ldb-1)" >&5
18383 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18384 echo $ac_n "(cached) $ac_c" 1>&6
18389 LIBS="$ol_DB_LIB $LIBS"
18391 cat > conftest.$ac_ext <<EOF
18392 #line 18393 "configure"
18393 #include "confdefs.h"
18395 #ifdef HAVE_DB_185_H
18396 # include <db_185.h>
18401 #ifndef DB_VERSION_MAJOR
18402 # define DB_VERSION_MAJOR 1
18406 #define NULL ((void*)0)
18411 #if DB_VERSION_MAJOR > 1
18414 int major, minor, patch;
18416 version = db_version( &major, &minor, &patch );
18418 if( major != DB_VERSION_MAJOR ||
18419 minor < DB_VERSION_MINOR )
18421 printf("Berkeley DB version mismatch\n"
18422 "\texpected: %s\n\tgot: %s\n",
18423 DB_VERSION_STRING, version);
18429 #if DB_VERSION_MAJOR > 2
18430 db_env_create( NULL, 0 );
18431 #elif DB_VERSION_MAJOR > 1
18432 db_appexit( NULL );
18434 (void) dbopen( NULL, 0, 0, 0, NULL);
18439 if { (eval echo configure:18440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18443 echo "configure: failed program was:" >&5
18444 cat conftest.$ac_ext >&5
18454 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18456 if test $ol_cv_db_db_1 = yes ; then
18457 ol_cv_lib_db=-ldb-1
18462 if test "$ol_cv_lib_db" != no ; then
18463 ol_cv_berkeley_db=yes
18464 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18465 echo "configure:18466: checking for Berkeley DB thread support" >&5
18466 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18467 echo $ac_n "(cached) $ac_c" 1>&6
18471 if test $ol_cv_lib_db != yes ; then
18472 LIBS="$ol_cv_lib_db"
18475 if test "$cross_compiling" = yes; then
18476 ol_cv_berkeley_db_thread=cross
18478 cat > conftest.$ac_ext <<EOF
18479 #line 18480 "configure"
18480 #include "confdefs.h"
18482 #ifdef HAVE_DB_185_H
18488 #define NULL ((void *)0)
18493 u_int32_t flags = DB_CREATE |
18499 #if DB_VERSION_MAJOR > 2
18500 DB_ENV *env = NULL;
18502 rc = db_env_create( &env, 0 );
18504 flags |= DB_INIT_MPOOL;
18505 #ifdef DB_MPOOL_PRIVATE
18506 flags |= DB_MPOOL_PRIVATE;
18510 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18514 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18515 rc = env->open( env, NULL, flags, 0 );
18517 rc = env->open( env, NULL, NULL, flags, 0 );
18521 rc = env->close( env, 0 );
18525 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18531 memset( &env, '\0', sizeof(env) );
18533 rc = db_appinit( NULL, NULL, &env, flags );
18536 db_appexit( &env );
18539 unlink("__db_mpool.share");
18540 unlink("__db_lock.share");
18546 if { (eval echo configure:18547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18548 ol_cv_berkeley_db_thread=yes
18550 echo "configure: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18553 ol_cv_berkeley_db_thread=no
18563 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18565 if test $ol_cv_berkeley_db_thread != no ; then
18566 cat >> confdefs.h <<\EOF
18567 #define HAVE_BERKELEY_DB_THREAD 1
18577 if test $ol_cv_berkeley_db != no ; then
18578 cat >> confdefs.h <<\EOF
18579 #define HAVE_BERKELEY_DB 1
18583 ol_link_ldbm=berkeley
18584 ol_with_ldbm_api=berkeley
18586 if test $ol_with_ldbm_type = hash ; then
18587 cat >> confdefs.h <<\EOF
18588 #define LDBM_USE_DBHASH 1
18592 cat >> confdefs.h <<\EOF
18593 #define LDBM_USE_DBBTREE 1
18598 if test $ol_cv_lib_db != yes ; then
18599 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18604 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18605 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18606 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18607 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18608 echo "configure:18609: checking Berkeley DB version for BDB backend" >&5
18609 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18610 echo $ac_n "(cached) $ac_c" 1>&6
18613 cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18619 /* this check could be improved */
18620 #ifndef DB_VERSION_MAJOR
18621 # define DB_VERSION_MAJOR 1
18624 /* require 4.0 or later */
18625 #if DB_VERSION_MAJOR >= 4
18626 __db_version_compat
18630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18631 egrep "__db_version_compat" >/dev/null 2>&1; then
18633 ol_cv_bdb_compat=yes
18636 ol_cv_bdb_compat=no
18642 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18645 if test $ol_cv_bdb_compat = yes ; then
18647 elif test $ol_enable_bdb = yes ; then
18648 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18654 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18655 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18656 ol_with_ldbm_api=none
18659 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18660 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18661 echo "configure:18662: checking for MDBM library" >&5
18662 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18663 echo $ac_n "(cached) $ac_c" 1>&6
18666 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18667 echo "configure:18668: checking for mdbm_set_chain" >&5
18668 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18669 echo $ac_n "(cached) $ac_c" 1>&6
18671 cat > conftest.$ac_ext <<EOF
18672 #line 18673 "configure"
18673 #include "confdefs.h"
18674 /* System header to define __stub macros and hopefully few prototypes,
18675 which can conflict with char mdbm_set_chain(); below. */
18676 #include <assert.h>
18677 /* Override any gcc2 internal prototype to avoid an error. */
18678 /* We use char because int might match the return type of a gcc2
18679 builtin and then its argument prototype would still apply. */
18680 char mdbm_set_chain();
18685 /* The GNU C library defines this for functions which it implements
18686 to always fail with ENOSYS. Some functions are actually named
18687 something starting with __ and the normal name is an alias. */
18688 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18691 f = mdbm_set_chain;
18696 if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18698 eval "ac_cv_func_mdbm_set_chain=yes"
18700 echo "configure: failed program was:" >&5
18701 cat conftest.$ac_ext >&5
18703 eval "ac_cv_func_mdbm_set_chain=no"
18708 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18709 echo "$ac_t""yes" 1>&6
18712 echo "$ac_t""no" 1>&6
18714 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18715 echo "configure:18716: checking for mdbm_set_chain in -lmdbm" >&5
18716 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18717 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18718 echo $ac_n "(cached) $ac_c" 1>&6
18720 ac_save_LIBS="$LIBS"
18721 LIBS="-lmdbm $LIBS"
18722 cat > conftest.$ac_ext <<EOF
18723 #line 18724 "configure"
18724 #include "confdefs.h"
18725 /* Override any gcc2 internal prototype to avoid an error. */
18726 /* We use char because int might match the return type of a gcc2
18727 builtin and then its argument prototype would still apply. */
18728 char mdbm_set_chain();
18734 if { (eval echo configure:18735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18736 eval "ac_cv_lib_$ac_lib_var=yes"
18738 echo "configure: failed program was:" >&5
18739 cat conftest.$ac_ext >&5
18741 eval "ac_cv_lib_$ac_lib_var=no"
18744 LIBS="$ac_save_LIBS"
18747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18748 echo "$ac_t""yes" 1>&6
18749 ol_cv_lib_mdbm=-lmdbm
18751 echo "$ac_t""no" 1>&6
18762 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18765 for ac_hdr in mdbm.h
18767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18769 echo "configure:18770: checking for $ac_hdr" >&5
18770 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18771 echo $ac_n "(cached) $ac_c" 1>&6
18773 cat > conftest.$ac_ext <<EOF
18774 #line 18775 "configure"
18775 #include "confdefs.h"
18778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18779 { (eval echo configure:18780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18781 if test -z "$ac_err"; then
18783 eval "ac_cv_header_$ac_safe=yes"
18786 echo "configure: failed program was:" >&5
18787 cat conftest.$ac_ext >&5
18789 eval "ac_cv_header_$ac_safe=no"
18793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18794 echo "$ac_t""yes" 1>&6
18795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18796 cat >> confdefs.h <<EOF
18797 #define $ac_tr_hdr 1
18801 echo "$ac_t""no" 1>&6
18805 echo $ac_n "checking for db""... $ac_c" 1>&6
18806 echo "configure:18807: checking for db" >&5
18807 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18808 echo $ac_n "(cached) $ac_c" 1>&6
18811 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18819 echo "$ac_t""$ol_cv_mdbm" 1>&6
18820 if test $ol_cv_mdbm = yes ; then
18821 cat >> confdefs.h <<\EOF
18822 #define HAVE_MDBM 1
18828 if test $ol_cv_mdbm = yes ; then
18830 ol_with_ldbm_api=mdbm
18831 if test $ol_cv_lib_mdbm != yes ; then
18832 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18837 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18838 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18839 echo "configure:18840: checking for GDBM library" >&5
18840 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18841 echo $ac_n "(cached) $ac_c" 1>&6
18844 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18845 echo "configure:18846: checking for gdbm_open" >&5
18846 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18847 echo $ac_n "(cached) $ac_c" 1>&6
18849 cat > conftest.$ac_ext <<EOF
18850 #line 18851 "configure"
18851 #include "confdefs.h"
18852 /* System header to define __stub macros and hopefully few prototypes,
18853 which can conflict with char gdbm_open(); below. */
18854 #include <assert.h>
18855 /* Override any gcc2 internal prototype to avoid an error. */
18856 /* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18863 /* The GNU C library defines this for functions which it implements
18864 to always fail with ENOSYS. Some functions are actually named
18865 something starting with __ and the normal name is an alias. */
18866 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18874 if { (eval echo configure:18875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18876 eval "ac_cv_func_gdbm_open=yes"
18878 echo "configure: failed program was:" >&5
18879 cat conftest.$ac_ext >&5
18881 eval "ac_cv_func_gdbm_open=no"
18886 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18887 echo "$ac_t""yes" 1>&6
18890 echo "$ac_t""no" 1>&6
18892 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18893 echo "configure:18894: checking for gdbm_open in -lgdbm" >&5
18894 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18896 echo $ac_n "(cached) $ac_c" 1>&6
18898 ac_save_LIBS="$LIBS"
18899 LIBS="-lgdbm $LIBS"
18900 cat > conftest.$ac_ext <<EOF
18901 #line 18902 "configure"
18902 #include "confdefs.h"
18903 /* Override any gcc2 internal prototype to avoid an error. */
18904 /* We use char because int might match the return type of a gcc2
18905 builtin and then its argument prototype would still apply. */
18912 if { (eval echo configure:18913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18914 eval "ac_cv_lib_$ac_lib_var=yes"
18916 echo "configure: failed program was:" >&5
18917 cat conftest.$ac_ext >&5
18919 eval "ac_cv_lib_$ac_lib_var=no"
18922 LIBS="$ac_save_LIBS"
18925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18926 echo "$ac_t""yes" 1>&6
18927 ol_cv_lib_gdbm=-lgdbm
18929 echo "$ac_t""no" 1>&6
18940 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18943 for ac_hdr in gdbm.h
18945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18947 echo "configure:18948: checking for $ac_hdr" >&5
18948 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18949 echo $ac_n "(cached) $ac_c" 1>&6
18951 cat > conftest.$ac_ext <<EOF
18952 #line 18953 "configure"
18953 #include "confdefs.h"
18956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18957 { (eval echo configure:18958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18959 if test -z "$ac_err"; then
18961 eval "ac_cv_header_$ac_safe=yes"
18964 echo "configure: failed program was:" >&5
18965 cat conftest.$ac_ext >&5
18967 eval "ac_cv_header_$ac_safe=no"
18971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18972 echo "$ac_t""yes" 1>&6
18973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18974 cat >> confdefs.h <<EOF
18975 #define $ac_tr_hdr 1
18979 echo "$ac_t""no" 1>&6
18983 echo $ac_n "checking for db""... $ac_c" 1>&6
18984 echo "configure:18985: checking for db" >&5
18985 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18986 echo $ac_n "(cached) $ac_c" 1>&6
18989 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18997 echo "$ac_t""$ol_cv_gdbm" 1>&6
18998 if test $ol_cv_gdbm = yes ; then
18999 cat >> confdefs.h <<\EOF
19000 #define HAVE_GDBM 1
19006 if test $ol_cv_gdbm = yes ; then
19008 ol_with_ldbm_api=gdbm
19010 if test $ol_cv_lib_gdbm != yes ; then
19011 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19016 if test $ol_with_ldbm_api = ndbm ; then
19017 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19018 echo "configure:19019: checking for NDBM library" >&5
19019 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
19023 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19024 echo "configure:19025: checking for dbm_open" >&5
19025 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19026 echo $ac_n "(cached) $ac_c" 1>&6
19028 cat > conftest.$ac_ext <<EOF
19029 #line 19030 "configure"
19030 #include "confdefs.h"
19031 /* System header to define __stub macros and hopefully few prototypes,
19032 which can conflict with char dbm_open(); below. */
19033 #include <assert.h>
19034 /* Override any gcc2 internal prototype to avoid an error. */
19035 /* We use char because int might match the return type of a gcc2
19036 builtin and then its argument prototype would still apply. */
19042 /* The GNU C library defines this for functions which it implements
19043 to always fail with ENOSYS. Some functions are actually named
19044 something starting with __ and the normal name is an alias. */
19045 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19053 if { (eval echo configure:19054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19055 eval "ac_cv_func_dbm_open=yes"
19057 echo "configure: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19060 eval "ac_cv_func_dbm_open=no"
19065 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19066 echo "$ac_t""yes" 1>&6
19069 echo "$ac_t""no" 1>&6
19071 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19072 echo "configure:19073: checking for dbm_open in -lndbm" >&5
19073 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19074 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19075 echo $ac_n "(cached) $ac_c" 1>&6
19077 ac_save_LIBS="$LIBS"
19078 LIBS="-lndbm $LIBS"
19079 cat > conftest.$ac_ext <<EOF
19080 #line 19081 "configure"
19081 #include "confdefs.h"
19082 /* Override any gcc2 internal prototype to avoid an error. */
19083 /* We use char because int might match the return type of a gcc2
19084 builtin and then its argument prototype would still apply. */
19091 if { (eval echo configure:19092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19093 eval "ac_cv_lib_$ac_lib_var=yes"
19095 echo "configure: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19098 eval "ac_cv_lib_$ac_lib_var=no"
19101 LIBS="$ac_save_LIBS"
19104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19105 echo "$ac_t""yes" 1>&6
19106 ol_cv_lib_ndbm=-lndbm
19108 echo "$ac_t""no" 1>&6
19110 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19111 echo "configure:19112: checking for dbm_open in -ldbm" >&5
19112 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19113 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19114 echo $ac_n "(cached) $ac_c" 1>&6
19116 ac_save_LIBS="$LIBS"
19118 cat > conftest.$ac_ext <<EOF
19119 #line 19120 "configure"
19120 #include "confdefs.h"
19121 /* Override any gcc2 internal prototype to avoid an error. */
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19130 if { (eval echo configure:19131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19132 eval "ac_cv_lib_$ac_lib_var=yes"
19134 echo "configure: failed program was:" >&5
19135 cat conftest.$ac_ext >&5
19137 eval "ac_cv_lib_$ac_lib_var=no"
19140 LIBS="$ac_save_LIBS"
19143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19144 echo "$ac_t""yes" 1>&6
19145 ol_cv_lib_ndbm=-ldbm
19147 echo "$ac_t""no" 1>&6
19160 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19163 for ac_hdr in ndbm.h
19165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19167 echo "configure:19168: checking for $ac_hdr" >&5
19168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19169 echo $ac_n "(cached) $ac_c" 1>&6
19171 cat > conftest.$ac_ext <<EOF
19172 #line 19173 "configure"
19173 #include "confdefs.h"
19176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19177 { (eval echo configure:19178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19179 if test -z "$ac_err"; then
19181 eval "ac_cv_header_$ac_safe=yes"
19184 echo "configure: failed program was:" >&5
19185 cat conftest.$ac_ext >&5
19187 eval "ac_cv_header_$ac_safe=no"
19191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19192 echo "$ac_t""yes" 1>&6
19193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19194 cat >> confdefs.h <<EOF
19195 #define $ac_tr_hdr 1
19199 echo "$ac_t""no" 1>&6
19203 echo $ac_n "checking for db""... $ac_c" 1>&6
19204 echo "configure:19205: checking for db" >&5
19205 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19206 echo $ac_n "(cached) $ac_c" 1>&6
19209 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19217 echo "$ac_t""$ol_cv_ndbm" 1>&6
19218 if test $ol_cv_ndbm = yes ; then
19219 cat >> confdefs.h <<\EOF
19220 #define HAVE_NDBM 1
19226 if test $ol_cv_ndbm = yes ; then
19228 ol_with_ldbm_api=ndbm
19230 if test $ol_cv_lib_ndbm != yes ; then
19231 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19236 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19237 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19238 if test $ol_enable_ldbm = yes ; then
19239 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19242 echo "configure: warning: disabling LDBM" 1>&2
19246 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19247 BUILD_LIBS_DYNAMIC=shared
19248 cat >> confdefs.h <<\EOF
19249 #define LDAP_LIBS_DYNAMIC 1
19253 BUILD_LIBS_DYNAMIC=static
19256 if test $ol_enable_wrappers != no ; then
19257 for ac_hdr in tcpd.h
19259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19261 echo "configure:19262: checking for $ac_hdr" >&5
19262 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19263 echo $ac_n "(cached) $ac_c" 1>&6
19265 cat > conftest.$ac_ext <<EOF
19266 #line 19267 "configure"
19267 #include "confdefs.h"
19270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19271 { (eval echo configure:19272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19273 if test -z "$ac_err"; then
19275 eval "ac_cv_header_$ac_safe=yes"
19278 echo "configure: failed program was:" >&5
19279 cat conftest.$ac_ext >&5
19281 eval "ac_cv_header_$ac_safe=no"
19285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19286 echo "$ac_t""yes" 1>&6
19287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19288 cat >> confdefs.h <<EOF
19289 #define $ac_tr_hdr 1
19292 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19293 echo "configure:19294: checking for TCP wrappers library" >&5
19295 LIBS="$LIBS -lwrap"
19296 cat > conftest.$ac_ext <<EOF
19297 #line 19298 "configure"
19298 #include "confdefs.h"
19301 int allow_severity = 0;
19302 int deny_severity = 0;
19304 struct request_info *req;
19312 if { (eval echo configure:19313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19314 echo "$ac_t""-lwrap" 1>&6
19318 echo "configure: failed program was:" >&5
19319 cat conftest.$ac_ext >&5
19323 cat > conftest.$ac_ext <<EOF
19324 #line 19325 "configure"
19325 #include "confdefs.h"
19328 int allow_severity = 0;
19329 int deny_severity = 0;
19331 struct request_info *req;
19339 if { (eval echo configure:19340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19341 echo "$ac_t""-lwrap -lnsl" 1>&6
19343 LIBS="$save_LIBS -lnsl"
19345 echo "configure: failed program was:" >&5
19346 cat conftest.$ac_ext >&5
19349 echo "$ac_t""no" 1>&6
19357 echo "$ac_t""no" 1>&6
19363 if test $have_wrappers = yes ; then
19364 cat >> confdefs.h <<\EOF
19365 #define HAVE_TCPD 1
19369 elif test $ol_enable_wrappers = yes ; then
19370 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19372 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19377 if test $ol_enable_syslog != no ; then
19378 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19379 echo "configure:19380: checking for openlog" >&5
19380 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19381 echo $ac_n "(cached) $ac_c" 1>&6
19383 cat > conftest.$ac_ext <<EOF
19384 #line 19385 "configure"
19385 #include "confdefs.h"
19386 /* System header to define __stub macros and hopefully few prototypes,
19387 which can conflict with char openlog(); below. */
19388 #include <assert.h>
19389 /* Override any gcc2 internal prototype to avoid an error. */
19390 /* We use char because int might match the return type of a gcc2
19391 builtin and then its argument prototype would still apply. */
19397 /* The GNU C library defines this for functions which it implements
19398 to always fail with ENOSYS. Some functions are actually named
19399 something starting with __ and the normal name is an alias. */
19400 #if defined (__stub_openlog) || defined (__stub___openlog)
19408 if { (eval echo configure:19409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19410 eval "ac_cv_func_openlog=yes"
19412 echo "configure: failed program was:" >&5
19413 cat conftest.$ac_ext >&5
19415 eval "ac_cv_func_openlog=no"
19420 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19421 echo "$ac_t""yes" 1>&6
19424 echo "$ac_t""no" 1>&6
19427 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19428 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19430 ol_enable_syslog=$ac_cv_func_openlog
19435 if test $ol_enable_sql != no ; then
19436 for ac_hdr in sql.h sqlext.h
19438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19440 echo "configure:19441: checking for $ac_hdr" >&5
19441 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19442 echo $ac_n "(cached) $ac_c" 1>&6
19444 cat > conftest.$ac_ext <<EOF
19445 #line 19446 "configure"
19446 #include "confdefs.h"
19449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19450 { (eval echo configure:19451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19452 if test -z "$ac_err"; then
19454 eval "ac_cv_header_$ac_safe=yes"
19457 echo "configure: failed program was:" >&5
19458 cat conftest.$ac_ext >&5
19460 eval "ac_cv_header_$ac_safe=no"
19464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19465 echo "$ac_t""yes" 1>&6
19466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19467 cat >> confdefs.h <<EOF
19468 #define $ac_tr_hdr 1
19472 echo "$ac_t""no" 1>&6
19473 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19479 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19480 echo "configure:19481: checking for SQLDriverConnect in -liodbc" >&5
19481 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19483 echo $ac_n "(cached) $ac_c" 1>&6
19485 ac_save_LIBS="$LIBS"
19486 LIBS="-liodbc $LIBS"
19487 cat > conftest.$ac_ext <<EOF
19488 #line 19489 "configure"
19489 #include "confdefs.h"
19490 /* Override any gcc2 internal prototype to avoid an error. */
19491 /* We use char because int might match the return type of a gcc2
19492 builtin and then its argument prototype would still apply. */
19493 char SQLDriverConnect();
19499 if { (eval echo configure:19500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19501 eval "ac_cv_lib_$ac_lib_var=yes"
19503 echo "configure: failed program was:" >&5
19504 cat conftest.$ac_ext >&5
19506 eval "ac_cv_lib_$ac_lib_var=no"
19509 LIBS="$ac_save_LIBS"
19512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19513 echo "$ac_t""yes" 1>&6
19516 echo "$ac_t""no" 1>&6
19520 if test $have_iodbc = yes ; then
19521 ol_link_sql="-liodbc"
19523 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19524 echo "configure:19525: checking for SQLDriverConnect in -lodbc" >&5
19525 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19526 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19527 echo $ac_n "(cached) $ac_c" 1>&6
19529 ac_save_LIBS="$LIBS"
19530 LIBS="-lodbc $LIBS"
19531 cat > conftest.$ac_ext <<EOF
19532 #line 19533 "configure"
19533 #include "confdefs.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 SQLDriverConnect();
19543 if { (eval echo configure:19544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19545 eval "ac_cv_lib_$ac_lib_var=yes"
19547 echo "configure: failed program was:" >&5
19548 cat conftest.$ac_ext >&5
19550 eval "ac_cv_lib_$ac_lib_var=no"
19553 LIBS="$ac_save_LIBS"
19556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19557 echo "$ac_t""yes" 1>&6
19560 echo "$ac_t""no" 1>&6
19564 if test $have_odbc = yes ; then
19565 ol_link_sql="-lodbc"
19569 if test $ol_link_sql != no ; then
19570 SLAPD_SQL_LIBS="$ol_link_sql"
19572 elif test $ol_enable_sql != auto ; then
19573 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19578 for ac_hdr in termcap.h ncurses.h
19580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19582 echo "configure:19583: checking for $ac_hdr" >&5
19583 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19584 echo $ac_n "(cached) $ac_c" 1>&6
19586 cat > conftest.$ac_ext <<EOF
19587 #line 19588 "configure"
19588 #include "confdefs.h"
19591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19592 { (eval echo configure:19593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19594 if test -z "$ac_err"; then
19596 eval "ac_cv_header_$ac_safe=yes"
19599 echo "configure: failed program was:" >&5
19600 cat conftest.$ac_ext >&5
19602 eval "ac_cv_header_$ac_safe=no"
19606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19607 echo "$ac_t""yes" 1>&6
19608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19609 cat >> confdefs.h <<EOF
19610 #define $ac_tr_hdr 1
19614 echo "$ac_t""no" 1>&6
19619 if test $ol_link_termcap = no ; then
19620 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19621 echo "configure:19622: checking for tputs in -ltermcap" >&5
19622 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19624 echo $ac_n "(cached) $ac_c" 1>&6
19626 ac_save_LIBS="$LIBS"
19627 LIBS="-ltermcap $LIBS"
19628 cat > conftest.$ac_ext <<EOF
19629 #line 19630 "configure"
19630 #include "confdefs.h"
19631 /* Override any gcc2 internal prototype to avoid an error. */
19632 /* We use char because int might match the return type of a gcc2
19633 builtin and then its argument prototype would still apply. */
19640 if { (eval echo configure:19641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19642 eval "ac_cv_lib_$ac_lib_var=yes"
19644 echo "configure: failed program was:" >&5
19645 cat conftest.$ac_ext >&5
19647 eval "ac_cv_lib_$ac_lib_var=no"
19650 LIBS="$ac_save_LIBS"
19653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19654 echo "$ac_t""yes" 1>&6
19657 echo "$ac_t""no" 1>&6
19661 if test $have_termcap = yes ; then
19662 cat >> confdefs.h <<\EOF
19663 #define HAVE_TERMCAP 1
19666 ol_link_termcap=yes
19667 TERMCAP_LIBS=-ltermcap
19671 if test $ol_link_termcap = no ; then
19672 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19673 echo "configure:19674: checking for initscr in -lncurses" >&5
19674 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19676 echo $ac_n "(cached) $ac_c" 1>&6
19678 ac_save_LIBS="$LIBS"
19679 LIBS="-lncurses $LIBS"
19680 cat > conftest.$ac_ext <<EOF
19681 #line 19682 "configure"
19682 #include "confdefs.h"
19683 /* Override any gcc2 internal prototype to avoid an error. */
19684 /* We use char because int might match the return type of a gcc2
19685 builtin and then its argument prototype would still apply. */
19692 if { (eval echo configure:19693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19694 eval "ac_cv_lib_$ac_lib_var=yes"
19696 echo "configure: failed program was:" >&5
19697 cat conftest.$ac_ext >&5
19699 eval "ac_cv_lib_$ac_lib_var=no"
19702 LIBS="$ac_save_LIBS"
19705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19706 echo "$ac_t""yes" 1>&6
19709 echo "$ac_t""no" 1>&6
19713 if test $have_ncurses = yes ; then
19714 cat >> confdefs.h <<\EOF
19715 #define HAVE_NCURSES 1
19718 ol_link_termcap=yes
19719 TERMCAP_LIBS=-lncurses
19723 if test $ol_link_termcap = no ; then
19724 cat >> confdefs.h <<\EOF
19725 #define NO_TERMCAP 1
19733 if test $ol_with_cyrus_sasl != no ; then
19734 for ac_hdr in sasl/sasl.h sasl.h
19736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19738 echo "configure:19739: checking for $ac_hdr" >&5
19739 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19740 echo $ac_n "(cached) $ac_c" 1>&6
19742 cat > conftest.$ac_ext <<EOF
19743 #line 19744 "configure"
19744 #include "confdefs.h"
19747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19748 { (eval echo configure:19749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19750 if test -z "$ac_err"; then
19752 eval "ac_cv_header_$ac_safe=yes"
19755 echo "configure: failed program was:" >&5
19756 cat conftest.$ac_ext >&5
19758 eval "ac_cv_header_$ac_safe=no"
19762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19763 echo "$ac_t""yes" 1>&6
19764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19765 cat >> confdefs.h <<EOF
19766 #define $ac_tr_hdr 1
19770 echo "$ac_t""no" 1>&6
19775 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19776 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19777 echo "configure:19778: checking for sasl_client_init in -lsasl2" >&5
19778 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19779 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19780 echo $ac_n "(cached) $ac_c" 1>&6
19782 ac_save_LIBS="$LIBS"
19783 LIBS="-lsasl2 $LIBS"
19784 cat > conftest.$ac_ext <<EOF
19785 #line 19786 "configure"
19786 #include "confdefs.h"
19787 /* Override any gcc2 internal prototype to avoid an error. */
19788 /* We use char because int might match the return type of a gcc2
19789 builtin and then its argument prototype would still apply. */
19790 char sasl_client_init();
19796 if { (eval echo configure:19797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19798 eval "ac_cv_lib_$ac_lib_var=yes"
19800 echo "configure: failed program was:" >&5
19801 cat conftest.$ac_ext >&5
19803 eval "ac_cv_lib_$ac_lib_var=no"
19806 LIBS="$ac_save_LIBS"
19809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19810 echo "$ac_t""yes" 1>&6
19811 ol_link_sasl="-lsasl2"
19813 echo "$ac_t""no" 1>&6
19814 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19815 echo "configure:19816: checking for sasl_client_init in -lsasl" >&5
19816 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19817 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19818 echo $ac_n "(cached) $ac_c" 1>&6
19820 ac_save_LIBS="$LIBS"
19821 LIBS="-lsasl $LIBS"
19822 cat > conftest.$ac_ext <<EOF
19823 #line 19824 "configure"
19824 #include "confdefs.h"
19825 /* Override any gcc2 internal prototype to avoid an error. */
19826 /* We use char because int might match the return type of a gcc2
19827 builtin and then its argument prototype would still apply. */
19828 char sasl_client_init();
19834 if { (eval echo configure:19835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19836 eval "ac_cv_lib_$ac_lib_var=yes"
19838 echo "configure: failed program was:" >&5
19839 cat conftest.$ac_ext >&5
19841 eval "ac_cv_lib_$ac_lib_var=no"
19844 LIBS="$ac_save_LIBS"
19847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19848 echo "$ac_t""yes" 1>&6
19849 ol_link_sasl="-lsasl"
19851 echo "$ac_t""no" 1>&6
19858 if test $ol_link_sasl = no ; then
19859 if test $ol_with_cyrus_sasl != auto ; then
19860 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19862 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19863 echo "configure: warning: SASL authentication not supported!" 1>&2
19864 if test $ol_link_tls = no ; then
19865 echo "configure: warning: Strong authentication not supported!" 1>&2
19869 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19870 echo "configure:19871: checking Cyrus SASL library version" >&5
19871 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19872 echo $ac_n "(cached) $ac_c" 1>&6
19875 cat > conftest.$ac_ext <<EOF
19876 #line 19877 "configure"
19877 #include "confdefs.h"
19879 #ifdef HAVE_SASL_SASL_H
19880 #include <sasl/sasl.h>
19885 /* require 2.1.3 or later */
19886 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19887 char *__sasl_compat = "1.5.x okay";
19888 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19889 __sasl_compat "2.2+ or better okay (we guess)";
19890 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19891 && SASL_VERSION_STEP >=3
19892 __sasl_compat = "2.1.3+ or better okay";
19896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19897 egrep "__sasl_compat" >/dev/null 2>&1; then
19899 ol_cv_sasl_compat=yes
19902 ol_cv_sasl_compat=no
19908 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19910 if test $ol_cv_sasl_compat = no ; then
19912 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19915 cat >> confdefs.h <<\EOF
19916 #define HAVE_CYRUS_SASL 1
19919 SASL_LIBS="$ol_link_sasl"
19920 if test $ol_enable_spasswd != no ; then
19921 ol_link_spasswd=yes
19924 ac_save_LIBS="$LIBS"
19925 LIBS="$LIBS $ol_link_sasl"
19926 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19927 echo "configure:19928: checking for sasl_version" >&5
19928 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19929 echo $ac_n "(cached) $ac_c" 1>&6
19931 cat > conftest.$ac_ext <<EOF
19932 #line 19933 "configure"
19933 #include "confdefs.h"
19934 /* System header to define __stub macros and hopefully few prototypes,
19935 which can conflict with char sasl_version(); below. */
19936 #include <assert.h>
19937 /* Override any gcc2 internal prototype to avoid an error. */
19938 /* We use char because int might match the return type of a gcc2
19939 builtin and then its argument prototype would still apply. */
19940 char sasl_version();
19945 /* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19956 if { (eval echo configure:19957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19958 eval "ac_cv_func_sasl_version=yes"
19960 echo "configure: failed program was:" >&5
19961 cat conftest.$ac_ext >&5
19963 eval "ac_cv_func_sasl_version=no"
19968 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
19969 echo "$ac_t""yes" 1>&6
19970 cat >> confdefs.h <<\EOF
19971 #define HAVE_SASL_VERSION 1
19975 echo "$ac_t""no" 1>&6
19978 LIBS="$ac_save_LIBS"
19982 echo "configure: warning: SASL authentication not supported!" 1>&2
19983 if test $ol_link_tls = no ; then
19984 echo "configure: warning: Strong authentication not supported!" 1>&2
19988 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19990 if test -r /dev/urandom ; then
19991 dev="/dev/urandom";
19992 elif test -r /idev/urandom ; then
19993 dev="/idev/urandom";
19994 elif test -r /dev/srandom ; then
19995 dev="/dev/srandom";
19996 elif test -r /dev/random ; then
19998 elif test -r /idev/random ; then
19999 dev="/idev/random";
20002 if test $dev != no ; then
20003 cat >> confdefs.h <<EOF
20004 #define URANDOM_DEVICE "$dev"
20011 if test $ol_with_fetch != no ; then
20013 LIBS="-lfetch -lcom_err $LIBS"
20014 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20015 echo "configure:20016: checking fetch(3) library" >&5
20016 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20017 echo $ac_n "(cached) $ac_c" 1>&6
20020 cat > conftest.$ac_ext <<EOF
20021 #line 20022 "configure"
20022 #include "confdefs.h"
20024 #include <sys/param.h>
20028 struct url *u = fetchParseURL("file:///");
20031 if { (eval echo configure:20032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20033 ol_cv_lib_fetch=yes
20035 echo "configure: failed program was:" >&5
20036 cat conftest.$ac_ext >&5
20043 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20045 if test $ol_cv_lib_fetch != no ; then
20046 ol_link_fetch="-lfetch -lcom_err"
20047 cat >> confdefs.h <<\EOF
20048 #define HAVE_FETCH 1
20054 if test $ol_cv_lib_fetch != no ; then
20055 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20056 ol_link_fetch=freebsd
20058 elif test $ol_with_fetch != auto ; then
20059 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20063 ol_link_readline=no
20064 if test $ol_with_readline != no ; then
20065 for ac_hdr in readline/readline.h readline/history.h
20067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20069 echo "configure:20070: checking for $ac_hdr" >&5
20070 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20071 echo $ac_n "(cached) $ac_c" 1>&6
20073 cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20079 { (eval echo configure:20080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20081 if test -z "$ac_err"; then
20083 eval "ac_cv_header_$ac_safe=yes"
20086 echo "configure: failed program was:" >&5
20087 cat conftest.$ac_ext >&5
20089 eval "ac_cv_header_$ac_safe=no"
20093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20094 echo "$ac_t""yes" 1>&6
20095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20096 cat >> confdefs.h <<EOF
20097 #define $ac_tr_hdr 1
20101 echo "$ac_t""no" 1>&6
20106 if test $ac_cv_header_readline_readline_h = yes ; then
20108 LIBS="$TERMCAP_LIBS $LIBS"
20109 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20110 echo "configure:20111: checking for readline in -lreadline" >&5
20111 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20112 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20113 echo $ac_n "(cached) $ac_c" 1>&6
20115 ac_save_LIBS="$LIBS"
20116 LIBS="-lreadline $LIBS"
20117 cat > conftest.$ac_ext <<EOF
20118 #line 20119 "configure"
20119 #include "confdefs.h"
20120 /* Override any gcc2 internal prototype to avoid an error. */
20121 /* We use char because int might match the return type of a gcc2
20122 builtin and then its argument prototype would still apply. */
20129 if { (eval echo configure:20130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20131 eval "ac_cv_lib_$ac_lib_var=yes"
20133 echo "configure: failed program was:" >&5
20134 cat conftest.$ac_ext >&5
20136 eval "ac_cv_lib_$ac_lib_var=no"
20139 LIBS="$ac_save_LIBS"
20142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20143 echo "$ac_t""yes" 1>&6
20146 echo "$ac_t""no" 1>&6
20152 if test $have_readline = yes ; then
20153 ol_with_readline=found
20154 ol_link_readline=yes
20156 READLINE_LIBS="-lreadline"
20161 if test $ol_link_readline = yes ; then
20162 cat >> confdefs.h <<\EOF
20163 #define HAVE_READLINE 1
20169 if test $ol_enable_crypt != no ; then
20171 LIBS="$TLS_LIBS $LIBS"
20173 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20174 echo "configure:20175: checking for crypt" >&5
20175 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20176 echo $ac_n "(cached) $ac_c" 1>&6
20178 cat > conftest.$ac_ext <<EOF
20179 #line 20180 "configure"
20180 #include "confdefs.h"
20181 /* System header to define __stub macros and hopefully few prototypes,
20182 which can conflict with char crypt(); below. */
20183 #include <assert.h>
20184 /* Override any gcc2 internal prototype to avoid an error. */
20185 /* We use char because int might match the return type of a gcc2
20186 builtin and then its argument prototype would still apply. */
20192 /* The GNU C library defines this for functions which it implements
20193 to always fail with ENOSYS. Some functions are actually named
20194 something starting with __ and the normal name is an alias. */
20195 #if defined (__stub_crypt) || defined (__stub___crypt)
20203 if { (eval echo configure:20204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20205 eval "ac_cv_func_crypt=yes"
20207 echo "configure: failed program was:" >&5
20208 cat conftest.$ac_ext >&5
20210 eval "ac_cv_func_crypt=no"
20215 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20216 echo "$ac_t""yes" 1>&6
20219 echo "$ac_t""no" 1>&6
20222 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20223 echo "configure:20224: checking for crypt in -lcrypt" >&5
20224 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20225 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20226 echo $ac_n "(cached) $ac_c" 1>&6
20228 ac_save_LIBS="$LIBS"
20229 LIBS="-lcrypt $LIBS"
20230 cat > conftest.$ac_ext <<EOF
20231 #line 20232 "configure"
20232 #include "confdefs.h"
20233 /* Override any gcc2 internal prototype to avoid an error. */
20234 /* We use char because int might match the return type of a gcc2
20235 builtin and then its argument prototype would still apply. */
20242 if { (eval echo configure:20243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20244 eval "ac_cv_lib_$ac_lib_var=yes"
20246 echo "configure: failed program was:" >&5
20247 cat conftest.$ac_ext >&5
20249 eval "ac_cv_lib_$ac_lib_var=no"
20252 LIBS="$ac_save_LIBS"
20255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20256 echo "$ac_t""yes" 1>&6
20257 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20260 echo "$ac_t""no" 1>&6
20269 if test $have_crypt = yes ; then
20270 cat >> confdefs.h <<\EOF
20271 #define HAVE_CRYPT 1
20275 echo "configure: warning: could not find crypt" 1>&2
20276 if test $ol_enable_crypt = yes ; then
20277 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20280 echo "configure: warning: disabling crypt support" 1>&2
20285 if test $ol_enable_proctitle != no ; then
20286 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20287 echo "configure:20288: checking for setproctitle" >&5
20288 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20289 echo $ac_n "(cached) $ac_c" 1>&6
20291 cat > conftest.$ac_ext <<EOF
20292 #line 20293 "configure"
20293 #include "confdefs.h"
20294 /* System header to define __stub macros and hopefully few prototypes,
20295 which can conflict with char setproctitle(); below. */
20296 #include <assert.h>
20297 /* Override any gcc2 internal prototype to avoid an error. */
20298 /* We use char because int might match the return type of a gcc2
20299 builtin and then its argument prototype would still apply. */
20300 char setproctitle();
20305 /* The GNU C library defines this for functions which it implements
20306 to always fail with ENOSYS. Some functions are actually named
20307 something starting with __ and the normal name is an alias. */
20308 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20316 if { (eval echo configure:20317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20318 eval "ac_cv_func_setproctitle=yes"
20320 echo "configure: failed program was:" >&5
20321 cat conftest.$ac_ext >&5
20323 eval "ac_cv_func_setproctitle=no"
20328 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20329 echo "$ac_t""yes" 1>&6
20330 have_setproctitle=yes
20332 echo "$ac_t""no" 1>&6
20334 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20335 echo "configure:20336: checking for setproctitle in -lutil" >&5
20336 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20337 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20338 echo $ac_n "(cached) $ac_c" 1>&6
20340 ac_save_LIBS="$LIBS"
20341 LIBS="-lutil $LIBS"
20342 cat > conftest.$ac_ext <<EOF
20343 #line 20344 "configure"
20344 #include "confdefs.h"
20345 /* Override any gcc2 internal prototype to avoid an error. */
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20348 char setproctitle();
20354 if { (eval echo configure:20355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20356 eval "ac_cv_lib_$ac_lib_var=yes"
20358 echo "configure: failed program was:" >&5
20359 cat conftest.$ac_ext >&5
20361 eval "ac_cv_lib_$ac_lib_var=no"
20364 LIBS="$ac_save_LIBS"
20367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20368 echo "$ac_t""yes" 1>&6
20369 have_setproctitle=yes
20370 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20372 echo "$ac_t""no" 1>&6
20373 have_setproctitle=no
20374 LIBOBJS="$LIBOBJS setproctitle.o"
20375 LIBSRCS="$LIBSRCS setproctitle.c"
20381 if test $have_setproctitle = yes ; then
20382 cat >> confdefs.h <<\EOF
20383 #define HAVE_SETPROCTITLE 1
20389 if test $ol_enable_slp != no ; then
20390 for ac_hdr in slp.h
20392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20394 echo "configure:20395: checking for $ac_hdr" >&5
20395 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20396 echo $ac_n "(cached) $ac_c" 1>&6
20398 cat > conftest.$ac_ext <<EOF
20399 #line 20400 "configure"
20400 #include "confdefs.h"
20403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20404 { (eval echo configure:20405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20406 if test -z "$ac_err"; then
20408 eval "ac_cv_header_$ac_safe=yes"
20411 echo "configure: failed program was:" >&5
20412 cat conftest.$ac_ext >&5
20414 eval "ac_cv_header_$ac_safe=no"
20418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20419 echo "$ac_t""yes" 1>&6
20420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20421 cat >> confdefs.h <<EOF
20422 #define $ac_tr_hdr 1
20426 echo "$ac_t""no" 1>&6
20431 if test $ac_cv_header_slp_h = yes ; then
20432 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20433 echo "configure:20434: checking for SLPOpen in -lslp" >&5
20434 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20435 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20436 echo $ac_n "(cached) $ac_c" 1>&6
20438 ac_save_LIBS="$LIBS"
20440 cat > conftest.$ac_ext <<EOF
20441 #line 20442 "configure"
20442 #include "confdefs.h"
20443 /* Override any gcc2 internal prototype to avoid an error. */
20444 /* We use char because int might match the return type of a gcc2
20445 builtin and then its argument prototype would still apply. */
20452 if { (eval echo configure:20453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20454 eval "ac_cv_lib_$ac_lib_var=yes"
20456 echo "configure: failed program was:" >&5
20457 cat conftest.$ac_ext >&5
20459 eval "ac_cv_lib_$ac_lib_var=no"
20462 LIBS="$ac_save_LIBS"
20465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20466 echo "$ac_t""yes" 1>&6
20469 echo "$ac_t""no" 1>&6
20473 if test $have_slp = yes ; then
20474 cat >> confdefs.h <<\EOF
20478 SLAPD_SLP_LIBS=-lslp
20481 elif test $ol_enable_slp = yes ; then
20482 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20486 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20487 echo "configure:20488: checking for ANSI C header files" >&5
20488 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20489 echo $ac_n "(cached) $ac_c" 1>&6
20491 cat > conftest.$ac_ext <<EOF
20492 #line 20493 "configure"
20493 #include "confdefs.h"
20494 #include <stdlib.h>
20495 #include <stdarg.h>
20496 #include <string.h>
20499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20500 { (eval echo configure:20501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20502 if test -z "$ac_err"; then
20504 ac_cv_header_stdc=yes
20507 echo "configure: failed program was:" >&5
20508 cat conftest.$ac_ext >&5
20510 ac_cv_header_stdc=no
20514 if test $ac_cv_header_stdc = yes; then
20515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20516 cat > conftest.$ac_ext <<EOF
20517 #line 20518 "configure"
20518 #include "confdefs.h"
20519 #include <string.h>
20521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20522 egrep "memchr" >/dev/null 2>&1; then
20526 ac_cv_header_stdc=no
20532 if test $ac_cv_header_stdc = yes; then
20533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20534 cat > conftest.$ac_ext <<EOF
20535 #line 20536 "configure"
20536 #include "confdefs.h"
20537 #include <stdlib.h>
20539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20540 egrep "free" >/dev/null 2>&1; then
20544 ac_cv_header_stdc=no
20550 if test $ac_cv_header_stdc = yes; then
20551 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20552 if test "$cross_compiling" = yes; then
20555 cat > conftest.$ac_ext <<EOF
20556 #line 20557 "configure"
20557 #include "confdefs.h"
20559 #if ((' ' & 0x0FF) == 0x020)
20560 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20561 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20563 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20564 || ('j' <= (c) && (c) <= 'r') \
20565 || ('s' <= (c) && (c) <= 'z'))
20566 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20569 int main () { int i; for (i = 0; i < 256; i++)
20570 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20574 if { (eval echo configure:20575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20578 echo "configure: failed program was:" >&5
20579 cat conftest.$ac_ext >&5
20581 ac_cv_header_stdc=no
20589 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20590 if test $ac_cv_header_stdc = yes; then
20591 cat >> confdefs.h <<\EOF
20592 #define STDC_HEADERS 1
20597 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20598 echo "configure:20599: checking for mode_t" >&5
20599 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20600 echo $ac_n "(cached) $ac_c" 1>&6
20602 cat > conftest.$ac_ext <<EOF
20603 #line 20604 "configure"
20604 #include "confdefs.h"
20605 #include <sys/types.h>
20607 #include <stdlib.h>
20608 #include <stddef.h>
20612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20613 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20615 eval "ac_cv_type_mode_t=yes"
20618 eval "ac_cv_type_mode_t=no"
20623 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20624 echo "$ac_t""yes" 1>&6
20626 echo "$ac_t""no" 1>&6
20627 cat >> confdefs.h <<EOF
20633 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20634 echo "configure:20635: checking for off_t" >&5
20635 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20636 echo $ac_n "(cached) $ac_c" 1>&6
20638 cat > conftest.$ac_ext <<EOF
20639 #line 20640 "configure"
20640 #include "confdefs.h"
20641 #include <sys/types.h>
20643 #include <stdlib.h>
20644 #include <stddef.h>
20648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20649 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20651 eval "ac_cv_type_off_t=yes"
20654 eval "ac_cv_type_off_t=no"
20659 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20660 echo "$ac_t""yes" 1>&6
20662 echo "$ac_t""no" 1>&6
20663 cat >> confdefs.h <<EOF
20669 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20670 echo "configure:20671: checking for pid_t" >&5
20671 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20672 echo $ac_n "(cached) $ac_c" 1>&6
20674 cat > conftest.$ac_ext <<EOF
20675 #line 20676 "configure"
20676 #include "confdefs.h"
20677 #include <sys/types.h>
20679 #include <stdlib.h>
20680 #include <stddef.h>
20684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20685 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20687 eval "ac_cv_type_pid_t=yes"
20690 eval "ac_cv_type_pid_t=no"
20695 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20696 echo "$ac_t""yes" 1>&6
20698 echo "$ac_t""no" 1>&6
20699 cat >> confdefs.h <<EOF
20705 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20706 echo "configure:20707: checking for ptrdiff_t" >&5
20707 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20708 echo $ac_n "(cached) $ac_c" 1>&6
20710 cat > conftest.$ac_ext <<EOF
20711 #line 20712 "configure"
20712 #include "confdefs.h"
20713 #include <stddef.h>
20718 if { (eval echo configure:20719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20720 am_cv_type_ptrdiff_t=yes
20722 echo "configure: failed program was:" >&5
20723 cat conftest.$ac_ext >&5
20725 am_cv_type_ptrdiff_t=no
20730 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20731 if test $am_cv_type_ptrdiff_t = yes; then
20732 cat >> confdefs.h <<\EOF
20733 #define HAVE_PTRDIFF_T 1
20738 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20739 echo "configure:20740: checking return type of signal handlers" >&5
20740 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20741 echo $ac_n "(cached) $ac_c" 1>&6
20743 cat > conftest.$ac_ext <<EOF
20744 #line 20745 "configure"
20745 #include "confdefs.h"
20746 #include <sys/types.h>
20747 #include <signal.h>
20752 extern "C" void (*signal (int, void (*)(int)))(int);
20754 void (*signal ()) ();
20761 if { (eval echo configure:20762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20763 ac_cv_type_signal=void
20765 echo "configure: failed program was:" >&5
20766 cat conftest.$ac_ext >&5
20768 ac_cv_type_signal=int
20773 echo "$ac_t""$ac_cv_type_signal" 1>&6
20774 cat >> confdefs.h <<EOF
20775 #define RETSIGTYPE $ac_cv_type_signal
20779 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20780 echo "configure:20781: checking for size_t" >&5
20781 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20782 echo $ac_n "(cached) $ac_c" 1>&6
20784 cat > conftest.$ac_ext <<EOF
20785 #line 20786 "configure"
20786 #include "confdefs.h"
20787 #include <sys/types.h>
20789 #include <stdlib.h>
20790 #include <stddef.h>
20794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20795 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20797 eval "ac_cv_type_size_t=yes"
20800 eval "ac_cv_type_size_t=no"
20805 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20806 echo "$ac_t""yes" 1>&6
20808 echo "$ac_t""no" 1>&6
20809 cat >> confdefs.h <<EOF
20810 #define size_t unsigned
20816 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20817 echo "configure:20818: checking for ssize_t" >&5
20818 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20819 echo $ac_n "(cached) $ac_c" 1>&6
20821 cat > conftest.$ac_ext <<EOF
20822 #line 20823 "configure"
20823 #include "confdefs.h"
20824 #include <sys/types.h>
20826 #include <stdlib.h>
20827 #include <stddef.h>
20831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20832 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20834 eval "ac_cv_type_ssize_t=yes"
20837 eval "ac_cv_type_ssize_t=no"
20842 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20843 echo "$ac_t""yes" 1>&6
20845 echo "$ac_t""no" 1>&6
20846 cat >> confdefs.h <<EOF
20847 #define ssize_t signed int
20852 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20853 echo "configure:20854: checking for caddr_t" >&5
20854 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20855 echo $ac_n "(cached) $ac_c" 1>&6
20857 cat > conftest.$ac_ext <<EOF
20858 #line 20859 "configure"
20859 #include "confdefs.h"
20860 #include <sys/types.h>
20862 #include <stdlib.h>
20863 #include <stddef.h>
20867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20868 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20870 eval "ac_cv_type_caddr_t=yes"
20873 eval "ac_cv_type_caddr_t=no"
20878 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20879 echo "$ac_t""yes" 1>&6
20881 echo "$ac_t""no" 1>&6
20882 cat >> confdefs.h <<EOF
20883 #define caddr_t char *
20889 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20890 echo "configure:20891: checking for socklen_t" >&5
20891 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20892 echo $ac_n "(cached) $ac_c" 1>&6
20894 cat > conftest.$ac_ext <<EOF
20895 #line 20896 "configure"
20896 #include "confdefs.h"
20898 #ifdef HAVE_SYS_TYPES_H
20899 #include <sys/types.h>
20901 #ifdef HAVE_SYS_SOCKET_H
20902 #include <sys/socket.h>
20909 if { (eval echo configure:20910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20911 ol_cv_type_socklen_t=yes
20913 echo "configure: failed program was:" >&5
20914 cat conftest.$ac_ext >&5
20916 ol_cv_type_socklen_t=no
20921 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20922 if test $ol_cv_type_socklen_t = no; then
20923 cat >> confdefs.h <<\EOF
20924 #define socklen_t int
20929 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20930 echo "configure:20931: checking for member st_blksize in aggregate type struct stat" >&5
20931 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20932 echo $ac_n "(cached) $ac_c" 1>&6
20934 cat > conftest.$ac_ext <<EOF
20935 #line 20936 "configure"
20936 #include "confdefs.h"
20937 #include <sys/types.h>
20938 #include <sys/stat.h>
20940 struct stat foo; foo.st_blksize;
20943 if { (eval echo configure:20944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20945 ac_cv_c_struct_member_st_blksize=yes
20947 echo "configure: failed program was:" >&5
20948 cat conftest.$ac_ext >&5
20950 ac_cv_c_struct_member_st_blksize=no
20955 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20956 st_blksize="$ac_cv_c_struct_member_st_blksize"
20957 if test $ac_cv_c_struct_member_st_blksize = yes; then
20958 cat >> confdefs.h <<\EOF
20959 #define HAVE_ST_BLKSIZE 1
20964 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20965 echo "configure:20966: checking whether time.h and sys/time.h may both be included" >&5
20966 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20967 echo $ac_n "(cached) $ac_c" 1>&6
20969 cat > conftest.$ac_ext <<EOF
20970 #line 20971 "configure"
20971 #include "confdefs.h"
20972 #include <sys/types.h>
20973 #include <sys/time.h>
20979 if { (eval echo configure:20980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20981 ac_cv_header_time=yes
20983 echo "configure: failed program was:" >&5
20984 cat conftest.$ac_ext >&5
20986 ac_cv_header_time=no
20991 echo "$ac_t""$ac_cv_header_time" 1>&6
20992 if test $ac_cv_header_time = yes; then
20993 cat >> confdefs.h <<\EOF
20994 #define TIME_WITH_SYS_TIME 1
20999 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21000 echo "configure:21001: checking whether struct tm is in sys/time.h or time.h" >&5
21001 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21002 echo $ac_n "(cached) $ac_c" 1>&6
21004 cat > conftest.$ac_ext <<EOF
21005 #line 21006 "configure"
21006 #include "confdefs.h"
21007 #include <sys/types.h>
21010 struct tm *tp; tp->tm_sec;
21013 if { (eval echo configure:21014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21015 ac_cv_struct_tm=time.h
21017 echo "configure: failed program was:" >&5
21018 cat conftest.$ac_ext >&5
21020 ac_cv_struct_tm=sys/time.h
21025 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21026 if test $ac_cv_struct_tm = sys/time.h; then
21027 cat >> confdefs.h <<\EOF
21028 #define TM_IN_SYS_TIME 1
21033 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21034 echo "configure:21035: checking for uid_t in sys/types.h" >&5
21035 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21036 echo $ac_n "(cached) $ac_c" 1>&6
21038 cat > conftest.$ac_ext <<EOF
21039 #line 21040 "configure"
21040 #include "confdefs.h"
21041 #include <sys/types.h>
21043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21044 egrep "uid_t" >/dev/null 2>&1; then
21046 ac_cv_type_uid_t=yes
21049 ac_cv_type_uid_t=no
21055 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21056 if test $ac_cv_type_uid_t = no; then
21057 cat >> confdefs.h <<\EOF
21061 cat >> confdefs.h <<\EOF
21067 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21068 echo "configure:21069: checking for sig_atomic_t" >&5
21069 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21070 echo $ac_n "(cached) $ac_c" 1>&6
21072 cat > conftest.$ac_ext <<EOF
21073 #line 21074 "configure"
21074 #include "confdefs.h"
21075 #include <signal.h>
21077 sig_atomic_t atomic;
21080 if { (eval echo configure:21081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21082 ol_cv_type_sig_atomic_t=yes
21084 echo "configure: failed program was:" >&5
21085 cat conftest.$ac_ext >&5
21087 ol_cv_type_sig_atomic_t=no
21092 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21093 if test $ol_cv_type_sig_atomic_t = no; then
21094 cat >> confdefs.h <<\EOF
21095 #define sig_atomic_t int
21102 # test for pw_gecos in struct passwd
21103 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21104 echo "configure:21105: checking struct passwd for pw_gecos" >&5
21105 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21106 echo $ac_n "(cached) $ac_c" 1>&6
21109 cat > conftest.$ac_ext <<EOF
21110 #line 21111 "configure"
21111 #include "confdefs.h"
21116 pwd.pw_gecos = pwd.pw_name;
21120 if { (eval echo configure:21121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21122 ol_cv_struct_passwd_pw_gecos=yes
21124 echo "configure: failed program was:" >&5
21125 cat conftest.$ac_ext >&5
21127 ol_cv_struct_passwd_pw_gecos=no
21132 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21133 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21134 cat >> confdefs.h <<\EOF
21135 #define HAVE_PW_GECOS 1
21140 # test for pw_passwd in struct passwd
21141 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21142 echo "configure:21143: checking struct passwd for pw_passwd" >&5
21143 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21144 echo $ac_n "(cached) $ac_c" 1>&6
21147 cat > conftest.$ac_ext <<EOF
21148 #line 21149 "configure"
21149 #include "confdefs.h"
21154 pwd.pw_passwd = pwd.pw_name;
21158 if { (eval echo configure:21159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21160 ol_cv_struct_passwd_pw_passwd=yes
21162 echo "configure: failed program was:" >&5
21163 cat conftest.$ac_ext >&5
21165 ol_cv_struct_passwd_pw_passwd=no
21170 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21171 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21172 cat >> confdefs.h <<\EOF
21173 #define HAVE_PW_PASSWD 1
21179 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21180 echo "configure:21181: checking if toupper() requires islower()" >&5
21181 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21182 echo $ac_n "(cached) $ac_c" 1>&6
21185 if test "$cross_compiling" = yes; then
21186 ol_cv_c_upper_lower=safe
21188 cat > conftest.$ac_ext <<EOF
21189 #line 21190 "configure"
21190 #include "confdefs.h"
21195 if ('C' == toupper('C'))
21201 if { (eval echo configure:21202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21203 ol_cv_c_upper_lower=no
21205 echo "configure: failed program was:" >&5
21206 cat conftest.$ac_ext >&5
21208 ol_cv_c_upper_lower=yes
21215 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21216 if test $ol_cv_c_upper_lower != no ; then
21217 cat >> confdefs.h <<\EOF
21218 #define C_UPPER_LOWER 1
21223 echo $ac_n "checking for working const""... $ac_c" 1>&6
21224 echo "configure:21225: checking for working const" >&5
21225 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21226 echo $ac_n "(cached) $ac_c" 1>&6
21228 cat > conftest.$ac_ext <<EOF
21229 #line 21230 "configure"
21230 #include "confdefs.h"
21234 /* Ultrix mips cc rejects this. */
21235 typedef int charset[2]; const charset x;
21236 /* SunOS 4.1.1 cc rejects this. */
21237 char const *const *ccp;
21239 /* NEC SVR4.0.2 mips cc rejects this. */
21240 struct point {int x, y;};
21241 static struct point const zero = {0,0};
21242 /* AIX XL C 1.02.0.0 rejects this.
21243 It does not let you subtract one const X* pointer from another in an arm
21244 of an if-expression whose if-part is not a constant expression */
21245 const char *g = "string";
21246 ccp = &g + (g ? g-g : 0);
21247 /* HPUX 7.0 cc rejects these. */
21250 ccp = (char const *const *) p;
21251 { /* SCO 3.2v4 cc rejects this. */
21253 char const *s = 0 ? (char *) 0 : (char const *) 0;
21257 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21258 int x[] = {25, 17};
21259 const int *foo = &x[0];
21262 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21263 typedef const int *iptr;
21267 { /* AIX XL C 1.02.0.0 rejects this saying
21268 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21269 struct s { int j; const int *ap[3]; };
21270 struct s *b; b->j = 5;
21272 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21273 const int foo = 10;
21278 if { (eval echo configure:21279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21282 echo "configure: failed program was:" >&5
21283 cat conftest.$ac_ext >&5
21290 echo "$ac_t""$ac_cv_c_const" 1>&6
21291 if test $ac_cv_c_const = no; then
21292 cat >> confdefs.h <<\EOF
21298 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21299 echo "configure:21300: checking if compiler understands volatile" >&5
21300 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21301 echo $ac_n "(cached) $ac_c" 1>&6
21303 cat > conftest.$ac_ext <<EOF
21304 #line 21305 "configure"
21305 #include "confdefs.h"
21308 volatile int a; int * volatile b = x ? &y : &z;
21309 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21313 if { (eval echo configure:21314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21315 ol_cv_c_volatile=yes
21317 echo "configure: failed program was:" >&5
21318 cat conftest.$ac_ext >&5
21320 ol_cv_c_volatile=no
21325 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21326 if test $ol_cv_c_volatile = yes; then
21329 cat >> confdefs.h <<\EOF
21336 if test $cross_compiling = yes ; then
21337 cat >> confdefs.h <<\EOF
21338 #define CROSS_COMPILING 1
21342 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21343 echo "configure:21344: checking whether byte ordering is bigendian" >&5
21344 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21345 echo $ac_n "(cached) $ac_c" 1>&6
21347 ac_cv_c_bigendian=unknown
21348 # See if sys/param.h defines the BYTE_ORDER macro.
21349 cat > conftest.$ac_ext <<EOF
21350 #line 21351 "configure"
21351 #include "confdefs.h"
21352 #include <sys/types.h>
21353 #include <sys/param.h>
21356 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21357 bogus endian macros
21361 if { (eval echo configure:21362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21363 # It does; now see whether it defined to BIG_ENDIAN or not.
21364 cat > conftest.$ac_ext <<EOF
21365 #line 21366 "configure"
21366 #include "confdefs.h"
21367 #include <sys/types.h>
21368 #include <sys/param.h>
21371 #if BYTE_ORDER != BIG_ENDIAN
21376 if { (eval echo configure:21377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21378 ac_cv_c_bigendian=yes
21380 echo "configure: failed program was:" >&5
21381 cat conftest.$ac_ext >&5
21383 ac_cv_c_bigendian=no
21387 echo "configure: failed program was:" >&5
21388 cat conftest.$ac_ext >&5
21391 if test $ac_cv_c_bigendian = unknown; then
21392 if test "$cross_compiling" = yes; then
21393 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21395 cat > conftest.$ac_ext <<EOF
21396 #line 21397 "configure"
21397 #include "confdefs.h"
21399 /* Are we little or big endian? From Harbison&Steele. */
21403 char c[sizeof (long)];
21406 exit (u.c[sizeof (long) - 1] == 1);
21409 if { (eval echo configure:21410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21411 ac_cv_c_bigendian=no
21413 echo "configure: failed program was:" >&5
21414 cat conftest.$ac_ext >&5
21416 ac_cv_c_bigendian=yes
21424 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21425 if test $ac_cv_c_bigendian = yes; then
21426 cat >> confdefs.h <<\EOF
21427 #define WORDS_BIGENDIAN 1
21434 echo $ac_n "checking size of short""... $ac_c" 1>&6
21435 echo "configure:21436: checking size of short" >&5
21436 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21437 echo $ac_n "(cached) $ac_c" 1>&6
21439 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21440 cat > conftest.$ac_ext <<EOF
21441 #line 21442 "configure"
21442 #include "confdefs.h"
21443 #include "confdefs.h"
21444 #include <sys/types.h>
21448 switch (0) case 0: case (sizeof (short) == $ac_size):;
21451 if { (eval echo configure:21452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21453 ac_cv_sizeof_short=$ac_size
21455 echo "configure: failed program was:" >&5
21456 cat conftest.$ac_ext >&5
21459 if test x$ac_cv_sizeof_short != x ; then break; fi
21464 if test x$ac_cv_sizeof_short = x ; then
21465 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21467 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21468 cat >> confdefs.h <<EOF
21469 #define SIZEOF_SHORT $ac_cv_sizeof_short
21473 echo $ac_n "checking size of int""... $ac_c" 1>&6
21474 echo "configure:21475: checking size of int" >&5
21475 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21476 echo $ac_n "(cached) $ac_c" 1>&6
21478 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21479 cat > conftest.$ac_ext <<EOF
21480 #line 21481 "configure"
21481 #include "confdefs.h"
21482 #include "confdefs.h"
21483 #include <sys/types.h>
21487 switch (0) case 0: case (sizeof (int) == $ac_size):;
21490 if { (eval echo configure:21491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21492 ac_cv_sizeof_int=$ac_size
21494 echo "configure: failed program was:" >&5
21495 cat conftest.$ac_ext >&5
21498 if test x$ac_cv_sizeof_int != x ; then break; fi
21503 if test x$ac_cv_sizeof_int = x ; then
21504 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21506 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21507 cat >> confdefs.h <<EOF
21508 #define SIZEOF_INT $ac_cv_sizeof_int
21512 echo $ac_n "checking size of long""... $ac_c" 1>&6
21513 echo "configure:21514: checking size of long" >&5
21514 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21515 echo $ac_n "(cached) $ac_c" 1>&6
21517 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21518 cat > conftest.$ac_ext <<EOF
21519 #line 21520 "configure"
21520 #include "confdefs.h"
21521 #include "confdefs.h"
21522 #include <sys/types.h>
21526 switch (0) case 0: case (sizeof (long) == $ac_size):;
21529 if { (eval echo configure:21530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21531 ac_cv_sizeof_long=$ac_size
21533 echo "configure: failed program was:" >&5
21534 cat conftest.$ac_ext >&5
21537 if test x$ac_cv_sizeof_long != x ; then break; fi
21542 if test x$ac_cv_sizeof_long = x ; then
21543 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21545 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21546 cat >> confdefs.h <<EOF
21547 #define SIZEOF_LONG $ac_cv_sizeof_long
21552 if test "$ac_cv_sizeof_int" -lt 4 ; then
21553 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21555 cat >> confdefs.h <<\EOF
21556 #define LBER_INT_T long
21560 cat >> confdefs.h <<\EOF
21561 #define LBER_INT_T int
21566 cat >> confdefs.h <<\EOF
21567 #define LBER_LEN_T long
21570 cat >> confdefs.h <<\EOF
21571 #define LBER_SOCKET_T int
21574 cat >> confdefs.h <<\EOF
21575 #define LBER_TAG_T long
21579 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21580 echo "configure:21581: checking for 8-bit clean memcmp" >&5
21581 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21582 echo $ac_n "(cached) $ac_c" 1>&6
21584 if test "$cross_compiling" = yes; then
21585 ac_cv_func_memcmp_clean=no
21587 cat > conftest.$ac_ext <<EOF
21588 #line 21589 "configure"
21589 #include "confdefs.h"
21593 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21594 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21598 if { (eval echo configure:21599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21600 ac_cv_func_memcmp_clean=yes
21602 echo "configure: failed program was:" >&5
21603 cat conftest.$ac_ext >&5
21605 ac_cv_func_memcmp_clean=no
21612 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21613 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21615 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21616 echo "configure:21617: checking for strftime" >&5
21617 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21618 echo $ac_n "(cached) $ac_c" 1>&6
21620 cat > conftest.$ac_ext <<EOF
21621 #line 21622 "configure"
21622 #include "confdefs.h"
21623 /* System header to define __stub macros and hopefully few prototypes,
21624 which can conflict with char strftime(); below. */
21625 #include <assert.h>
21626 /* Override any gcc2 internal prototype to avoid an error. */
21627 /* We use char because int might match the return type of a gcc2
21628 builtin and then its argument prototype would still apply. */
21634 /* The GNU C library defines this for functions which it implements
21635 to always fail with ENOSYS. Some functions are actually named
21636 something starting with __ and the normal name is an alias. */
21637 #if defined (__stub_strftime) || defined (__stub___strftime)
21645 if { (eval echo configure:21646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21647 eval "ac_cv_func_strftime=yes"
21649 echo "configure: failed program was:" >&5
21650 cat conftest.$ac_ext >&5
21652 eval "ac_cv_func_strftime=no"
21657 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21658 echo "$ac_t""yes" 1>&6
21659 cat >> confdefs.h <<\EOF
21660 #define HAVE_STRFTIME 1
21664 echo "$ac_t""no" 1>&6
21665 # strftime is in -lintl on SCO UNIX.
21666 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21667 echo "configure:21668: checking for strftime in -lintl" >&5
21668 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21669 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21670 echo $ac_n "(cached) $ac_c" 1>&6
21672 ac_save_LIBS="$LIBS"
21673 LIBS="-lintl $LIBS"
21674 cat > conftest.$ac_ext <<EOF
21675 #line 21676 "configure"
21676 #include "confdefs.h"
21677 /* Override any gcc2 internal prototype to avoid an error. */
21678 /* We use char because int might match the return type of a gcc2
21679 builtin and then its argument prototype would still apply. */
21686 if { (eval echo configure:21687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21688 eval "ac_cv_lib_$ac_lib_var=yes"
21690 echo "configure: failed program was:" >&5
21691 cat conftest.$ac_ext >&5
21693 eval "ac_cv_lib_$ac_lib_var=no"
21696 LIBS="$ac_save_LIBS"
21699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21700 echo "$ac_t""yes" 1>&6
21701 cat >> confdefs.h <<\EOF
21702 #define HAVE_STRFTIME 1
21705 LIBS="-lintl $LIBS"
21707 echo "$ac_t""no" 1>&6
21713 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21714 echo "configure:21715: checking for inet_aton()" >&5
21715 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21716 echo $ac_n "(cached) $ac_c" 1>&6
21718 cat > conftest.$ac_ext <<EOF
21719 #line 21720 "configure"
21720 #include "confdefs.h"
21722 #ifdef HAVE_SYS_TYPES_H
21723 # include <sys/types.h>
21725 #ifdef HAVE_SYS_SOCKET_H
21726 # include <sys/socket.h>
21727 # ifdef HAVE_SYS_SELECT_H
21728 # include <sys/select.h>
21730 # include <netinet/in.h>
21731 # ifdef HAVE_ARPA_INET_H
21732 # include <arpa/inet.h>
21738 int rc = inet_aton( "255.255.255.255", &in );
21741 if { (eval echo configure:21742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21743 ol_cv_func_inet_aton=yes
21745 echo "configure: failed program was:" >&5
21746 cat conftest.$ac_ext >&5
21748 ol_cv_func_inet_aton=no
21753 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21754 if test $ol_cv_func_inet_aton != no; then
21755 cat >> confdefs.h <<\EOF
21756 #define HAVE_INET_ATON 1
21762 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21763 echo "configure:21764: checking for _spawnlp" >&5
21764 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21765 echo $ac_n "(cached) $ac_c" 1>&6
21767 cat > conftest.$ac_ext <<EOF
21768 #line 21769 "configure"
21769 #include "confdefs.h"
21770 /* System header to define __stub macros and hopefully few prototypes,
21771 which can conflict with char _spawnlp(); below. */
21772 #include <assert.h>
21773 /* Override any gcc2 internal prototype to avoid an error. */
21774 /* We use char because int might match the return type of a gcc2
21775 builtin and then its argument prototype would still apply. */
21781 /* The GNU C library defines this for functions which it implements
21782 to always fail with ENOSYS. Some functions are actually named
21783 something starting with __ and the normal name is an alias. */
21784 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21792 if { (eval echo configure:21793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21794 eval "ac_cv_func__spawnlp=yes"
21796 echo "configure: failed program was:" >&5
21797 cat conftest.$ac_ext >&5
21799 eval "ac_cv_func__spawnlp=no"
21804 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21805 echo "$ac_t""yes" 1>&6
21806 cat >> confdefs.h <<\EOF
21807 #define HAVE_SPAWNLP 1
21811 echo "$ac_t""no" 1>&6
21815 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21816 echo "configure:21817: checking for _snprintf" >&5
21817 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21818 echo $ac_n "(cached) $ac_c" 1>&6
21820 cat > conftest.$ac_ext <<EOF
21821 #line 21822 "configure"
21822 #include "confdefs.h"
21823 /* System header to define __stub macros and hopefully few prototypes,
21824 which can conflict with char _snprintf(); below. */
21825 #include <assert.h>
21826 /* Override any gcc2 internal prototype to avoid an error. */
21827 /* We use char because int might match the return type of a gcc2
21828 builtin and then its argument prototype would still apply. */
21834 /* The GNU C library defines this for functions which it implements
21835 to always fail with ENOSYS. Some functions are actually named
21836 something starting with __ and the normal name is an alias. */
21837 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21845 if { (eval echo configure:21846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21847 eval "ac_cv_func__snprintf=yes"
21849 echo "configure: failed program was:" >&5
21850 cat conftest.$ac_ext >&5
21852 eval "ac_cv_func__snprintf=no"
21857 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21858 echo "$ac_t""yes" 1>&6
21859 ac_cv_func_snprintf=yes
21860 cat >> confdefs.h <<\EOF
21861 #define snprintf _snprintf
21866 echo "$ac_t""no" 1>&6
21870 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21871 echo "configure:21872: checking for _vsnprintf" >&5
21872 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21873 echo $ac_n "(cached) $ac_c" 1>&6
21875 cat > conftest.$ac_ext <<EOF
21876 #line 21877 "configure"
21877 #include "confdefs.h"
21878 /* System header to define __stub macros and hopefully few prototypes,
21879 which can conflict with char _vsnprintf(); below. */
21880 #include <assert.h>
21881 /* Override any gcc2 internal prototype to avoid an error. */
21882 /* We use char because int might match the return type of a gcc2
21883 builtin and then its argument prototype would still apply. */
21889 /* The GNU C library defines this for functions which it implements
21890 to always fail with ENOSYS. Some functions are actually named
21891 something starting with __ and the normal name is an alias. */
21892 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21900 if { (eval echo configure:21901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21902 eval "ac_cv_func__vsnprintf=yes"
21904 echo "configure: failed program was:" >&5
21905 cat conftest.$ac_ext >&5
21907 eval "ac_cv_func__vsnprintf=no"
21912 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21913 echo "$ac_t""yes" 1>&6
21914 ac_cv_func_vsnprintf=yes
21915 cat >> confdefs.h <<\EOF
21916 #define vsnprintf _vsnprintf
21921 echo "$ac_t""no" 1>&6
21925 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21926 echo "configure:21927: checking for vprintf" >&5
21927 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21928 echo $ac_n "(cached) $ac_c" 1>&6
21930 cat > conftest.$ac_ext <<EOF
21931 #line 21932 "configure"
21932 #include "confdefs.h"
21933 /* System header to define __stub macros and hopefully few prototypes,
21934 which can conflict with char vprintf(); below. */
21935 #include <assert.h>
21936 /* Override any gcc2 internal prototype to avoid an error. */
21937 /* We use char because int might match the return type of a gcc2
21938 builtin and then its argument prototype would still apply. */
21944 /* The GNU C library defines this for functions which it implements
21945 to always fail with ENOSYS. Some functions are actually named
21946 something starting with __ and the normal name is an alias. */
21947 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21955 if { (eval echo configure:21956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21957 eval "ac_cv_func_vprintf=yes"
21959 echo "configure: failed program was:" >&5
21960 cat conftest.$ac_ext >&5
21962 eval "ac_cv_func_vprintf=no"
21967 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21968 echo "$ac_t""yes" 1>&6
21969 cat >> confdefs.h <<\EOF
21970 #define HAVE_VPRINTF 1
21974 echo "$ac_t""no" 1>&6
21977 if test "$ac_cv_func_vprintf" != yes; then
21978 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21979 echo "configure:21980: checking for _doprnt" >&5
21980 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21981 echo $ac_n "(cached) $ac_c" 1>&6
21983 cat > conftest.$ac_ext <<EOF
21984 #line 21985 "configure"
21985 #include "confdefs.h"
21986 /* System header to define __stub macros and hopefully few prototypes,
21987 which can conflict with char _doprnt(); below. */
21988 #include <assert.h>
21989 /* Override any gcc2 internal prototype to avoid an error. */
21990 /* We use char because int might match the return type of a gcc2
21991 builtin and then its argument prototype would still apply. */
21997 /* The GNU C library defines this for functions which it implements
21998 to always fail with ENOSYS. Some functions are actually named
21999 something starting with __ and the normal name is an alias. */
22000 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22008 if { (eval echo configure:22009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22010 eval "ac_cv_func__doprnt=yes"
22012 echo "configure: failed program was:" >&5
22013 cat conftest.$ac_ext >&5
22015 eval "ac_cv_func__doprnt=no"
22020 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22021 echo "$ac_t""yes" 1>&6
22022 cat >> confdefs.h <<\EOF
22023 #define HAVE_DOPRNT 1
22027 echo "$ac_t""no" 1>&6
22033 if test $ac_cv_func_vprintf = yes ; then
22034 for ac_func in snprintf vsnprintf
22036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22037 echo "configure:22038: checking for $ac_func" >&5
22038 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22039 echo $ac_n "(cached) $ac_c" 1>&6
22041 cat > conftest.$ac_ext <<EOF
22042 #line 22043 "configure"
22043 #include "confdefs.h"
22044 /* System header to define __stub macros and hopefully few prototypes,
22045 which can conflict with char $ac_func(); below. */
22046 #include <assert.h>
22047 /* Override any gcc2 internal prototype to avoid an error. */
22048 /* We use char because int might match the return type of a gcc2
22049 builtin and then its argument prototype would still apply. */
22055 /* The GNU C library defines this for functions which it implements
22056 to always fail with ENOSYS. Some functions are actually named
22057 something starting with __ and the normal name is an alias. */
22058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22066 if { (eval echo configure:22067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22068 eval "ac_cv_func_$ac_func=yes"
22070 echo "configure: failed program was:" >&5
22071 cat conftest.$ac_ext >&5
22073 eval "ac_cv_func_$ac_func=no"
22078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22079 echo "$ac_t""yes" 1>&6
22080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22081 cat >> confdefs.h <<EOF
22082 #define $ac_tr_func 1
22086 echo "$ac_t""no" 1>&6
22147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22148 echo "configure:22149: checking for $ac_func" >&5
22149 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22150 echo $ac_n "(cached) $ac_c" 1>&6
22152 cat > conftest.$ac_ext <<EOF
22153 #line 22154 "configure"
22154 #include "confdefs.h"
22155 /* System header to define __stub macros and hopefully few prototypes,
22156 which can conflict with char $ac_func(); below. */
22157 #include <assert.h>
22158 /* Override any gcc2 internal prototype to avoid an error. */
22159 /* We use char because int might match the return type of a gcc2
22160 builtin and then its argument prototype would still apply. */
22166 /* The GNU C library defines this for functions which it implements
22167 to always fail with ENOSYS. Some functions are actually named
22168 something starting with __ and the normal name is an alias. */
22169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22177 if { (eval echo configure:22178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22179 eval "ac_cv_func_$ac_func=yes"
22181 echo "configure: failed program was:" >&5
22182 cat conftest.$ac_ext >&5
22184 eval "ac_cv_func_$ac_func=no"
22189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22190 echo "$ac_t""yes" 1>&6
22191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22192 cat >> confdefs.h <<EOF
22193 #define $ac_tr_func 1
22197 echo "$ac_t""no" 1>&6
22202 for ac_func in getopt
22204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22205 echo "configure:22206: checking for $ac_func" >&5
22206 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22207 echo $ac_n "(cached) $ac_c" 1>&6
22209 cat > conftest.$ac_ext <<EOF
22210 #line 22211 "configure"
22211 #include "confdefs.h"
22212 /* System header to define __stub macros and hopefully few prototypes,
22213 which can conflict with char $ac_func(); below. */
22214 #include <assert.h>
22215 /* Override any gcc2 internal prototype to avoid an error. */
22216 /* We use char because int might match the return type of a gcc2
22217 builtin and then its argument prototype would still apply. */
22223 /* The GNU C library defines this for functions which it implements
22224 to always fail with ENOSYS. Some functions are actually named
22225 something starting with __ and the normal name is an alias. */
22226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22234 if { (eval echo configure:22235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22236 eval "ac_cv_func_$ac_func=yes"
22238 echo "configure: failed program was:" >&5
22239 cat conftest.$ac_ext >&5
22241 eval "ac_cv_func_$ac_func=no"
22246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22247 echo "$ac_t""yes" 1>&6
22248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22249 cat >> confdefs.h <<EOF
22250 #define $ac_tr_func 1
22254 echo "$ac_t""no" 1>&6
22255 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22261 if test "$ac_cv_func_getopt" != yes; then
22262 LIBSRCS="$LIBSRCS getopt.c"
22264 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22265 if test "$ac_cv_func_snprintf" != yes; then
22266 cat >> confdefs.h <<\EOF
22267 #define snprintf ber_pvt_snprintf
22271 if test "$ac_cv_func_vsnprintf" != yes; then
22272 cat >> confdefs.h <<\EOF
22273 #define vsnprintf ber_pvt_vsnprintf
22279 # Check Configuration
22280 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22281 echo "configure:22282: checking declaration of sys_errlist" >&5
22282 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22283 echo $ac_n "(cached) $ac_c" 1>&6
22286 cat > conftest.$ac_ext <<EOF
22287 #line 22288 "configure"
22288 #include "confdefs.h"
22291 #include <sys/types.h>
22294 #include <stdlib.h>
22297 char *c = (char *) *sys_errlist
22300 if { (eval echo configure:22301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22302 ol_cv_dcl_sys_errlist=yes
22303 ol_cv_have_sys_errlist=yes
22305 echo "configure: failed program was:" >&5
22306 cat conftest.$ac_ext >&5
22308 ol_cv_dcl_sys_errlist=no
22313 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22315 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22316 if test $ol_cv_dcl_sys_errlist = no ; then
22317 cat >> confdefs.h <<\EOF
22318 #define DECL_SYS_ERRLIST 1
22322 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22323 echo "configure:22324: checking existence of sys_errlist" >&5
22324 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22325 echo $ac_n "(cached) $ac_c" 1>&6
22328 cat > conftest.$ac_ext <<EOF
22329 #line 22330 "configure"
22330 #include "confdefs.h"
22333 char *c = (char *) *sys_errlist
22336 if { (eval echo configure:22337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22338 ol_cv_have_sys_errlist=yes
22340 echo "configure: failed program was:" >&5
22341 cat conftest.$ac_ext >&5
22343 ol_cv_have_sys_errlist=no
22348 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22350 if test $ol_cv_have_sys_errlist = yes ; then
22351 cat >> confdefs.h <<\EOF
22352 #define HAVE_SYS_ERRLIST 1
22359 if test "$ol_enable_debug" != no ; then
22360 cat >> confdefs.h <<\EOF
22361 #define LDAP_DEBUG 1
22365 if test "$ol_enable_syslog" = yes ; then
22366 cat >> confdefs.h <<\EOF
22367 #define LDAP_SYSLOG 1
22371 if test "$ol_enable_cache" = no ; then
22372 cat >> confdefs.h <<\EOF
22373 #define LDAP_NOCACHE 1
22377 if test "$ol_link_kbind" != no ; then
22378 cat >> confdefs.h <<\EOF
22379 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22383 if test "$ol_enable_proctitle" != no ; then
22384 cat >> confdefs.h <<\EOF
22385 #define LDAP_PROCTITLE 1
22389 if test "$ol_enable_referrals" != no ; then
22390 cat >> confdefs.h <<\EOF
22391 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22395 if test "$ol_enable_local" != no; then
22396 cat >> confdefs.h <<\EOF
22397 #define LDAP_PF_LOCAL 1
22401 if test "$ol_link_ipv6" != no; then
22402 cat >> confdefs.h <<\EOF
22403 #define LDAP_PF_INET6 1
22407 if test "$ol_enable_cleartext" != no ; then
22408 cat >> confdefs.h <<\EOF
22409 #define SLAPD_CLEARTEXT 1
22413 if test "$ol_enable_crypt" != no ; then
22414 cat >> confdefs.h <<\EOF
22415 #define SLAPD_CRYPT 1
22419 if test "$ol_link_kpasswd" != no ; then
22420 cat >> confdefs.h <<\EOF
22421 #define SLAPD_KPASSWD 1
22425 if test "$ol_link_spasswd" != no ; then
22426 cat >> confdefs.h <<\EOF
22427 #define SLAPD_SPASSWD 1
22431 if test "$ol_enable_multimaster" != no ; then
22432 cat >> confdefs.h <<\EOF
22433 #define SLAPD_MULTIMASTER 1
22437 if test "$ol_enable_phonetic" != no ; then
22438 cat >> confdefs.h <<\EOF
22439 #define SLAPD_PHONETIC 1
22443 if test "$ol_enable_rlookups" != no ; then
22444 cat >> confdefs.h <<\EOF
22445 #define SLAPD_RLOOKUPS 1
22449 if test "$ol_enable_aci" != no ; then
22450 cat >> confdefs.h <<\EOF
22451 #define SLAPD_ACI_ENABLED 1
22456 if test "$ol_link_modules" != no ; then
22457 cat >> confdefs.h <<\EOF
22458 #define SLAPD_MODULES 1
22462 SLAPD_MODULES_LDFLAGS="-dlopen self"
22465 if test "$ol_enable_bdb" != no ; then
22466 cat >> confdefs.h <<\EOF
22467 #define SLAPD_BDB 1
22472 if test "$ol_with_bdb_module" != static ; then
22473 cat >> confdefs.h <<\EOF
22474 #define SLAPD_BDB_DYNAMIC 1
22478 BUILD_BDB_DYNAMIC=shared
22479 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22481 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22485 if test "$ol_link_dnssrv" != no ; then
22486 cat >> confdefs.h <<\EOF
22487 #define SLAPD_DNSSRV 1
22492 if test "$ol_with_dnssrv_module" != static ; then
22493 cat >> confdefs.h <<\EOF
22494 #define SLAPD_DNSSRV_DYNAMIC 1
22498 BUILD_DNSSRV_DYNAMIC=shared
22499 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22501 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22505 if test "$ol_enable_ldap" != no ; then
22506 cat >> confdefs.h <<\EOF
22507 #define SLAPD_LDAP 1
22512 if test "$ol_with_ldap_module" != static ; then
22513 cat >> confdefs.h <<\EOF
22514 #define SLAPD_LDAP_DYNAMIC 1
22518 BUILD_LDAP_DYNAMIC=shared
22519 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22521 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22525 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22526 cat >> confdefs.h <<\EOF
22527 #define SLAPD_LDBM 1
22532 if test "$ol_with_ldbm_module" != static ; then
22533 cat >> confdefs.h <<\EOF
22534 #define SLAPD_LDBM_DYNAMIC 1
22538 BUILD_LDBM_DYNAMIC=shared
22539 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22541 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22545 if test "$ol_enable_meta" != no ; then
22546 if test "$ol_enable_ldap" = no ; then
22547 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22549 if test "$ol_enable_rewrite" = no ; then
22550 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22552 cat >> confdefs.h <<\EOF
22553 #define SLAPD_META 1
22560 if test "$ol_with_meta_module" != static ; then
22561 cat >> confdefs.h <<\EOF
22562 #define SLAPD_META_DYNAMIC 1
22566 BUILD_META_DYNAMIC=shared
22567 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22569 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22573 if test "$ol_enable_monitor" != no ; then
22574 cat >> confdefs.h <<\EOF
22575 #define SLAPD_MONITOR 1
22580 if test "$ol_with_monitor_module" != static ; then
22581 cat >> confdefs.h <<\EOF
22582 #define SLAPD_MONITOR_DYNAMIC 1
22586 BUILD_MONITOR_DYNAMIC=shared
22587 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22589 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22593 if test "$ol_enable_null" != no ; then
22594 cat >> confdefs.h <<\EOF
22595 #define SLAPD_NULL 1
22600 if test "$ol_with_null_module" != static ; then
22601 cat >> confdefs.h <<\EOF
22602 #define SLAPD_NULL_DYNAMIC 1
22606 BUILD_NULL_DYNAMIC=shared
22607 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22609 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22613 if test "$ol_enable_passwd" != no ; then
22614 cat >> confdefs.h <<\EOF
22615 #define SLAPD_PASSWD 1
22620 if test "$ol_with_passwd_module" != static ; then
22621 cat >> confdefs.h <<\EOF
22622 #define SLAPD_PASSWD_DYNAMIC 1
22626 BUILD_PASSWD_DYNAMIC=shared
22627 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22629 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22633 if test "$ol_link_perl" != no ; then
22634 cat >> confdefs.h <<\EOF
22635 #define SLAPD_PERL 1
22640 if test "$ol_with_perl_module" != static ; then
22641 cat >> confdefs.h <<\EOF
22642 #define SLAPD_PERL_DYNAMIC 1
22646 BUILD_PERL_DYNAMIC=shared
22647 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22649 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22653 if test "$ol_enable_shell" != no ; then
22654 if test "$ol_link_thread" != no ; then
22655 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
22657 cat >> confdefs.h <<\EOF
22658 #define SLAPD_SHELL 1
22663 if test "$ol_with_shell_module" != static ; then
22664 cat >> confdefs.h <<\EOF
22665 #define SLAPD_SHELL_DYNAMIC 1
22669 BUILD_SHELL_DYNAMIC=shared
22670 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22672 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22676 if test "$ol_link_sql" != no ; then
22677 cat >> confdefs.h <<\EOF
22678 #define SLAPD_SQL 1
22683 if test "$ol_with_sql_module" != static; then
22684 cat >> confdefs.h <<\EOF
22685 #define SLAPD_SQL_DYNAMIC 1
22689 BUILD_SQL_DYNAMIC=shared
22690 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22692 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22696 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22697 $BUILD_SLAPD = yes ; then
22701 if test "$ol_enable_rewrite" != no ; then
22702 cat >> confdefs.h <<\EOF
22703 #define ENABLE_REWRITE 1
22711 if test "$ac_cv_mingw32" = yes ; then
22713 SLAPD_MODULES_LDFLAGS=
22718 if test -z "$SLAPD_STATIC_BACKENDS"; then
22719 SLAPD_NO_STATIC='#'
22788 # Check whether --with-xxinstall or --without-xxinstall was given.
22789 if test "${with_xxinstall+set}" = set; then
22790 withval="$with_xxinstall"
22798 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22801 # Let make expand exec_prefix.
22802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22804 # Any assignment to VPATH causes Sun make to only execute
22805 # the first set of double-colon rules, so remove it if not needed.
22806 # If there is a colon in the path, we need to keep it.
22807 if test "x$srcdir" = x.; then
22808 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22811 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22813 DEFS=-DHAVE_CONFIG_H
22815 # Without the "./", some shells look in PATH for config.status.
22816 : ${CONFIG_STATUS=./config.status}
22818 echo creating $CONFIG_STATUS
22819 rm -f $CONFIG_STATUS
22820 cat > $CONFIG_STATUS <<EOF
22822 # Generated automatically by configure.
22823 # Run this file to recreate the current configuration.
22824 # This directory was configured as follows,
22825 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22827 # $0 $ac_configure_args
22829 # Compiler output produced by configure, useful for debugging
22830 # configure, is in ./config.log if it exists.
22832 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22835 case "\$ac_option" in
22836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22837 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22838 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22839 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22840 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22842 -help | --help | --hel | --he | --h)
22843 echo "\$ac_cs_usage"; exit 0 ;;
22844 *) echo "\$ac_cs_usage"; exit 1 ;;
22848 ac_given_srcdir=$srcdir
22849 ac_given_INSTALL="$INSTALL"
22851 trap 'rm -fr `echo "\
22852 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22853 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22854 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22855 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22856 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22857 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22858 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22859 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22860 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22861 include/Makefile:build/top.mk:include/Makefile.in \
22862 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22863 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22864 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22865 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22866 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22867 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22868 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22869 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22870 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22871 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22872 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22873 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22874 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22875 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22876 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22877 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22878 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22879 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22880 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22881 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22882 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22883 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22884 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22885 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22886 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22887 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22888 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22889 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22890 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22892 cat >> $CONFIG_STATUS <<EOF
22894 # Protect against being on the right side of a sed subst in config.status.
22895 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22896 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22900 s%@CFLAGS@%$CFLAGS%g
22901 s%@CPPFLAGS@%$CPPFLAGS%g
22902 s%@CXXFLAGS@%$CXXFLAGS%g
22903 s%@FFLAGS@%$FFLAGS%g
22905 s%@LDFLAGS@%$LDFLAGS%g
22907 s%@exec_prefix@%$exec_prefix%g
22908 s%@prefix@%$prefix%g
22909 s%@program_transform_name@%$program_transform_name%g
22910 s%@bindir@%$bindir%g
22911 s%@sbindir@%$sbindir%g
22912 s%@libexecdir@%$libexecdir%g
22913 s%@datadir@%$datadir%g
22914 s%@sysconfdir@%$sysconfdir%g
22915 s%@sharedstatedir@%$sharedstatedir%g
22916 s%@localstatedir@%$localstatedir%g
22917 s%@libdir@%$libdir%g
22918 s%@includedir@%$includedir%g
22919 s%@oldincludedir@%$oldincludedir%g
22920 s%@infodir@%$infodir%g
22921 s%@mandir@%$mandir%g
22923 s%@host_alias@%$host_alias%g
22924 s%@host_cpu@%$host_cpu%g
22925 s%@host_vendor@%$host_vendor%g
22926 s%@host_os@%$host_os%g
22927 s%@target@%$target%g
22928 s%@target_alias@%$target_alias%g
22929 s%@target_cpu@%$target_cpu%g
22930 s%@target_vendor@%$target_vendor%g
22931 s%@target_os@%$target_os%g
22933 s%@build_alias@%$build_alias%g
22934 s%@build_cpu@%$build_cpu%g
22935 s%@build_vendor@%$build_vendor%g
22936 s%@build_os@%$build_os%g
22937 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22938 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22939 s%@INSTALL_DATA@%$INSTALL_DATA%g
22940 s%@PACKAGE@%$PACKAGE%g
22941 s%@VERSION@%$VERSION%g
22942 s%@ACLOCAL@%$ACLOCAL%g
22943 s%@AUTOCONF@%$AUTOCONF%g
22944 s%@AUTOMAKE@%$AUTOMAKE%g
22945 s%@AUTOHEADER@%$AUTOHEADER%g
22946 s%@MAKEINFO@%$MAKEINFO%g
22947 s%@install_sh@%$install_sh%g
22950 s%@AMTARFLAGS@%$AMTARFLAGS%g
22951 s%@SET_MAKE@%$SET_MAKE%g
22952 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22953 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
22954 s%@top_builddir@%$top_builddir%g
22955 s%@ldap_subdir@%$ldap_subdir%g
22959 s%@OBJEXT@%$OBJEXT%g
22960 s%@EXEEXT@%$EXEEXT%g
22962 s%@RANLIB@%$RANLIB%g
22964 s%@DLLTOOL@%$DLLTOOL%g
22966 s%@OBJDUMP@%$OBJDUMP%g
22968 s%@LIBTOOL@%$LIBTOOL%g
22970 s%@SENDMAIL@%$SENDMAIL%g
22971 s%@EDITOR@%$EDITOR%g
22972 s%@PERLBIN@%$PERLBIN%g
22973 s%@OL_MKDEP@%$OL_MKDEP%g
22974 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22975 s%@LIBOBJS@%$LIBOBJS%g
22976 s%@LIBSRCS@%$LIBSRCS%g
22978 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22979 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22980 s%@BUILD_BDB@%$BUILD_BDB%g
22981 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22982 s%@BUILD_LDAP@%$BUILD_LDAP%g
22983 s%@BUILD_LDBM@%$BUILD_LDBM%g
22984 s%@BUILD_META@%$BUILD_META%g
22985 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22986 s%@BUILD_NULL@%$BUILD_NULL%g
22987 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22988 s%@BUILD_PERL@%$BUILD_PERL%g
22989 s%@BUILD_SHELL@%$BUILD_SHELL%g
22990 s%@BUILD_SQL@%$BUILD_SQL%g
22991 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22992 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22993 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22994 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22995 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22996 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22997 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22998 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22999 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23000 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23001 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23002 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23003 s%@LDAP_LIBS@%$LDAP_LIBS%g
23004 s%@LDIF_LIBS@%$LDIF_LIBS%g
23005 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23006 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23007 s%@LDBM_LIBS@%$LDBM_LIBS%g
23008 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23009 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23010 s%@WRAP_LIBS@%$WRAP_LIBS%g
23011 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23012 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23013 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23014 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23015 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23016 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23017 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23018 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23019 s%@KRB4_LIBS@%$KRB4_LIBS%g
23020 s%@KRB5_LIBS@%$KRB5_LIBS%g
23021 s%@READLINE_LIBS@%$READLINE_LIBS%g
23022 s%@SASL_LIBS@%$SASL_LIBS%g
23023 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23024 s%@TLS_LIBS@%$TLS_LIBS%g
23025 s%@MODULES_LIBS@%$MODULES_LIBS%g
23026 s%@AUTH_LIBS@%$AUTH_LIBS%g
23027 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23028 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23029 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23030 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23035 cat >> $CONFIG_STATUS <<\EOF
23037 # Split the substitutions into bite-sized pieces for seds with
23038 # small command number limits, like on Digital OSF/1 and HP-UX.
23039 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23040 ac_file=1 # Number of current file.
23041 ac_beg=1 # First line for current file.
23042 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23045 while $ac_more_lines; do
23046 if test $ac_beg -gt 1; then
23047 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23049 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23051 if test ! -s conftest.s$ac_file; then
23052 ac_more_lines=false
23053 rm -f conftest.s$ac_file
23055 if test -z "$ac_sed_cmds"; then
23056 ac_sed_cmds="sed -f conftest.s$ac_file"
23058 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23060 ac_file=`expr $ac_file + 1`
23062 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23065 if test -z "$ac_sed_cmds"; then
23070 cat >> $CONFIG_STATUS <<EOF
23072 CONFIG_FILES=\${CONFIG_FILES-"\
23073 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23074 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23075 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23076 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23077 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23078 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23079 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23080 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23081 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23082 include/Makefile:build/top.mk:include/Makefile.in \
23083 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23084 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23085 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23086 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23087 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23088 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23089 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23090 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23091 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23092 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23093 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23094 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23095 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23096 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23097 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23098 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23099 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23100 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23101 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23102 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23103 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23104 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23105 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23106 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23107 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23108 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23109 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23110 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23113 cat >> $CONFIG_STATUS <<\EOF
23114 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23117 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23118 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23119 *) ac_file_in="${ac_file}.in" ;;
23122 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23124 # Remove last slash and all that follows it. Not all systems have dirname.
23125 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23126 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23127 # The file is in a subdirectory.
23128 test ! -d "$ac_dir" && mkdir "$ac_dir"
23129 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23130 # A "../" for each directory in $ac_dir_suffix.
23131 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23133 ac_dir_suffix= ac_dots=
23136 case "$ac_given_srcdir" in
23138 if test -z "$ac_dots"; then top_srcdir=.
23139 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23140 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23141 *) # Relative path.
23142 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23143 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23146 case "$ac_given_INSTALL" in
23147 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23148 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23151 echo creating "$ac_file"
23153 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23155 *[Mm]akefile*) ac_comsub="1i\\
23156 # $configure_input" ;;
23160 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23162 s%@configure_input@%$configure_input%g
23163 s%@srcdir@%$srcdir%g
23164 s%@top_srcdir@%$top_srcdir%g
23165 s%@INSTALL@%$INSTALL%g
23166 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23173 # ac_d sets the value in "#define NAME VALUE" lines.
23174 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23175 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23178 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23179 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23180 ac_uB='\([ ]\)%\1#\2define\3'
23183 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23184 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23185 ac_eB='$%\1#\2define\3'
23189 if test "${CONFIG_HEADERS+set}" != set; then
23191 cat >> $CONFIG_STATUS <<EOF
23192 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23194 cat >> $CONFIG_STATUS <<\EOF
23196 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23199 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23200 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23201 *) ac_file_in="${ac_file}.in" ;;
23204 echo creating $ac_file
23206 rm -f conftest.frag conftest.in conftest.out
23207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23208 cat $ac_file_inputs > conftest.in
23212 # Transform confdefs.h into a sed script conftest.vals that substitutes
23213 # the proper values into config.h.in to produce config.h. And first:
23214 # Protect against being on the right side of a sed subst in config.status.
23215 # Protect against being in an unquoted here document in config.status.
23216 rm -f conftest.vals
23217 cat > conftest.hdr <<\EOF
23220 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23224 sed -n -f conftest.hdr confdefs.h > conftest.vals
23227 # This sed command replaces #undef with comments. This is necessary, for
23228 # example, in the case of _POSIX_SOURCE, which is predefined and required
23229 # on some systems where configure will not decide to define it.
23230 cat >> conftest.vals <<\EOF
23231 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23234 # Break up conftest.vals because some shells have a limit on
23235 # the size of here documents, and old seds have small limits too.
23237 rm -f conftest.tail
23240 ac_lines=`grep -c . conftest.vals`
23241 # grep -c gives empty output for an empty file on some AIX systems.
23242 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23243 # Write a limited-size here document to conftest.frag.
23244 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23245 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23247 sed -f conftest.frag conftest.in > conftest.out
23249 mv conftest.out conftest.in
23250 ' >> $CONFIG_STATUS
23251 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23252 rm -f conftest.vals
23253 mv conftest.tail conftest.vals
23255 rm -f conftest.vals
23257 cat >> $CONFIG_STATUS <<\EOF
23258 rm -f conftest.frag conftest.h
23259 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23260 cat conftest.in >> conftest.h
23262 if cmp -s $ac_file conftest.h 2>/dev/null; then
23263 echo "$ac_file is unchanged"
23266 # Remove last slash and all that follows it. Not all systems have dirname.
23267 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23268 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23269 # The file is in a subdirectory.
23270 test ! -d "$ac_dir" && mkdir "$ac_dir"
23273 mv conftest.h $ac_file
23278 cat >> $CONFIG_STATUS <<EOF
23281 cat >> $CONFIG_STATUS <<\EOF
23284 echo Please run \"make depend\" to build dependencies
23288 chmod +x $CONFIG_STATUS
23289 rm -fr confdefs* $ac_clean_files
23290 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1