3 # from OpenLDAP: pkg/ldap/configure.in,v 1.445 2002/11/26 17:11:08 kurt Exp
5 # Copyright 1998-2002 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-2002 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]"
140 --enable-tcl enable tcl backend [no]"
142 --with-tcl-module module type static|dynamic [static]"
145 SLURPD (Replication Daemon) Options:"
147 --enable-slurpd enable building slurpd [auto]"
150 Library Generation & Linking Options"
152 --enable-static[=PKGS] build static libraries [default=yes]"
154 --enable-shared[=PKGS] build shared libraries [default=yes]"
156 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
158 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
160 # Find the correct PATH separator. Usually this is `:', but
161 # DJGPP uses `;' like DOS.
162 if test "X${PATH_SEPARATOR+set}" != Xset; then
163 UNAME=${UNAME-`uname 2>/dev/null`}
165 *-DOS) lt_cv_sys_path_separator=';' ;;
166 *) lt_cv_sys_path_separator=':' ;;
168 PATH_SEPARATOR=$lt_cv_sys_path_separator
172 # Check that we are running under the correct shell.
173 SHELL=${CONFIG_SHELL-/bin/sh}
177 # Remove one level of quotation (which was required for Make).
178 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
183 if test "X$1" = X--no-reexec; then
184 # Discard the --no-reexec flag, and continue.
186 elif test "X$1" = X--fallback-echo; then
187 # Avoid inline document here, it may be left over
189 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
190 # Yippee, $echo works!
193 # Restart under the correct shell.
194 exec $SHELL "$0" --no-reexec ${1+"$@"}
197 if test "X$1" = X--fallback-echo; then
198 # used as fallback echo
206 # The HP-UX ksh and POSIX shell print the target directory to stdout
208 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
210 if test -z "$ECHO"; then
211 if test "X${echo_test_string+set}" != Xset; then
212 # find a string as large as possible, as long as the shell can cope with it
213 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
214 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
215 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
216 echo_test_string="`eval $cmd`" &&
217 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
224 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
225 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
226 test "X$echo_testing_string" = "X$echo_test_string"; then
229 # The Solaris, AIX, and Digital Unix default echo programs unquote
230 # backslashes. This makes it impossible to quote backslashes using
231 # echo "$something" | sed 's/\\/\\\\/g'
233 # So, first we look for a working echo in the user's PATH.
235 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
236 for dir in $PATH /usr/ucb; do
237 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
238 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
239 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
240 test "X$echo_testing_string" = "X$echo_test_string"; then
247 if test "X$echo" = Xecho; then
248 # We didn't find a better echo, so look for alternatives.
249 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
250 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
251 test "X$echo_testing_string" = "X$echo_test_string"; then
252 # This shell has a builtin print -r that does the trick.
254 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
255 test "X$CONFIG_SHELL" != X/bin/ksh; then
256 # If we have ksh, try running configure again with it.
257 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
258 export ORIGINAL_CONFIG_SHELL
259 CONFIG_SHELL=/bin/ksh
261 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
265 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
266 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
267 test "X$echo_testing_string" = "X$echo_test_string"; then
270 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
271 test "X$echo_testing_string" = 'X\t' &&
272 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
273 test "X$echo_testing_string" = "X$echo_test_string"; then
274 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
276 SHELL="$CONFIG_SHELL"
278 echo="$CONFIG_SHELL $0 --fallback-echo"
279 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
280 test "X$echo_testing_string" = 'X\t' &&
281 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
282 test "X$echo_testing_string" = "X$echo_test_string"; then
283 echo="$CONFIG_SHELL $0 --fallback-echo"
285 # maybe with a smaller string...
288 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
289 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
296 if test "$prev" != 'sed 50q "$0"'; then
297 echo_test_string=`eval $prev`
298 export echo_test_string
299 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
301 # Oops. We lost completely, so just stick with echo.
310 # Copy echo and quote the copy suitably for passing to libtool from
311 # the Makefile, instead of quoting the original, which is used later.
313 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
314 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
319 --disable-libtool-lock avoid locking (might break parallel builds)"
321 --with-pic try to use only PIC/non-PIC objects [default=use both]"
324 See INSTALL file for further details."
326 # Initialize some variables set by options.
327 # The variables have the same names as the options, with
328 # dashes changed to underlines.
330 cache_file=./config.cache
339 program_transform_name=s,x,x,
347 bindir='${exec_prefix}/bin'
348 sbindir='${exec_prefix}/sbin'
349 libexecdir='${exec_prefix}/libexec'
350 datadir='${prefix}/share'
351 sysconfdir='${prefix}/etc'
352 sharedstatedir='${prefix}/com'
353 localstatedir='${prefix}/var'
354 libdir='${exec_prefix}/lib'
355 includedir='${prefix}/include'
356 oldincludedir='/usr/include'
357 infodir='${prefix}/info'
358 mandir='${prefix}/man'
360 # Initialize some other variables.
363 SHELL=${CONFIG_SHELL-/bin/sh}
364 # Maximum number of lines to put in a shell here document.
371 # If the previous option needs an argument, assign it.
372 if test -n "$ac_prev"; then
373 eval "$ac_prev=\$ac_option"
379 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
383 # Accept the important Cygnus configure options, so we can diagnose typos.
387 -bindir | --bindir | --bindi | --bind | --bin | --bi)
389 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
390 bindir="$ac_optarg" ;;
392 -build | --build | --buil | --bui | --bu)
394 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
395 build="$ac_optarg" ;;
397 -cache-file | --cache-file | --cache-fil | --cache-fi \
398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
399 ac_prev=cache_file ;;
400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
402 cache_file="$ac_optarg" ;;
404 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
406 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
408 datadir="$ac_optarg" ;;
410 -disable-* | --disable-*)
411 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
416 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
417 eval "enable_${ac_feature}=no" ;;
419 -enable-* | --enable-*)
420 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
423 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
425 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
430 eval "enable_${ac_feature}='$ac_optarg'" ;;
432 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
433 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
434 | --exec | --exe | --ex)
435 ac_prev=exec_prefix ;;
436 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
437 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
438 | --exec=* | --exe=* | --ex=*)
439 exec_prefix="$ac_optarg" ;;
441 -gas | --gas | --ga | --g)
442 # Obsolete; use --with-gas.
445 -help | --help | --hel | --he)
446 # Omit some internal or obsolete options to make the list less imposing.
447 # This message is too long to be a string in the A/UX 3.1 sh.
449 Usage: configure [options] [host]
450 Options: [defaults in brackets after descriptions]
452 --cache-file=FILE cache test results in FILE
453 --help print this message
454 --no-create do not create output files
455 --quiet, --silent do not print \`checking...' messages
456 --version print the version of autoconf that created configure
457 Directory and file names:
458 --prefix=PREFIX install architecture-independent files in PREFIX
460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
462 --bindir=DIR user executables in DIR [EPREFIX/bin]
463 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
464 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
465 --datadir=DIR read-only architecture-independent data in DIR
467 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
468 --sharedstatedir=DIR modifiable architecture-independent data in DIR
470 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
471 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
472 --includedir=DIR C header files in DIR [PREFIX/include]
473 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
474 --infodir=DIR info documentation in DIR [PREFIX/info]
475 --mandir=DIR man documentation in DIR [PREFIX/man]
476 --srcdir=DIR find the sources in DIR [configure dir or ..]
477 --program-prefix=PREFIX prepend PREFIX to installed program names
478 --program-suffix=SUFFIX append SUFFIX to installed program names
479 --program-transform-name=PROGRAM
480 run sed PROGRAM on installed program names
484 --build=BUILD configure for building on BUILD [BUILD=HOST]
485 --host=HOST configure for HOST [guessed]
486 --target=TARGET configure for TARGET [TARGET=HOST]
487 Features and packages:
488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
492 --x-includes=DIR X include files are in DIR
493 --x-libraries=DIR X library files are in DIR
495 if test -n "$ac_help"; then
496 echo "--enable and --with options recognized:$ac_help"
500 -host | --host | --hos | --ho)
502 -host=* | --host=* | --hos=* | --ho=*)
505 -includedir | --includedir | --includedi | --included | --include \
506 | --includ | --inclu | --incl | --inc)
507 ac_prev=includedir ;;
508 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
509 | --includ=* | --inclu=* | --incl=* | --inc=*)
510 includedir="$ac_optarg" ;;
512 -infodir | --infodir | --infodi | --infod | --info | --inf)
514 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
515 infodir="$ac_optarg" ;;
517 -libdir | --libdir | --libdi | --libd)
519 -libdir=* | --libdir=* | --libdi=* | --libd=*)
520 libdir="$ac_optarg" ;;
522 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
523 | --libexe | --libex | --libe)
524 ac_prev=libexecdir ;;
525 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
526 | --libexe=* | --libex=* | --libe=*)
527 libexecdir="$ac_optarg" ;;
529 -localstatedir | --localstatedir | --localstatedi | --localstated \
530 | --localstate | --localstat | --localsta | --localst \
531 | --locals | --local | --loca | --loc | --lo)
532 ac_prev=localstatedir ;;
533 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
534 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
535 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
536 localstatedir="$ac_optarg" ;;
538 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
540 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
541 mandir="$ac_optarg" ;;
544 # Obsolete; use --without-fp.
547 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
551 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
552 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
555 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
556 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
557 | --oldin | --oldi | --old | --ol | --o)
558 ac_prev=oldincludedir ;;
559 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
560 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
561 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
562 oldincludedir="$ac_optarg" ;;
564 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
566 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
567 prefix="$ac_optarg" ;;
569 -program-prefix | --program-prefix | --program-prefi | --program-pref \
570 | --program-pre | --program-pr | --program-p)
571 ac_prev=program_prefix ;;
572 -program-prefix=* | --program-prefix=* | --program-prefi=* \
573 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
574 program_prefix="$ac_optarg" ;;
576 -program-suffix | --program-suffix | --program-suffi | --program-suff \
577 | --program-suf | --program-su | --program-s)
578 ac_prev=program_suffix ;;
579 -program-suffix=* | --program-suffix=* | --program-suffi=* \
580 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
581 program_suffix="$ac_optarg" ;;
583 -program-transform-name | --program-transform-name \
584 | --program-transform-nam | --program-transform-na \
585 | --program-transform-n | --program-transform- \
586 | --program-transform | --program-transfor \
587 | --program-transfo | --program-transf \
588 | --program-trans | --program-tran \
589 | --progr-tra | --program-tr | --program-t)
590 ac_prev=program_transform_name ;;
591 -program-transform-name=* | --program-transform-name=* \
592 | --program-transform-nam=* | --program-transform-na=* \
593 | --program-transform-n=* | --program-transform-=* \
594 | --program-transform=* | --program-transfor=* \
595 | --program-transfo=* | --program-transf=* \
596 | --program-trans=* | --program-tran=* \
597 | --progr-tra=* | --program-tr=* | --program-t=*)
598 program_transform_name="$ac_optarg" ;;
600 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
601 | -silent | --silent | --silen | --sile | --sil)
604 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
606 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
608 sbindir="$ac_optarg" ;;
610 -sharedstatedir | --sharedstatedir | --sharedstatedi \
611 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
612 | --sharedst | --shareds | --shared | --share | --shar \
614 ac_prev=sharedstatedir ;;
615 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
616 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
617 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
619 sharedstatedir="$ac_optarg" ;;
621 -site | --site | --sit)
623 -site=* | --site=* | --sit=*)
626 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
628 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
629 srcdir="$ac_optarg" ;;
631 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
632 | --syscon | --sysco | --sysc | --sys | --sy)
633 ac_prev=sysconfdir ;;
634 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
635 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
636 sysconfdir="$ac_optarg" ;;
638 -target | --target | --targe | --targ | --tar | --ta | --t)
640 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
641 target="$ac_optarg" ;;
643 -v | -verbose | --verbose | --verbos | --verbo | --verb)
646 -version | --version | --versio | --versi | --vers)
647 echo "configure generated by autoconf version 2.13.1"
651 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
652 # Reject names that are not valid shell variable names.
653 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
654 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
656 ac_package=`echo $ac_package| sed 's/-/_/g'`
661 eval "with_${ac_package}='$ac_optarg'" ;;
663 -without-* | --without-*)
664 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
665 # Reject names that are not valid shell variable names.
666 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
667 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
669 ac_package=`echo $ac_package| sed 's/-/_/g'`
670 eval "with_${ac_package}=no" ;;
673 # Obsolete; use --with-x.
676 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
677 | --x-incl | --x-inc | --x-in | --x-i)
678 ac_prev=x_includes ;;
679 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
680 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
681 x_includes="$ac_optarg" ;;
683 -x-libraries | --x-libraries | --x-librarie | --x-librari \
684 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
685 ac_prev=x_libraries ;;
686 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
687 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
688 x_libraries="$ac_optarg" ;;
690 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
694 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
695 echo "configure: warning: $ac_option: invalid host type" 1>&2
697 if test "x$nonopt" != xNONE; then
698 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
706 if test -n "$ac_prev"; then
707 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
710 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
712 # File descriptor usage:
715 # 2 errors and warnings
716 # 3 some systems may open it to /dev/tty
717 # 4 used on the Kubota Titan
718 # 6 checking for... messages and results
719 # 5 compiler messages saved in config.log
720 if test "$silent" = yes; then
728 This file contains any messages produced by compilers while
729 running configure, to aid debugging if configure makes a mistake.
732 # Strip out --no-create and --no-recursion so they do not pile up.
733 # Also quote any args containing shell metacharacters.
738 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
739 | --no-cr | --no-c) ;;
740 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
741 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
742 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
743 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
744 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
749 # Only set these to C if already set. These must not be set unconditionally
750 # because not all systems understand e.g. LANG=C (notably SCO).
751 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
752 # Non-C LC_CTYPE values break the ctype check.
753 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
754 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
755 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
756 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
759 rm -rf conftest* confdefs.h
760 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
763 # A filename unique to this package, relative to the directory that
764 # configure is in, which we can look for to find out if srcdir is correct.
765 ac_unique_file=build/version.sh
767 # Find the source files, if location was not specified.
768 if test -z "$srcdir"; then
769 ac_srcdir_defaulted=yes
770 # Try the directory containing this script, then its parent.
772 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
773 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
775 if test ! -r $srcdir/$ac_unique_file; then
779 ac_srcdir_defaulted=no
781 if test ! -r $srcdir/$ac_unique_file; then
782 if test "$ac_srcdir_defaulted" = yes; then
783 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
785 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
788 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
790 # Prefer explicitly selected file to automatically selected ones.
791 if test -z "$CONFIG_SITE"; then
792 if test "x$prefix" != xNONE; then
793 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
795 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
798 for ac_site_file in $CONFIG_SITE; do
799 if test -r "$ac_site_file"; then
800 echo "loading site script $ac_site_file"
807 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
808 ac_cpp='$CPP $CPPFLAGS'
809 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
810 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
811 cross_compiling=$ac_cv_prog_cc_cross
815 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
816 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
817 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
824 ac_n= ac_c='\c' ac_t=
828 # set unset (borrowed from autoconf 2.49c)
829 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
835 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
838 for ac_dir in build $srcdir/build; do
839 if test -f $ac_dir/install-sh; then
841 ac_install_sh="$ac_aux_dir/install-sh -c"
843 elif test -f $ac_dir/install.sh; then
845 ac_install_sh="$ac_aux_dir/install.sh -c"
847 elif test -f $ac_dir/shtool; then
849 ac_install_sh="$ac_aux_dir/shtool install -c"
853 if test -z "$ac_aux_dir"; then
854 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
856 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
857 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
858 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
860 eval `$ac_aux_dir/version.sh`
861 if test -z "$OL_STRING"; then
862 { echo "configure: error: could not determine version" 1>&2; exit 1; }
865 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
866 ac_cv_shtool="$ac_aux_dir/shtool"
868 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
871 SHTOOL="$ac_cv_shtool"
873 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
874 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
877 if test -d $ac_aux_dir/CVS; then
878 OPENLDAP_CVS="(from CVS sources) "
881 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
884 echo $ac_n "checking host system type""... $ac_c" 1>&6
885 echo "configure:886: checking host system type" >&5
886 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
888 # Make sure we can run config.sub.
889 if $ac_config_sub sun4 >/dev/null 2>&1; then :
890 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
893 ac_cv_host_alias=$host
894 case "$ac_cv_host_alias" in
898 if ac_cv_host_alias=`$ac_config_guess`; then :
899 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
901 *) ac_cv_host_alias=$nonopt ;;
905 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
906 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
907 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
908 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
910 echo $ac_n "(cached) $ac_c" 1>&6
913 echo "$ac_t""$ac_cv_host" 1>&6
916 host_alias=$ac_cv_host_alias
917 host_cpu=$ac_cv_host_cpu
918 host_vendor=$ac_cv_host_vendor
919 host_os=$ac_cv_host_os
925 echo $ac_n "checking target system type""... $ac_c" 1>&6
926 echo "configure:927: checking target system type" >&5
927 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
929 # Make sure we can run config.sub.
930 if $ac_config_sub sun4 >/dev/null 2>&1; then :
931 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
934 ac_cv_target_alias=$target
935 case "$ac_cv_target_alias" in
939 ac_cv_target_alias=$host_alias ;;
941 *) ac_cv_target_alias=$nonopt ;;
945 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
946 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
947 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
948 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo $ac_n "(cached) $ac_c" 1>&6
953 echo "$ac_t""$ac_cv_target" 1>&6
956 target_alias=$ac_cv_target_alias
957 target_cpu=$ac_cv_target_cpu
958 target_vendor=$ac_cv_target_vendor
959 target_os=$ac_cv_target_os
965 echo $ac_n "checking build system type""... $ac_c" 1>&6
966 echo "configure:967: checking build system type" >&5
967 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
969 # Make sure we can run config.sub.
970 if $ac_config_sub sun4 >/dev/null 2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 ac_cv_build_alias=$build
975 case "$ac_cv_build_alias" in
979 ac_cv_build_alias=$host_alias ;;
981 *) ac_cv_build_alias=$nonopt ;;
985 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
986 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo $ac_n "(cached) $ac_c" 1>&6
993 echo "$ac_t""$ac_cv_build" 1>&6
996 build_alias=$ac_cv_build_alias
997 build_cpu=$ac_cv_build_cpu
998 build_vendor=$ac_cv_build_vendor
999 build_os=$ac_cv_build_os
1005 # Do some error checking and defaulting for the host and target type.
1007 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1010 # 1. You are not allowed to specify --host, --target, and nonopt at the
1012 # 2. Host defaults to nonopt.
1013 # 3. If nonopt is not specified, then host defaults to the current host,
1014 # as determined by config.guess.
1015 # 4. Target and build default to nonopt.
1016 # 5. If nonopt is not specified, then target and build default to host.
1018 # The aliases save the names the user supplied, while $host etc.
1019 # will get canonicalized.
1020 case $host---$target---$nonopt in
1021 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1022 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1025 test "$host_alias" != "$target_alias" &&
1026 test "$program_prefix$program_suffix$program_transform_name" = \
1028 program_prefix=${target_alias}-
1031 # Find a good install program. We prefer a C program (faster),
1032 # so one script is as good as another. But avoid the broken or
1033 # incompatible versions:
1034 # SysV /etc/install, /usr/sbin/install
1035 # SunOS /usr/etc/install
1036 # IRIX /sbin/install
1038 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1039 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1040 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1041 # ./install, which can be erroneously created by make from ./install.sh.
1042 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1043 echo "configure:1044: checking for a BSD compatible install" >&5
1044 if test -z "$INSTALL"; then
1045 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1049 for ac_dir in $PATH; do
1050 # Account for people who put trailing slashes in PATH elements.
1052 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1054 # OSF1 and SCO ODT 3.0 have their own names for install.
1055 # Don't use installbsd from OSF since it installs stuff as root
1057 for ac_prog in ginstall scoinst install; do
1058 if test -f $ac_dir/$ac_prog; then
1059 if test $ac_prog = install &&
1060 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1061 # AIX install. It has an incompatible calling convention.
1063 elif test $ac_prog = install &&
1064 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1065 # program-specific install script used by HP pwplus--don't use.
1068 ac_cv_path_install="$ac_dir/$ac_prog -c"
1079 if test "${ac_cv_path_install+set}" = set; then
1080 INSTALL="$ac_cv_path_install"
1082 # As a last resort, use the slow shell script. We don't cache a
1083 # path for INSTALL within a source directory, because that will
1084 # break other packages using the cache if that directory is
1085 # removed, or if the path is relative.
1086 INSTALL="$ac_install_sh"
1089 echo "$ac_t""$INSTALL" 1>&6
1091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1092 # It thinks the first close brace ends the variable substitution.
1093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1099 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether build environment is sane" >&5
1103 echo timestamp > conftestfile
1104 # Do `set' in a subshell so we don't clobber the current shell's
1105 # arguments. Must try -L first in case configure is actually a
1106 # symlink; some systems play weird games with the mod time of symlinks
1107 # (eg FreeBSD returns the mod time of the symlink's containing
1110 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1111 if test "$*" = "X"; then
1113 set X `ls -t $srcdir/configure conftestfile`
1115 if test "$*" != "X $srcdir/configure conftestfile" \
1116 && test "$*" != "X conftestfile $srcdir/configure"; then
1118 # If neither matched, then we have a broken ls. This can happen
1119 # if, for instance, CONFIG_SHELL is bash and it inherits a
1120 # broken ls alias from the environment. This has actually
1121 # happened. Such a system could not be considered "sane".
1122 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1123 alias in your environment" 1>&2; exit 1; }
1126 test "$2" = conftestfile
1132 { echo "configure: error: newly created file is older than distributed files!
1133 Check your system clock" 1>&2; exit 1; }
1136 echo "$ac_t""yes" 1>&6
1137 if test "$program_transform_name" = s,x,x,; then
1138 program_transform_name=
1140 # Double any \ or $. echo might interpret backslashes.
1141 cat <<\EOF_SED > conftestsed
1142 s,\\,\\\\,g; s,\$,$$,g
1144 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1147 test "$program_prefix" != NONE &&
1148 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1149 # Use a double $ so make ignores it.
1150 test "$program_suffix" != NONE &&
1151 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1153 # sed with no file args requires a program.
1154 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1156 for ac_prog in mawk gawk nawk awk
1158 # Extract the first word of "$ac_prog", so it can be a program name with args.
1159 set dummy $ac_prog; ac_word=$2
1160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1161 echo "configure:1162: checking for $ac_word" >&5
1162 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1165 if test -n "$AWK"; then
1166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1170 for ac_dir in $ac_dummy; do
1171 test -z "$ac_dir" && ac_dir=.
1172 if test -f $ac_dir/$ac_word; then
1173 ac_cv_prog_AWK="$ac_prog"
1180 AWK="$ac_cv_prog_AWK"
1181 if test -n "$AWK"; then
1182 echo "$ac_t""$AWK" 1>&6
1184 echo "$ac_t""no" 1>&6
1187 test -n "$AWK" && break
1190 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether ${MAKE-make} sets \${MAKE}" >&5
1192 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1193 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftestmake <<\EOF
1198 @echo 'ac_maketemp="${MAKE}"'
1200 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1201 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1202 if test -n "$ac_maketemp"; then
1203 eval ac_cv_prog_make_${ac_make}_set=yes
1205 eval ac_cv_prog_make_${ac_make}_set=no
1209 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1210 echo "$ac_t""yes" 1>&6
1213 echo "$ac_t""no" 1>&6
1214 SET_MAKE="MAKE=${MAKE-make}"
1223 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1224 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1229 missing_dir=`cd $ac_aux_dir && pwd`
1230 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1231 echo "configure:1232: checking for working aclocal" >&5
1232 # Run test in a subshell; some versions of sh will print an error if
1233 # an executable is not found, even if stderr is redirected.
1234 # Redirect stdin to placate older versions of autoconf. Sigh.
1235 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1237 echo "$ac_t""found" 1>&6
1239 ACLOCAL="$missing_dir/missing aclocal"
1240 echo "$ac_t""missing" 1>&6
1243 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1244 echo "configure:1245: checking for working autoconf" >&5
1245 # Run test in a subshell; some versions of sh will print an error if
1246 # an executable is not found, even if stderr is redirected.
1247 # Redirect stdin to placate older versions of autoconf. Sigh.
1248 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1250 echo "$ac_t""found" 1>&6
1252 AUTOCONF="$missing_dir/missing autoconf"
1253 echo "$ac_t""missing" 1>&6
1256 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1257 echo "configure:1258: checking for working automake" >&5
1258 # Run test in a subshell; some versions of sh will print an error if
1259 # an executable is not found, even if stderr is redirected.
1260 # Redirect stdin to placate older versions of autoconf. Sigh.
1261 if (automake --version) < /dev/null > /dev/null 2>&1; then
1263 echo "$ac_t""found" 1>&6
1265 AUTOMAKE="$missing_dir/missing automake"
1266 echo "$ac_t""missing" 1>&6
1269 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1270 echo "configure:1271: checking for working autoheader" >&5
1271 # Run test in a subshell; some versions of sh will print an error if
1272 # an executable is not found, even if stderr is redirected.
1273 # Redirect stdin to placate older versions of autoconf. Sigh.
1274 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1275 AUTOHEADER=autoheader
1276 echo "$ac_t""found" 1>&6
1278 AUTOHEADER="$missing_dir/missing autoheader"
1279 echo "$ac_t""missing" 1>&6
1282 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1283 echo "configure:1284: checking for working makeinfo" >&5
1284 # Run test in a subshell; some versions of sh will print an error if
1285 # an executable is not found, even if stderr is redirected.
1286 # Redirect stdin to placate older versions of autoconf. Sigh.
1287 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1289 echo "$ac_t""found" 1>&6
1291 MAKEINFO="$missing_dir/missing makeinfo"
1292 echo "$ac_t""missing" 1>&6
1295 install_sh="$missing_dir/install-sh"
1296 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1298 for ac_prog in gnutar gtar tar
1300 # Extract the first word of "$ac_prog", so it can be a program name with args.
1301 set dummy $ac_prog; ac_word=$2
1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303 echo "configure:1304: checking for $ac_word" >&5
1304 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 if test -n "$AMTAR"; then
1308 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 for ac_dir in $ac_dummy; do
1313 test -z "$ac_dir" && ac_dir=.
1314 if test -f $ac_dir/$ac_word; then
1315 ac_cv_prog_AMTAR="$ac_prog"
1322 AMTAR="$ac_cv_prog_AMTAR"
1323 if test -n "$AMTAR"; then
1324 echo "$ac_t""$AMTAR" 1>&6
1326 echo "$ac_t""no" 1>&6
1329 test -n "$AMTAR" && break
1334 if test -n "$AMTAR"; then
1335 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1340 cat >> confdefs.h <<EOF
1341 #define OPENLDAP_PACKAGE "$PACKAGE"
1344 cat >> confdefs.h <<EOF
1345 #define OPENLDAP_VERSION "$VERSION"
1349 cat >> confdefs.h <<EOF
1350 #define LDAP_VENDOR_VERSION $OL_API_INC
1353 cat >> confdefs.h <<EOF
1354 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1357 cat >> confdefs.h <<EOF
1358 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1361 cat >> confdefs.h <<EOF
1362 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1366 OPENLDAP_LIBVERSION=$OL_API_LIB
1368 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1372 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1373 echo "configure:1374: checking configure arguments" >&5
1378 ldap_subdir="/openldap"
1380 # Check whether --with-subdir or --without-subdir was given.
1381 if test "${with_subdir+set}" = set; then
1382 withval="$with_subdir"
1389 ldap_subdir="$withval"
1392 ldap_subdir="/$withval"
1399 # OpenLDAP --enable-debug
1400 # Check whether --enable-debug or --disable-debug was given.
1401 if test "${enable_debug+set}" = set; then
1402 enableval="$enable_debug"
1405 for ol_val in auto yes no ; do
1406 if test "$enableval" = "$ol_val" ; then
1410 if test "$ol_arg" = "invalid" ; then
1411 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1413 ol_enable_debug="$ol_arg"
1416 ol_enable_debug="yes"
1418 # end --enable-debug
1419 # OpenLDAP --enable-syslog
1420 # Check whether --enable-syslog or --disable-syslog was given.
1421 if test "${enable_syslog+set}" = set; then
1422 enableval="$enable_syslog"
1425 for ol_val in auto yes no ; do
1426 if test "$enableval" = "$ol_val" ; then
1430 if test "$ol_arg" = "invalid" ; then
1431 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1433 ol_enable_syslog="$ol_arg"
1436 ol_enable_syslog="auto"
1438 # end --enable-syslog
1439 # OpenLDAP --enable-proctitle
1440 # Check whether --enable-proctitle or --disable-proctitle was given.
1441 if test "${enable_proctitle+set}" = set; then
1442 enableval="$enable_proctitle"
1445 for ol_val in auto yes no ; do
1446 if test "$enableval" = "$ol_val" ; then
1450 if test "$ol_arg" = "invalid" ; then
1451 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1453 ol_enable_proctitle="$ol_arg"
1456 ol_enable_proctitle="yes"
1458 # end --enable-proctitle
1459 # OpenLDAP --enable-cache
1460 # Check whether --enable-cache or --disable-cache was given.
1461 if test "${enable_cache+set}" = set; then
1462 enableval="$enable_cache"
1465 for ol_val in auto yes no ; do
1466 if test "$enableval" = "$ol_val" ; then
1470 if test "$ol_arg" = "invalid" ; then
1471 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1473 ol_enable_cache="$ol_arg"
1476 ol_enable_cache="no"
1478 # end --enable-cache
1479 # OpenLDAP --enable-referrals
1480 # Check whether --enable-referrals or --disable-referrals was given.
1481 if test "${enable_referrals+set}" = set; then
1482 enableval="$enable_referrals"
1485 for ol_val in auto yes no ; do
1486 if test "$enableval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1493 ol_enable_referrals="$ol_arg"
1496 ol_enable_referrals="no"
1498 # end --enable-referrals
1499 ol_enable_kbind=${ol_enable_kbind-no}
1500 # OpenLDAP --enable-ipv6
1501 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1502 if test "${enable_ipv6+set}" = set; then
1503 enableval="$enable_ipv6"
1506 for ol_val in auto yes no ; do
1507 if test "$enableval" = "$ol_val" ; then
1511 if test "$ol_arg" = "invalid" ; then
1512 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1514 ol_enable_ipv6="$ol_arg"
1517 ol_enable_ipv6="auto"
1520 # OpenLDAP --enable-local
1521 # Check whether --enable-local or --disable-local was given.
1522 if test "${enable_local+set}" = set; then
1523 enableval="$enable_local"
1526 for ol_val in auto yes no ; do
1527 if test "$enableval" = "$ol_val" ; then
1531 if test "$ol_arg" = "invalid" ; then
1532 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1534 ol_enable_local="$ol_arg"
1537 ol_enable_local="auto"
1539 # end --enable-local
1540 # OpenLDAP --enable-x_compile
1541 # Check whether --enable-x_compile or --disable-x_compile was given.
1542 if test "${enable_x_compile+set}" = set; then
1543 enableval="$enable_x_compile"
1546 for ol_val in yes no ; do
1547 if test "$enableval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1554 ol_enable_x_compile="$ol_arg"
1557 ol_enable_x_compile="no"
1559 # end --enable-x_compile
1562 # OpenLDAP --with-cyrus_sasl
1563 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1564 if test "${with_cyrus_sasl+set}" = set; then
1565 withval="$with_cyrus_sasl"
1568 for ol_val in auto yes no ; do
1569 if test "$withval" = "$ol_val" ; then
1573 if test "$ol_arg" = "invalid" ; then
1574 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1576 ol_with_cyrus_sasl="$ol_arg"
1579 ol_with_cyrus_sasl="auto"
1581 # end --with-cyrus_sasl
1583 # OpenLDAP --with-fetch
1584 # Check whether --with-fetch or --without-fetch was given.
1585 if test "${with_fetch+set}" = set; then
1586 withval="$with_fetch"
1589 for ol_val in auto yes no ; do
1590 if test "$withval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1597 ol_with_fetch="$ol_arg"
1600 ol_with_fetch="auto"
1604 # OpenLDAP --with-kerberos
1605 # Check whether --with-kerberos or --without-kerberos was given.
1606 if test "${with_kerberos+set}" = set; then
1607 withval="$with_kerberos"
1610 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1611 if test "$withval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1618 ol_with_kerberos="$ol_arg"
1621 ol_with_kerberos="auto"
1623 # end --with-kerberos
1625 # OpenLDAP --with-readline
1626 # Check whether --with-readline or --without-readline was given.
1627 if test "${with_readline+set}" = set; then
1628 withval="$with_readline"
1631 for ol_val in auto yes no ; do
1632 if test "$withval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1639 ol_with_readline="$ol_arg"
1642 ol_with_readline="auto"
1644 # end --with-readline
1646 # OpenLDAP --with-threads
1647 # Check whether --with-threads or --without-threads was given.
1648 if test "${with_threads+set}" = set; then
1649 withval="$with_threads"
1652 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1653 if test "$withval" = "$ol_val" ; then
1657 if test "$ol_arg" = "invalid" ; then
1658 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1660 ol_with_threads="$ol_arg"
1663 ol_with_threads="auto"
1665 # end --with-threads
1667 # OpenLDAP --with-tls
1668 # Check whether --with-tls or --without-tls was given.
1669 if test "${with_tls+set}" = set; then
1673 for ol_val in auto ssleay openssl yes no ; do
1674 if test "$withval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1681 ol_with_tls="$ol_arg"
1688 # OpenLDAP --with-yielding_select
1689 # Check whether --with-yielding_select or --without-yielding_select was given.
1690 if test "${with_yielding_select+set}" = set; then
1691 withval="$with_yielding_select"
1694 for ol_val in auto yes no manual ; do
1695 if test "$withval" = "$ol_val" ; then
1699 if test "$ol_arg" = "invalid" ; then
1700 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1702 ol_with_yielding_select="$ol_arg"
1705 ol_with_yielding_select="auto"
1707 # end --with-yielding_select
1711 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1712 if test "${with_xxslapdoptions+set}" = set; then
1713 withval="$with_xxslapdoptions"
1717 # OpenLDAP --enable-slapd
1718 # Check whether --enable-slapd or --disable-slapd was given.
1719 if test "${enable_slapd+set}" = set; then
1720 enableval="$enable_slapd"
1723 for ol_val in auto yes no ; do
1724 if test "$enableval" = "$ol_val" ; then
1728 if test "$ol_arg" = "invalid" ; then
1729 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1731 ol_enable_slapd="$ol_arg"
1734 ol_enable_slapd="yes"
1736 # end --enable-slapd
1737 # OpenLDAP --enable-aci
1738 # Check whether --enable-aci or --disable-aci was given.
1739 if test "${enable_aci+set}" = set; then
1740 enableval="$enable_aci"
1743 for ol_val in auto yes no ; do
1744 if test "$enableval" = "$ol_val" ; then
1748 if test "$ol_arg" = "invalid" ; then
1749 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1751 ol_enable_aci="$ol_arg"
1757 # OpenLDAP --enable-cleartext
1758 # Check whether --enable-cleartext or --disable-cleartext was given.
1759 if test "${enable_cleartext+set}" = set; then
1760 enableval="$enable_cleartext"
1763 for ol_val in auto yes no ; do
1764 if test "$enableval" = "$ol_val" ; then
1768 if test "$ol_arg" = "invalid" ; then
1769 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1771 ol_enable_cleartext="$ol_arg"
1774 ol_enable_cleartext="yes"
1776 # end --enable-cleartext
1777 # OpenLDAP --enable-crypt
1778 # Check whether --enable-crypt or --disable-crypt was given.
1779 if test "${enable_crypt+set}" = set; then
1780 enableval="$enable_crypt"
1783 for ol_val in auto yes no ; do
1784 if test "$enableval" = "$ol_val" ; then
1788 if test "$ol_arg" = "invalid" ; then
1789 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1791 ol_enable_crypt="$ol_arg"
1794 ol_enable_crypt="no"
1796 # end --enable-crypt
1797 # OpenLDAP --enable-dynamic
1798 # Check whether --enable-dynamic or --disable-dynamic was given.
1799 if test "${enable_dynamic+set}" = set; then
1800 enableval="$enable_dynamic"
1803 for ol_val in auto yes no ; do
1804 if test "$enableval" = "$ol_val" ; then
1808 if test "$ol_arg" = "invalid" ; then
1809 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1811 ol_enable_dynamic="$ol_arg"
1814 ol_enable_dynamic="no"
1816 # end --enable-dynamic
1817 # OpenLDAP --enable-kpasswd
1818 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1819 if test "${enable_kpasswd+set}" = set; then
1820 enableval="$enable_kpasswd"
1823 for ol_val in auto yes no ; do
1824 if test "$enableval" = "$ol_val" ; then
1828 if test "$ol_arg" = "invalid" ; then
1829 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1831 ol_enable_kpasswd="$ol_arg"
1834 ol_enable_kpasswd="no"
1836 # end --enable-kpasswd
1837 # OpenLDAP --enable-lmpasswd
1838 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1839 if test "${enable_lmpasswd+set}" = set; then
1840 enableval="$enable_lmpasswd"
1843 for ol_val in auto yes no ; do
1844 if test "$enableval" = "$ol_val" ; then
1848 if test "$ol_arg" = "invalid" ; then
1849 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1851 ol_enable_lmpasswd="$ol_arg"
1854 ol_enable_lmpasswd="no"
1856 # end --enable-lmpasswd
1857 # OpenLDAP --enable-spasswd
1858 # Check whether --enable-spasswd or --disable-spasswd was given.
1859 if test "${enable_spasswd+set}" = set; then
1860 enableval="$enable_spasswd"
1863 for ol_val in auto yes no ; do
1864 if test "$enableval" = "$ol_val" ; then
1868 if test "$ol_arg" = "invalid" ; then
1869 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1871 ol_enable_spasswd="$ol_arg"
1874 ol_enable_spasswd="no"
1876 # end --enable-spasswd
1877 # OpenLDAP --enable-modules
1878 # Check whether --enable-modules or --disable-modules was given.
1879 if test "${enable_modules+set}" = set; then
1880 enableval="$enable_modules"
1883 for ol_val in auto yes no ; do
1884 if test "$enableval" = "$ol_val" ; then
1888 if test "$ol_arg" = "invalid" ; then
1889 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1891 ol_enable_modules="$ol_arg"
1894 ol_enable_modules="no"
1896 # end --enable-modules
1897 ol_enable_multimaster=${ol_enable_multimaster-no}
1898 # OpenLDAP --enable-phonetic
1899 # Check whether --enable-phonetic or --disable-phonetic was given.
1900 if test "${enable_phonetic+set}" = set; then
1901 enableval="$enable_phonetic"
1904 for ol_val in auto yes no ; do
1905 if test "$enableval" = "$ol_val" ; then
1909 if test "$ol_arg" = "invalid" ; then
1910 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1912 ol_enable_phonetic="$ol_arg"
1915 ol_enable_phonetic="no"
1917 # end --enable-phonetic
1918 # OpenLDAP --enable-rewrite
1919 # Check whether --enable-rewrite or --disable-rewrite was given.
1920 if test "${enable_rewrite+set}" = set; then
1921 enableval="$enable_rewrite"
1924 for ol_val in auto yes no ; do
1925 if test "$enableval" = "$ol_val" ; then
1929 if test "$ol_arg" = "invalid" ; then
1930 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1932 ol_enable_rewrite="$ol_arg"
1935 ol_enable_rewrite="no"
1937 # end --enable-rewrite
1938 # OpenLDAP --enable-rlookups
1939 # Check whether --enable-rlookups or --disable-rlookups was given.
1940 if test "${enable_rlookups+set}" = set; then
1941 enableval="$enable_rlookups"
1944 for ol_val in auto yes no ; do
1945 if test "$enableval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1952 ol_enable_rlookups="$ol_arg"
1955 ol_enable_rlookups="no"
1957 # end --enable-rlookups
1958 # OpenLDAP --enable-slp
1959 # Check whether --enable-slp or --disable-slp was given.
1960 if test "${enable_slp+set}" = set; then
1961 enableval="$enable_slp"
1964 for ol_val in auto yes no ; do
1965 if test "$enableval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1972 ol_enable_slp="$ol_arg"
1978 # OpenLDAP --enable-wrappers
1979 # Check whether --enable-wrappers or --disable-wrappers was given.
1980 if test "${enable_wrappers+set}" = set; then
1981 enableval="$enable_wrappers"
1984 for ol_val in auto yes no ; do
1985 if test "$enableval" = "$ol_val" ; then
1989 if test "$ol_arg" = "invalid" ; then
1990 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1992 ol_enable_wrappers="$ol_arg"
1995 ol_enable_wrappers="no"
1997 # end --enable-wrappers
1999 # OpenLDAP --enable-bdb
2000 # Check whether --enable-bdb or --disable-bdb was given.
2001 if test "${enable_bdb+set}" = set; then
2002 enableval="$enable_bdb"
2005 for ol_val in auto yes no ; do
2006 if test "$enableval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2013 ol_enable_bdb="$ol_arg"
2019 # OpenLDAP --with-bdb_module
2020 # Check whether --with-bdb_module or --without-bdb_module was given.
2021 if test "${with_bdb_module+set}" = set; then
2022 withval="$with_bdb_module"
2025 for ol_val in static dynamic ; do
2026 if test "$withval" = "$ol_val" ; then
2030 if test "$ol_arg" = "invalid" ; then
2031 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2033 ol_with_bdb_module="$ol_arg"
2036 ol_with_bdb_module="static"
2038 # end --with-bdb_module
2040 # OpenLDAP --enable-dnssrv
2041 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2042 if test "${enable_dnssrv+set}" = set; then
2043 enableval="$enable_dnssrv"
2046 for ol_val in auto yes no ; do
2047 if test "$enableval" = "$ol_val" ; then
2051 if test "$ol_arg" = "invalid" ; then
2052 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2054 ol_enable_dnssrv="$ol_arg"
2057 ol_enable_dnssrv="no"
2059 # end --enable-dnssrv
2060 # OpenLDAP --with-dnssrv_module
2061 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2062 if test "${with_dnssrv_module+set}" = set; then
2063 withval="$with_dnssrv_module"
2066 for ol_val in static dynamic ; do
2067 if test "$withval" = "$ol_val" ; then
2071 if test "$ol_arg" = "invalid" ; then
2072 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2074 ol_with_dnssrv_module="$ol_arg"
2077 ol_with_dnssrv_module="static"
2079 # end --with-dnssrv_module
2081 # OpenLDAP --enable-ldap
2082 # Check whether --enable-ldap or --disable-ldap was given.
2083 if test "${enable_ldap+set}" = set; then
2084 enableval="$enable_ldap"
2087 for ol_val in auto yes no ; do
2088 if test "$enableval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2095 ol_enable_ldap="$ol_arg"
2101 # OpenLDAP --with-ldap_module
2102 # Check whether --with-ldap_module or --without-ldap_module was given.
2103 if test "${with_ldap_module+set}" = set; then
2104 withval="$with_ldap_module"
2107 for ol_val in static dynamic ; do
2108 if test "$withval" = "$ol_val" ; then
2112 if test "$ol_arg" = "invalid" ; then
2113 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2115 ol_with_ldap_module="$ol_arg"
2118 ol_with_ldap_module="static"
2120 # end --with-ldap_module
2122 # OpenLDAP --enable-ldbm
2123 # Check whether --enable-ldbm or --disable-ldbm was given.
2124 if test "${enable_ldbm+set}" = set; then
2125 enableval="$enable_ldbm"
2128 for ol_val in auto yes no ; do
2129 if test "$enableval" = "$ol_val" ; then
2133 if test "$ol_arg" = "invalid" ; then
2134 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2136 ol_enable_ldbm="$ol_arg"
2142 # OpenLDAP --with-ldbm_api
2143 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2144 if test "${with_ldbm_api+set}" = set; then
2145 withval="$with_ldbm_api"
2148 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2149 if test "$withval" = "$ol_val" ; then
2153 if test "$ol_arg" = "invalid" ; then
2154 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2156 ol_with_ldbm_api="$ol_arg"
2159 ol_with_ldbm_api="auto"
2161 # end --with-ldbm_api
2163 # OpenLDAP --with-ldbm_module
2164 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2165 if test "${with_ldbm_module+set}" = set; then
2166 withval="$with_ldbm_module"
2169 for ol_val in static dynamic ; do
2170 if test "$withval" = "$ol_val" ; then
2174 if test "$ol_arg" = "invalid" ; then
2175 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2177 ol_with_ldbm_module="$ol_arg"
2180 ol_with_ldbm_module="static"
2182 # end --with-ldbm_module
2184 # OpenLDAP --with-ldbm_type
2185 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2186 if test "${with_ldbm_type+set}" = set; then
2187 withval="$with_ldbm_type"
2190 for ol_val in auto btree hash ; do
2191 if test "$withval" = "$ol_val" ; then
2195 if test "$ol_arg" = "invalid" ; then
2196 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2198 ol_with_ldbm_type="$ol_arg"
2201 ol_with_ldbm_type="auto"
2203 # end --with-ldbm_type
2205 # OpenLDAP --enable-meta
2206 # Check whether --enable-meta or --disable-meta was given.
2207 if test "${enable_meta+set}" = set; then
2208 enableval="$enable_meta"
2211 for ol_val in auto yes no ; do
2212 if test "$enableval" = "$ol_val" ; then
2216 if test "$ol_arg" = "invalid" ; then
2217 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2219 ol_enable_meta="$ol_arg"
2225 # OpenLDAP --with-meta_module
2226 # Check whether --with-meta_module or --without-meta_module was given.
2227 if test "${with_meta_module+set}" = set; then
2228 withval="$with_meta_module"
2231 for ol_val in static dynamic ; do
2232 if test "$withval" = "$ol_val" ; then
2236 if test "$ol_arg" = "invalid" ; then
2237 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2239 ol_with_meta_module="$ol_arg"
2242 ol_with_meta_module="static"
2244 # end --with-meta_module
2246 # OpenLDAP --enable-monitor
2247 # Check whether --enable-monitor or --disable-monitor was given.
2248 if test "${enable_monitor+set}" = set; then
2249 enableval="$enable_monitor"
2252 for ol_val in auto yes no ; do
2253 if test "$enableval" = "$ol_val" ; then
2257 if test "$ol_arg" = "invalid" ; then
2258 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2260 ol_enable_monitor="$ol_arg"
2263 ol_enable_monitor="no"
2265 # end --enable-monitor
2266 # OpenLDAP --with-monitor_module
2267 # Check whether --with-monitor_module or --without-monitor_module was given.
2268 if test "${with_monitor_module+set}" = set; then
2269 withval="$with_monitor_module"
2272 for ol_val in static dynamic ; do
2273 if test "$withval" = "$ol_val" ; then
2277 if test "$ol_arg" = "invalid" ; then
2278 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2280 ol_with_monitor_module="$ol_arg"
2283 ol_with_monitor_module="static"
2285 # end --with-monitor_module
2287 # OpenLDAP --enable-null
2288 # Check whether --enable-null or --disable-null was given.
2289 if test "${enable_null+set}" = set; then
2290 enableval="$enable_null"
2293 for ol_val in auto yes no ; do
2294 if test "$enableval" = "$ol_val" ; then
2298 if test "$ol_arg" = "invalid" ; then
2299 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2301 ol_enable_null="$ol_arg"
2307 # OpenLDAP --with-null_module
2308 # Check whether --with-null_module or --without-null_module was given.
2309 if test "${with_null_module+set}" = set; then
2310 withval="$with_null_module"
2313 for ol_val in static dynamic ; do
2314 if test "$withval" = "$ol_val" ; then
2318 if test "$ol_arg" = "invalid" ; then
2319 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2321 ol_with_null_module="$ol_arg"
2324 ol_with_null_module="static"
2326 # end --with-null_module
2328 # OpenLDAP --enable-passwd
2329 # Check whether --enable-passwd or --disable-passwd was given.
2330 if test "${enable_passwd+set}" = set; then
2331 enableval="$enable_passwd"
2334 for ol_val in auto yes no ; do
2335 if test "$enableval" = "$ol_val" ; then
2339 if test "$ol_arg" = "invalid" ; then
2340 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2342 ol_enable_passwd="$ol_arg"
2345 ol_enable_passwd="no"
2347 # end --enable-passwd
2348 # OpenLDAP --with-passwd_module
2349 # Check whether --with-passwd_module or --without-passwd_module was given.
2350 if test "${with_passwd_module+set}" = set; then
2351 withval="$with_passwd_module"
2354 for ol_val in static dynamic ; do
2355 if test "$withval" = "$ol_val" ; then
2359 if test "$ol_arg" = "invalid" ; then
2360 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2362 ol_with_passwd_module="$ol_arg"
2365 ol_with_passwd_module="static"
2367 # end --with-passwd_module
2369 # OpenLDAP --enable-perl
2370 # Check whether --enable-perl or --disable-perl was given.
2371 if test "${enable_perl+set}" = set; then
2372 enableval="$enable_perl"
2375 for ol_val in auto yes no ; do
2376 if test "$enableval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2383 ol_enable_perl="$ol_arg"
2389 # OpenLDAP --with-perl_module
2390 # Check whether --with-perl_module or --without-perl_module was given.
2391 if test "${with_perl_module+set}" = set; then
2392 withval="$with_perl_module"
2395 for ol_val in static dynamic ; do
2396 if test "$withval" = "$ol_val" ; then
2400 if test "$ol_arg" = "invalid" ; then
2401 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2403 ol_with_perl_module="$ol_arg"
2406 ol_with_perl_module="static"
2408 # end --with-perl_module
2410 # OpenLDAP --enable-shell
2411 # Check whether --enable-shell or --disable-shell was given.
2412 if test "${enable_shell+set}" = set; then
2413 enableval="$enable_shell"
2416 for ol_val in auto yes no ; do
2417 if test "$enableval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2424 ol_enable_shell="$ol_arg"
2427 ol_enable_shell="no"
2429 # end --enable-shell
2430 # OpenLDAP --with-shell_module
2431 # Check whether --with-shell_module or --without-shell_module was given.
2432 if test "${with_shell_module+set}" = set; then
2433 withval="$with_shell_module"
2436 for ol_val in static dynamic ; do
2437 if test "$withval" = "$ol_val" ; then
2441 if test "$ol_arg" = "invalid" ; then
2442 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2444 ol_with_shell_module="$ol_arg"
2447 ol_with_shell_module="static"
2449 # end --with-shell_module
2451 # OpenLDAP --enable-sql
2452 # Check whether --enable-sql or --disable-sql was given.
2453 if test "${enable_sql+set}" = set; then
2454 enableval="$enable_sql"
2457 for ol_val in auto yes no ; do
2458 if test "$enableval" = "$ol_val" ; then
2462 if test "$ol_arg" = "invalid" ; then
2463 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2465 ol_enable_sql="$ol_arg"
2471 # OpenLDAP --with-sql_module
2472 # Check whether --with-sql_module or --without-sql_module was given.
2473 if test "${with_sql_module+set}" = set; then
2474 withval="$with_sql_module"
2477 for ol_val in static dynamic ; do
2478 if test "$withval" = "$ol_val" ; then
2482 if test "$ol_arg" = "invalid" ; then
2483 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2485 ol_with_sql_module="$ol_arg"
2488 ol_with_sql_module="static"
2490 # end --with-sql_module
2492 # OpenLDAP --enable-tcl
2493 # Check whether --enable-tcl or --disable-tcl was given.
2494 if test "${enable_tcl+set}" = set; then
2495 enableval="$enable_tcl"
2498 for ol_val in auto yes no ; do
2499 if test "$enableval" = "$ol_val" ; then
2503 if test "$ol_arg" = "invalid" ; then
2504 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2506 ol_enable_tcl="$ol_arg"
2512 # OpenLDAP --with-tcl_module
2513 # Check whether --with-tcl_module or --without-tcl_module was given.
2514 if test "${with_tcl_module+set}" = set; then
2515 withval="$with_tcl_module"
2518 for ol_val in static dynamic ; do
2519 if test "$withval" = "$ol_val" ; then
2523 if test "$ol_arg" = "invalid" ; then
2524 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2526 ol_with_tcl_module="$ol_arg"
2529 ol_with_tcl_module="static"
2531 # end --with-tcl_module
2534 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2535 if test "${with_xxslurpdoptions+set}" = set; then
2536 withval="$with_xxslurpdoptions"
2540 # OpenLDAP --enable-slurpd
2541 # Check whether --enable-slurpd or --disable-slurpd was given.
2542 if test "${enable_slurpd+set}" = set; then
2543 enableval="$enable_slurpd"
2546 for ol_val in auto yes no ; do
2547 if test "$enableval" = "$ol_val" ; then
2551 if test "$ol_arg" = "invalid" ; then
2552 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2554 ol_enable_slurpd="$ol_arg"
2557 ol_enable_slurpd="auto"
2559 # end --enable-slurpd
2561 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2562 if test "${with_xxliboptions+set}" = set; then
2563 withval="$with_xxliboptions"
2567 # Check whether --enable-static or --disable-static was given.
2568 if test "${enable_static+set}" = set; then
2569 enableval="$enable_static"
2570 p=${PACKAGE-default}
2572 yes) enable_static=yes ;;
2573 no) enable_static=no ;;
2576 # Look at the argument we got. We use all the common list separators.
2577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2578 for pkg in $enableval; do
2579 if test "X$pkg" = "X$p"; then
2590 # Check whether --enable-shared or --disable-shared was given.
2591 if test "${enable_shared+set}" = set; then
2592 enableval="$enable_shared"
2593 p=${PACKAGE-default}
2595 yes) enable_shared=yes ;;
2596 no) enable_shared=no ;;
2599 # Look at the argument we got. We use all the common list separators.
2600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2601 for pkg in $enableval; do
2602 if test "X$pkg" = "X$p"; then
2616 if test $ol_enable_slapd = no ; then
2617 if test $ol_enable_bdb = yes ; then
2618 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2620 if test $ol_enable_dnssrv = yes ; then
2621 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2623 if test $ol_enable_ldap = yes ; then
2624 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2626 if test $ol_enable_ldbm = yes ; then
2627 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2629 if test $ol_enable_meta = yes ; then
2630 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2632 if test $ol_enable_monitor = yes ; then
2633 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2635 if test $ol_enable_null = yes ; then
2636 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2638 if test $ol_enable_passwd = yes ; then
2639 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2641 if test $ol_enable_perl = yes ; then
2642 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2644 if test $ol_enable_shell = yes ; then
2645 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2647 if test $ol_enable_tcl = yes ; then
2648 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2650 if test $ol_enable_sql = yes ; then
2651 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2653 if test $ol_enable_modules = yes ; then
2654 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2656 if test $ol_enable_multimaster = yes ; then
2657 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2659 if test $ol_enable_wrappers = yes ; then
2660 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2662 if test $ol_enable_phonetic = yes ; then
2663 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2665 if test $ol_enable_rlookups = yes ; then
2666 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2668 if test $ol_enable_aci = yes ; then
2669 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2671 if test $ol_with_ldbm_api != auto ; then
2672 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2674 if test $ol_with_ldbm_type != auto ; then
2675 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2677 if test $ol_with_bdb_module != static ; then
2678 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2680 if test $ol_with_dnssrv_module != static ; then
2681 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2683 if test $ol_with_ldap_module != static ; then
2684 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2686 if test $ol_with_ldbm_module != static ; then
2687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2689 if test $ol_with_meta_module != static ; then
2690 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2692 if test $ol_with_monitor_module != static ; then
2693 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2695 if test $ol_with_null_module != static ; then
2696 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2698 if test $ol_with_passwd_module != static ; then
2699 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2701 if test $ol_with_perl_module != static ; then
2702 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2704 if test $ol_with_shell_module != static ; then
2705 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2707 if test $ol_with_tcl_module != static ; then
2708 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2710 if test $ol_with_sql_module != static ; then
2711 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2713 if test $ol_enable_slurpd = yes ; then
2714 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2716 if test $ol_enable_rewrite = yes ; then
2717 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2720 # force settings to no
2726 ol_enable_monitor=no
2734 ol_enable_modules=no
2735 ol_enable_multimaster=no
2736 ol_enable_phonetic=no
2737 ol_enable_rlookups=no
2739 ol_enable_wrappers=no
2740 ol_enable_dynamic=no
2743 ol_with_ldbm_type=no
2745 ol_with_bdb_module=static
2746 ol_with_dnssrv_module=static
2747 ol_with_ldap_module=static
2748 ol_with_ldbm_module=static
2749 ol_with_meta_module=static
2750 ol_with_monitor_module=static
2751 ol_with_null_module=static
2752 ol_with_passwd_module=static
2753 ol_with_perl_module=static
2754 ol_with_shell_module=static
2755 ol_with_tcl_module=static
2756 ol_with_sql_module=static
2760 ol_enable_rewrite=no
2762 elif test $ol_enable_ldbm = no ; then
2764 if test $ol_with_ldbm_api != auto ; then
2765 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2768 if test $ol_with_ldbm_type != auto ; then
2769 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2772 if test $ol_with_ldbm_module != static ; then
2773 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2776 if test $ol_enable_modules != yes -a \
2777 $ol_enable_bdb = no -a \
2778 $ol_enable_dnssrv = no -a \
2779 $ol_enable_ldap = no -a \
2780 $ol_enable_meta = no -a \
2781 $ol_enable_monitor = no -a \
2782 $ol_enable_null = no -a \
2783 $ol_enable_passwd = no -a \
2784 $ol_enable_perl = no -a \
2785 $ol_enable_shell = no -a \
2786 $ol_enable_sql = no -a \
2787 $ol_enable_tcl = no ; then
2789 if test $ol_enable_slapd = yes ; then
2790 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2792 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2798 ol_with_ldbm_type=no
2799 ol_with_ldbm_module=static
2801 if test $ol_enable_bdb != no ; then
2802 ol_with_ldbm_api=berkeley
2806 if test $ol_with_ldbm_api = gdbm -a \
2807 $ol_with_ldbm_type = btree ; then
2808 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2810 if test $ol_with_ldbm_api = mdbm -a \
2811 $ol_with_ldbm_type = btree ; then
2812 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2814 if test $ol_with_ldbm_api = ndbm -a \
2815 $ol_with_ldbm_type = btree ; then
2816 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2819 if test $ol_enable_bdb = yes ; then
2820 if test $ol_with_ldbm_api = auto ; then
2821 ol_with_ldbm_api=berkeley
2822 elif test $ol_with_ldbm_api != berkeley ; then
2823 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2826 elif test $ol_enable_bdb = auto ; then
2827 if test $ol_with_ldbm_api != berkeley \
2828 -o $ol_with_ldbm_api != auto ; then
2829 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2835 if test $ol_enable_slurpd = yes ; then
2836 if test $ol_with_threads = no ; then
2837 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2841 if test $ol_enable_lmpasswd = yes ; then
2842 if test $ol_with_tls = no ; then
2843 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2847 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2848 if test $ol_with_kerberos = no ; then
2849 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2850 elif test $ol_with_kerberos = auto ; then
2851 ol_with_kerberos=yes
2854 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2855 if test $ol_with_kerberos = auto ; then
2857 elif test $ol_with_kerberos != no ; then
2858 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2863 if test $ol_enable_spasswd = yes ; then
2864 if test $ol_with_cyrus_sasl = no ; then
2865 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2867 ol_with_cyrus_sasl=yes
2870 echo "$ac_t""done" 1>&6
2899 BUILD_BDB_DYNAMIC=static
2900 BUILD_DNSSRV_DYNAMIC=static
2901 BUILD_LDAP_DYNAMIC=static
2902 BUILD_LDBM_DYNAMIC=static
2903 BUILD_META_DYNAMIC=static
2904 BUILD_MONITOR_DYNAMIC=static
2905 BUILD_NULL_DYNAMIC=static
2906 BUILD_PASSWD_DYNAMIC=static
2907 BUILD_PERL_DYNAMIC=static
2908 BUILD_SHELL_DYNAMIC=static
2909 BUILD_TCL_DYNAMIC=static
2910 BUILD_SQL_DYNAMIC=static
2912 SLAPD_MODULES_LDFLAGS=
2913 SLAPD_MODULES_CPPFLAGS=
2915 SLAPD_STATIC_BACKENDS=
2916 SLAPD_DYNAMIC_BACKENDS=
2939 # Find a good install program. We prefer a C program (faster),
2940 # so one script is as good as another. But avoid the broken or
2941 # incompatible versions:
2942 # SysV /etc/install, /usr/sbin/install
2943 # SunOS /usr/etc/install
2944 # IRIX /sbin/install
2946 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2947 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2948 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2949 # ./install, which can be erroneously created by make from ./install.sh.
2950 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2951 echo "configure:2952: checking for a BSD compatible install" >&5
2952 if test -z "$INSTALL"; then
2953 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2957 for ac_dir in $PATH; do
2958 # Account for people who put trailing slashes in PATH elements.
2960 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2965 for ac_prog in ginstall scoinst install; do
2966 if test -f $ac_dir/$ac_prog; then
2967 if test $ac_prog = install &&
2968 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2969 # AIX install. It has an incompatible calling convention.
2971 elif test $ac_prog = install &&
2972 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2973 # program-specific install script used by HP pwplus--don't use.
2976 ac_cv_path_install="$ac_dir/$ac_prog -c"
2987 if test "${ac_cv_path_install+set}" = set; then
2988 INSTALL="$ac_cv_path_install"
2990 # As a last resort, use the slow shell script. We don't cache a
2991 # path for INSTALL within a source directory, because that will
2992 # break other packages using the cache if that directory is
2993 # removed, or if the path is relative.
2994 INSTALL="$ac_install_sh"
2997 echo "$ac_t""$INSTALL" 1>&6
2999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3000 # It thinks the first close brace ends the variable substitution.
3001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3008 cat >> confdefs.h <<\EOF
3009 #define HAVE_MKVERSION 1
3017 *-*-aix*) if test -z "$CC" ; then
3018 case "$ol_with_threads" in
3019 auto | yes | posix) ol_aix_threads=yes ;;
3025 if test $ol_aix_threads = yes ; then
3026 if test -z "${CC}" ; then
3027 for ac_prog in cc_r xlc_r cc
3029 # Extract the first word of "$ac_prog", so it can be a program name with args.
3030 set dummy $ac_prog; ac_word=$2
3031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3032 echo "configure:3033: checking for $ac_word" >&5
3033 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3041 for ac_dir in $ac_dummy; do
3042 test -z "$ac_dir" && ac_dir=.
3043 if test -f $ac_dir/$ac_word; then
3044 ac_cv_prog_CC="$ac_prog"
3052 if test -n "$CC"; then
3053 echo "$ac_t""$CC" 1>&6
3055 echo "$ac_t""no" 1>&6
3058 test -n "$CC" && break
3062 if test "$CC" = cc ; then
3063 if test $ol_with_threads != auto ; then
3064 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3066 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3072 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3073 ol_with_threads=posix
3074 ol_cv_pthread_create=yes
3078 if test -z "${CC}"; then
3079 for ac_prog in cc gcc
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_word" >&5
3085 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3093 for ac_dir in $ac_dummy; do
3094 test -z "$ac_dir" && ac_dir=.
3095 if test -f $ac_dir/$ac_word; then
3096 ac_cv_prog_CC="$ac_prog"
3104 if test -n "$CC"; then
3105 echo "$ac_t""$CC" 1>&6
3107 echo "$ac_t""no" 1>&6
3110 test -n "$CC" && break
3112 test -n "$CC" || CC="missing"
3115 if test "${CC}" = "missing" ; then
3116 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3120 if test -z "${AR}"; then
3121 for ac_prog in ar gar
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 if test -n "$AR"; then
3131 ac_cv_prog_AR="$AR" # Let the user override the test.
3133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3135 for ac_dir in $ac_dummy; do
3136 test -z "$ac_dir" && ac_dir=.
3137 if test -f $ac_dir/$ac_word; then
3138 ac_cv_prog_AR="$ac_prog"
3146 if test -n "$AR"; then
3147 echo "$ac_t""$AR" 1>&6
3149 echo "$ac_t""no" 1>&6
3152 test -n "$AR" && break
3154 test -n "$AR" || AR="missing"
3157 if test "${AR}" = "missing" ; then
3158 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3164 # Find the correct PATH separator. Usually this is `:', but
3165 # DJGPP uses `;' like DOS.
3166 if test "X${PATH_SEPARATOR+set}" != Xset; then
3167 UNAME=${UNAME-`uname 2>/dev/null`}
3169 *-DOS) lt_cv_sys_path_separator=';' ;;
3170 *) lt_cv_sys_path_separator=':' ;;
3172 PATH_SEPARATOR=$lt_cv_sys_path_separator
3175 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3176 echo "configure:3177: checking for Cygwin environment" >&5
3177 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3187 #define __CYGWIN__ __CYGWIN32__
3192 if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 echo "configure: failed program was:" >&5
3197 cat conftest.$ac_ext >&5
3204 echo "$ac_t""$ac_cv_cygwin" 1>&6
3206 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3207 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3208 echo "configure:3209: checking for mingw32 environment" >&5
3209 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3220 if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3232 echo "$ac_t""$ac_cv_mingw32" 1>&6
3234 test "$ac_cv_mingw32" = yes && MINGW32=yes
3235 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3236 echo "configure:3237: checking for EMX OS/2 environment" >&5
3237 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3260 echo "$ac_t""$ac_cv_emxos2" 1>&6
3262 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3263 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3264 echo "configure:3265: checking how to run the C preprocessor" >&5
3265 # On Suns, sometimes $CPP names a directory.
3266 if test -n "$CPP" && test -d "$CPP"; then
3269 if test -z "$CPP"; then
3270 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 # This must be in double quotes, not single quotes, because CPP may get
3274 # substituted into the Makefile and "${CC-cc}" will confuse make.
3276 # On the NeXT, cc -E runs the code through the compiler's parser,
3277 # not just through cpp.
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3285 { (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3287 if test -z "$ac_err"; then
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3294 CPP="${CC-cc} -E -traditional-cpp"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3302 { (eval echo configure:3303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3304 if test -z "$ac_err"; then
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 CPP="${CC-cc} -nologo -E"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3319 { (eval echo configure:3320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3321 if test -z "$ac_err"; then
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3335 ac_cv_prog_CPP="$CPP"
3337 CPP="$ac_cv_prog_CPP"
3339 ac_cv_prog_CPP="$CPP"
3341 echo "$ac_t""$CPP" 1>&6
3343 # Check whether --enable-fast-install or --disable-fast-install was given.
3344 if test "${enable_fast_install+set}" = set; then
3345 enableval="$enable_fast_install"
3346 p=${PACKAGE-default}
3348 yes) enable_fast_install=yes ;;
3349 no) enable_fast_install=no ;;
3351 enable_fast_install=no
3352 # Look at the argument we got. We use all the common list separators.
3353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3354 for pkg in $enableval; do
3355 if test "X$pkg" = "X$p"; then
3356 enable_fast_install=yes
3363 enable_fast_install=yes
3366 # Extract the first word of "gcc", so it can be a program name with args.
3367 set dummy gcc; ac_word=$2
3368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3369 echo "configure:3370: checking for $ac_word" >&5
3370 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 if test -n "$CC"; then
3374 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3378 for ac_dir in $ac_dummy; do
3379 test -z "$ac_dir" && ac_dir=.
3380 if test -f $ac_dir/$ac_word; then
3389 if test -n "$CC"; then
3390 echo "$ac_t""$CC" 1>&6
3392 echo "$ac_t""no" 1>&6
3395 if test -z "$CC"; then
3396 # Extract the first word of "cc", so it can be a program name with args.
3397 set dummy cc; ac_word=$2
3398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3399 echo "configure:3400: checking for $ac_word" >&5
3400 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3409 for ac_dir in $ac_dummy; do
3410 test -z "$ac_dir" && ac_dir=.
3411 if test -f $ac_dir/$ac_word; then
3412 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3413 ac_prog_rejected=yes
3421 if test $ac_prog_rejected = yes; then
3422 # We found a bogon in the path, so make sure we never use it.
3423 set dummy $ac_cv_prog_CC
3425 if test $# -gt 0; then
3426 # We chose a different compiler from the bogus one.
3427 # However, it has the same basename, so the bogon will be chosen
3428 # first if we set CC to just the basename; use the full file name.
3430 set dummy "$ac_dir/$ac_word" "$@"
3438 if test -n "$CC"; then
3439 echo "$ac_t""$CC" 1>&6
3441 echo "$ac_t""no" 1>&6
3444 if test -z "$CC"; then
3445 case "`uname -s`" in
3446 *win32* | *WIN32* | *CYGWIN*)
3447 # Extract the first word of "cl", so it can be a program name with args.
3448 set dummy cl; ac_word=$2
3449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_word" >&5
3451 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 if test -n "$CC"; then
3455 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3459 for ac_dir in $ac_dummy; do
3460 test -z "$ac_dir" && ac_dir=.
3461 if test -f $ac_dir/$ac_word; then
3470 if test -n "$CC"; then
3471 echo "$ac_t""$CC" 1>&6
3473 echo "$ac_t""no" 1>&6
3478 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3481 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3482 echo "configure:3483: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3489 cross_compiling=$ac_cv_prog_cc_cross
3491 cat > conftest.$ac_ext << EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3499 ac_cv_prog_cc_works=yes
3500 # If we can't run a trivial program, we are probably using a cross compiler.
3501 if (./conftest; exit) 2>/dev/null; then
3502 ac_cv_prog_cc_cross=no
3504 ac_cv_prog_cc_cross=yes
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 ac_cv_prog_cc_works=no
3513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3517 cross_compiling=$ac_cv_prog_cc_cross
3519 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3520 if test $ac_cv_prog_cc_works = no; then
3521 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3523 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3524 echo "configure:3525: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3525 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3526 cross_compiling=$ac_cv_prog_cc_cross
3528 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3529 echo "configure:3530: checking whether we are using GNU C" >&5
3530 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.c <<EOF
3538 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3545 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3547 if test $ac_cv_prog_gcc = yes; then
3553 ac_test_CFLAGS="${CFLAGS+set}"
3554 ac_save_CFLAGS="$CFLAGS"
3556 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3557 echo "configure:3558: checking whether ${CC-cc} accepts -g" >&5
3558 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3559 echo $ac_n "(cached) $ac_c" 1>&6
3561 echo 'void f(){}' > conftest.c
3562 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3571 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS="$ac_save_CFLAGS"
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3581 if test "$GCC" = yes; then
3588 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3589 if test "${with_gnu_ld+set}" = set; then
3590 withval="$with_gnu_ld"
3591 test "$withval" = no || with_gnu_ld=yes
3597 if test "$GCC" = yes; then
3598 # Check if gcc -print-prog-name=ld gives a path.
3599 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3600 echo "configure:3601: checking for ld used by GCC" >&5
3603 # gcc leaves a trailing carriage return which upsets mingw
3604 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3606 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3609 # Accept absolute paths.
3610 [\\/]* | [A-Za-z]:[\\/]*)
3611 re_direlt='/[^/][^/]*/\.\./'
3612 # Canonicalize the path of ld
3613 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3614 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3615 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3617 test -z "$LD" && LD="$ac_prog"
3620 # If it fails, then pretend we aren't using GCC.
3624 # If it is relative, then search for the first ld in PATH.
3628 elif test "$with_gnu_ld" = yes; then
3629 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3630 echo "configure:3631: checking for GNU ld" >&5
3632 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3633 echo "configure:3634: checking for non-GNU ld" >&5
3635 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 if test -z "$LD"; then
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3640 for ac_dir in $PATH; do
3641 test -z "$ac_dir" && ac_dir=.
3642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3643 lt_cv_path_LD="$ac_dir/$ac_prog"
3644 # Check to see if the program is GNU ld. I'd rather use --version,
3645 # but apparently some GNU ld's only accept -v.
3646 # Break only if it was the GNU/non-GNU ld that we prefer.
3647 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3648 test "$with_gnu_ld" != no && break
3650 test "$with_gnu_ld" != yes && break
3656 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3661 if test -n "$LD"; then
3662 echo "$ac_t""$LD" 1>&6
3664 echo "$ac_t""no" 1>&6
3666 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3667 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3668 echo "configure:3669: checking if the linker ($LD) is GNU ld" >&5
3669 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3673 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3674 lt_cv_prog_gnu_ld=yes
3676 lt_cv_prog_gnu_ld=no
3680 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3681 with_gnu_ld=$lt_cv_prog_gnu_ld
3684 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3685 echo "configure:3686: checking for $LD option to reload object files" >&5
3686 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 lt_cv_ld_reload_flag='-r'
3692 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3693 reload_flag=$lt_cv_ld_reload_flag
3694 test -n "$reload_flag" && reload_flag=" $reload_flag"
3696 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3697 echo "configure:3698: checking for BSD-compatible nm" >&5
3698 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3701 if test -n "$NM"; then
3702 # Let the user override the test.
3705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3706 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3707 test -z "$ac_dir" && ac_dir=.
3708 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3709 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3710 # Check to see if the nm accepts a BSD-compat flag.
3711 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3712 # nm: unknown option "B" ignored
3713 # Tru64's nm complains that /dev/null is an invalid object file
3714 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3715 lt_cv_path_NM="$tmp_nm -B"
3717 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3718 lt_cv_path_NM="$tmp_nm -p"
3721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3722 continue # so that we can try to find one that supports BSD flags
3727 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3732 echo "$ac_t""$NM" 1>&6
3734 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3735 echo "configure:3736: checking whether ln -s works" >&5
3736 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3740 if ln -s X conftestdata 2>/dev/null
3743 ac_cv_prog_LN_S="ln -s"
3748 LN_S="$ac_cv_prog_LN_S"
3749 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3750 echo "$ac_t""yes" 1>&6
3752 echo "$ac_t""no" 1>&6
3755 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3756 echo "configure:3757: checking how to recognise dependant libraries" >&5
3757 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
3761 lt_cv_file_magic_test_file=
3762 lt_cv_deplibs_check_method='unknown'
3763 # Need to set the preceding variable on all platforms that support
3764 # interlibrary dependencies.
3765 # 'none' -- dependencies not supported.
3766 # `unknown' -- same as none, but documents that we really don't know.
3767 # 'pass_all' -- all dependencies passed with no checks.
3768 # 'test_compile' -- check by making test program.
3769 # 'file_magic [[regex]]' -- check by looking for files in library path
3770 # which responds to the $file_magic_cmd with a given egrep regex.
3771 # If you have `file' or equivalent on your system and you're not sure
3772 # whether `pass_all' will *always* work, you probably want this one.
3776 lt_cv_deplibs_check_method=pass_all
3780 lt_cv_deplibs_check_method=pass_all
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3789 cygwin* | mingw* | pw32*)
3790 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3791 lt_cv_file_magic_cmd='$OBJDUMP -f'
3794 darwin* | rhapsody*)
3795 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3796 lt_cv_file_magic_cmd='/usr/bin/file -L'
3798 rhapsody* | darwin1.[012])
3799 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3802 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3808 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3811 # Not sure whether the presence of OpenBSD here was a mistake.
3812 # Let's accept both of them until this is cleared up.
3813 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3814 lt_cv_file_magic_cmd=/usr/bin/file
3815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3819 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_deplibs_check_method=pass_all
3828 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3829 lt_cv_file_magic_cmd=/usr/bin/file
3830 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3836 # this will be overridden with pass_all, but let us keep it just in case
3837 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3841 *-32|*"-32 ") libmagic=32-bit;;
3842 *-n32|*"-n32 ") libmagic=N32;;
3843 *-64|*"-64 ") libmagic=64-bit;;
3844 *) libmagic=never-match;;
3846 # this will be overridden with pass_all, but let us keep it just in case
3847 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3850 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3851 lt_cv_deplibs_check_method=pass_all
3854 # This must be Linux ELF.
3857 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3858 lt_cv_deplibs_check_method=pass_all ;;
3860 # glibc up to 2.1.1 does not perform some relocations on ARM
3861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3863 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3867 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3868 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3870 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3876 lt_cv_file_magic_cmd=/usr/bin/file
3877 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3881 lt_cv_file_magic_cmd=/usr/bin/file
3882 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3886 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3890 osf3* | osf4* | osf5*)
3891 # this will be overridden with pass_all, but let us keep it just in case
3892 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3893 lt_cv_file_magic_test_file=/shlib/libc.so
3894 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_deplibs_check_method=pass_all
3902 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_file_magic_test_file=/lib/libc.so
3906 sysv5uw[78]* | sysv4*uw2*)
3907 lt_cv_deplibs_check_method=pass_all
3910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3911 case $host_vendor in
3913 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]'
3914 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3917 lt_cv_deplibs_check_method=pass_all
3920 lt_cv_file_magic_cmd='/bin/file'
3921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3924 lt_cv_file_magic_cmd='/bin/file'
3925 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3926 lt_cv_file_magic_test_file=/lib/libc.so
3934 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3935 file_magic_cmd=$lt_cv_file_magic_cmd
3936 deplibs_check_method=$lt_cv_deplibs_check_method
3938 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3939 echo "configure:3940: checking for object suffix" >&5
3940 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3944 echo 'int i = 1;' > conftest.$ac_ext
3945 if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3946 for ac_file in conftest.*; do
3949 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3953 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3958 echo "$ac_t""$ac_cv_objext" 1>&6
3959 OBJEXT=$ac_cv_objext
3960 ac_objext=$ac_cv_objext
3965 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3966 echo "configure:3967: checking for executable suffix" >&5
3967 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3974 echo 'int main () { return 0; }' > conftest.$ac_ext
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3977 for file in conftest.*; do
3979 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3980 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3984 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3987 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3992 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3993 echo "$ac_t""${ac_cv_exeext}" 1>&6
3996 if test $host != $build; then
3997 ac_tool_prefix=${host_alias}-
4005 # Check for command to grab the raw symbol name followed by C symbol from nm.
4006 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4007 echo "configure:4008: checking command to parse $NM output" >&5
4008 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4012 # These are sane defaults that work on at least a few old systems.
4013 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4015 # Character class describing NM global symbol codes.
4016 symcode='[BCDEGRST]'
4018 # Regexp to match symbols that can be accessed directly from C.
4019 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4021 # Transform the above into a raw symbol and a C symbol.
4022 symxfrm='\1 \2\3 \3'
4024 # Transform an extracted symbol line into a proper C declaration
4025 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4027 # Transform an extracted symbol line into symbol name and symbol address
4028 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'"
4030 # Define system-specific variables.
4035 cygwin* | mingw* | pw32*)
4036 symcode='[ABCDGISTW]'
4038 hpux*) # Its linker distinguishes data from code symbols
4039 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4040 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'"
4043 symcode='[BCDEGRST]'
4053 # Handle CRLF in mingw tool chain
4057 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4061 # If we're using GNU nm, then use its standard symbol codes.
4062 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4063 symcode='[ABCDGISTW]'
4066 # Try without a prefix undercore, then with it.
4067 for ac_symprfx in "" "_"; do
4069 # Write the raw and C identifiers.
4070 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4072 # Check to see that the pipe works correctly.
4075 cat > conftest.$ac_ext <<EOF
4080 void nm_test_func(){}
4084 int main(){nm_test_var='a';nm_test_func();return(0);}
4087 if { (eval echo configure:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088 # Now try to grab the symbols.
4090 if { (eval echo configure:4091: \"$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
4091 # Try sorting and uniquifying the output.
4092 if sort "$nlist" | uniq > "$nlist"T; then
4093 mv -f "$nlist"T "$nlist"
4098 # Make sure that we snagged all the symbols we need.
4099 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4100 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4101 cat <<EOF > conftest.$ac_ext
4107 # Now generate the symbol file.
4108 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4110 cat <<EOF >> conftest.$ac_ext
4111 #if defined (__STDC__) && __STDC__
4112 # define lt_ptr void *
4114 # define lt_ptr char *
4118 /* The mapping between symbol names and symbols. */
4123 lt_preloaded_symbols[] =
4126 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4127 cat <<\EOF >> conftest.$ac_ext
4135 # Now try linking the two files.
4136 mv conftest.$ac_objext conftstm.$ac_objext
4138 save_CFLAGS="$CFLAGS"
4139 LIBS="conftstm.$ac_objext"
4140 CFLAGS="$CFLAGS$no_builtin_flag"
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4145 CFLAGS="$save_CFLAGS"
4147 echo "cannot find nm_test_func in $nlist" >&5
4150 echo "cannot find nm_test_var in $nlist" >&5
4153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4156 echo "$progname: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 rm -f conftest* conftst*
4161 # Do not use the global_symbol_pipe unless it works.
4162 if test "$pipe_works" = yes; then
4165 lt_cv_sys_global_symbol_pipe=
4171 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4172 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4173 global_symbol_to_cdecl=
4174 global_symbol_to_c_name_address=
4176 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4177 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4179 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4181 echo "$ac_t""failed" 1>&6
4183 echo "$ac_t""ok" 1>&6
4186 for ac_hdr in dlfcn.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4222 echo "$ac_t""no" 1>&6
4230 # Only perform the check for file, if the check method requires it
4231 case $deplibs_check_method in
4233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4234 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4235 echo "configure:4236: checking for ${ac_tool_prefix}file" >&5
4236 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4247 ac_save_MAGIC_CMD="$MAGIC_CMD"
4248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4249 ac_dummy="/usr/bin:$PATH"
4250 for ac_dir in $ac_dummy; do
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f $ac_dir/${ac_tool_prefix}file; then
4253 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4254 if test -n "$file_magic_test_file"; then
4255 case $deplibs_check_method in
4257 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4260 egrep "$file_magic_regex" > /dev/null; then
4265 *** Warning: the command libtool uses to detect shared libraries,
4266 *** $file_magic_cmd, produces output that libtool cannot recognize.
4267 *** The result is that libtool may fail to recognize shared libraries
4268 *** as such. This will affect the creation of libtool libraries that
4269 *** depend on shared libraries, but programs linked with such libtool
4270 *** libraries will work regardless of this problem. Nevertheless, you
4271 *** may want to report the problem to your system manager and/or to
4272 *** bug-libtool@gnu.org
4282 MAGIC_CMD="$ac_save_MAGIC_CMD"
4287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4288 if test -n "$MAGIC_CMD"; then
4289 echo "$ac_t""$MAGIC_CMD" 1>&6
4291 echo "$ac_t""no" 1>&6
4294 if test -z "$lt_cv_path_MAGIC_CMD"; then
4295 if test -n "$ac_tool_prefix"; then
4296 echo $ac_n "checking for file""... $ac_c" 1>&6
4297 echo "configure:4298: checking for file" >&5
4298 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4303 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4309 ac_save_MAGIC_CMD="$MAGIC_CMD"
4310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4311 ac_dummy="/usr/bin:$PATH"
4312 for ac_dir in $ac_dummy; do
4313 test -z "$ac_dir" && ac_dir=.
4314 if test -f $ac_dir/file; then
4315 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4316 if test -n "$file_magic_test_file"; then
4317 case $deplibs_check_method in
4319 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4322 egrep "$file_magic_regex" > /dev/null; then
4327 *** Warning: the command libtool uses to detect shared libraries,
4328 *** $file_magic_cmd, produces output that libtool cannot recognize.
4329 *** The result is that libtool may fail to recognize shared libraries
4330 *** as such. This will affect the creation of libtool libraries that
4331 *** depend on shared libraries, but programs linked with such libtool
4332 *** libraries will work regardless of this problem. Nevertheless, you
4333 *** may want to report the problem to your system manager and/or to
4334 *** bug-libtool@gnu.org
4344 MAGIC_CMD="$ac_save_MAGIC_CMD"
4349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4350 if test -n "$MAGIC_CMD"; then
4351 echo "$ac_t""$MAGIC_CMD" 1>&6
4353 echo "$ac_t""no" 1>&6
4365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_word" >&5
4369 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 if test -n "$RANLIB"; then
4373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4377 for ac_dir in $ac_dummy; do
4378 test -z "$ac_dir" && ac_dir=.
4379 if test -f $ac_dir/$ac_word; then
4380 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4387 RANLIB="$ac_cv_prog_RANLIB"
4388 if test -n "$RANLIB"; then
4389 echo "$ac_t""$RANLIB" 1>&6
4391 echo "$ac_t""no" 1>&6
4395 if test -z "$ac_cv_prog_RANLIB"; then
4396 if test -n "$ac_tool_prefix"; then
4397 # Extract the first word of "ranlib", so it can be a program name with args.
4398 set dummy ranlib; ac_word=$2
4399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4400 echo "configure:4401: checking for $ac_word" >&5
4401 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 if test -n "$RANLIB"; then
4405 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4409 for ac_dir in $ac_dummy; do
4410 test -z "$ac_dir" && ac_dir=.
4411 if test -f $ac_dir/$ac_word; then
4412 ac_cv_prog_RANLIB="ranlib"
4417 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4420 RANLIB="$ac_cv_prog_RANLIB"
4421 if test -n "$RANLIB"; then
4422 echo "$ac_t""$RANLIB" 1>&6
4424 echo "$ac_t""no" 1>&6
4432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}strip; ac_word=$2
4434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4435 echo "configure:4436: checking for $ac_word" >&5
4436 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4437 echo $ac_n "(cached) $ac_c" 1>&6
4439 if test -n "$STRIP"; then
4440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4444 for ac_dir in $ac_dummy; do
4445 test -z "$ac_dir" && ac_dir=.
4446 if test -f $ac_dir/$ac_word; then
4447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4454 STRIP="$ac_cv_prog_STRIP"
4455 if test -n "$STRIP"; then
4456 echo "$ac_t""$STRIP" 1>&6
4458 echo "$ac_t""no" 1>&6
4462 if test -z "$ac_cv_prog_STRIP"; then
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "strip", so it can be a program name with args.
4465 set dummy strip; ac_word=$2
4466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4467 echo "configure:4468: checking for $ac_word" >&5
4468 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4471 if test -n "$STRIP"; then
4472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4476 for ac_dir in $ac_dummy; do
4477 test -z "$ac_dir" && ac_dir=.
4478 if test -f $ac_dir/$ac_word; then
4479 ac_cv_prog_STRIP="strip"
4484 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4487 STRIP="$ac_cv_prog_STRIP"
4488 if test -n "$STRIP"; then
4489 echo "$ac_t""$STRIP" 1>&6
4491 echo "$ac_t""no" 1>&6
4501 enable_win32_dll=yes
4503 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4504 if test "${enable_libtool_lock+set}" = set; then
4505 enableval="$enable_libtool_lock"
4509 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4511 # Some flags need to be propagated to the compiler or linker for good
4515 # Find out which ABI we are using.
4516 echo '#line 4517 "configure"' > conftest.$ac_ext
4517 if { (eval echo configure:4518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4518 case `/usr/bin/file conftest.$ac_objext` in
4534 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4535 SAVE_CFLAGS="$CFLAGS"
4536 CFLAGS="$CFLAGS -belf"
4537 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4538 echo "configure:4539: checking whether the C compiler needs -belf" >&5
4539 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4548 cross_compiling=$ac_cv_prog_cc_cross
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4558 if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4560 lt_cv_cc_needs_belf=yes
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4565 lt_cv_cc_needs_belf=no
4569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4573 cross_compiling=$ac_cv_prog_cc_cross
4577 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4578 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4579 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4580 CFLAGS="$SAVE_CFLAGS"
4584 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4588 echo "configure:4589: checking for $ac_word" >&5
4589 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 if test -n "$DLLTOOL"; then
4593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4597 for ac_dir in $ac_dummy; do
4598 test -z "$ac_dir" && ac_dir=.
4599 if test -f $ac_dir/$ac_word; then
4600 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4607 DLLTOOL="$ac_cv_prog_DLLTOOL"
4608 if test -n "$DLLTOOL"; then
4609 echo "$ac_t""$DLLTOOL" 1>&6
4611 echo "$ac_t""no" 1>&6
4615 if test -z "$ac_cv_prog_DLLTOOL"; then
4616 if test -n "$ac_tool_prefix"; then
4617 # Extract the first word of "dlltool", so it can be a program name with args.
4618 set dummy dlltool; ac_word=$2
4619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_word" >&5
4621 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 if test -n "$DLLTOOL"; then
4625 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4629 for ac_dir in $ac_dummy; do
4630 test -z "$ac_dir" && ac_dir=.
4631 if test -f $ac_dir/$ac_word; then
4632 ac_cv_prog_DLLTOOL="dlltool"
4637 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4640 DLLTOOL="$ac_cv_prog_DLLTOOL"
4641 if test -n "$DLLTOOL"; then
4642 echo "$ac_t""$DLLTOOL" 1>&6
4644 echo "$ac_t""no" 1>&6
4652 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}as; ac_word=$2
4654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4655 echo "configure:4656: checking for $ac_word" >&5
4656 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 if test -n "$AS"; then
4660 ac_cv_prog_AS="$AS" # Let the user override the test.
4662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4664 for ac_dir in $ac_dummy; do
4665 test -z "$ac_dir" && ac_dir=.
4666 if test -f $ac_dir/$ac_word; then
4667 ac_cv_prog_AS="${ac_tool_prefix}as"
4675 if test -n "$AS"; then
4676 echo "$ac_t""$AS" 1>&6
4678 echo "$ac_t""no" 1>&6
4682 if test -z "$ac_cv_prog_AS"; then
4683 if test -n "$ac_tool_prefix"; then
4684 # Extract the first word of "as", so it can be a program name with args.
4685 set dummy as; ac_word=$2
4686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_word" >&5
4688 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 if test -n "$AS"; then
4692 ac_cv_prog_AS="$AS" # Let the user override the test.
4694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4696 for ac_dir in $ac_dummy; do
4697 test -z "$ac_dir" && ac_dir=.
4698 if test -f $ac_dir/$ac_word; then
4704 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4708 if test -n "$AS"; then
4709 echo "$ac_t""$AS" 1>&6
4711 echo "$ac_t""no" 1>&6
4719 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4722 echo "configure:4723: checking for $ac_word" >&5
4723 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 if test -n "$OBJDUMP"; then
4727 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4731 for ac_dir in $ac_dummy; do
4732 test -z "$ac_dir" && ac_dir=.
4733 if test -f $ac_dir/$ac_word; then
4734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4741 OBJDUMP="$ac_cv_prog_OBJDUMP"
4742 if test -n "$OBJDUMP"; then
4743 echo "$ac_t""$OBJDUMP" 1>&6
4745 echo "$ac_t""no" 1>&6
4749 if test -z "$ac_cv_prog_OBJDUMP"; then
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "objdump", so it can be a program name with args.
4752 set dummy objdump; ac_word=$2
4753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_word" >&5
4755 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 if test -n "$OBJDUMP"; then
4759 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4763 for ac_dir in $ac_dummy; do
4764 test -z "$ac_dir" && ac_dir=.
4765 if test -f $ac_dir/$ac_word; then
4766 ac_cv_prog_OBJDUMP="objdump"
4771 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4774 OBJDUMP="$ac_cv_prog_OBJDUMP"
4775 if test -n "$OBJDUMP"; then
4776 echo "$ac_t""$OBJDUMP" 1>&6
4778 echo "$ac_t""no" 1>&6
4787 # recent cygwin and mingw systems supply a stub DllMain which the user
4788 # can override, but on older systems we have to supply one
4789 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4790 echo "configure:4791: checking if libtool should supply DllMain function" >&5
4791 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4799 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4803 if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4805 lt_cv_need_dllmain=no
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 lt_cv_need_dllmain=yes
4815 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4818 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4819 # old mingw systems require "-dll" to link a DLL, while more recent ones
4821 SAVE_CFLAGS="$CFLAGS"
4822 CFLAGS="$CFLAGS -mdll"
4823 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4824 echo "configure:4825: checking how to link DLLs" >&5
4825 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4838 lt_cv_cc_dll_switch=-mdll
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 lt_cv_cc_dll_switch=-dll
4848 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4849 CFLAGS="$SAVE_CFLAGS" ;;
4850 *-*-cygwin* | *-*-pw32*)
4851 # cygwin systems need to pass --dll to the linker, and not link
4852 # crt.o which will require a WinMain@16 definition.
4853 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4859 # Sed substitution that helps us do robust quoting. It backslashifies
4860 # metacharacters that are still active within double-quoted strings.
4861 Xsed='sed -e s/^X//'
4862 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4864 # Same as above, but do not quote variable references.
4865 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4867 # Sed substitution to delay expansion of an escaped shell variable in a
4868 # double_quote_subst'ed string.
4869 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4875 default_ofile=libtool
4876 can_build_shared=yes
4878 # All known linkers require a `.a' archive for static linking (except M$VC,
4879 # which needs '.lib').
4881 ltmain="$ac_aux_dir/ltmain.sh"
4882 ofile="$default_ofile"
4883 with_gnu_ld="$lt_cv_prog_gnu_ld"
4884 need_locks="$enable_libtool_lock"
4887 old_CFLAGS="$CFLAGS"
4889 # Set sane defaults for various variables
4890 test -z "$AR" && AR=ar
4891 test -z "$AR_FLAGS" && AR_FLAGS=cru
4892 test -z "$AS" && AS=as
4893 test -z "$CC" && CC=cc
4894 test -z "$DLLTOOL" && DLLTOOL=dlltool
4895 test -z "$LD" && LD=ld
4896 test -z "$LN_S" && LN_S="ln -s"
4897 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4898 test -z "$NM" && NM=nm
4899 test -z "$OBJDUMP" && OBJDUMP=objdump
4900 test -z "$RANLIB" && RANLIB=:
4901 test -z "$STRIP" && STRIP=:
4902 test -z "$ac_objext" && ac_objext=o
4904 if test x"$host" != x"$build"; then
4905 ac_tool_prefix=${host_alias}-
4910 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4913 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4918 # AIX sometimes has problems with the GCC collect2 program. For some
4919 # reason, if we set the COLLECT_NAMES environment variable, the problems
4920 # vanish in a puff of smoke.
4921 if test "X${COLLECT_NAMES+set}" != Xset; then
4923 export COLLECT_NAMES
4928 # Determine commands to create old-style static archives.
4929 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4930 old_postinstall_cmds='chmod 644 $oldlib'
4931 old_postuninstall_cmds=
4933 if test -n "$RANLIB"; then
4936 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4939 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4942 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4945 # Allow CC to be a program name with arguments.
4949 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4950 echo "configure:4951: checking for objdir" >&5
4951 rm -f .libs 2>/dev/null
4952 mkdir .libs 2>/dev/null
4953 if test -d .libs; then
4956 # MS-DOS does not allow filenames that begin with a dot.
4959 rmdir .libs 2>/dev/null
4960 echo "$ac_t""$objdir" 1>&6
4963 # Check whether --with-pic or --without-pic was given.
4964 if test "${with_pic+set}" = set; then
4971 test -z "$pic_mode" && pic_mode=default
4973 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4974 # in isolation, and that seeing it set (from the cache) indicates that
4975 # the associated values are set (in the cache) correctly too.
4976 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $compiler option to produce PIC" >&5
4978 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4982 lt_cv_prog_cc_shlib=
4984 lt_cv_prog_cc_static=
4985 lt_cv_prog_cc_no_builtin=
4986 lt_cv_prog_cc_can_build_shared=$can_build_shared
4988 if test "$GCC" = yes; then
4989 lt_cv_prog_cc_wl='-Wl,'
4990 lt_cv_prog_cc_static='-static'
4994 # Below there is a dirty hack to force normal static linking with -ldl
4995 # The problem is because libdl dynamically linked with both libc and
4996 # libC (AIX C++ library), which obviously doesn't included in libraries
4997 # list by gcc. This cause undefined symbols with -static flags.
4998 # This hack allows C programs to be linked with "-static -ldl", but
4999 # not sure about C++ programs.
5000 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5003 # FIXME: we need at least 68020 code to build shared libraries, but
5004 # adding the `-m68020' flag to GCC prevents building anything better,
5006 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5008 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5009 # PIC is the default for these OSes.
5011 darwin* | rhapsody*)
5012 # PIC is the default on this platform
5013 # Common symbols not allowed in MH_DYLIB files
5014 lt_cv_prog_cc_pic='-fno-common'
5016 cygwin* | mingw* | pw32* | os2*)
5017 # This hack is so that the source file can tell whether it is being
5018 # built for inclusion in a dll (and should export symbols for example).
5019 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5022 if test -d /usr/nec; then
5023 lt_cv_prog_cc_pic=-Kconform_pic
5027 lt_cv_prog_cc_pic='-fPIC'
5031 # PORTME Check for PIC flags for the system compiler.
5033 aix3* | aix4* | aix5*)
5034 lt_cv_prog_cc_wl='-Wl,'
5035 # All AIX code is PIC.
5036 if test "$host_cpu" = ia64; then
5037 # AIX 5 now supports IA64 processor
5038 lt_cv_prog_cc_static='-Bstatic'
5040 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5044 hpux9* | hpux10* | hpux11*)
5045 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5046 lt_cv_prog_cc_wl='-Wl,'
5047 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5048 lt_cv_prog_cc_pic='+Z'
5052 lt_cv_prog_cc_wl='-Wl,'
5053 lt_cv_prog_cc_static='-non_shared'
5054 # PIC (with -KPIC) is the default.
5057 cygwin* | mingw* | pw32* | os2*)
5058 # This hack is so that the source file can tell whether it is being
5059 # built for inclusion in a dll (and should export symbols for example).
5060 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5064 lt_cv_prog_cc_pic='-KPIC'
5065 lt_cv_prog_cc_static='-Bstatic'
5068 osf3* | osf4* | osf5*)
5069 # All OSF/1 code is PIC.
5070 lt_cv_prog_cc_wl='-Wl,'
5071 lt_cv_prog_cc_static='-non_shared'
5075 lt_cv_prog_cc_pic='-Kpic'
5076 lt_cv_prog_cc_static='-dn'
5077 lt_cv_prog_cc_shlib='-belf'
5081 lt_cv_prog_cc_pic='-KPIC'
5082 lt_cv_prog_cc_static='-Bstatic'
5083 lt_cv_prog_cc_wl='-Wl,'
5087 lt_cv_prog_cc_pic='-PIC'
5088 lt_cv_prog_cc_static='-Bstatic'
5089 lt_cv_prog_cc_wl='-Qoption ld '
5092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5093 lt_cv_prog_cc_pic='-KPIC'
5094 lt_cv_prog_cc_static='-Bstatic'
5095 if test "x$host_vendor" = xsni; then
5096 lt_cv_prog_cc_wl='-LD'
5098 lt_cv_prog_cc_wl='-Wl,'
5103 lt_cv_prog_cc_pic='-pic'
5104 lt_cv_prog_cc_static='-Bstatic'
5108 if test -d /usr/nec ;then
5109 lt_cv_prog_cc_pic='-Kconform_pic'
5110 lt_cv_prog_cc_static='-Bstatic'
5115 lt_cv_prog_cc_can_build_shared=no
5122 if test -z "$lt_cv_prog_cc_pic"; then
5123 echo "$ac_t""none" 1>&6
5125 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5127 # Check to make sure the pic_flag actually works.
5128 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5129 echo "configure:5130: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5130 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 save_CFLAGS="$CFLAGS"
5134 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 if { (eval echo configure:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146 hpux9* | hpux10* | hpux11*)
5147 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5148 # they create non-PIC objects. So, if there were any warnings, we
5149 # assume that PIC is not supported.
5150 if test -s conftest.err; then
5151 lt_cv_prog_cc_pic_works=no
5153 lt_cv_prog_cc_pic_works=yes
5157 lt_cv_prog_cc_pic_works=yes
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5165 lt_cv_prog_cc_pic_works=no
5169 CFLAGS="$save_CFLAGS"
5174 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5176 lt_cv_prog_cc_can_build_shared=no
5178 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5181 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5184 # Check for any special shared library compilation flags.
5185 if test -n "$lt_cv_prog_cc_shlib"; then
5186 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5187 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5189 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5190 lt_cv_prog_cc_can_build_shared=no
5194 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5195 echo "configure:5196: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5196 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 lt_cv_prog_cc_static_works=no
5200 save_LDFLAGS="$LDFLAGS"
5201 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5202 cat > conftest.$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5210 if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5212 lt_cv_prog_cc_static_works=yes
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5218 LDFLAGS="$save_LDFLAGS"
5223 # Belt *and* braces to stop my trousers falling down:
5224 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5225 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5227 pic_flag="$lt_cv_prog_cc_pic"
5228 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5229 wl="$lt_cv_prog_cc_wl"
5230 link_static_flag="$lt_cv_prog_cc_static"
5231 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5232 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5235 # Check to see if options -o and -c are simultaneously supported by compiler
5236 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5237 echo "configure:5238: checking if $compiler supports -c -o file.$ac_objext" >&5
5238 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5242 $rm -r conftest 2>/dev/null
5245 echo "int some_variable = 0;" > conftest.$ac_ext
5247 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5248 # that will create temporary files in the current directory regardless of
5249 # the output directory. Thus, making CWD read-only will cause this test
5250 # to fail, enabling locking or at least warning the user not to do parallel
5253 save_CFLAGS="$CFLAGS"
5254 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5256 if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5257 # The compiler can only warn and ignore the option if not recognized
5258 # So say no if there are warnings
5259 if test -s out/conftest.err; then
5260 lt_cv_compiler_c_o=no
5262 lt_cv_compiler_c_o=yes
5265 # Append any errors to the config.log.
5266 cat out/conftest.err 1>&5
5267 lt_cv_compiler_c_o=no
5269 CFLAGS="$save_CFLAGS"
5275 $rm -r conftest 2>/dev/null
5279 compiler_c_o=$lt_cv_compiler_c_o
5280 echo "$ac_t""$compiler_c_o" 1>&6
5282 if test x"$compiler_c_o" = x"yes"; then
5283 # Check to see if we can write to a .lo
5284 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5285 echo "configure:5286: checking if $compiler supports -c -o file.lo" >&5
5286 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5290 lt_cv_compiler_o_lo=no
5291 save_CFLAGS="$CFLAGS"
5292 CFLAGS="$CFLAGS -c -o conftest.lo"
5293 save_objext="$ac_objext"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5300 int some_variable = 0;
5303 if { (eval echo configure:5304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5305 # The compiler can only warn and ignore the option if not recognized
5306 # So say no if there are warnings
5307 if test -s conftest.err; then
5308 lt_cv_compiler_o_lo=no
5310 lt_cv_compiler_o_lo=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5318 ac_objext="$save_objext"
5319 CFLAGS="$save_CFLAGS"
5323 compiler_o_lo=$lt_cv_compiler_o_lo
5324 echo "$ac_t""$compiler_o_lo" 1>&6
5329 # Check to see if we can do hard links to lock some files if needed
5330 hard_links="nottested"
5331 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5332 # do not overwrite the value of need_locks provided by the user
5333 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5334 echo "configure:5335: checking if we can lock with hard links" >&5
5337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5339 ln conftest.a conftest.b 2>&5 || hard_links=no
5340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5341 echo "$ac_t""$hard_links" 1>&6
5342 if test "$hard_links" = no; then
5343 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5350 if test "$GCC" = yes; then
5351 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5352 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5353 echo "configure:5354: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5354 echo "int some_variable = 0;" > conftest.$ac_ext
5355 save_CFLAGS="$CFLAGS"
5356 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5357 compiler_rtti_exceptions=no
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5363 int some_variable = 0;
5366 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5368 # The compiler can only warn and ignore the option if not recognized
5369 # So say no if there are warnings
5370 if test -s conftest.err; then
5371 compiler_rtti_exceptions=no
5373 compiler_rtti_exceptions=yes
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5381 CFLAGS="$save_CFLAGS"
5382 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5384 if test "$compiler_rtti_exceptions" = "yes"; then
5385 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5387 no_builtin_flag=' -fno-builtin'
5391 # See if the linker supports building shared libraries.
5392 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5393 echo "configure:5394: checking whether the linker ($LD) supports shared libraries" >&5
5395 allow_undefined_flag=
5397 need_lib_prefix=unknown
5398 need_version=unknown
5399 # when you set need_version to no, make sure it does not cause -set_version
5400 # flags to be left without arguments
5402 archive_expsym_cmds=
5403 old_archive_from_new_cmds=
5404 old_archive_from_expsyms_cmds=
5405 export_dynamic_flag_spec=
5406 whole_archive_flag_spec=
5407 thread_safe_flag_spec=
5408 hardcode_into_libs=no
5409 hardcode_libdir_flag_spec=
5410 hardcode_libdir_separator=
5413 hardcode_shlibpath_var=unsupported
5415 link_all_deplibs=unknown
5416 always_export_symbols=no
5417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5418 # include_expsyms should be a list of space-separated symbols to be *always*
5419 # included in the symbol list
5421 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5422 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5423 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5424 # as well as any symbol that contains `d'.
5425 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5426 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5427 # platforms (ab)use it in PIC code, but their linkers get confused if
5428 # the symbol is explicitly referenced. Since portable code cannot
5429 # rely on this symbol name, it's probably fine to never include it in
5430 # preloaded symbol tables.
5431 extract_expsyms_cmds=
5434 cygwin* | mingw* | pw32*)
5435 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5436 # When not using gcc, we currently assume that we are using
5437 # Microsoft Visual C++.
5438 if test "$GCC" != yes; then
5448 if test "$with_gnu_ld" = yes; then
5449 # If archive_cmds runs LD, not CC, wlarc should be empty
5452 # See if GNU ld supports shared libraries.
5454 aix3* | aix4* | aix5*)
5455 # On AIX, the GNU linker is very broken
5456 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5460 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5461 *** to be unable to reliably create shared libraries on AIX.
5462 *** Therefore, libtool is disabling shared libraries support. If you
5463 *** really care for shared libraries, you may want to modify your PATH
5464 *** so that a non-GNU linker is found, and then restart.
5470 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)'
5471 hardcode_libdir_flag_spec='-L$libdir'
5472 hardcode_minus_L=yes
5474 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5475 # that the semantics of dynamic libraries on AmigaOS, at least up
5476 # to version 4, is to share data among multiple programs linked
5477 # with the same dynamic library. Since this doesn't match the
5478 # behavior of shared libraries on other platforms, we can use
5484 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5485 allow_undefined_flag=unsupported
5486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5487 # support --undefined. This deserves some investigation. FIXME
5488 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5494 cygwin* | mingw* | pw32*)
5495 # hardcode_libdir_flag_spec is actually meaningless, as there is
5496 # no search path for DLLs.
5497 hardcode_libdir_flag_spec='-L$libdir'
5498 allow_undefined_flag=unsupported
5499 always_export_symbols=yes
5501 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5502 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5503 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5504 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5505 else $CC -o impgen impgen.c ; fi)~
5506 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5508 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5510 # cygwin and mingw dlls have different entry points and sets of symbols
5512 # FIXME: what about values for MSVC?
5513 dll_entry=__cygwin_dll_entry@12
5514 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5518 dll_entry=_DllMainCRTStartup@12
5519 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5523 # mingw and cygwin differ, and it's simplest to just exclude the union
5524 # of the two symbol sets.
5525 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5527 # recent cygwin and mingw systems supply a stub DllMain which the user
5528 # can override, but on older systems we have to supply one (in ltdll.c)
5529 if test "x$lt_cv_need_dllmain" = "xyes"; then
5530 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5531 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~
5532 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5538 # Extract the symbol export list from an `--export-all' def file,
5539 # then regenerate the def file from the symbol export list, so that
5540 # the compiled dll only exports the symbol export list.
5541 # Be careful not to strip the DATA tag left be newer dlltools.
5542 export_symbols_cmds="$ltdll_cmds"'
5543 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5544 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5546 # If the export-symbols file already is a .def file (1st line
5547 # is EXPORTS), use it as is.
5548 # If DATA tags from a recent dlltool are present, honour them!
5549 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5550 cp $export_symbols $output_objdir/$soname-def;
5552 echo EXPORTS > $output_objdir/$soname-def;
5554 cat $export_symbols | while read symbol; do
5557 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5558 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5560 _lt_hint=`expr 1 + \$_lt_hint`;
5564 $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~
5565 $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~
5566 $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~
5567 $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~
5568 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5573 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5576 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5577 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5582 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5587 *** create shared libraries on Solaris systems. Therefore, libtool
5588 *** is disabling shared libraries support. We urge you to upgrade GNU
5589 *** binutils to release 2.9.1 or newer. Another option is to modify
5590 *** your PATH or compiler configuration so that the native linker is
5591 *** used, and then restart.
5594 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5595 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5596 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5603 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5606 hardcode_shlibpath_var=no
5610 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5619 if test "$ld_shlibs" = yes; then
5620 runpath_var=LD_RUN_PATH
5621 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5622 export_dynamic_flag_spec='${wl}--export-dynamic'
5624 cygwin* | mingw* | pw32*)
5625 # dlltool doesn't understand --whole-archive et. al.
5626 whole_archive_flag_spec=
5629 # ancient GNU ld didn't support --whole-archive et. al.
5630 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5631 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5633 whole_archive_flag_spec=
5639 # PORTME fill in a description of your system's linker (not GNU ld)
5642 allow_undefined_flag=unsupported
5643 always_export_symbols=yes
5644 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'
5645 # Note: this linker hardcodes the directories in LIBPATH if there
5646 # are no directories specified by -L.
5647 hardcode_minus_L=yes
5648 if test "$GCC" = yes && test -z "$link_static_flag"; then
5649 # Neither direct hardcoding nor static linking is supported with a
5651 hardcode_direct=unsupported
5656 if test "$host_cpu" = ia64; then
5657 # On IA64, the linker does run time linking by default, so we don't
5658 # have to do anything special.
5659 aix_use_runtimelinking=no
5660 exp_sym_flag='-Bexport'
5663 aix_use_runtimelinking=no
5665 # Test if we are trying to use run time linking or normal
5666 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5667 # need to do runtime linking.
5668 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5669 for ld_flag in $LDFLAGS; do
5670 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5671 aix_use_runtimelinking=yes
5677 exp_sym_flag='-bexport'
5678 no_entry_flag='-bnoentry'
5681 # When large executables or shared objects are built, AIX ld can
5682 # have problems creating the table of contents. If linking a library
5683 # or program results in "error TOC overflow" add -mminimal-toc to
5684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5689 hardcode_libdir_separator=':'
5690 if test "$GCC" = yes; then
5691 case $host_os in aix4.[012]|aix4.[012].*)
5692 collect2name=`${CC} -print-prog-name=collect2`
5693 if test -f "$collect2name" && \
5694 strings "$collect2name" | grep resolve_lib_name >/dev/null
5696 # We have reworked collect2
5699 # We have old collect2
5700 hardcode_direct=unsupported
5701 # It fails to find uninstalled libraries when the uninstalled
5702 # path is not listed in the libpath. Setting hardcode_minus_L
5703 # to unsupported forces relinking
5704 hardcode_minus_L=yes
5705 hardcode_libdir_flag_spec='-L$libdir'
5706 hardcode_libdir_separator=
5710 shared_flag='-shared'
5713 if test "$host_cpu" = ia64; then
5714 shared_flag='${wl}-G'
5716 if test "$aix_use_runtimelinking" = yes; then
5717 shared_flag='${wl}-G'
5719 shared_flag='${wl}-bM:SRE'
5724 # It seems that -bexpall can do strange things, so it is better to
5725 # generate a list of symbols to export.
5726 always_export_symbols=yes
5727 if test "$aix_use_runtimelinking" = yes; then
5728 # Warning - without using the other runtime loading flags (-brtl),
5729 # -berok will link without error, but may produce a broken library.
5730 allow_undefined_flag='-berok'
5731 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5732 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"
5734 if test "$host_cpu" = ia64; then
5735 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5736 allow_undefined_flag="-z nodefs"
5737 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"
5739 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5740 # Warning - without using the other run time loading flags,
5741 # -berok will link without error, but may produce a broken library.
5742 allow_undefined_flag='${wl}-berok'
5743 # This is a bit strange, but is similar to how AIX traditionally builds
5744 # it's shared libraries.
5745 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'
5751 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)'
5752 hardcode_libdir_flag_spec='-L$libdir'
5753 hardcode_minus_L=yes
5754 # see comment about different semantics on the GNU ld section
5758 cygwin* | mingw* | pw32*)
5759 # When not using gcc, we currently assume that we are using
5760 # Microsoft Visual C++.
5761 # hardcode_libdir_flag_spec is actually meaningless, as there is
5762 # no search path for DLLs.
5763 hardcode_libdir_flag_spec=' '
5764 allow_undefined_flag=unsupported
5765 # Tell ltmain to make .lib files, not .a files.
5767 # FIXME: Setting linknames here is a bad hack.
5768 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5769 # The linker will automatically build a .lib file if we build a DLL.
5770 old_archive_from_new_cmds='true'
5771 # FIXME: Should let the user specify the lib program.
5772 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5773 fix_srcfile_path='`cygpath -w "$srcfile"`'
5776 darwin* | rhapsody*)
5778 rhapsody* | darwin1.[012])
5779 allow_undefined_flag='-undefined suppress'
5782 allow_undefined_flag='-flat_namespace -undefined suppress'
5785 # FIXME: Relying on posixy $() will cause problems for
5786 # cross-compilation, but unfortunately the echo tests do not
5787 # yet detect zsh echo's removal of \ escapes.
5788 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5789 # We need to add '_' to the symbols in $export_symbols first
5790 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5792 hardcode_shlibpath_var=no
5793 whole_archive_flag_spec='-all_load $convenience'
5800 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5801 # support. Future versions do this automatically, but an explicit c++rt0.o
5802 # does not break anything, and helps significantly (at the cost of a little
5805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5806 hardcode_libdir_flag_spec='-R$libdir'
5808 hardcode_shlibpath_var=no
5811 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5815 hardcode_minus_L=yes
5816 hardcode_shlibpath_var=no
5819 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5821 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5822 hardcode_libdir_flag_spec='-R$libdir'
5824 hardcode_shlibpath_var=no
5827 hpux9* | hpux10* | hpux11*)
5829 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' ;;
5830 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5833 hardcode_libdir_separator=:
5835 hardcode_minus_L=yes # Not in the search PATH, but as the default
5836 # location of the library.
5837 export_dynamic_flag_spec='${wl}-E'
5841 if test "$GCC" = yes; then
5842 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'
5844 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'
5846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5847 hardcode_libdir_separator=:
5848 link_all_deplibs=yes
5852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5855 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5857 hardcode_libdir_flag_spec='-R$libdir'
5859 hardcode_shlibpath_var=no
5863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5866 hardcode_libdir_separator=:
5867 hardcode_shlibpath_var=no
5872 hardcode_shlibpath_var=no
5873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5876 export_dynamic_flag_spec='${wl}-E'
5879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5881 hardcode_libdir_flag_spec='-R$libdir'
5884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5892 hardcode_libdir_flag_spec='-L$libdir'
5893 hardcode_minus_L=yes
5894 allow_undefined_flag=unsupported
5895 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'
5896 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5900 if test "$GCC" = yes; then
5901 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5902 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'
5904 allow_undefined_flag=' -expect_unresolved \*'
5905 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'
5907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5908 hardcode_libdir_separator=:
5911 osf4* | osf5*) # as osf3* with the addition of -msym flag
5912 if test "$GCC" = yes; then
5913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5914 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'
5915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5917 allow_undefined_flag=' -expect_unresolved \*'
5918 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'
5919 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5920 $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'
5922 #Both c and cxx compiler support -rpath directly
5923 hardcode_libdir_flag_spec='-rpath $libdir'
5925 hardcode_libdir_separator=:
5929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5930 hardcode_shlibpath_var=no
5931 runpath_var=LD_RUN_PATH
5932 hardcode_runpath_var=yes
5933 export_dynamic_flag_spec='${wl}-Bexport'
5937 # gcc --version < 3.0 without binutils cannot create self contained
5938 # shared libraries reliably, requiring libgcc.a to resolve some of
5939 # the object symbols generated in some cases. Libraries that use
5940 # assert need libgcc.a to resolve __eprintf, for example. Linking
5941 # a copy of libgcc.a into every shared library to guarantee resolving
5942 # such symbols causes other problems: According to Tim Van Holder
5943 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5944 # (to the application) exception stack for one thing.
5945 no_undefined_flag=' -z defs'
5946 if test "$GCC" = yes; then
5947 case `$CC --version 2>/dev/null` in
5951 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5952 *** create self contained shared libraries on Solaris systems, without
5953 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5954 *** -no-undefined support, which will at least allow you to build shared
5955 *** libraries. However, you may find that when you link such libraries
5956 *** into an application without using GCC, you have to manually add
5957 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5958 *** upgrade to a newer version of GCC. Another option is to rebuild your
5959 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5966 # $CC -shared without GNU ld will not create a library from C++
5967 # object files and a static libstdc++, better avoid it by now
5968 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5969 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5971 hardcode_libdir_flag_spec='-R$libdir'
5972 hardcode_shlibpath_var=no
5974 solaris2.[0-5] | solaris2.[0-5].*) ;;
5975 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5976 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5978 link_all_deplibs=yes
5982 if test "x$host_vendor" = xsequent; then
5983 # Use $CC to link under sequent, because it throws in some extra .o
5984 # files that make .init and .fini sections work.
5985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5989 hardcode_libdir_flag_spec='-L$libdir'
5991 hardcode_minus_L=yes
5992 hardcode_shlibpath_var=no
5996 if test "x$host_vendor" = xsno; then
5997 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5998 hardcode_direct=yes # is this really true???
6000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6001 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6003 runpath_var='LD_RUN_PATH'
6004 hardcode_shlibpath_var=no
6008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6009 hardcode_shlibpath_var=no
6010 export_dynamic_flag_spec='-Bexport'
6014 no_undefined_flag=' -z text'
6015 # $CC -shared without GNU ld will not create a library from C++
6016 # object files and a static libstdc++, better avoid it by now
6017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6018 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6020 hardcode_libdir_flag_spec=
6021 hardcode_shlibpath_var=no
6022 runpath_var='LD_RUN_PATH'
6026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6027 hardcode_libdir_flag_spec='-L$libdir'
6028 hardcode_shlibpath_var=no
6032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6033 hardcode_libdir_flag_spec='-L$libdir'
6034 hardcode_shlibpath_var=no
6038 if test -d /usr/nec; then
6039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6040 hardcode_shlibpath_var=no
6041 runpath_var=LD_RUN_PATH
6042 hardcode_runpath_var=yes
6048 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6051 hardcode_shlibpath_var=no
6052 hardcode_runpath_var=yes
6053 runpath_var=LD_RUN_PATH
6056 sysv5uw7* | unixware7*)
6057 no_undefined_flag='${wl}-z ${wl}text'
6058 if test "$GCC" = yes; then
6059 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6061 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6063 runpath_var='LD_RUN_PATH'
6064 hardcode_shlibpath_var=no
6072 echo "$ac_t""$ld_shlibs" 1>&6
6073 test "$ld_shlibs" = no && can_build_shared=no
6075 # Check hardcoding attributes.
6076 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6077 echo "configure:6078: checking how to hardcode library paths into programs" >&5
6079 if test -n "$hardcode_libdir_flag_spec" || \
6080 test -n "$runpath_var"; then
6082 # We can hardcode non-existant directories.
6083 if test "$hardcode_direct" != no &&
6084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6085 # have to relink, otherwise we might link with an installed library
6086 # when we should be linking with a yet-to-be-installed one
6087 ## test "$hardcode_shlibpath_var" != no &&
6088 test "$hardcode_minus_L" != no; then
6089 # Linking always hardcodes the temporary library directory.
6090 hardcode_action=relink
6092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6093 hardcode_action=immediate
6096 # We cannot hardcode anything, or else we can only hardcode existing
6098 hardcode_action=unsupported
6100 echo "$ac_t""$hardcode_action" 1>&6
6104 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6105 echo "configure:6106: checking whether stripping libraries is possible" >&5
6106 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6109 echo "$ac_t""yes" 1>&6
6111 echo "$ac_t""no" 1>&6
6114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6117 # PORTME Fill in your ld.so characteristics
6118 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6119 echo "configure:6120: checking dynamic linker characteristics" >&5
6121 libname_spec='lib$name'
6128 shlibpath_overrides_runpath=unknown
6130 dynamic_linker="$host_os ld.so"
6131 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6137 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6138 shlibpath_var=LIBPATH
6140 # AIX has no versioning support, so we append a major version to the name.
6141 soname_spec='${libname}${release}.so$major'
6146 if test "$host_cpu" = ia64; then
6147 # AIX 5 supports IA64
6148 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6149 shlibpath_var=LD_LIBRARY_PATH
6151 # With GCC up to 2.95.x, collect2 would create an import file
6152 # for dependence libraries. The import file would start with
6153 # the line `#! .'. This would cause the generated library to
6154 # depend on `.', always an invalid library. This was fixed in
6155 # development snapshots of GCC prior to 3.0.
6157 aix4 | aix4.[01] | aix4.[01].*)
6158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6160 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6167 # AIX (on Power*) has no versioning support, so currently we can
6168 # not hardcode correct soname into executable. Probably we can
6169 # add versioning support to collect2, so additional links can
6170 # be useful in future.
6171 if test "$aix_use_runtimelinking" = yes; then
6172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6173 # instead of lib<name>.a to let people know that these are not
6174 # typical AIX shared libraries.
6175 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6177 # We preserve .a as extension for shared libraries through AIX4.2
6178 # and later when we are not doing run time linking.
6179 library_names_spec='${libname}${release}.a $libname.a'
6180 soname_spec='${libname}${release}.so$major'
6182 shlibpath_var=LIBPATH
6187 library_names_spec='$libname.ixlibrary $libname.a'
6188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6189 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'
6193 library_names_spec='${libname}.so'
6194 dynamic_linker="$host_os ld.so"
6195 shlibpath_var=LIBRARY_PATH
6201 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6202 soname_spec='${libname}${release}.so$major'
6203 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6204 shlibpath_var=LD_LIBRARY_PATH
6205 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6206 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6207 export_dynamic_flag_spec=-rdynamic
6208 # the default ld.so.conf also contains /usr/contrib/lib and
6209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6210 # libtool to hard-code these into programs
6213 cygwin* | mingw* | pw32*)
6214 version_type=windows
6217 case $GCC,$host_os in
6219 library_names_spec='$libname.dll.a'
6220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6221 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6222 dldir=$destdir/`dirname \$dlpath`~
6223 test -d \$dldir || mkdir -p \$dldir~
6224 $install_prog .libs/$dlname \$dldir/$dlname'
6225 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6226 dlpath=$dir/\$dldll~
6230 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6237 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6240 dynamic_linker='Win32 ld.exe'
6241 # FIXME: first we should search . and the directory the executable is in
6245 darwin* | rhapsody*)
6246 dynamic_linker="$host_os dyld"
6250 # FIXME: Relying on posixy $() will cause problems for
6251 # cross-compilation, but unfortunately the echo tests do not
6252 # yet detect zsh echo's removal of \ escapes.
6253 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)'
6254 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6255 shlibpath_overrides_runpath=yes
6256 shlibpath_var=DYLD_LIBRARY_PATH
6264 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6265 version_type=freebsd-$objformat
6266 case $version_type in
6268 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6273 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6277 shlibpath_var=LD_LIBRARY_PATH
6280 shlibpath_overrides_runpath=yes
6283 shlibpath_overrides_runpath=no
6284 hardcode_into_libs=yes
6293 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6294 soname_spec='${libname}${release}.so$major'
6295 shlibpath_var=LD_LIBRARY_PATH
6296 hardcode_into_libs=yes
6299 hpux9* | hpux10* | hpux11*)
6300 # Give a soname corresponding to the major version so that dld.sl refuses to
6301 # link against other versions.
6302 dynamic_linker="$host_os dld.sl"
6306 shlibpath_var=SHLIB_PATH
6307 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6308 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6309 soname_spec='${libname}${release}.sl$major'
6310 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6311 postinstall_cmds='chmod 555 $lib'
6318 soname_spec='${libname}${release}.so$major'
6319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6325 case $LD in # libtool.m4 will add one of these switches to LD
6326 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6327 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6328 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6329 *) libsuff= shlibsuff= libmagic=never-match;;
6333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6334 shlibpath_overrides_runpath=no
6335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6339 # No shared lib support for Linux oldld, aout, or coff.
6340 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6344 # This must be Linux ELF.
6349 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6350 soname_spec='${libname}${release}.so$major'
6351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6352 shlibpath_var=LD_LIBRARY_PATH
6353 shlibpath_overrides_runpath=no
6354 # This implies no fast_install, which is unacceptable.
6355 # Some rework will be needed to allow for fast_install
6356 # before this can be enabled.
6357 hardcode_into_libs=yes
6359 # We used to test for /lib/ld.so.1 and disable shared libraries on
6360 # powerpc, because MkLinux only supported shared libraries with the
6361 # GNU dynamic linker. Since this was broken with cross compilers,
6362 # most powerpc-linux boxes support dynamic linking these days and
6363 # people can always --disable-shared, the test was removed, and we
6364 # assume the GNU/Linux dynamic linker is in use.
6365 dynamic_linker='GNU/Linux ld.so'
6372 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6373 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6375 dynamic_linker='NetBSD (a.out) ld.so'
6377 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6378 soname_spec='${libname}${release}.so$major'
6379 dynamic_linker='NetBSD ld.elf_so'
6381 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6383 hardcode_into_libs=yes
6388 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6389 shlibpath_var=LD_LIBRARY_PATH
6390 shlibpath_overrides_runpath=yes
6397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6399 openbsd2.[89] | openbsd2.[89].*)
6400 shlibpath_overrides_runpath=no
6403 shlibpath_overrides_runpath=yes
6407 shlibpath_overrides_runpath=yes
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6411 shlibpath_var=LD_LIBRARY_PATH
6415 libname_spec='$name'
6417 library_names_spec='$libname.dll $libname.a'
6418 dynamic_linker='OS/2 ld.exe'
6419 shlibpath_var=LIBPATH
6422 osf3* | osf4* | osf5*)
6425 soname_spec='${libname}${release}.so'
6426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6427 shlibpath_var=LD_LIBRARY_PATH
6428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6434 soname_spec='${libname}${release}.so$major'
6435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6436 shlibpath_var=LD_LIBRARY_PATH
6443 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6444 soname_spec='${libname}${release}.so$major'
6445 shlibpath_var=LD_LIBRARY_PATH
6446 shlibpath_overrides_runpath=yes
6447 hardcode_into_libs=yes
6448 # ldd complains unless libraries are executable
6449 postinstall_cmds='chmod +x $lib'
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6456 shlibpath_var=LD_LIBRARY_PATH
6457 shlibpath_overrides_runpath=yes
6458 if test "$with_gnu_ld" = yes; then
6464 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6466 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6467 soname_spec='${libname}${release}.so$major'
6468 shlibpath_var=LD_LIBRARY_PATH
6469 case $host_vendor in
6471 shlibpath_overrides_runpath=no
6476 shlibpath_overrides_runpath=no
6477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6484 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6485 soname_spec='${libname}${release}.so$major'
6486 shlibpath_var=LD_LIBRARY_PATH
6493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6494 soname_spec='${libname}${release}.so$major'
6495 shlibpath_var=LD_LIBRARY_PATH
6499 if test -d /usr/nec ;then
6501 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6502 soname_spec='$libname.so.$major'
6503 shlibpath_var=LD_LIBRARY_PATH
6511 echo "$ac_t""$dynamic_linker" 1>&6
6512 test "$dynamic_linker" = no && can_build_shared=no
6514 # Report the final consequences.
6515 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6516 echo "configure:6517: checking if libtool supports shared libraries" >&5
6517 echo "$ac_t""$can_build_shared" 1>&6
6519 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6520 echo "configure:6521: checking whether to build shared libraries" >&5
6521 test "$can_build_shared" = "no" && enable_shared=no
6523 # On AIX, shared libraries and static libraries use the same namespace, and
6524 # are all built from PIC.
6527 test "$enable_shared" = yes && enable_static=no
6528 if test -n "$RANLIB"; then
6529 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6530 postinstall_cmds='$RANLIB $lib'
6535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6536 test "$enable_shared" = yes && enable_static=no
6540 echo "$ac_t""$enable_shared" 1>&6
6542 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6543 echo "configure:6544: checking whether to build static libraries" >&5
6544 # Make sure either enable_shared or enable_static is yes.
6545 test "$enable_shared" = yes || enable_static=yes
6546 echo "$ac_t""$enable_static" 1>&6
6548 if test "$hardcode_action" = relink; then
6549 # Fast installation is not supported
6550 enable_fast_install=no
6551 elif test "$shlibpath_overrides_runpath" = yes ||
6552 test "$enable_shared" = no; then
6553 # Fast installation is not necessary
6554 enable_fast_install=needless
6557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6558 if test "$GCC" = yes; then
6559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6562 if test "x$enable_dlopen" != xyes; then
6563 enable_dlopen=unknown
6564 enable_dlopen_self=unknown
6565 enable_dlopen_self_static=unknown
6572 lt_cv_dlopen="load_add_on"
6574 lt_cv_dlopen_self=yes
6577 cygwin* | mingw* | pw32*)
6578 lt_cv_dlopen="LoadLibrary"
6583 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6584 echo "configure:6585: checking for shl_load" >&5
6585 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6586 echo $ac_n "(cached) $ac_c" 1>&6
6588 cat > conftest.$ac_ext <<EOF
6589 #line 6590 "configure"
6590 #include "confdefs.h"
6591 /* System header to define __stub macros and hopefully few prototypes,
6592 which can conflict with char shl_load(); below. */
6594 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 eval "ac_cv_func_shl_load=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 eval "ac_cv_func_shl_load=no"
6625 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 lt_cv_dlopen="shl_load"
6629 echo "$ac_t""no" 1>&6
6630 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6631 echo "configure:6632: checking for shl_load in -ldld" >&5
6632 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6633 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 ac_save_LIBS="$LIBS"
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6652 eval "ac_cv_lib_$ac_lib_var=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 eval "ac_cv_lib_$ac_lib_var=no"
6660 LIBS="$ac_save_LIBS"
6663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6665 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6667 echo "$ac_t""no" 1>&6
6668 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6669 echo "configure:6670: checking for dlopen" >&5
6670 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* System header to define __stub macros and hopefully few prototypes,
6677 which can conflict with char dlopen(); below. */
6679 /* Override any gcc2 internal prototype to avoid an error. */
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6687 /* The GNU C library defines this for functions which it implements
6688 to always fail with ENOSYS. Some functions are actually named
6689 something starting with __ and the normal name is an alias. */
6690 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6698 if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6700 eval "ac_cv_func_dlopen=yes"
6702 echo "configure: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6705 eval "ac_cv_func_dlopen=no"
6710 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6712 lt_cv_dlopen="dlopen"
6714 echo "$ac_t""no" 1>&6
6715 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6716 echo "configure:6717: checking for dlopen in -ldl" >&5
6717 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6718 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 ac_save_LIBS="$LIBS"
6723 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure"
6725 #include "confdefs.h"
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 eval "ac_cv_lib_$ac_lib_var=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_lib_$ac_lib_var=no"
6745 LIBS="$ac_save_LIBS"
6748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6749 echo "$ac_t""yes" 1>&6
6750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6752 echo "$ac_t""no" 1>&6
6753 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6754 echo "configure:6755: checking for dlopen in -lsvld" >&5
6755 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6756 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 ac_save_LIBS="$LIBS"
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 eval "ac_cv_lib_$ac_lib_var=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_lib_$ac_lib_var=no"
6783 LIBS="$ac_save_LIBS"
6786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6790 echo "$ac_t""no" 1>&6
6791 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6792 echo "configure:6793: checking for dld_link in -ldld" >&5
6793 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 ac_save_LIBS="$LIBS"
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6811 if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 eval "ac_cv_lib_$ac_lib_var=yes"
6815 echo "configure: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 eval "ac_cv_lib_$ac_lib_var=no"
6821 LIBS="$ac_save_LIBS"
6824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6828 echo "$ac_t""no" 1>&6
6849 if test "x$lt_cv_dlopen" != xno; then
6855 case $lt_cv_dlopen in
6857 save_CPPFLAGS="$CPPFLAGS"
6858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6860 save_LDFLAGS="$LDFLAGS"
6861 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6864 LIBS="$lt_cv_dlopen_libs $LIBS"
6866 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6867 echo "configure:6868: checking whether a program can dlopen itself" >&5
6868 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 if test "$cross_compiling" = yes; then :
6872 lt_cv_dlopen_self=cross
6874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6875 lt_status=$lt_dlunknown
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6887 # define LT_DLGLOBAL RTLD_GLOBAL
6890 # define LT_DLGLOBAL DL_GLOBAL
6892 # define LT_DLGLOBAL 0
6896 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6897 find out it does not work in some platform. */
6898 #ifndef LT_DLLAZY_OR_NOW
6900 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6903 # define LT_DLLAZY_OR_NOW DL_LAZY
6906 # define LT_DLLAZY_OR_NOW RTLD_NOW
6909 # define LT_DLLAZY_OR_NOW DL_NOW
6911 # define LT_DLLAZY_OR_NOW 0
6919 extern "C" void exit (int);
6922 void fnord() { int i=42;}
6925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6926 int status = $lt_dlunknown;
6930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6932 /* dlclose (self); */
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6939 (./conftest; exit; ) 2>/dev/null
6942 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6943 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6944 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6947 # compilation failed
6948 lt_cv_dlopen_self=no
6956 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6958 if test "x$lt_cv_dlopen_self" = xyes; then
6959 LDFLAGS="$LDFLAGS $link_static_flag"
6960 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6961 echo "configure:6962: checking whether a statically linked program can dlopen itself" >&5
6962 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 if test "$cross_compiling" = yes; then :
6966 lt_cv_dlopen_self_static=cross
6968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6969 lt_status=$lt_dlunknown
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6981 # define LT_DLGLOBAL RTLD_GLOBAL
6984 # define LT_DLGLOBAL DL_GLOBAL
6986 # define LT_DLGLOBAL 0
6990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6991 find out it does not work in some platform. */
6992 #ifndef LT_DLLAZY_OR_NOW
6994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6997 # define LT_DLLAZY_OR_NOW DL_LAZY
7000 # define LT_DLLAZY_OR_NOW RTLD_NOW
7003 # define LT_DLLAZY_OR_NOW DL_NOW
7005 # define LT_DLLAZY_OR_NOW 0
7013 extern "C" void exit (int);
7016 void fnord() { int i=42;}
7019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7020 int status = $lt_dlunknown;
7024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7025 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7026 /* dlclose (self); */
7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7033 (./conftest; exit; ) 2>/dev/null
7036 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7037 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7038 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7041 # compilation failed
7042 lt_cv_dlopen_self_static=no
7050 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7053 CPPFLAGS="$save_CPPFLAGS"
7054 LDFLAGS="$save_LDFLAGS"
7059 case $lt_cv_dlopen_self in
7060 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7061 *) enable_dlopen_self=unknown ;;
7064 case $lt_cv_dlopen_self_static in
7065 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7066 *) enable_dlopen_self_static=unknown ;;
7071 if test "$enable_shared" = yes && test "$GCC" = yes; then
7072 case $archive_cmds in
7074 # FIXME: we may have to deal with multi-command sequences.
7077 # Test whether the compiler implicitly links with -lc since on some
7078 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7079 # to ld, don't add -lc before -lgcc.
7080 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7081 echo "configure:7082: checking whether -lc should be explicitly linked in" >&5
7082 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7083 echo $ac_n "(cached) $ac_c" 1>&6
7086 echo 'static int dummy;' > conftest.$ac_ext
7088 if { (eval echo configure:7089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7091 libobjs=conftest.$ac_objext
7093 wl=$lt_cv_prog_cc_wl
7099 save_allow_undefined_flag=$allow_undefined_flag
7100 allow_undefined_flag=
7101 if { (eval echo configure:7102: \"$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; }
7103 lt_cv_archive_cmds_need_lc=no
7105 lt_cv_archive_cmds_need_lc=yes
7107 allow_undefined_flag=$save_allow_undefined_flag
7109 cat conftest.err 1>&5
7113 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7117 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7119 # The second clause should only fire when bootstrapping the
7120 # libtool distribution, otherwise you forgot to ship ltmain.sh
7121 # with your package, and you will get complaints that there are
7122 # no rules to generate ltmain.sh.
7123 if test -f "$ltmain"; then
7126 # If there is no Makefile yet, we rely on a make rule to execute
7127 # `config.status --recheck' to rerun these tests and create the
7128 # libtool script then.
7129 test -f Makefile && make "$ltmain"
7132 if test -f "$ltmain"; then
7133 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7136 echo creating $ofile
7138 # Now quote all the things that may contain metacharacters while being
7139 # careful not to overquote the AC_SUBSTed values. We take copies of the
7140 # variables and quote the copies for generation of the libtool script.
7141 for var in echo old_CC old_CFLAGS \
7142 AR AR_FLAGS CC LD LN_S NM SHELL \
7143 reload_flag reload_cmds wl \
7144 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7145 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7146 library_names_spec soname_spec \
7147 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7148 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7149 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7150 old_striplib striplib file_magic_cmd export_symbols_cmds \
7151 deplibs_check_method allow_undefined_flag no_undefined_flag \
7152 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7153 global_symbol_to_c_name_address \
7154 hardcode_libdir_flag_spec hardcode_libdir_separator \
7155 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7156 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7159 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7160 old_postinstall_cmds | old_postuninstall_cmds | \
7161 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7162 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7163 postinstall_cmds | postuninstall_cmds | \
7164 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7165 # Double-quote double-evaled strings.
7166 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7174 cat <<__EOF__ > "${ofile}T"
7177 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7178 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7179 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7181 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7182 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7184 # This program is free software; you can redistribute it and/or modify
7185 # it under the terms of the GNU General Public License as published by
7186 # the Free Software Foundation; either version 2 of the License, or
7187 # (at your option) any later version.
7189 # This program is distributed in the hope that it will be useful, but
7190 # WITHOUT ANY WARRANTY; without even the implied warranty of
7191 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7192 # General Public License for more details.
7194 # You should have received a copy of the GNU General Public License
7195 # along with this program; if not, write to the Free Software
7196 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7198 # As a special exception to the GNU General Public License, if you
7199 # distribute this file as part of a program that contains a
7200 # configuration script generated by Autoconf, you may include it under
7201 # the same distribution terms that you use for the rest of that program.
7203 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7204 Xsed="sed -e s/^X//"
7206 # The HP-UX ksh and POSIX shell print the target directory to stdout
7208 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7210 # ### BEGIN LIBTOOL CONFIG
7212 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7214 # Shell to use when invoking shell scripts.
7217 # Whether or not to build shared libraries.
7218 build_libtool_libs=$enable_shared
7220 # Whether or not to build static libraries.
7221 build_old_libs=$enable_static
7223 # Whether or not to add -lc for building shared libraries.
7224 build_libtool_need_lc=$need_lc
7226 # Whether or not to optimize for fast installation.
7227 fast_install=$enable_fast_install
7230 host_alias=$host_alias
7233 # An echo program that does not interpret backslashes.
7238 AR_FLAGS=$lt_AR_FLAGS
7240 # The default C compiler.
7243 # Is the compiler the GNU C compiler?
7246 # The linker used to build libraries.
7249 # Whether we need hard or soft links.
7252 # A BSD-compatible nm program.
7255 # A symbol stripping program
7258 # Used to examine libraries when file_magic_cmd begins "file"
7259 MAGIC_CMD=$MAGIC_CMD
7261 # Used on cygwin: DLL creation program.
7264 # Used on cygwin: object dumper.
7267 # Used on cygwin: assembler.
7270 # The name of the directory that contains temporary libtool files.
7273 # How to create reloadable object files.
7274 reload_flag=$lt_reload_flag
7275 reload_cmds=$lt_reload_cmds
7277 # How to pass a linker flag through the compiler.
7280 # Object file suffix (normally "o").
7283 # Old archive suffix (normally "a").
7286 # Executable file suffix (normally "").
7289 # Additional compiler flags for building library objects.
7290 pic_flag=$lt_pic_flag
7293 # Does compiler simultaneously support -c and -o options?
7294 compiler_c_o=$lt_compiler_c_o
7296 # Can we write directly to a .lo ?
7297 compiler_o_lo=$lt_compiler_o_lo
7299 # Must we lock files when doing compilation ?
7300 need_locks=$lt_need_locks
7302 # Do we need the lib prefix for modules?
7303 need_lib_prefix=$need_lib_prefix
7305 # Do we need a version for libraries?
7306 need_version=$need_version
7308 # Whether dlopen is supported.
7309 dlopen_support=$enable_dlopen
7311 # Whether dlopen of programs is supported.
7312 dlopen_self=$enable_dlopen_self
7314 # Whether dlopen of statically linked programs is supported.
7315 dlopen_self_static=$enable_dlopen_self_static
7317 # Compiler flag to prevent dynamic linking.
7318 link_static_flag=$lt_link_static_flag
7320 # Compiler flag to turn off builtin functions.
7321 no_builtin_flag=$lt_no_builtin_flag
7323 # Compiler flag to allow reflexive dlopens.
7324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7326 # Compiler flag to generate shared objects directly from archives.
7327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7329 # Compiler flag to generate thread-safe objects.
7330 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7332 # Library versioning type.
7333 version_type=$version_type
7335 # Format of library name prefix.
7336 libname_spec=$lt_libname_spec
7338 # List of archive names. First name is the real one, the rest are links.
7339 # The last name is the one that the linker finds with -lNAME.
7340 library_names_spec=$lt_library_names_spec
7342 # The coded name of the library, if different from the real name.
7343 soname_spec=$lt_soname_spec
7345 # Commands used to build and install an old-style archive.
7347 old_archive_cmds=$lt_old_archive_cmds
7348 old_postinstall_cmds=$lt_old_postinstall_cmds
7349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7351 # Create an old-style archive from a shared archive.
7352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7354 # Create a temporary old-style archive to link instead of a shared archive.
7355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7357 # Commands used to build and install a shared archive.
7358 archive_cmds=$lt_archive_cmds
7359 archive_expsym_cmds=$lt_archive_expsym_cmds
7360 postinstall_cmds=$lt_postinstall_cmds
7361 postuninstall_cmds=$lt_postuninstall_cmds
7363 # Commands to strip libraries.
7364 old_striplib=$lt_old_striplib
7365 striplib=$lt_striplib
7367 # Method to check whether dependent libraries are shared objects.
7368 deplibs_check_method=$lt_deplibs_check_method
7370 # Command to use when deplibs_check_method == file_magic.
7371 file_magic_cmd=$lt_file_magic_cmd
7373 # Flag that allows shared libraries with undefined symbols to be built.
7374 allow_undefined_flag=$lt_allow_undefined_flag
7376 # Flag that forces no undefined symbols.
7377 no_undefined_flag=$lt_no_undefined_flag
7379 # Commands used to finish a libtool library installation in a directory.
7380 finish_cmds=$lt_finish_cmds
7382 # Same as above, but a single script fragment to be evaled but not shown.
7383 finish_eval=$lt_finish_eval
7385 # Take the output of nm and produce a listing of raw symbols and C names.
7386 global_symbol_pipe=$lt_global_symbol_pipe
7388 # Transform the output of nm in a proper C declaration
7389 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7391 # Transform the output of nm in a C name address pair
7392 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7394 # This is the shared library runtime path variable.
7395 runpath_var=$runpath_var
7397 # This is the shared library path variable.
7398 shlibpath_var=$shlibpath_var
7400 # Is shlibpath searched before the hard-coded library search path?
7401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7403 # How to hardcode a shared library path into an executable.
7404 hardcode_action=$hardcode_action
7406 # Whether we should hardcode library paths into libraries.
7407 hardcode_into_libs=$hardcode_into_libs
7409 # Flag to hardcode \$libdir into a binary during linking.
7410 # This must work even if \$libdir does not exist.
7411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7413 # Whether we need a single -rpath flag with a separated argument.
7414 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7416 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7418 hardcode_direct=$hardcode_direct
7420 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7422 hardcode_minus_L=$hardcode_minus_L
7424 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7425 # the resulting binary.
7426 hardcode_shlibpath_var=$hardcode_shlibpath_var
7428 # Variables whose values should be saved in libtool wrapper scripts and
7429 # restored at relink time.
7430 variables_saved_for_relink="$variables_saved_for_relink"
7432 # Whether libtool must link a program against all its dependency libraries.
7433 link_all_deplibs=$link_all_deplibs
7435 # Compile-time system search path for libraries
7436 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7438 # Run-time system search path for libraries
7439 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7441 # Fix the shell variable \$srcfile for the compiler.
7442 fix_srcfile_path="$fix_srcfile_path"
7444 # Set to yes if exported symbols are required.
7445 always_export_symbols=$always_export_symbols
7447 # The commands to list exported symbols.
7448 export_symbols_cmds=$lt_export_symbols_cmds
7450 # The commands to extract the exported symbol list from a shared archive.
7451 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7453 # Symbols that should not be listed in the preloaded symbols.
7454 exclude_expsyms=$lt_exclude_expsyms
7456 # Symbols that must always be exported.
7457 include_expsyms=$lt_include_expsyms
7459 # ### END LIBTOOL CONFIG
7465 cat <<\EOF >> "${ofile}T"
7467 # AIX sometimes has problems with the GCC collect2 program. For some
7468 # reason, if we set the COLLECT_NAMES environment variable, the problems
7469 # vanish in a puff of smoke.
7470 if test "X${COLLECT_NAMES+set}" != Xset; then
7472 export COLLECT_NAMES
7479 cygwin* | mingw* | pw32* | os2*)
7480 cat <<'EOF' >> "${ofile}T"
7481 # This is a source program that is used to create dlls on Windows
7482 # Don't remove nor modify the starting and closing comments
7483 # /* ltdll.c starts here */
7484 # #define WIN32_LEAN_AND_MEAN
7485 # #include <windows.h>
7486 # #undef WIN32_LEAN_AND_MEAN
7487 # #include <stdio.h>
7489 # #ifndef __CYGWIN__
7490 # # ifdef __CYGWIN32__
7491 # # define __CYGWIN__ __CYGWIN32__
7495 # #ifdef __cplusplus
7498 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7499 # #ifdef __cplusplus
7504 # #include <cygwin/cygwin_dll.h>
7505 # DECLARE_CYGWIN_DLL( DllMain );
7507 # HINSTANCE __hDllInstance_base;
7510 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7512 # __hDllInstance_base = hInst;
7515 # /* ltdll.c ends here */
7516 # This is a source program that is used to create import libraries
7517 # on Windows for dlls which lack them. Don't remove nor modify the
7518 # starting and closing comments
7519 # /* impgen.c starts here */
7520 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7522 # This file is part of GNU libtool.
7524 # This program is free software; you can redistribute it and/or modify
7525 # it under the terms of the GNU General Public License as published by
7526 # the Free Software Foundation; either version 2 of the License, or
7527 # (at your option) any later version.
7529 # This program is distributed in the hope that it will be useful,
7530 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7531 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7532 # GNU General Public License for more details.
7534 # You should have received a copy of the GNU General Public License
7535 # along with this program; if not, write to the Free Software
7536 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7539 # #include <stdio.h> /* for printf() */
7540 # #include <unistd.h> /* for open(), lseek(), read() */
7541 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7542 # #include <string.h> /* for strdup() */
7544 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7546 # #define O_BINARY 0
7549 # static unsigned int
7550 # pe_get16 (fd, offset)
7554 # unsigned char b[2];
7555 # lseek (fd, offset, SEEK_SET);
7557 # return b[0] + (b[1]<<8);
7560 # static unsigned int
7561 # pe_get32 (fd, offset)
7565 # unsigned char b[4];
7566 # lseek (fd, offset, SEEK_SET);
7568 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7571 # static unsigned int
7575 # unsigned char *b = ptr;
7576 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7585 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7586 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7587 # unsigned long name_rvas, nexp;
7588 # unsigned char *expdata, *erva;
7589 # char *filename, *dll_name;
7591 # filename = argv[1];
7593 # dll = open(filename, O_RDONLY|O_BINARY);
7597 # dll_name = filename;
7599 # for (i=0; filename[i]; i++)
7600 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7601 # dll_name = filename + i +1;
7603 # pe_header_offset = pe_get32 (dll, 0x3c);
7604 # opthdr_ofs = pe_header_offset + 4 + 20;
7605 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7607 # if (num_entries < 1) /* no exports */
7610 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7611 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7612 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7613 # secptr = (pe_header_offset + 4 + 20 +
7614 # pe_get16 (dll, pe_header_offset + 4 + 16));
7617 # for (i = 0; i < nsections; i++)
7620 # unsigned long secptr1 = secptr + 40 * i;
7621 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7622 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7623 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7624 # lseek(dll, secptr1, SEEK_SET);
7625 # read(dll, sname, 8);
7626 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7628 # expptr = fptr + (export_rva - vaddr);
7629 # if (export_rva + export_size > vaddr + vsize)
7630 # export_size = vsize - (export_rva - vaddr);
7635 # expdata = (unsigned char*)malloc(export_size);
7636 # lseek (dll, expptr, SEEK_SET);
7637 # read (dll, expdata, export_size);
7638 # erva = expdata - export_rva;
7640 # nexp = pe_as32 (expdata+24);
7641 # name_rvas = pe_as32 (expdata+32);
7643 # printf ("EXPORTS\n");
7644 # for (i = 0; i<nexp; i++)
7646 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7647 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7652 # /* impgen.c ends here */
7658 # We use sed instead of cat because bash on DJGPP gets confused if
7659 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7660 # text mode, it properly converts lines to CR/LF. This bash problem
7661 # is reportedly fixed, but why not run on old versions too?
7662 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7664 mv -f "${ofile}T" "$ofile" || \
7665 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7673 # This can be used to rebuild libtool when needed
7674 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7676 # Always use our own libtool.
7677 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7679 # Prevent multiple expansion
7684 if test "${OPENLDAP_CVS}"; then
7688 # test for ln hardlink support
7689 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7690 echo "configure:7691: checking whether ln works" >&5
7691 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7694 rm -f conftest.src conftest.dst
7695 echo "conftest" > conftest.src
7696 if ln conftest.src conftest.dst 2>/dev/null
7698 ol_cv_prog_LN_H="ln"
7700 ol_cv_prog_LN_H="cp"
7702 rm -f conftest.src conftest.dst
7705 LN_H="$ol_cv_prog_LN_H"
7706 if test "$ol_cv_prog_LN_H" = "ln"; then
7707 echo "$ac_t""yes" 1>&6
7709 echo "$ac_t""no" 1>&6
7712 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7713 echo "configure:7714: checking whether ln -s works" >&5
7714 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7715 echo $ac_n "(cached) $ac_c" 1>&6
7718 if ln -s X conftestdata 2>/dev/null
7721 ac_cv_prog_LN_S="ln -s"
7726 LN_S="$ac_cv_prog_LN_S"
7727 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7728 echo "$ac_t""yes" 1>&6
7730 echo "$ac_t""no" 1>&6
7735 if test $ol_enable_perl != no ; then
7736 # Extract the first word of "perl", so it can be a program name with args.
7737 set dummy perl; ac_word=$2
7738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_word" >&5
7740 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7745 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7748 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7753 for ac_dir in $ac_dummy; do
7754 test -z "$ac_dir" && ac_dir=.
7755 if test -f $ac_dir/$ac_word; then
7756 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7761 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7765 PERLBIN="$ac_cv_path_PERLBIN"
7766 if test -n "$PERLBIN"; then
7767 echo "$ac_t""$PERLBIN" 1>&6
7769 echo "$ac_t""no" 1>&6
7773 if test "no$PERLBIN" = "no" ; then
7774 if test $ol_enable_perl = yes ; then
7775 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7779 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7780 if test x"$ol_with_perl_module" = "xstatic" ; then
7781 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7783 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7789 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7790 echo "configure:7791: checking how to run the C preprocessor" >&5
7791 # On Suns, sometimes $CPP names a directory.
7792 if test -n "$CPP" && test -d "$CPP"; then
7795 if test -z "$CPP"; then
7796 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7799 # This must be in double quotes, not single quotes, because CPP may get
7800 # substituted into the Makefile and "${CC-cc}" will confuse make.
7802 # On the NeXT, cc -E runs the code through the compiler's parser,
7803 # not just through cpp.
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7811 { (eval echo configure:7812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7813 if test -z "$ac_err"; then
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7820 CPP="${CC-cc} -E -traditional-cpp"
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7828 { (eval echo configure:7829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7830 if test -z "$ac_err"; then
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 CPP="${CC-cc} -nologo -E"
7838 cat > conftest.$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7845 { (eval echo configure:7846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7847 if test -z "$ac_err"; then
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7861 ac_cv_prog_CPP="$CPP"
7863 CPP="$ac_cv_prog_CPP"
7865 ac_cv_prog_CPP="$CPP"
7867 echo "$ac_t""$CPP" 1>&6
7870 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7871 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7873 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7874 echo "configure: warning: programs compiled here do run here..." 1>&2
7875 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7877 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7878 echo "configure: warning: programs compiled here do not run here..." 1>&2
7879 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7883 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7884 echo "configure:7885: checking for Cygwin environment" >&5
7885 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7895 #define __CYGWIN__ __CYGWIN32__
7900 if { (eval echo configure:7901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7912 echo "$ac_t""$ac_cv_cygwin" 1>&6
7914 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7915 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7916 echo "configure:7917: checking for mingw32 environment" >&5
7917 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7918 echo $ac_n "(cached) $ac_c" 1>&6
7920 cat > conftest.$ac_ext <<EOF
7921 #line 7922 "configure"
7922 #include "confdefs.h"
7928 if { (eval echo configure:7929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7940 echo "$ac_t""$ac_cv_mingw32" 1>&6
7942 test "$ac_cv_mingw32" = yes && MINGW32=yes
7946 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7947 echo "configure:7948: checking for executable suffix" >&5
7948 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7949 echo $ac_n "(cached) $ac_c" 1>&6
7951 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7955 echo 'int main () { return 0; }' > conftest.$ac_ext
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7958 for file in conftest.*; do
7960 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7961 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7965 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7968 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7973 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7974 echo "$ac_t""${ac_cv_exeext}" 1>&6
7977 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7978 echo "configure:7979: checking for object suffix" >&5
7979 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7983 echo 'int i = 1;' > conftest.$ac_ext
7984 if { (eval echo configure:7985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7985 for ac_file in conftest.*; do
7988 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7992 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7997 echo "$ac_t""$ac_cv_objext" 1>&6
7998 OBJEXT=$ac_cv_objext
7999 ac_objext=$ac_cv_objext
8002 cat >> confdefs.h <<EOF
8003 #define EXEEXT "${EXEEXT}"
8007 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8008 echo "configure:8009: checking for be_app in -lbe" >&5
8009 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 ac_save_LIBS="$LIBS"
8014 LIBS="-lbe -lroot -lnet $LIBS"
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 eval "ac_cv_lib_$ac_lib_var=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_lib_$ac_lib_var=no"
8037 LIBS="$ac_save_LIBS"
8040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8041 echo "$ac_t""yes" 1>&6
8042 LIBS="$LIBS -lbe -lroot -lnet"
8044 echo "$ac_t""no" 1>&6
8052 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8053 echo "configure:8054: checking for ${CC-cc} option to accept ANSI C" >&5
8054 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8055 echo $ac_n "(cached) $ac_c" 1>&6
8057 am_cv_prog_cc_stdc=no
8059 # Don't try gcc -ansi; that turns off useful extensions and
8060 # breaks some systems' header files.
8061 # AIX -qlanglvl=ansi
8062 # Ultrix and OSF/1 -std1
8063 # HP-UX 10.20 and later -Ae
8064 # HP-UX older versions -Aa -D_HPUX_SOURCE
8065 # SVR4 -Xc -D__EXTENSIONS__
8066 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8068 CC="$ac_save_CC $ac_arg"
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8074 #include <sys/types.h>
8075 #include <sys/stat.h>
8076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8077 struct buf { int x; };
8078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8079 static char *e (p, i)
8085 static char *f (char * (*g) (char **, int), char **p, ...)
8090 s = g (p, va_arg (v,int));
8094 int test (int i, double x);
8095 struct s1 {int (*f) (int a);};
8096 struct s2 {int (*f) (double a);};
8097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8107 if { (eval echo configure:8108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8109 am_cv_prog_cc_stdc="$ac_arg"; break
8111 echo "configure: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8120 if test -z "$am_cv_prog_cc_stdc"; then
8121 echo "$ac_t""none needed" 1>&6
8123 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8125 case "x$am_cv_prog_cc_stdc" in
8127 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8130 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8131 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8134 # test for make depend flag
8137 if test -z "${MKDEP}"; then
8139 if test -z "${MKDEP_FLAGS}"; then
8140 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8141 echo "configure:8142: checking for ${OL_MKDEP} depend flag" >&5
8142 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8147 for flag in "-M" "-xM"; do
8148 cat > conftest.c <<EOF
8151 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8152 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8154 if test ! -f conftest."${ac_object}" ; then
8156 OL_MKDEP_FLAGS="$flag"
8165 echo "$ac_t""$ol_cv_mkdep" 1>&6
8168 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8173 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8178 if test "${ol_cv_mkdep}" = no ; then
8179 # this will soon become an error
8180 echo "configure: warning: do not know how to generate dependencies" 1>&2
8183 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8184 echo "configure:8185: checking for afopen in -ls" >&5
8185 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8189 ac_save_LIBS="$LIBS"
8191 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure"
8193 #include "confdefs.h"
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8203 if { (eval echo configure:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8205 eval "ac_cv_lib_$ac_lib_var=yes"
8207 echo "configure: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8210 eval "ac_cv_lib_$ac_lib_var=no"
8213 LIBS="$ac_save_LIBS"
8216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8217 echo "$ac_t""yes" 1>&6
8220 cat >> confdefs.h <<\EOF
8221 #define HAVE_AIX_SECURITY 1
8226 echo "$ac_t""no" 1>&6
8232 ac_cv_func_getopt=no
8233 cat >> confdefs.h <<\EOF
8234 #define BOTH_STRINGS_H 1
8241 if test $ol_enable_modules != no ; then
8242 for ac_hdr in ltdl.h
8244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8246 echo "configure:8247: checking for $ac_hdr" >&5
8247 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8250 cat > conftest.$ac_ext <<EOF
8251 #line 8252 "configure"
8252 #include "confdefs.h"
8255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8256 { (eval echo configure:8257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8258 if test -z "$ac_err"; then
8260 eval "ac_cv_header_$ac_safe=yes"
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8266 eval "ac_cv_header_$ac_safe=no"
8270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8271 echo "$ac_t""yes" 1>&6
8272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8273 cat >> confdefs.h <<EOF
8274 #define $ac_tr_hdr 1
8278 echo "$ac_t""no" 1>&6
8283 if test $ac_cv_header_ltdl_h = no ; then
8284 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8287 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8288 echo "configure:8289: checking for lt_dlinit in -lltdl" >&5
8289 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8291 echo $ac_n "(cached) $ac_c" 1>&6
8293 ac_save_LIBS="$LIBS"
8295 cat > conftest.$ac_ext <<EOF
8296 #line 8297 "configure"
8297 #include "confdefs.h"
8298 /* Override any gcc2 internal prototype to avoid an error. */
8299 /* We use char because int might match the return type of a gcc2
8300 builtin and then its argument prototype would still apply. */
8307 if { (eval echo configure:8308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8309 eval "ac_cv_lib_$ac_lib_var=yes"
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8314 eval "ac_cv_lib_$ac_lib_var=no"
8317 LIBS="$ac_save_LIBS"
8320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8321 echo "$ac_t""yes" 1>&6
8324 cat >> confdefs.h <<\EOF
8325 #define HAVE_LIBLTDL 1
8330 echo "$ac_t""no" 1>&6
8334 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8335 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8339 ol_with_bdb_module=static
8340 ol_with_dnssrv_module=static
8341 ol_with_ldap_module=static
8342 ol_with_ldbm_module=static
8343 ol_with_meta_module=static
8344 ol_with_monitor_module=static
8345 ol_with_null_module=static
8346 ol_with_passwd_module=static
8347 ol_with_perl_module=static
8348 ol_with_shell_module=static
8349 ol_with_tcl_module=static
8350 ol_with_sql_module=static
8354 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8355 echo "configure:8356: checking for EBCDIC" >&5
8356 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8365 #include <__ASCII__/generate_error.h>
8369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8370 { (eval echo configure:8371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8372 if test -z "$ac_err"; then
8374 ol_cv_cpp_ebcdic=yes
8377 echo "configure: failed program was:" >&5
8378 cat conftest.$ac_ext >&5
8385 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8386 if test $ol_cv_cpp_ebcdic = yes ; then
8387 cat >> confdefs.h <<\EOF
8388 #define HAVE_EBCDIC 1
8393 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8394 echo "configure:8395: checking for ANSI C header files" >&5
8395 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8398 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure"
8400 #include "confdefs.h"
8406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8407 { (eval echo configure:8408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8409 if test -z "$ac_err"; then
8411 ol_cv_header_stdc=yes
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 ol_cv_header_stdc=no
8421 if test $ol_cv_header_stdc = yes; then
8422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8429 egrep "memchr" >/dev/null 2>&1; then
8433 ol_cv_header_stdc=no
8439 if test $ol_cv_header_stdc = yes; then
8440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8447 egrep "free" >/dev/null 2>&1; then
8451 ol_cv_header_stdc=no
8457 if test $ol_cv_header_stdc = yes; then
8458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8459 if test "$cross_compiling" = yes; then
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8470 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8471 || ('j' <= (c) && (c) <= 'r') \
8472 || ('s' <= (c) && (c) <= 'z'))
8473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8476 int main () { int i; for (i = 0; i < 256; i++)
8477 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8481 if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8485 echo "configure: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8488 ol_cv_header_stdc=no
8496 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8497 if test $ol_cv_header_stdc = yes; then
8498 cat >> confdefs.h <<\EOF
8499 #define STDC_HEADERS 1
8503 ac_cv_header_stdc=disable
8506 if test $ol_cv_header_stdc != yes; then
8507 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8511 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8514 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8515 echo "configure:8516: checking for $ac_hdr that defines DIR" >&5
8516 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 #include <sys/types.h>
8528 if { (eval echo configure:8529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8530 eval "ac_cv_header_dirent_$ac_safe=yes"
8532 echo "configure: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8535 eval "ac_cv_header_dirent_$ac_safe=no"
8539 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8540 echo "$ac_t""yes" 1>&6
8541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8542 cat >> confdefs.h <<EOF
8543 #define $ac_tr_hdr 1
8545 ac_header_dirent=$ac_hdr; break
8547 echo "$ac_t""no" 1>&6
8550 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8551 if test $ac_header_dirent = dirent.h; then
8552 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8553 echo "configure:8554: checking for opendir in -ldir" >&5
8554 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8558 ac_save_LIBS="$LIBS"
8560 cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 /* Override any gcc2 internal prototype to avoid an error. */
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8572 if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8574 eval "ac_cv_lib_$ac_lib_var=yes"
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8579 eval "ac_cv_lib_$ac_lib_var=no"
8582 LIBS="$ac_save_LIBS"
8585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8589 echo "$ac_t""no" 1>&6
8593 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8594 echo "configure:8595: checking for opendir in -lx" >&5
8595 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8596 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 ac_save_LIBS="$LIBS"
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 /* Override any gcc2 internal prototype to avoid an error. */
8605 /* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8613 if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8615 eval "ac_cv_lib_$ac_lib_var=yes"
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 eval "ac_cv_lib_$ac_lib_var=no"
8623 LIBS="$ac_save_LIBS"
8626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8627 echo "$ac_t""yes" 1>&6
8630 echo "$ac_t""no" 1>&6
8635 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8636 echo "configure:8637: checking for sys/wait.h that is POSIX.1 compatible" >&5
8637 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <sys/types.h>
8644 #include <sys/wait.h>
8646 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8649 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8654 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8657 if { (eval echo configure:8658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8659 ac_cv_header_sys_wait_h=yes
8661 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5
8664 ac_cv_header_sys_wait_h=no
8669 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8670 if test $ac_cv_header_sys_wait_h = yes; then
8671 cat >> confdefs.h <<\EOF
8672 #define HAVE_SYS_WAIT_H 1
8677 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8678 echo "configure:8679: checking POSIX termios" >&5
8679 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 cat > conftest.$ac_ext <<EOF
8683 #line 8684 "configure"
8684 #include "confdefs.h"
8685 #include <sys/types.h>
8687 #include <termios.h>
8689 /* SunOS 4.0.3 has termios.h but not the library calls. */
8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8695 am_cv_sys_posix_termios=yes
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8700 am_cv_sys_posix_termios=no
8705 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8708 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8709 echo "configure:8710: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8710 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8711 echo $ac_n "(cached) $ac_c" 1>&6
8713 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8715 gwinsz_in_termios_h=no
8716 if test $am_cv_sys_posix_termios = yes; then
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 #include <sys/types.h>
8721 # include <termios.h>
8727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8728 egrep "yes" >/dev/null 2>&1; then
8730 gwinsz_in_termios_h=yes
8736 if test $gwinsz_in_termios_h = no; then
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <sys/types.h>
8741 # include <sys/ioctl.h>
8747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8748 egrep "yes" >/dev/null 2>&1; then
8750 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8758 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8759 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8760 cat >> confdefs.h <<\EOF
8761 #define GWINSZ_IN_SYS_IOCTL 1
8766 if test $am_cv_sys_posix_termios = yes ; then
8767 cat >> confdefs.h <<\EOF
8768 #define HAVE_POSIX_TERMIOS 1
8820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8822 echo "configure:8823: checking for $ac_hdr" >&5
8823 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8824 echo $ac_n "(cached) $ac_c" 1>&6
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8828 "configure"
8828 #include "confdefs.h"
8831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8832 { (eval echo configure:8833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8834 if test -z "$ac_err"; then
8836 eval "ac_cv_header_$ac_safe=yes"
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 eval "ac_cv_header_$ac_safe=no"
8846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8847 echo "$ac_t""yes" 1>&6
8848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8849 cat >> confdefs.h <<EOF
8850 #define $ac_tr_hdr 1
8854 echo "$ac_t""no" 1>&6
8861 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8862 echo "configure:8863: checking for dlopen" >&5
8863 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8866 cat > conftest.$ac_ext <<EOF
8867 #line 8868 "configure"
8868 #include "confdefs.h"
8869 /* System header to define __stub macros and hopefully few prototypes,
8870 which can conflict with char dlopen(); below. */
8872 /* Override any gcc2 internal prototype to avoid an error. */
8873 /* We use char because int might match the return type of a gcc2
8874 builtin and then its argument prototype would still apply. */
8880 /* The GNU C library defines this for functions which it implements
8881 to always fail with ENOSYS. Some functions are actually named
8882 something starting with __ and the normal name is an alias. */
8883 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8893 eval "ac_cv_func_dlopen=yes"
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 eval "ac_cv_func_dlopen=no"
8903 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8904 echo "$ac_t""yes" 1>&6
8907 echo "$ac_t""no" 1>&6
8908 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8909 echo "configure:8910: checking for dlopen in -ldl" >&5
8910 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8911 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8914 ac_save_LIBS="$LIBS"
8916 cat > conftest.$ac_ext <<EOF
8917 #line 8918 "configure"
8918 #include "confdefs.h"
8919 /* Override any gcc2 internal prototype to avoid an error. */
8920 /* We use char because int might match the return type of a gcc2
8921 builtin and then its argument prototype would still apply. */
8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 eval "ac_cv_lib_$ac_lib_var=yes"
8932 echo "configure: failed program was:" >&5
8933 cat conftest.$ac_ext >&5
8935 eval "ac_cv_lib_$ac_lib_var=no"
8938 LIBS="$ac_save_LIBS"
8941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_lib 1
8952 echo "$ac_t""no" 1>&6
8958 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8959 echo "configure:8960: checking for sigset in -lV3" >&5
8960 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8961 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8962 echo $ac_n "(cached) $ac_c" 1>&6
8964 ac_save_LIBS="$LIBS"
8966 cat > conftest.$ac_ext <<EOF
8967 #line 8968 "configure"
8968 #include "confdefs.h"
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 /* We use char because int might match the return type of a gcc2
8971 builtin and then its argument prototype would still apply. */
8978 if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8980 eval "ac_cv_lib_$ac_lib_var=yes"
8982 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5
8985 eval "ac_cv_lib_$ac_lib_var=no"
8988 LIBS="$ac_save_LIBS"
8991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8992 echo "$ac_t""yes" 1>&6
8993 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8995 cat >> confdefs.h <<EOF
8996 #define $ac_tr_lib 1
9002 echo "$ac_t""no" 1>&6
9006 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9007 echo "configure:9008: checking for winsock" >&5
9009 for curlib in ws2_32 wsock32; do
9010 LIBS="$LIBS -l$curlib"
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9017 char closesocket@4();
9018 char gethostname@8();
9029 if { (eval echo configure:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9040 if test $have_winsock = yes; then
9041 cat >> confdefs.h <<\EOF
9042 #define HAVE_WINSOCK 1
9045 ac_cv_func_socket=yes
9046 ac_cv_func_select=yes
9047 ac_cv_func_closesocket=yes
9048 ac_cv_func_gethostname=yes
9049 if test $curlib = ws2_32; then
9050 have_winsock=winsock2
9051 cat >> confdefs.h <<\EOF
9052 #define HAVE_WINSOCK2 1
9060 echo "$ac_t""$have_winsock" 1>&6
9063 echo $ac_n "checking for socket""... $ac_c" 1>&6
9064 echo "configure:9065: checking for socket" >&5
9065 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char socket(); below. */
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined (__stub_socket) || defined (__stub___socket)
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9095 eval "ac_cv_func_socket=yes"
9097 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5
9100 eval "ac_cv_func_socket=no"
9105 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9106 echo "$ac_t""yes" 1>&6
9109 echo "$ac_t""no" 1>&6
9111 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9112 echo "configure:9113: checking for main in -lsocket" >&5
9113 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9117 ac_save_LIBS="$LIBS"
9118 LIBS="-lsocket $LIBS"
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9127 if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 eval "ac_cv_lib_$ac_lib_var=yes"
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 eval "ac_cv_lib_$ac_lib_var=no"
9137 LIBS="$ac_save_LIBS"
9140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9141 echo "$ac_t""yes" 1>&6
9142 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9144 cat >> confdefs.h <<EOF
9145 #define $ac_tr_lib 1
9148 LIBS="-lsocket $LIBS"
9151 echo "$ac_t""no" 1>&6
9154 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9155 echo "configure:9156: checking for main in -lnet" >&5
9156 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9157 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9160 ac_save_LIBS="$LIBS"
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9172 eval "ac_cv_lib_$ac_lib_var=yes"
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9177 eval "ac_cv_lib_$ac_lib_var=no"
9180 LIBS="$ac_save_LIBS"
9183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9184 echo "$ac_t""yes" 1>&6
9185 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9187 cat >> confdefs.h <<EOF
9188 #define $ac_tr_lib 1
9194 echo "$ac_t""no" 1>&6
9197 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9198 echo "configure:9199: checking for main in -lnsl_s" >&5
9199 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9200 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9203 ac_save_LIBS="$LIBS"
9204 LIBS="-lnsl_s $LIBS"
9205 cat > conftest.$ac_ext <<EOF
9206 #line 9207 "configure"
9207 #include "confdefs.h"
9213 if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9215 eval "ac_cv_lib_$ac_lib_var=yes"
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 eval "ac_cv_lib_$ac_lib_var=no"
9223 LIBS="$ac_save_LIBS"
9226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9227 echo "$ac_t""yes" 1>&6
9228 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9230 cat >> confdefs.h <<EOF
9231 #define $ac_tr_lib 1
9234 LIBS="-lnsl_s $LIBS"
9237 echo "$ac_t""no" 1>&6
9240 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9241 echo "configure:9242: checking for main in -lnsl" >&5
9242 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9243 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9246 ac_save_LIBS="$LIBS"
9248 cat > conftest.$ac_ext <<EOF
9249 #line 9250 "configure"
9250 #include "confdefs.h"
9256 if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9258 eval "ac_cv_lib_$ac_lib_var=yes"
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9263 eval "ac_cv_lib_$ac_lib_var=no"
9266 LIBS="$ac_save_LIBS"
9269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9270 echo "$ac_t""yes" 1>&6
9271 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9272 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9273 cat >> confdefs.h <<EOF
9274 #define $ac_tr_lib 1
9280 echo "$ac_t""no" 1>&6
9283 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9284 echo "configure:9285: checking for socket in -linet" >&5
9285 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9286 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9287 echo $ac_n "(cached) $ac_c" 1>&6
9289 ac_save_LIBS="$LIBS"
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9294 /* Override any gcc2 internal prototype to avoid an error. */
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 eval "ac_cv_lib_$ac_lib_var=yes"
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 eval "ac_cv_lib_$ac_lib_var=no"
9313 LIBS="$ac_save_LIBS"
9316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9317 echo "$ac_t""yes" 1>&6
9318 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9320 cat >> confdefs.h <<EOF
9321 #define $ac_tr_lib 1
9327 echo "$ac_t""no" 1>&6
9330 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9331 echo "configure:9332: checking for main in -lgen" >&5
9332 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9333 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9336 ac_save_LIBS="$LIBS"
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9348 eval "ac_cv_lib_$ac_lib_var=yes"
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9353 eval "ac_cv_lib_$ac_lib_var=no"
9356 LIBS="$ac_save_LIBS"
9359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9360 echo "$ac_t""yes" 1>&6
9361 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9363 cat >> confdefs.h <<EOF
9364 #define $ac_tr_lib 1
9370 echo "$ac_t""no" 1>&6
9377 echo $ac_n "checking for select""... $ac_c" 1>&6
9378 echo "configure:9379: checking for select" >&5
9379 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9380 echo $ac_n "(cached) $ac_c" 1>&6
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9385 /* System header to define __stub macros and hopefully few prototypes,
9386 which can conflict with char select(); below. */
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9396 /* The GNU C library defines this for functions which it implements
9397 to always fail with ENOSYS. Some functions are actually named
9398 something starting with __ and the normal name is an alias. */
9399 #if defined (__stub_select) || defined (__stub___select)
9407 if { (eval echo configure:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9409 eval "ac_cv_func_select=yes"
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9414 eval "ac_cv_func_select=no"
9419 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9420 echo "$ac_t""yes" 1>&6
9423 echo "$ac_t""no" 1>&6
9424 { echo "configure: error: select() required." 1>&2; exit 1; }
9428 if test "${ac_cv_header_winsock_h}" != yes; then
9429 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9430 echo "configure:9431: checking types of arguments for select()" >&5
9431 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9434 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9435 echo $ac_n "(cached) $ac_c" 1>&6
9437 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9440 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9441 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9442 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9446 #ifdef HAVE_SYS_TYPES_H
9447 #include <sys/types.h>
9449 #ifdef HAVE_SYS_TIME_H
9450 #include <sys/time.h>
9452 #ifdef HAVE_SYS_SELECT_H
9453 #include <sys/select.h>
9455 #ifdef HAVE_SYS_SOCKET_H
9456 #include <sys/socket.h>
9458 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);
9463 if { (eval echo configure:9464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9465 ac_not_found=no ; break 3
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9482 if test "$ac_not_found" = yes; then
9483 ac_cv_func_select_arg1=int
9484 ac_cv_func_select_arg234='int *'
9485 ac_cv_func_select_arg5='struct timeval *'
9487 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9488 cat >> confdefs.h <<EOF
9489 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9492 cat >> confdefs.h <<EOF
9493 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9496 cat >> confdefs.h <<EOF
9497 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9504 for ac_hdr in regex.h
9506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9508 echo "configure:9509: checking for $ac_hdr" >&5
9509 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9512 cat > conftest.$ac_ext <<EOF
9513 #line 9514 "configure"
9514 #include "confdefs.h"
9517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9518 { (eval echo configure:9519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9520 if test -z "$ac_err"; then
9522 eval "ac_cv_header_$ac_safe=yes"
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9528 eval "ac_cv_header_$ac_safe=no"
9532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9535 cat >> confdefs.h <<EOF
9536 #define $ac_tr_hdr 1
9540 echo "$ac_t""no" 1>&6
9544 if test "$ac_cv_header_regex_h" != yes ; then
9545 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9548 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9549 echo "configure:9550: checking for library containing regfree" >&5
9550 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9553 ac_func_search_save_LIBS="$LIBS"
9554 ac_cv_search_regfree="no"
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9558 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9569 ac_cv_search_regfree="none required"
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9575 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 /* Override any gcc2 internal prototype to avoid an error. */
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9589 if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9591 ac_cv_search_regfree="-l$ac_lib"
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9599 LIBS="$ac_func_search_save_LIBS"
9602 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9603 if test "$ac_cv_search_regfree" != "no"; then
9604 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9607 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9611 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9612 echo "configure:9613: checking for compatible POSIX regex" >&5
9613 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9617 if test "$cross_compiling" = yes; then
9618 ol_cv_c_posix_regex=cross
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9624 #include <sys/types.h>
9626 static char *pattern, *string;
9634 if(regcomp(&re, pattern, 0)) {
9638 string = "ALL MATCH";
9640 rc = regexec(&re, string, 0, (void*)0, 0);
9647 if { (eval echo configure:9648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9649 ol_cv_c_posix_regex=yes
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9654 ol_cv_c_posix_regex=no
9661 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9663 if test "$ol_cv_c_posix_regex" = no ; then
9664 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9669 for ac_hdr in sys/uuid.h
9671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9673 echo "configure:9674: checking for $ac_hdr" >&5
9674 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9675 echo $ac_n "(cached) $ac_c" 1>&6
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9683 { (eval echo configure:9684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9685 if test -z "$ac_err"; then
9687 eval "ac_cv_header_$ac_safe=yes"
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9693 eval "ac_cv_header_$ac_safe=no"
9697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9698 echo "$ac_t""yes" 1>&6
9699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9700 cat >> confdefs.h <<EOF
9701 #define $ac_tr_hdr 1
9705 echo "$ac_t""no" 1>&6
9709 if test $ac_cv_header_sys_uuid_h = yes ; then
9712 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9713 echo "configure:9714: checking for library containing uuid_to_str" >&5
9714 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9715 echo $ac_n "(cached) $ac_c" 1>&6
9717 ac_func_search_save_LIBS="$LIBS"
9718 ac_cv_search_uuid_to_str="no"
9719 cat > conftest.$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9722 /* Override any gcc2 internal prototype to avoid an error. */
9723 /* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9731 if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9733 ac_cv_search_uuid_to_str="none required"
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9739 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9741 cat > conftest.$ac_ext <<EOF
9742 #line 9743 "configure"
9743 #include "confdefs.h"
9744 /* Override any gcc2 internal prototype to avoid an error. */
9745 /* We use char because int might match the return type of a gcc2
9746 builtin and then its argument prototype would still apply. */
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9755 ac_cv_search_uuid_to_str="-l$ac_lib"
9758 echo "configure: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9763 LIBS="$ac_func_search_save_LIBS"
9766 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9767 if test "$ac_cv_search_uuid_to_str" != "no"; then
9768 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9775 if test have_uuid = yes ; then
9776 cat >> confdefs.h <<\EOF
9777 #define HAVE_UUID_TO_STR 1
9781 test "$ac_cv_search_uuid_to_str" = "none required" || \
9782 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9786 if test $have_uuid = no ; then
9787 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9788 echo "configure:9789: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9790 LIBS="$LIBS -lrpcrt4"
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9795 char UuidCreate@4();
9796 char UuidToStringA@8();
9805 if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9815 if test $need_rpcrt = yes; then
9816 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9819 echo "$ac_t""$need_rpcrt" 1>&6
9823 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9824 echo "configure:9825: checking for res_query" >&5
9825 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9826 echo $ac_n "(cached) $ac_c" 1>&6
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 /* System header to define __stub macros and hopefully few prototypes,
9832 which can conflict with char res_query(); below. */
9834 /* Override any gcc2 internal prototype to avoid an error. */
9835 /* We use char because int might match the return type of a gcc2
9836 builtin and then its argument prototype would still apply. */
9842 /* The GNU C library defines this for functions which it implements
9843 to always fail with ENOSYS. Some functions are actually named
9844 something starting with __ and the normal name is an alias. */
9845 #if defined (__stub_res_query) || defined (__stub___res_query)
9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9855 eval "ac_cv_func_res_query=yes"
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 eval "ac_cv_func_res_query=no"
9865 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9866 echo "$ac_t""yes" 1>&6
9869 echo "$ac_t""no" 1>&6
9872 if test $ac_cv_func_res_query = no ; then
9873 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9874 echo "configure:9875: checking for __res_query" >&5
9875 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9876 echo $ac_n "(cached) $ac_c" 1>&6
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 /* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char __res_query(); below. */
9884 /* Override any gcc2 internal prototype to avoid an error. */
9885 /* We use char because int might match the return type of a gcc2
9886 builtin and then its argument prototype would still apply. */
9892 /* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895 #if defined (__stub___res_query) || defined (__stub_____res_query)
9903 if { (eval echo configure:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 eval "ac_cv_func___res_query=yes"
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9910 eval "ac_cv_func___res_query=no"
9915 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9919 echo "$ac_t""no" 1>&6
9922 ac_cv_func_res_query=$ac_cv_func___res_query
9925 if test $ac_cv_func_res_query = no ; then
9926 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9927 echo "configure:9928: checking for res_query in -lbind" >&5
9928 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9929 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9930 echo $ac_n "(cached) $ac_c" 1>&6
9932 ac_save_LIBS="$LIBS"
9934 cat > conftest.$ac_ext <<EOF
9935 #line 9936 "configure"
9936 #include "confdefs.h"
9937 /* Override any gcc2 internal prototype to avoid an error. */
9938 /* We use char because int might match the return type of a gcc2
9939 builtin and then its argument prototype would still apply. */
9946 if { (eval echo configure:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9948 eval "ac_cv_lib_$ac_lib_var=yes"
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9953 eval "ac_cv_lib_$ac_lib_var=no"
9956 LIBS="$ac_save_LIBS"
9959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9960 echo "$ac_t""yes" 1>&6
9961 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9963 cat >> confdefs.h <<EOF
9964 #define $ac_tr_lib 1
9970 echo "$ac_t""no" 1>&6
9973 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9976 if test $ac_cv_func_res_query = no ; then
9977 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9978 echo "configure:9979: checking for __res_query in -lbind" >&5
9979 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9980 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9981 echo $ac_n "(cached) $ac_c" 1>&6
9983 ac_save_LIBS="$LIBS"
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 /* Override any gcc2 internal prototype to avoid an error. */
9989 /* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9997 if { (eval echo configure:9998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9999 eval "ac_cv_lib_$ac_lib_var=yes"
10001 echo "configure: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10004 eval "ac_cv_lib_$ac_lib_var=no"
10007 LIBS="$ac_save_LIBS"
10010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10011 echo "$ac_t""yes" 1>&6
10012 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10014 cat >> confdefs.h <<EOF
10015 #define $ac_tr_lib 1
10018 LIBS="-lbind $LIBS"
10021 echo "$ac_t""no" 1>&6
10024 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10027 if test $ac_cv_func_res_query = no ; then
10028 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10029 echo "configure:10030: checking for res_query in -lresolv" >&5
10030 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10031 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10034 ac_save_LIBS="$LIBS"
10035 LIBS="-lresolv $LIBS"
10036 cat > conftest.$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 /* Override any gcc2 internal prototype to avoid an error. */
10040 /* We use char because int might match the return type of a gcc2
10041 builtin and then its argument prototype would still apply. */
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10050 eval "ac_cv_lib_$ac_lib_var=yes"
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10055 eval "ac_cv_lib_$ac_lib_var=no"
10058 LIBS="$ac_save_LIBS"
10061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10062 echo "$ac_t""yes" 1>&6
10063 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10064 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10065 cat >> confdefs.h <<EOF
10066 #define $ac_tr_lib 1
10069 LIBS="-lresolv $LIBS"
10072 echo "$ac_t""no" 1>&6
10075 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10078 if test $ac_cv_func_res_query = no ; then
10079 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10080 echo "configure:10081: checking for __res_query in -lresolv" >&5
10081 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10083 echo $ac_n "(cached) $ac_c" 1>&6
10085 ac_save_LIBS="$LIBS"
10086 LIBS="-lresolv $LIBS"
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 /* Override any gcc2 internal prototype to avoid an error. */
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10093 char __res_query();
10099 if { (eval echo configure:10100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10101 eval "ac_cv_lib_$ac_lib_var=yes"
10103 echo "configure: failed program was:" >&5
10104 cat conftest.$ac_ext >&5
10106 eval "ac_cv_lib_$ac_lib_var=no"
10109 LIBS="$ac_save_LIBS"
10112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10113 echo "$ac_t""yes" 1>&6
10114 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10115 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10116 cat >> confdefs.h <<EOF
10117 #define $ac_tr_lib 1
10120 LIBS="-lresolv $LIBS"
10123 echo "$ac_t""no" 1>&6
10126 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10129 if test "$ac_cv_func_res_query" = yes ; then
10130 cat >> confdefs.h <<\EOF
10131 #define HAVE_RES_QUERY 1
10135 if test $ol_enable_dnssrv != no ; then
10140 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10141 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10144 for ac_func in getaddrinfo gai_strerror inet_ntop
10146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10147 echo "configure:10148: checking for $ac_func" >&5
10148 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 /* System header to define __stub macros and hopefully few prototypes,
10155 which can conflict with char $ac_func(); below. */
10156 #include <assert.h>
10157 /* Override any gcc2 internal prototype to avoid an error. */
10158 /* We use char because int might match the return type of a gcc2
10159 builtin and then its argument prototype would still apply. */
10165 /* The GNU C library defines this for functions which it implements
10166 to always fail with ENOSYS. Some functions are actually named
10167 something starting with __ and the normal name is an alias. */
10168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10178 eval "ac_cv_func_$ac_func=yes"
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10183 eval "ac_cv_func_$ac_func=no"
10188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10191 cat >> confdefs.h <<EOF
10192 #define $ac_tr_func 1
10196 echo "$ac_t""no" 1>&6
10202 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10203 if test $ol_enable_ipv6 = yes ; then
10204 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10206 elif test $ol_enable_ipv6 != no ; then
10207 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10208 echo "configure:10209: checking INET6_ADDRSTRLEN" >&5
10209 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10217 # include <netinet/in.h>
10218 # ifdef INET6_ADDRSTRLEN
10219 __has_inet6_addrstrlen__;
10223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10224 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10226 ol_cv_inet6_addrstrlen=yes
10229 ol_cv_inet6_addrstrlen=no
10235 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10238 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10239 echo "configure:10240: checking struct sockaddr_storage" >&5
10240 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10248 #include <sys/types.h>
10249 #include <sys/socket.h>
10253 struct sockaddr_storage ss;
10257 if { (eval echo configure:10258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10259 ol_cv_struct_sockaddr_storage=yes
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10264 ol_cv_struct_sockaddr_storage=no
10269 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10271 if test $ol_cv_inet6_addrstrlen = yes \
10272 -a $ol_cv_struct_sockaddr_storage = yes ; then
10274 elif test $ol_enable_ipv6 = yes \
10275 -a $ol_cv_inet6_addrstrlen = no ; then
10276 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10277 elif test $ol_enable_ipv6 = yes \
10278 -a $ol_cv_struct_sockaddr_storage = no ; then
10279 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10283 if test $ol_enable_local != no ; then
10284 for ac_hdr in sys/un.h
10286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10288 echo "configure:10289: checking for $ac_hdr" >&5
10289 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10298 { (eval echo configure:10299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10300 if test -z "$ac_err"; then
10302 eval "ac_cv_header_$ac_safe=yes"
10305 echo "configure: failed program was:" >&5
10306 cat conftest.$ac_ext >&5
10308 eval "ac_cv_header_$ac_safe=no"
10312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10313 echo "$ac_t""yes" 1>&6
10314 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10315 cat >> confdefs.h <<EOF
10316 #define $ac_tr_hdr 1
10320 echo "$ac_t""no" 1>&6
10325 if test $ol_enable_local = auto ; then
10326 ol_enable_local=$ac_cv_header_sys_un_h
10327 elif test $ac_cv_header_sys_un_h = no ; then
10328 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10337 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10338 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10339 -o $ol_with_kerberos = k425 ; then
10341 for ac_hdr in krb5.h
10343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10345 echo "configure:10346: checking for $ac_hdr" >&5
10346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
10349 cat > conftest.$ac_ext <<EOF
10350 #line 10351 "configure"
10351 #include "confdefs.h"
10354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10355 { (eval echo configure:10356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10357 if test -z "$ac_err"; then
10359 eval "ac_cv_header_$ac_safe=yes"
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 eval "ac_cv_header_$ac_safe=no"
10369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10370 echo "$ac_t""yes" 1>&6
10371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10372 cat >> confdefs.h <<EOF
10373 #define $ac_tr_hdr 1
10377 echo "$ac_t""no" 1>&6
10382 if test $ac_cv_header_krb5_h = yes ; then
10383 for ac_hdr in heim_err.h
10385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10387 echo "configure:10388: checking for $ac_hdr" >&5
10388 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10389 echo $ac_n "(cached) $ac_c" 1>&6
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10393 "configure"
10393 #include "confdefs.h"
10396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10397 { (eval echo configure:10398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10399 if test -z "$ac_err"; then
10401 eval "ac_cv_header_$ac_safe=yes"
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10407 eval "ac_cv_header_$ac_safe=no"
10411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10412 echo "$ac_t""yes" 1>&6
10413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10414 cat >> confdefs.h <<EOF
10415 #define $ac_tr_hdr 1
10419 echo "$ac_t""no" 1>&6
10423 if test $ac_cv_header_heim_err_h = yes ; then
10429 if test $krb5_impl = mit; then
10430 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10431 echo "configure:10432: checking for main in -lk5crypto" >&5
10432 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10433 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10434 echo $ac_n "(cached) $ac_c" 1>&6
10436 ac_save_LIBS="$LIBS"
10437 LIBS="-lk5crypto $LIBS"
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10446 if { (eval echo configure:10447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10448 eval "ac_cv_lib_$ac_lib_var=yes"
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 eval "ac_cv_lib_$ac_lib_var=no"
10456 LIBS="$ac_save_LIBS"
10459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10460 echo "$ac_t""yes" 1>&6
10461 krb5crypto=k5crypto
10463 echo "$ac_t""no" 1>&6
10468 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10469 echo "configure:10470: checking for main in -lkrb5" >&5
10470 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10472 echo $ac_n "(cached) $ac_c" 1>&6
10474 ac_save_LIBS="$LIBS"
10475 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10476 cat > conftest.$ac_ext <<EOF
10477 #line 10478 "configure"
10478 #include "confdefs.h"
10484 if { (eval echo configure:10485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10486 eval "ac_cv_lib_$ac_lib_var=yes"
10488 echo "configure: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10491 eval "ac_cv_lib_$ac_lib_var=no"
10494 LIBS="$ac_save_LIBS"
10497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10498 echo "$ac_t""yes" 1>&6
10500 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10502 echo "$ac_t""no" 1>&6
10507 elif test $krb5_impl = heimdal; then
10508 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10509 echo "configure:10510: checking for main in -ldes" >&5
10510 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10511 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10512 echo $ac_n "(cached) $ac_c" 1>&6
10514 ac_save_LIBS="$LIBS"
10516 cat > conftest.$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10524 if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10526 eval "ac_cv_lib_$ac_lib_var=yes"
10528 echo "configure: failed program was:" >&5
10529 cat conftest.$ac_ext >&5
10531 eval "ac_cv_lib_$ac_lib_var=no"
10534 LIBS="$ac_save_LIBS"
10537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10538 echo "$ac_t""yes" 1>&6
10541 echo "$ac_t""no" 1>&6
10546 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10547 echo "configure:10548: checking for main in -lkrb5" >&5
10548 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10549 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10552 ac_save_LIBS="$LIBS"
10553 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10554 cat > conftest.$ac_ext <<EOF
10555 #line 10556 "configure"
10556 #include "confdefs.h"
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10564 eval "ac_cv_lib_$ac_lib_var=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_lib_$ac_lib_var=no"
10572 LIBS="$ac_save_LIBS"
10575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10578 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10580 echo "$ac_t""no" 1>&6
10585 cat >> confdefs.h <<\EOF
10586 #define HAVE_HEIMDAL_KERBEROS 1
10592 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10595 if test $have_krb5 = yes ; then
10598 cat >> confdefs.h <<\EOF
10599 #define HAVE_KRB5 1
10603 if test $ol_enable_kpasswd != no ; then
10604 ol_link_kpasswd=yes;
10607 if test $ol_with_kerberos = k5only ; then
10608 ol_with_kerberos=found
10611 elif test $ol_with_kerberos != auto ; then
10612 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10618 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10619 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10621 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10625 echo "configure:10626: checking for $ac_hdr" >&5
10626 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10635 { (eval echo configure:10636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10637 if test -z "$ac_err"; then
10639 eval "ac_cv_header_$ac_safe=yes"
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10645 eval "ac_cv_header_$ac_safe=no"
10649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10650 echo "$ac_t""yes" 1>&6
10651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10652 cat >> confdefs.h <<EOF
10653 #define $ac_tr_hdr 1
10657 echo "$ac_t""no" 1>&6
10662 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10663 if test $krb5_impl = mit; then
10664 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10665 echo "configure:10666: checking for main in -lkrb4" >&5
10666 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10668 echo $ac_n "(cached) $ac_c" 1>&6
10670 ac_save_LIBS="$LIBS"
10671 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10682 eval "ac_cv_lib_$ac_lib_var=yes"
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 eval "ac_cv_lib_$ac_lib_var=no"
10690 LIBS="$ac_save_LIBS"
10693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10694 echo "$ac_t""yes" 1>&6
10696 KRB4_LIBS="-lkrb4 -ldes425"
10698 echo "$ac_t""no" 1>&6
10703 elif test $krb5_impl = heimdal; then
10704 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10705 echo "configure:10706: checking for main in -lkrb4" >&5
10706 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10707 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10708 echo $ac_n "(cached) $ac_c" 1>&6
10710 ac_save_LIBS="$LIBS"
10711 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10720 if { (eval echo configure:10721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10722 eval "ac_cv_lib_$ac_lib_var=yes"
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10727 eval "ac_cv_lib_$ac_lib_var=no"
10730 LIBS="$ac_save_LIBS"
10733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10734 echo "$ac_t""yes" 1>&6
10738 echo "$ac_t""no" 1>&6
10745 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10748 if test $have_k425 = yes ; then
10749 ol_with_kerberos=found
10752 cat >> confdefs.h <<\EOF
10753 #define HAVE_KRB425 1
10756 cat >> confdefs.h <<\EOF
10757 #define HAVE_KRB4 1
10761 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10762 echo "configure:10763: checking for des_debug in Kerberos libraries" >&5
10763 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10768 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10769 cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10773 #include <kerberosIV/krb.h>
10774 #include <kerberosIV/des.h>
10775 extern int des_debug;
10783 if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10785 ol_cv_var_des_debug=yes
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10790 ol_cv_var_des_debug=no
10797 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10799 if test $ol_cv_var_des_debug = yes ; then
10800 cat >> confdefs.h <<\EOF
10801 #define HAVE_DES_DEBUG 1
10811 if test $ol_link_krb5 = yes ; then
10812 ol_with_kerberos=found
10815 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10816 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10818 for ac_hdr in krb.h des.h krb-archaeology.h
10820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10822 echo "configure:10823: checking for $ac_hdr" >&5
10823 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10824 echo $ac_n "(cached) $ac_c" 1>&6
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10832 { (eval echo configure:10833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10834 if test -z "$ac_err"; then
10836 eval "ac_cv_header_$ac_safe=yes"
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 eval "ac_cv_header_$ac_safe=no"
10846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10847 echo "$ac_t""yes" 1>&6
10848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10849 cat >> confdefs.h <<EOF
10850 #define $ac_tr_hdr 1
10854 echo "$ac_t""no" 1>&6
10859 if test $ac_cv_header_krb_h = yes ; then
10860 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10861 echo "configure:10862: checking for main in -lkrb" >&5
10862 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10863 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10866 ac_save_LIBS="$LIBS"
10867 LIBS="-lkrb -ldes $LIBS"
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10876 if { (eval echo configure:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10878 eval "ac_cv_lib_$ac_lib_var=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_lib_$ac_lib_var=no"
10886 LIBS="$ac_save_LIBS"
10889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10890 echo "$ac_t""yes" 1>&6
10893 echo "$ac_t""no" 1>&6
10898 if test $have_k4 = yes ; then
10899 ol_with_kerberos=found
10902 cat >> confdefs.h <<\EOF
10903 #define HAVE_KRB4 1
10907 KRB4_LIBS="-lkrb -ldes"
10909 if test $ac_cv_header_krb_archaeology_h = yes ; then
10910 cat >> confdefs.h <<\EOF
10911 #define HAVE_KTH_KERBEROS 1
10919 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10920 ol_link_kpasswd=yes
10923 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10926 elif test $ol_enable_kbind = yes ; then
10927 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10930 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10931 cat >> confdefs.h <<\EOF
10932 #define HAVE_KERBEROS 1
10936 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10937 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10941 if test $ol_with_tls != no ; then
10942 for ac_hdr in openssl/ssl.h ssl.h
10944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10946 echo "configure:10947: checking for $ac_hdr" >&5
10947 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10950 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure"
10952 #include "confdefs.h"
10955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10956 { (eval echo configure:10957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10958 if test -z "$ac_err"; then
10960 eval "ac_cv_header_$ac_safe=yes"
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 eval "ac_cv_header_$ac_safe=no"
10970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10973 cat >> confdefs.h <<EOF
10974 #define $ac_tr_hdr 1
10978 echo "$ac_t""no" 1>&6
10983 if test $ac_cv_header_openssl_ssl_h = yes \
10984 -o $ac_cv_header_ssl_h = yes ; then
10985 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10986 echo "configure:10987: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10987 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10991 ac_save_LIBS="$LIBS"
10992 LIBS="-lssl -lcrypto $LIBS"
10993 cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char SSLeay_add_ssl_algorithms();
11002 SSLeay_add_ssl_algorithms()
11005 if { (eval echo configure:11006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11007 eval "ac_cv_lib_$ac_lib_var=yes"
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11012 eval "ac_cv_lib_$ac_lib_var=no"
11015 LIBS="$ac_save_LIBS"
11018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11019 echo "$ac_t""yes" 1>&6
11023 echo "$ac_t""no" 1>&6
11028 if test $have_ssleay = no ; then
11029 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11030 echo "configure:11031: checking for SSL_library_init in -lssl" >&5
11031 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11032 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11033 echo $ac_n "(cached) $ac_c" 1>&6
11035 ac_save_LIBS="$LIBS"
11036 LIBS="-lssl -lcrypto $LIBS"
11037 cat > conftest.$ac_ext <<EOF
11038 #line 11039 "configure"
11039 #include "confdefs.h"
11040 /* Override any gcc2 internal prototype to avoid an error. */
11041 /* We use char because int might match the return type of a gcc2
11042 builtin and then its argument prototype would still apply. */
11043 char SSL_library_init();
11049 if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11051 eval "ac_cv_lib_$ac_lib_var=yes"
11053 echo "configure: failed program was:" >&5
11054 cat conftest.$ac_ext >&5
11056 eval "ac_cv_lib_$ac_lib_var=no"
11059 LIBS="$ac_save_LIBS"
11062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11063 echo "$ac_t""yes" 1>&6
11067 echo "$ac_t""no" 1>&6
11073 if test $have_ssleay = no ; then
11074 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11075 echo "configure:11076: checking for ssl3_accept in -lssl" >&5
11076 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11077 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 ac_save_LIBS="$LIBS"
11081 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11085 /* Override any gcc2 internal prototype to avoid an error. */
11086 /* We use char because int might match the return type of a gcc2
11087 builtin and then its argument prototype would still apply. */
11088 char ssl3_accept();
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
11112 echo "$ac_t""no" 1>&6
11118 if test $have_ssleay = yes ; then
11122 cat >> confdefs.h <<\EOF
11123 #define HAVE_SSLEAY 1
11127 if test $need_rsaref = yes; then
11128 cat >> confdefs.h <<\EOF
11129 #define HAVE_RSAREF 1
11133 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11135 TLS_LIBS="-lssl -lcrypto"
11141 echo "configure: warning: TLS data protection not supported!" 1>&2
11144 if test $ol_link_tls = yes ; then
11145 cat >> confdefs.h <<\EOF
11150 elif test $ol_with_tls = auto ; then
11151 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11152 echo "configure: warning: TLS data protection not supported!" 1>&2
11154 elif test $ol_with_tls != no ; then
11155 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11158 if test $ol_enable_lmpasswd != no; then
11159 if test $ol_link_tls != yes ; then
11160 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11163 cat >> confdefs.h <<\EOF
11164 #define SLAPD_LMHASH 1
11171 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11172 -o $ol_with_threads = nt ; then
11175 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11176 echo "configure:11177: checking for _beginthread" >&5
11177 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11183 /* System header to define __stub macros and hopefully few prototypes,
11184 which can conflict with char _beginthread(); below. */
11185 #include <assert.h>
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189 char _beginthread();
11194 /* The GNU C library defines this for functions which it implements
11195 to always fail with ENOSYS. Some functions are actually named
11196 something starting with __ and the normal name is an alias. */
11197 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11205 if { (eval echo configure:11206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11207 eval "ac_cv_func__beginthread=yes"
11209 echo "configure: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11212 eval "ac_cv_func__beginthread=no"
11217 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11221 echo "$ac_t""no" 1>&6
11225 if test $ac_cv_func__beginthread = yes ; then
11226 cat >> confdefs.h <<\EOF
11227 #define HAVE_NT_THREADS 1
11230 ol_cv_nt_threads=yes
11234 if test "$ol_cv_nt_threads" = yes ; then
11236 ol_with_threads=found
11237 ol_with_yielding_select=yes
11239 cat >> confdefs.h <<\EOF
11240 #define HAVE_NT_SERVICE_MANAGER 1
11243 cat >> confdefs.h <<\EOF
11244 #define HAVE_NT_EVENT_LOG 1
11249 if test $ol_with_threads = nt ; then
11250 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11254 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11255 -o $ol_with_threads = posix ; then
11257 for ac_hdr in pthread.h
11259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11261 echo "configure:11262: checking for $ac_hdr" >&5
11262 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
11265 cat > conftest.$ac_ext <<EOF
11266 #line 11267 "configure"
11267 #include "confdefs.h"
11270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11271 { (eval echo configure:11272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11273 if test -z "$ac_err"; then
11275 eval "ac_cv_header_$ac_safe=yes"
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11281 eval "ac_cv_header_$ac_safe=no"
11285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11286 echo "$ac_t""yes" 1>&6
11287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11288 cat >> confdefs.h <<EOF
11289 #define $ac_tr_hdr 1
11293 echo "$ac_t""no" 1>&6
11298 if test $ac_cv_header_pthread_h = yes ; then
11299 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11300 echo "configure:11301: checking POSIX thread version" >&5
11301 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11309 # include <pthread.h>
11313 int i = PTHREAD_CREATE_JOINABLE;
11317 if { (eval echo configure:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11323 #include <pthread.h>
11325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326 egrep "pthread_detach" >/dev/null 2>&1; then
11328 ol_cv_pthread_version=10
11331 ol_cv_pthread_version=8
11336 echo "configure: failed program was:" >&5
11337 cat conftest.$ac_ext >&5
11340 cat > conftest.$ac_ext <<EOF
11341 #line 11342 "configure"
11342 #include "confdefs.h"
11344 # include <pthread.h>
11345 # ifdef PTHREAD_CREATE_UNDETACHED
11350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11351 egrep "draft7" >/dev/null 2>&1; then
11353 ol_cv_pthread_version=7
11357 cat > conftest.$ac_ext <<EOF
11358 #line 11359 "configure"
11359 #include "confdefs.h"
11360 #include <pthread.h>
11362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11363 egrep "pthread_attr_init" >/dev/null 2>&1; then
11365 ol_cv_pthread_version=6
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11373 # include <pthread.h>
11374 #ifdef PTHREAD_MUTEX_INITIALIZER
11379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11380 egrep "draft5" >/dev/null 2>&1; then
11382 ol_cv_pthread_version=5
11385 ol_cv_pthread_version=4
11400 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11403 if test $ol_cv_pthread_version != 0 ; then
11404 cat >> confdefs.h <<EOF
11405 #define HAVE_PTHREADS $ol_cv_pthread_version
11409 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11412 # consider threads found
11413 ol_with_threads=found
11416 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11417 echo "configure:11418: checking for LinuxThreads pthread.h" >&5
11418 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11424 #include <pthread.h>
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11429 ol_cv_header_linux_threads=yes
11432 ol_cv_header_linux_threads=no
11439 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11440 if test $ol_cv_header_linux_threads = yes; then
11441 cat >> confdefs.h <<\EOF
11442 #define HAVE_LINUX_THREADS 1
11448 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11449 echo "configure:11450: checking for GNU Pth pthread.h" >&5
11450 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include <pthread.h>
11457 #ifdef _POSIX_THREAD_IS_GNU_PTH
11462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11463 egrep "__gnu_pth__" >/dev/null 2>&1; then
11465 ol_cv_header_gnu_pth_pthread_h=yes
11468 ol_cv_header_gnu_pth_pthread_h=no
11475 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11478 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11479 for ac_hdr in sched.h
11481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $ac_hdr" >&5
11484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11493 { (eval echo configure:11494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11495 if test -z "$ac_err"; then
11497 eval "ac_cv_header_$ac_safe=yes"
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 eval "ac_cv_header_$ac_safe=no"
11507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11508 echo "$ac_t""yes" 1>&6
11509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11510 cat >> confdefs.h <<EOF
11511 #define $ac_tr_hdr 1
11515 echo "$ac_t""no" 1>&6
11522 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11523 echo "configure:11524: checking for pthread_create in default libraries" >&5
11524 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11525 echo $ac_n "(cached) $ac_c" 1>&6
11528 if test "$cross_compiling" = yes; then
11529 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure"
11531 #include "confdefs.h"
11532 /* pthread test headers */
11533 #include <pthread.h>
11534 #if HAVE_PTHREADS < 7
11538 #define NULL (void*)0
11541 static void *task(p)
11544 return (void *) (p == NULL);
11549 /* pthread test function */
11550 #ifndef PTHREAD_CREATE_DETACHED
11551 #define PTHREAD_CREATE_DETACHED 1
11555 int detach = PTHREAD_CREATE_DETACHED;
11557 #if HAVE_PTHREADS > 4
11558 /* Final pthreads */
11559 pthread_attr_t attr;
11561 status = pthread_attr_init(&attr);
11562 if( status ) return status;
11564 #if HAVE_PTHREADS < 7
11565 status = pthread_attr_setdetachstate(&attr, &detach);
11566 if( status < 0 ) status = errno;
11568 status = pthread_attr_setdetachstate(&attr, detach);
11570 if( status ) return status;
11571 status = pthread_create( &t, &attr, task, NULL );
11572 #if HAVE_PTHREADS < 7
11573 if( status < 0 ) status = errno;
11575 if( status ) return status;
11577 /* Draft 4 pthreads */
11578 status = pthread_create( &t, pthread_attr_default, task, NULL );
11579 if( status ) return errno;
11581 /* give thread a chance to complete */
11582 /* it should remain joinable and hence detachable */
11585 status = pthread_detach( &t );
11586 if( status ) return errno;
11589 #ifdef HAVE_LINUX_THREADS
11590 pthread_kill_other_threads_np();
11597 if { (eval echo configure:11598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11599 ol_cv_pthread_create=yes
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 ol_cv_pthread_create=no
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 /* pthread test headers */
11612 #include <pthread.h>
11613 #if HAVE_PTHREADS < 7
11617 #define NULL (void*)0
11620 static void *task(p)
11623 return (void *) (p == NULL);
11627 int main(argc, argv)
11632 /* pthread test function */
11633 #ifndef PTHREAD_CREATE_DETACHED
11634 #define PTHREAD_CREATE_DETACHED 1
11638 int detach = PTHREAD_CREATE_DETACHED;
11640 #if HAVE_PTHREADS > 4
11641 /* Final pthreads */
11642 pthread_attr_t attr;
11644 status = pthread_attr_init(&attr);
11645 if( status ) return status;
11647 #if HAVE_PTHREADS < 7
11648 status = pthread_attr_setdetachstate(&attr, &detach);
11649 if( status < 0 ) status = errno;
11651 status = pthread_attr_setdetachstate(&attr, detach);
11653 if( status ) return status;
11654 status = pthread_create( &t, &attr, task, NULL );
11655 #if HAVE_PTHREADS < 7
11656 if( status < 0 ) status = errno;
11658 if( status ) return status;
11660 /* Draft 4 pthreads */
11661 status = pthread_create( &t, pthread_attr_default, task, NULL );
11662 if( status ) return errno;
11664 /* give thread a chance to complete */
11665 /* it should remain joinable and hence detachable */
11668 status = pthread_detach( &t );
11669 if( status ) return errno;
11672 #ifdef HAVE_LINUX_THREADS
11673 pthread_kill_other_threads_np();
11681 if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11683 ol_cv_pthread_create=yes
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 ol_cv_pthread_create=no
11695 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11697 if test $ol_cv_pthread_create != no ; then
11698 ol_link_threads=posix
11699 ol_link_pthreads=""
11702 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11703 if test "$ol_link_threads" = no ; then
11705 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11706 echo "configure:11707: checking for pthread link with -kthread" >&5
11707 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11708 echo $ac_n "(cached) $ac_c" 1>&6
11713 LIBS="-kthread $LIBS"
11715 if test "$cross_compiling" = yes; then
11716 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure"
11718 #include "confdefs.h"
11719 /* pthread test headers */
11720 #include <pthread.h>
11721 #if HAVE_PTHREADS < 7
11725 #define NULL (void*)0
11728 static void *task(p)
11731 return (void *) (p == NULL);
11736 /* pthread test function */
11737 #ifndef PTHREAD_CREATE_DETACHED
11738 #define PTHREAD_CREATE_DETACHED 1
11742 int detach = PTHREAD_CREATE_DETACHED;
11744 #if HAVE_PTHREADS > 4
11745 /* Final pthreads */
11746 pthread_attr_t attr;
11748 status = pthread_attr_init(&attr);
11749 if( status ) return status;
11751 #if HAVE_PTHREADS < 7
11752 status = pthread_attr_setdetachstate(&attr, &detach);
11753 if( status < 0 ) status = errno;
11755 status = pthread_attr_setdetachstate(&attr, detach);
11757 if( status ) return status;
11758 status = pthread_create( &t, &attr, task, NULL );
11759 #if HAVE_PTHREADS < 7
11760 if( status < 0 ) status = errno;
11762 if( status ) return status;
11764 /* Draft 4 pthreads */
11765 status = pthread_create( &t, pthread_attr_default, task, NULL );
11766 if( status ) return errno;
11768 /* give thread a chance to complete */
11769 /* it should remain joinable and hence detachable */
11772 status = pthread_detach( &t );
11773 if( status ) return errno;
11776 #ifdef HAVE_LINUX_THREADS
11777 pthread_kill_other_threads_np();
11784 if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11786 ol_cv_pthread_kthread=yes
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11791 ol_cv_pthread_kthread=no
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 /* pthread test headers */
11799 #include <pthread.h>
11800 #if HAVE_PTHREADS < 7
11804 #define NULL (void*)0
11807 static void *task(p)
11810 return (void *) (p == NULL);
11814 int main(argc, argv)
11819 /* pthread test function */
11820 #ifndef PTHREAD_CREATE_DETACHED
11821 #define PTHREAD_CREATE_DETACHED 1
11825 int detach = PTHREAD_CREATE_DETACHED;
11827 #if HAVE_PTHREADS > 4
11828 /* Final pthreads */
11829 pthread_attr_t attr;
11831 status = pthread_attr_init(&attr);
11832 if( status ) return status;
11834 #if HAVE_PTHREADS < 7
11835 status = pthread_attr_setdetachstate(&attr, &detach);
11836 if( status < 0 ) status = errno;
11838 status = pthread_attr_setdetachstate(&attr, detach);
11840 if( status ) return status;
11841 status = pthread_create( &t, &attr, task, NULL );
11842 #if HAVE_PTHREADS < 7
11843 if( status < 0 ) status = errno;
11845 if( status ) return status;
11847 /* Draft 4 pthreads */
11848 status = pthread_create( &t, pthread_attr_default, task, NULL );
11849 if( status ) return errno;
11851 /* give thread a chance to complete */
11852 /* it should remain joinable and hence detachable */
11855 status = pthread_detach( &t );
11856 if( status ) return errno;
11859 #ifdef HAVE_LINUX_THREADS
11860 pthread_kill_other_threads_np();
11868 if { (eval echo configure:11869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11870 ol_cv_pthread_kthread=yes
11872 echo "configure: failed program was:" >&5
11873 cat conftest.$ac_ext >&5
11875 ol_cv_pthread_kthread=no
11886 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11888 if test $ol_cv_pthread_kthread = yes ; then
11889 ol_link_pthreads="-kthread"
11890 ol_link_threads=posix
11894 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11895 if test "$ol_link_threads" = no ; then
11897 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11898 echo "configure:11899: checking for pthread link with -pthread" >&5
11899 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11900 echo $ac_n "(cached) $ac_c" 1>&6
11905 LIBS="-pthread $LIBS"
11907 if test "$cross_compiling" = yes; then
11908 cat > conftest.$ac_ext <<EOF
11909 #line 11910 "configure"
11910 #include "confdefs.h"
11911 /* pthread test headers */
11912 #include <pthread.h>
11913 #if HAVE_PTHREADS < 7
11917 #define NULL (void*)0
11920 static void *task(p)
11923 return (void *) (p == NULL);
11928 /* pthread test function */
11929 #ifndef PTHREAD_CREATE_DETACHED
11930 #define PTHREAD_CREATE_DETACHED 1
11934 int detach = PTHREAD_CREATE_DETACHED;
11936 #if HAVE_PTHREADS > 4
11937 /* Final pthreads */
11938 pthread_attr_t attr;
11940 status = pthread_attr_init(&attr);
11941 if( status ) return status;
11943 #if HAVE_PTHREADS < 7
11944 status = pthread_attr_setdetachstate(&attr, &detach);
11945 if( status < 0 ) status = errno;
11947 status = pthread_attr_setdetachstate(&attr, detach);
11949 if( status ) return status;
11950 status = pthread_create( &t, &attr, task, NULL );
11951 #if HAVE_PTHREADS < 7
11952 if( status < 0 ) status = errno;
11954 if( status ) return status;
11956 /* Draft 4 pthreads */
11957 status = pthread_create( &t, pthread_attr_default, task, NULL );
11958 if( status ) return errno;
11960 /* give thread a chance to complete */
11961 /* it should remain joinable and hence detachable */
11964 status = pthread_detach( &t );
11965 if( status ) return errno;
11968 #ifdef HAVE_LINUX_THREADS
11969 pthread_kill_other_threads_np();
11976 if { (eval echo configure:11977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11978 ol_cv_pthread_pthread=yes
11980 echo "configure: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11983 ol_cv_pthread_pthread=no
11987 cat > conftest.$ac_ext <<EOF
11988 #line 11989 "configure"
11989 #include "confdefs.h"
11990 /* pthread test headers */
11991 #include <pthread.h>
11992 #if HAVE_PTHREADS < 7
11996 #define NULL (void*)0
11999 static void *task(p)
12002 return (void *) (p == NULL);
12006 int main(argc, argv)
12011 /* pthread test function */
12012 #ifndef PTHREAD_CREATE_DETACHED
12013 #define PTHREAD_CREATE_DETACHED 1
12017 int detach = PTHREAD_CREATE_DETACHED;
12019 #if HAVE_PTHREADS > 4
12020 /* Final pthreads */
12021 pthread_attr_t attr;
12023 status = pthread_attr_init(&attr);
12024 if( status ) return status;
12026 #if HAVE_PTHREADS < 7
12027 status = pthread_attr_setdetachstate(&attr, &detach);
12028 if( status < 0 ) status = errno;
12030 status = pthread_attr_setdetachstate(&attr, detach);
12032 if( status ) return status;
12033 status = pthread_create( &t, &attr, task, NULL );
12034 #if HAVE_PTHREADS < 7
12035 if( status < 0 ) status = errno;
12037 if( status ) return status;
12039 /* Draft 4 pthreads */
12040 status = pthread_create( &t, pthread_attr_default, task, NULL );
12041 if( status ) return errno;
12043 /* give thread a chance to complete */
12044 /* it should remain joinable and hence detachable */
12047 status = pthread_detach( &t );
12048 if( status ) return errno;
12051 #ifdef HAVE_LINUX_THREADS
12052 pthread_kill_other_threads_np();
12060 if { (eval echo configure:12061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12062 ol_cv_pthread_pthread=yes
12064 echo "configure: failed program was:" >&5
12065 cat conftest.$ac_ext >&5
12067 ol_cv_pthread_pthread=no
12078 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12080 if test $ol_cv_pthread_pthread = yes ; then
12081 ol_link_pthreads="-pthread"
12082 ol_link_threads=posix
12086 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12087 if test "$ol_link_threads" = no ; then
12089 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12090 echo "configure:12091: checking for pthread link with -pthreads" >&5
12091 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12092 echo $ac_n "(cached) $ac_c" 1>&6
12097 LIBS="-pthreads $LIBS"
12099 if test "$cross_compiling" = yes; then
12100 cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 /* pthread test headers */
12104 #include <pthread.h>
12105 #if HAVE_PTHREADS < 7
12109 #define NULL (void*)0
12112 static void *task(p)
12115 return (void *) (p == NULL);
12120 /* pthread test function */
12121 #ifndef PTHREAD_CREATE_DETACHED
12122 #define PTHREAD_CREATE_DETACHED 1
12126 int detach = PTHREAD_CREATE_DETACHED;
12128 #if HAVE_PTHREADS > 4
12129 /* Final pthreads */
12130 pthread_attr_t attr;
12132 status = pthread_attr_init(&attr);
12133 if( status ) return status;
12135 #if HAVE_PTHREADS < 7
12136 status = pthread_attr_setdetachstate(&attr, &detach);
12137 if( status < 0 ) status = errno;
12139 status = pthread_attr_setdetachstate(&attr, detach);
12141 if( status ) return status;
12142 status = pthread_create( &t, &attr, task, NULL );
12143 #if HAVE_PTHREADS < 7
12144 if( status < 0 ) status = errno;
12146 if( status ) return status;
12148 /* Draft 4 pthreads */
12149 status = pthread_create( &t, pthread_attr_default, task, NULL );
12150 if( status ) return errno;
12152 /* give thread a chance to complete */
12153 /* it should remain joinable and hence detachable */
12156 status = pthread_detach( &t );
12157 if( status ) return errno;
12160 #ifdef HAVE_LINUX_THREADS
12161 pthread_kill_other_threads_np();
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 ol_cv_pthread_pthreads=yes
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 ol_cv_pthread_pthreads=no
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* pthread test headers */
12183 #include <pthread.h>
12184 #if HAVE_PTHREADS < 7
12188 #define NULL (void*)0
12191 static void *task(p)
12194 return (void *) (p == NULL);
12198 int main(argc, argv)
12203 /* pthread test function */
12204 #ifndef PTHREAD_CREATE_DETACHED
12205 #define PTHREAD_CREATE_DETACHED 1
12209 int detach = PTHREAD_CREATE_DETACHED;
12211 #if HAVE_PTHREADS > 4
12212 /* Final pthreads */
12213 pthread_attr_t attr;
12215 status = pthread_attr_init(&attr);
12216 if( status ) return status;
12218 #if HAVE_PTHREADS < 7
12219 status = pthread_attr_setdetachstate(&attr, &detach);
12220 if( status < 0 ) status = errno;
12222 status = pthread_attr_setdetachstate(&attr, detach);
12224 if( status ) return status;
12225 status = pthread_create( &t, &attr, task, NULL );
12226 #if HAVE_PTHREADS < 7
12227 if( status < 0 ) status = errno;
12229 if( status ) return status;
12231 /* Draft 4 pthreads */
12232 status = pthread_create( &t, pthread_attr_default, task, NULL );
12233 if( status ) return errno;
12235 /* give thread a chance to complete */
12236 /* it should remain joinable and hence detachable */
12239 status = pthread_detach( &t );
12240 if( status ) return errno;
12243 #ifdef HAVE_LINUX_THREADS
12244 pthread_kill_other_threads_np();
12252 if { (eval echo configure:12253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12254 ol_cv_pthread_pthreads=yes
12256 echo "configure: failed program was:" >&5
12257 cat conftest.$ac_ext >&5
12259 ol_cv_pthread_pthreads=no
12270 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12272 if test $ol_cv_pthread_pthreads = yes ; then
12273 ol_link_pthreads="-pthreads"
12274 ol_link_threads=posix
12278 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12279 if test "$ol_link_threads" = no ; then
12281 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12282 echo "configure:12283: checking for pthread link with -mthreads" >&5
12283 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12284 echo $ac_n "(cached) $ac_c" 1>&6
12289 LIBS="-mthreads $LIBS"
12291 if test "$cross_compiling" = yes; then
12292 cat > conftest.$ac_ext <<EOF
12293 #line 12294 "configure"
12294 #include "confdefs.h"
12295 /* pthread test headers */
12296 #include <pthread.h>
12297 #if HAVE_PTHREADS < 7
12301 #define NULL (void*)0
12304 static void *task(p)
12307 return (void *) (p == NULL);
12312 /* pthread test function */
12313 #ifndef PTHREAD_CREATE_DETACHED
12314 #define PTHREAD_CREATE_DETACHED 1
12318 int detach = PTHREAD_CREATE_DETACHED;
12320 #if HAVE_PTHREADS > 4
12321 /* Final pthreads */
12322 pthread_attr_t attr;
12324 status = pthread_attr_init(&attr);
12325 if( status ) return status;
12327 #if HAVE_PTHREADS < 7
12328 status = pthread_attr_setdetachstate(&attr, &detach);
12329 if( status < 0 ) status = errno;
12331 status = pthread_attr_setdetachstate(&attr, detach);
12333 if( status ) return status;
12334 status = pthread_create( &t, &attr, task, NULL );
12335 #if HAVE_PTHREADS < 7
12336 if( status < 0 ) status = errno;
12338 if( status ) return status;
12340 /* Draft 4 pthreads */
12341 status = pthread_create( &t, pthread_attr_default, task, NULL );
12342 if( status ) return errno;
12344 /* give thread a chance to complete */
12345 /* it should remain joinable and hence detachable */
12348 status = pthread_detach( &t );
12349 if( status ) return errno;
12352 #ifdef HAVE_LINUX_THREADS
12353 pthread_kill_other_threads_np();
12360 if { (eval echo configure:12361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12362 ol_cv_pthread_mthreads=yes
12364 echo "configure: failed program was:" >&5
12365 cat conftest.$ac_ext >&5
12367 ol_cv_pthread_mthreads=no
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 /* pthread test headers */
12375 #include <pthread.h>
12376 #if HAVE_PTHREADS < 7
12380 #define NULL (void*)0
12383 static void *task(p)
12386 return (void *) (p == NULL);
12390 int main(argc, argv)
12395 /* pthread test function */
12396 #ifndef PTHREAD_CREATE_DETACHED
12397 #define PTHREAD_CREATE_DETACHED 1
12401 int detach = PTHREAD_CREATE_DETACHED;
12403 #if HAVE_PTHREADS > 4
12404 /* Final pthreads */
12405 pthread_attr_t attr;
12407 status = pthread_attr_init(&attr);
12408 if( status ) return status;
12410 #if HAVE_PTHREADS < 7
12411 status = pthread_attr_setdetachstate(&attr, &detach);
12412 if( status < 0 ) status = errno;
12414 status = pthread_attr_setdetachstate(&attr, detach);
12416 if( status ) return status;
12417 status = pthread_create( &t, &attr, task, NULL );
12418 #if HAVE_PTHREADS < 7
12419 if( status < 0 ) status = errno;
12421 if( status ) return status;
12423 /* Draft 4 pthreads */
12424 status = pthread_create( &t, pthread_attr_default, task, NULL );
12425 if( status ) return errno;
12427 /* give thread a chance to complete */
12428 /* it should remain joinable and hence detachable */
12431 status = pthread_detach( &t );
12432 if( status ) return errno;
12435 #ifdef HAVE_LINUX_THREADS
12436 pthread_kill_other_threads_np();
12444 if { (eval echo configure:12445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12446 ol_cv_pthread_mthreads=yes
12448 echo "configure: failed program was:" >&5
12449 cat conftest.$ac_ext >&5
12451 ol_cv_pthread_mthreads=no
12462 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12464 if test $ol_cv_pthread_mthreads = yes ; then
12465 ol_link_pthreads="-mthreads"
12466 ol_link_threads=posix
12470 # Pthread try link: -thread (ol_cv_pthread_thread)
12471 if test "$ol_link_threads" = no ; then
12473 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12474 echo "configure:12475: checking for pthread link with -thread" >&5
12475 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12476 echo $ac_n "(cached) $ac_c" 1>&6
12481 LIBS="-thread $LIBS"
12483 if test "$cross_compiling" = yes; then
12484 cat > conftest.$ac_ext <<EOF
12485 #line 12486 "configure"
12486 #include "confdefs.h"
12487 /* pthread test headers */
12488 #include <pthread.h>
12489 #if HAVE_PTHREADS < 7
12493 #define NULL (void*)0
12496 static void *task(p)
12499 return (void *) (p == NULL);
12504 /* pthread test function */
12505 #ifndef PTHREAD_CREATE_DETACHED
12506 #define PTHREAD_CREATE_DETACHED 1
12510 int detach = PTHREAD_CREATE_DETACHED;
12512 #if HAVE_PTHREADS > 4
12513 /* Final pthreads */
12514 pthread_attr_t attr;
12516 status = pthread_attr_init(&attr);
12517 if( status ) return status;
12519 #if HAVE_PTHREADS < 7
12520 status = pthread_attr_setdetachstate(&attr, &detach);
12521 if( status < 0 ) status = errno;
12523 status = pthread_attr_setdetachstate(&attr, detach);
12525 if( status ) return status;
12526 status = pthread_create( &t, &attr, task, NULL );
12527 #if HAVE_PTHREADS < 7
12528 if( status < 0 ) status = errno;
12530 if( status ) return status;
12532 /* Draft 4 pthreads */
12533 status = pthread_create( &t, pthread_attr_default, task, NULL );
12534 if( status ) return errno;
12536 /* give thread a chance to complete */
12537 /* it should remain joinable and hence detachable */
12540 status = pthread_detach( &t );
12541 if( status ) return errno;
12544 #ifdef HAVE_LINUX_THREADS
12545 pthread_kill_other_threads_np();
12552 if { (eval echo configure:12553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12554 ol_cv_pthread_thread=yes
12556 echo "configure: failed program was:" >&5
12557 cat conftest.$ac_ext >&5
12559 ol_cv_pthread_thread=no
12563 cat > conftest.$ac_ext <<EOF
12564 #line 12565 "configure"
12565 #include "confdefs.h"
12566 /* pthread test headers */
12567 #include <pthread.h>
12568 #if HAVE_PTHREADS < 7
12572 #define NULL (void*)0
12575 static void *task(p)
12578 return (void *) (p == NULL);
12582 int main(argc, argv)
12587 /* pthread test function */
12588 #ifndef PTHREAD_CREATE_DETACHED
12589 #define PTHREAD_CREATE_DETACHED 1
12593 int detach = PTHREAD_CREATE_DETACHED;
12595 #if HAVE_PTHREADS > 4
12596 /* Final pthreads */
12597 pthread_attr_t attr;
12599 status = pthread_attr_init(&attr);
12600 if( status ) return status;
12602 #if HAVE_PTHREADS < 7
12603 status = pthread_attr_setdetachstate(&attr, &detach);
12604 if( status < 0 ) status = errno;
12606 status = pthread_attr_setdetachstate(&attr, detach);
12608 if( status ) return status;
12609 status = pthread_create( &t, &attr, task, NULL );
12610 #if HAVE_PTHREADS < 7
12611 if( status < 0 ) status = errno;
12613 if( status ) return status;
12615 /* Draft 4 pthreads */
12616 status = pthread_create( &t, pthread_attr_default, task, NULL );
12617 if( status ) return errno;
12619 /* give thread a chance to complete */
12620 /* it should remain joinable and hence detachable */
12623 status = pthread_detach( &t );
12624 if( status ) return errno;
12627 #ifdef HAVE_LINUX_THREADS
12628 pthread_kill_other_threads_np();
12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12638 ol_cv_pthread_thread=yes
12640 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12643 ol_cv_pthread_thread=no
12654 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12656 if test $ol_cv_pthread_thread = yes ; then
12657 ol_link_pthreads="-thread"
12658 ol_link_threads=posix
12663 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12664 if test "$ol_link_threads" = no ; then
12665 # try -lpthread -lmach -lexc -lc_r
12666 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12667 echo "configure:12668: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12668 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12669 echo $ac_n "(cached) $ac_c" 1>&6
12674 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12676 if test "$cross_compiling" = yes; then
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 /* pthread test headers */
12681 #include <pthread.h>
12682 #if HAVE_PTHREADS < 7
12686 #define NULL (void*)0
12689 static void *task(p)
12692 return (void *) (p == NULL);
12697 /* pthread test function */
12698 #ifndef PTHREAD_CREATE_DETACHED
12699 #define PTHREAD_CREATE_DETACHED 1
12703 int detach = PTHREAD_CREATE_DETACHED;
12705 #if HAVE_PTHREADS > 4
12706 /* Final pthreads */
12707 pthread_attr_t attr;
12709 status = pthread_attr_init(&attr);
12710 if( status ) return status;
12712 #if HAVE_PTHREADS < 7
12713 status = pthread_attr_setdetachstate(&attr, &detach);
12714 if( status < 0 ) status = errno;
12716 status = pthread_attr_setdetachstate(&attr, detach);
12718 if( status ) return status;
12719 status = pthread_create( &t, &attr, task, NULL );
12720 #if HAVE_PTHREADS < 7
12721 if( status < 0 ) status = errno;
12723 if( status ) return status;
12725 /* Draft 4 pthreads */
12726 status = pthread_create( &t, pthread_attr_default, task, NULL );
12727 if( status ) return errno;
12729 /* give thread a chance to complete */
12730 /* it should remain joinable and hence detachable */
12733 status = pthread_detach( &t );
12734 if( status ) return errno;
12737 #ifdef HAVE_LINUX_THREADS
12738 pthread_kill_other_threads_np();
12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12747 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12749 echo "configure: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12752 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12756 cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12759 /* pthread test headers */
12760 #include <pthread.h>
12761 #if HAVE_PTHREADS < 7
12765 #define NULL (void*)0
12768 static void *task(p)
12771 return (void *) (p == NULL);
12775 int main(argc, argv)
12780 /* pthread test function */
12781 #ifndef PTHREAD_CREATE_DETACHED
12782 #define PTHREAD_CREATE_DETACHED 1
12786 int detach = PTHREAD_CREATE_DETACHED;
12788 #if HAVE_PTHREADS > 4
12789 /* Final pthreads */
12790 pthread_attr_t attr;
12792 status = pthread_attr_init(&attr);
12793 if( status ) return status;
12795 #if HAVE_PTHREADS < 7
12796 status = pthread_attr_setdetachstate(&attr, &detach);
12797 if( status < 0 ) status = errno;
12799 status = pthread_attr_setdetachstate(&attr, detach);
12801 if( status ) return status;
12802 status = pthread_create( &t, &attr, task, NULL );
12803 #if HAVE_PTHREADS < 7
12804 if( status < 0 ) status = errno;
12806 if( status ) return status;
12808 /* Draft 4 pthreads */
12809 status = pthread_create( &t, pthread_attr_default, task, NULL );
12810 if( status ) return errno;
12812 /* give thread a chance to complete */
12813 /* it should remain joinable and hence detachable */
12816 status = pthread_detach( &t );
12817 if( status ) return errno;
12820 #ifdef HAVE_LINUX_THREADS
12821 pthread_kill_other_threads_np();
12829 if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12831 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12847 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12849 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12850 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12851 ol_link_threads=posix
12855 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12856 if test "$ol_link_threads" = no ; then
12857 # try -lpthread -lmach -lexc
12858 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12859 echo "configure:12860: checking for pthread link with -lpthread -lmach -lexc" >&5
12860 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12866 LIBS="-lpthread -lmach -lexc $LIBS"
12868 if test "$cross_compiling" = yes; then
12869 cat > conftest.$ac_ext <<EOF
12870 #line 12871 "configure"
12871 #include "confdefs.h"
12872 /* pthread test headers */
12873 #include <pthread.h>
12874 #if HAVE_PTHREADS < 7
12878 #define NULL (void*)0
12881 static void *task(p)
12884 return (void *) (p == NULL);
12889 /* pthread test function */
12890 #ifndef PTHREAD_CREATE_DETACHED
12891 #define PTHREAD_CREATE_DETACHED 1
12895 int detach = PTHREAD_CREATE_DETACHED;
12897 #if HAVE_PTHREADS > 4
12898 /* Final pthreads */
12899 pthread_attr_t attr;
12901 status = pthread_attr_init(&attr);
12902 if( status ) return status;
12904 #if HAVE_PTHREADS < 7
12905 status = pthread_attr_setdetachstate(&attr, &detach);
12906 if( status < 0 ) status = errno;
12908 status = pthread_attr_setdetachstate(&attr, detach);
12910 if( status ) return status;
12911 status = pthread_create( &t, &attr, task, NULL );
12912 #if HAVE_PTHREADS < 7
12913 if( status < 0 ) status = errno;
12915 if( status ) return status;
12917 /* Draft 4 pthreads */
12918 status = pthread_create( &t, pthread_attr_default, task, NULL );
12919 if( status ) return errno;
12921 /* give thread a chance to complete */
12922 /* it should remain joinable and hence detachable */
12925 status = pthread_detach( &t );
12926 if( status ) return errno;
12929 #ifdef HAVE_LINUX_THREADS
12930 pthread_kill_other_threads_np();
12937 if { (eval echo configure:12938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12939 ol_cv_pthread_lpthread_lmach_lexc=yes
12941 echo "configure: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12944 ol_cv_pthread_lpthread_lmach_lexc=no
12948 cat > conftest.$ac_ext <<EOF
12949 #line 12950 "configure"
12950 #include "confdefs.h"
12951 /* pthread test headers */
12952 #include <pthread.h>
12953 #if HAVE_PTHREADS < 7
12957 #define NULL (void*)0
12960 static void *task(p)
12963 return (void *) (p == NULL);
12967 int main(argc, argv)
12972 /* pthread test function */
12973 #ifndef PTHREAD_CREATE_DETACHED
12974 #define PTHREAD_CREATE_DETACHED 1
12978 int detach = PTHREAD_CREATE_DETACHED;
12980 #if HAVE_PTHREADS > 4
12981 /* Final pthreads */
12982 pthread_attr_t attr;
12984 status = pthread_attr_init(&attr);
12985 if( status ) return status;
12987 #if HAVE_PTHREADS < 7
12988 status = pthread_attr_setdetachstate(&attr, &detach);
12989 if( status < 0 ) status = errno;
12991 status = pthread_attr_setdetachstate(&attr, detach);
12993 if( status ) return status;
12994 status = pthread_create( &t, &attr, task, NULL );
12995 #if HAVE_PTHREADS < 7
12996 if( status < 0 ) status = errno;
12998 if( status ) return status;
13000 /* Draft 4 pthreads */
13001 status = pthread_create( &t, pthread_attr_default, task, NULL );
13002 if( status ) return errno;
13004 /* give thread a chance to complete */
13005 /* it should remain joinable and hence detachable */
13008 status = pthread_detach( &t );
13009 if( status ) return errno;
13012 #ifdef HAVE_LINUX_THREADS
13013 pthread_kill_other_threads_np();
13021 if { (eval echo configure:13022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13023 ol_cv_pthread_lpthread_lmach_lexc=yes
13025 echo "configure: failed program was:" >&5
13026 cat conftest.$ac_ext >&5
13028 ol_cv_pthread_lpthread_lmach_lexc=no
13039 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13041 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13042 ol_link_pthreads="-lpthread -lmach -lexc"
13043 ol_link_threads=posix
13048 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13049 if test "$ol_link_threads" = no ; then
13050 # try -lpthread -Wl,-woff,85
13051 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13052 echo "configure:13053: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13053 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13059 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13061 if test "$cross_compiling" = yes; then
13062 cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 /* pthread test headers */
13066 #include <pthread.h>
13067 #if HAVE_PTHREADS < 7
13071 #define NULL (void*)0
13074 static void *task(p)
13077 return (void *) (p == NULL);
13082 /* pthread test function */
13083 #ifndef PTHREAD_CREATE_DETACHED
13084 #define PTHREAD_CREATE_DETACHED 1
13088 int detach = PTHREAD_CREATE_DETACHED;
13090 #if HAVE_PTHREADS > 4
13091 /* Final pthreads */
13092 pthread_attr_t attr;
13094 status = pthread_attr_init(&attr);
13095 if( status ) return status;
13097 #if HAVE_PTHREADS < 7
13098 status = pthread_attr_setdetachstate(&attr, &detach);
13099 if( status < 0 ) status = errno;
13101 status = pthread_attr_setdetachstate(&attr, detach);
13103 if( status ) return status;
13104 status = pthread_create( &t, &attr, task, NULL );
13105 #if HAVE_PTHREADS < 7
13106 if( status < 0 ) status = errno;
13108 if( status ) return status;
13110 /* Draft 4 pthreads */
13111 status = pthread_create( &t, pthread_attr_default, task, NULL );
13112 if( status ) return errno;
13114 /* give thread a chance to complete */
13115 /* it should remain joinable and hence detachable */
13118 status = pthread_detach( &t );
13119 if( status ) return errno;
13122 #ifdef HAVE_LINUX_THREADS
13123 pthread_kill_other_threads_np();
13130 if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13132 ol_cv_pthread_lib_lpthread_woff=yes
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13137 ol_cv_pthread_lib_lpthread_woff=no
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 /* pthread test headers */
13145 #include <pthread.h>
13146 #if HAVE_PTHREADS < 7
13150 #define NULL (void*)0
13153 static void *task(p)
13156 return (void *) (p == NULL);
13160 int main(argc, argv)
13165 /* pthread test function */
13166 #ifndef PTHREAD_CREATE_DETACHED
13167 #define PTHREAD_CREATE_DETACHED 1
13171 int detach = PTHREAD_CREATE_DETACHED;
13173 #if HAVE_PTHREADS > 4
13174 /* Final pthreads */
13175 pthread_attr_t attr;
13177 status = pthread_attr_init(&attr);
13178 if( status ) return status;
13180 #if HAVE_PTHREADS < 7
13181 status = pthread_attr_setdetachstate(&attr, &detach);
13182 if( status < 0 ) status = errno;
13184 status = pthread_attr_setdetachstate(&attr, detach);
13186 if( status ) return status;
13187 status = pthread_create( &t, &attr, task, NULL );
13188 #if HAVE_PTHREADS < 7
13189 if( status < 0 ) status = errno;
13191 if( status ) return status;
13193 /* Draft 4 pthreads */
13194 status = pthread_create( &t, pthread_attr_default, task, NULL );
13195 if( status ) return errno;
13197 /* give thread a chance to complete */
13198 /* it should remain joinable and hence detachable */
13201 status = pthread_detach( &t );
13202 if( status ) return errno;
13205 #ifdef HAVE_LINUX_THREADS
13206 pthread_kill_other_threads_np();
13214 if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13216 ol_cv_pthread_lib_lpthread_woff=yes
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13221 ol_cv_pthread_lib_lpthread_woff=no
13232 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13234 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13235 ol_link_pthreads="-lpthread -Wl,-woff,85"
13236 ol_link_threads=posix
13241 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13242 if test "$ol_link_threads" = no ; then
13244 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13245 echo "configure:13246: checking for pthread link with -lpthread" >&5
13246 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13247 echo $ac_n "(cached) $ac_c" 1>&6
13252 LIBS="-lpthread $LIBS"
13254 if test "$cross_compiling" = yes; then
13255 cat > conftest.$ac_ext <<EOF
13256 #line 13257 "configure"
13257 #include "confdefs.h"
13258 /* pthread test headers */
13259 #include <pthread.h>
13260 #if HAVE_PTHREADS < 7
13264 #define NULL (void*)0
13267 static void *task(p)
13270 return (void *) (p == NULL);
13275 /* pthread test function */
13276 #ifndef PTHREAD_CREATE_DETACHED
13277 #define PTHREAD_CREATE_DETACHED 1
13281 int detach = PTHREAD_CREATE_DETACHED;
13283 #if HAVE_PTHREADS > 4
13284 /* Final pthreads */
13285 pthread_attr_t attr;
13287 status = pthread_attr_init(&attr);
13288 if( status ) return status;
13290 #if HAVE_PTHREADS < 7
13291 status = pthread_attr_setdetachstate(&attr, &detach);
13292 if( status < 0 ) status = errno;
13294 status = pthread_attr_setdetachstate(&attr, detach);
13296 if( status ) return status;
13297 status = pthread_create( &t, &attr, task, NULL );
13298 #if HAVE_PTHREADS < 7
13299 if( status < 0 ) status = errno;
13301 if( status ) return status;
13303 /* Draft 4 pthreads */
13304 status = pthread_create( &t, pthread_attr_default, task, NULL );
13305 if( status ) return errno;
13307 /* give thread a chance to complete */
13308 /* it should remain joinable and hence detachable */
13311 status = pthread_detach( &t );
13312 if( status ) return errno;
13315 #ifdef HAVE_LINUX_THREADS
13316 pthread_kill_other_threads_np();
13323 if { (eval echo configure:13324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13325 ol_cv_pthread_lpthread=yes
13327 echo "configure: failed program was:" >&5
13328 cat conftest.$ac_ext >&5
13330 ol_cv_pthread_lpthread=no
13334 cat > conftest.$ac_ext <<EOF
13335 #line 13336 "configure"
13336 #include "confdefs.h"
13337 /* pthread test headers */
13338 #include <pthread.h>
13339 #if HAVE_PTHREADS < 7
13343 #define NULL (void*)0
13346 static void *task(p)
13349 return (void *) (p == NULL);
13353 int main(argc, argv)
13358 /* pthread test function */
13359 #ifndef PTHREAD_CREATE_DETACHED
13360 #define PTHREAD_CREATE_DETACHED 1
13364 int detach = PTHREAD_CREATE_DETACHED;
13366 #if HAVE_PTHREADS > 4
13367 /* Final pthreads */
13368 pthread_attr_t attr;
13370 status = pthread_attr_init(&attr);
13371 if( status ) return status;
13373 #if HAVE_PTHREADS < 7
13374 status = pthread_attr_setdetachstate(&attr, &detach);
13375 if( status < 0 ) status = errno;
13377 status = pthread_attr_setdetachstate(&attr, detach);
13379 if( status ) return status;
13380 status = pthread_create( &t, &attr, task, NULL );
13381 #if HAVE_PTHREADS < 7
13382 if( status < 0 ) status = errno;
13384 if( status ) return status;
13386 /* Draft 4 pthreads */
13387 status = pthread_create( &t, pthread_attr_default, task, NULL );
13388 if( status ) return errno;
13390 /* give thread a chance to complete */
13391 /* it should remain joinable and hence detachable */
13394 status = pthread_detach( &t );
13395 if( status ) return errno;
13398 #ifdef HAVE_LINUX_THREADS
13399 pthread_kill_other_threads_np();
13407 if { (eval echo configure:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13409 ol_cv_pthread_lpthread=yes
13411 echo "configure: failed program was:" >&5
13412 cat conftest.$ac_ext >&5
13414 ol_cv_pthread_lpthread=no
13425 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13427 if test $ol_cv_pthread_lpthread = yes ; then
13428 ol_link_pthreads="-lpthread"
13429 ol_link_threads=posix
13433 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13434 if test "$ol_link_threads" = no ; then
13436 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13437 echo "configure:13438: checking for pthread link with -lc_r" >&5
13438 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13446 if test "$cross_compiling" = yes; then
13447 cat > conftest.$ac_ext <<EOF
13448 #line 13449 "configure"
13449 #include "confdefs.h"
13450 /* pthread test headers */
13451 #include <pthread.h>
13452 #if HAVE_PTHREADS < 7
13456 #define NULL (void*)0
13459 static void *task(p)
13462 return (void *) (p == NULL);
13467 /* pthread test function */
13468 #ifndef PTHREAD_CREATE_DETACHED
13469 #define PTHREAD_CREATE_DETACHED 1
13473 int detach = PTHREAD_CREATE_DETACHED;
13475 #if HAVE_PTHREADS > 4
13476 /* Final pthreads */
13477 pthread_attr_t attr;
13479 status = pthread_attr_init(&attr);
13480 if( status ) return status;
13482 #if HAVE_PTHREADS < 7
13483 status = pthread_attr_setdetachstate(&attr, &detach);
13484 if( status < 0 ) status = errno;
13486 status = pthread_attr_setdetachstate(&attr, detach);
13488 if( status ) return status;
13489 status = pthread_create( &t, &attr, task, NULL );
13490 #if HAVE_PTHREADS < 7
13491 if( status < 0 ) status = errno;
13493 if( status ) return status;
13495 /* Draft 4 pthreads */
13496 status = pthread_create( &t, pthread_attr_default, task, NULL );
13497 if( status ) return errno;
13499 /* give thread a chance to complete */
13500 /* it should remain joinable and hence detachable */
13503 status = pthread_detach( &t );
13504 if( status ) return errno;
13507 #ifdef HAVE_LINUX_THREADS
13508 pthread_kill_other_threads_np();
13515 if { (eval echo configure:13516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13517 ol_cv_pthread_lc_r=yes
13519 echo "configure: failed program was:" >&5
13520 cat conftest.$ac_ext >&5
13522 ol_cv_pthread_lc_r=no
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 /* pthread test headers */
13530 #include <pthread.h>
13531 #if HAVE_PTHREADS < 7
13535 #define NULL (void*)0
13538 static void *task(p)
13541 return (void *) (p == NULL);
13545 int main(argc, argv)
13550 /* pthread test function */
13551 #ifndef PTHREAD_CREATE_DETACHED
13552 #define PTHREAD_CREATE_DETACHED 1
13556 int detach = PTHREAD_CREATE_DETACHED;
13558 #if HAVE_PTHREADS > 4
13559 /* Final pthreads */
13560 pthread_attr_t attr;
13562 status = pthread_attr_init(&attr);
13563 if( status ) return status;
13565 #if HAVE_PTHREADS < 7
13566 status = pthread_attr_setdetachstate(&attr, &detach);
13567 if( status < 0 ) status = errno;
13569 status = pthread_attr_setdetachstate(&attr, detach);
13571 if( status ) return status;
13572 status = pthread_create( &t, &attr, task, NULL );
13573 #if HAVE_PTHREADS < 7
13574 if( status < 0 ) status = errno;
13576 if( status ) return status;
13578 /* Draft 4 pthreads */
13579 status = pthread_create( &t, pthread_attr_default, task, NULL );
13580 if( status ) return errno;
13582 /* give thread a chance to complete */
13583 /* it should remain joinable and hence detachable */
13586 status = pthread_detach( &t );
13587 if( status ) return errno;
13590 #ifdef HAVE_LINUX_THREADS
13591 pthread_kill_other_threads_np();
13599 if { (eval echo configure:13600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13601 ol_cv_pthread_lc_r=yes
13603 echo "configure: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13606 ol_cv_pthread_lc_r=no
13617 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13619 if test $ol_cv_pthread_lc_r = yes ; then
13620 ol_link_pthreads="-lc_r"
13621 ol_link_threads=posix
13626 # Pthread try link: -threads (ol_cv_pthread_threads)
13627 if test "$ol_link_threads" = no ; then
13629 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13630 echo "configure:13631: checking for pthread link with -threads" >&5
13631 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13632 echo $ac_n "(cached) $ac_c" 1>&6
13637 LIBS="-threads $LIBS"
13639 if test "$cross_compiling" = yes; then
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13643 /* pthread test headers */
13644 #include <pthread.h>
13645 #if HAVE_PTHREADS < 7
13649 #define NULL (void*)0
13652 static void *task(p)
13655 return (void *) (p == NULL);
13660 /* pthread test function */
13661 #ifndef PTHREAD_CREATE_DETACHED
13662 #define PTHREAD_CREATE_DETACHED 1
13666 int detach = PTHREAD_CREATE_DETACHED;
13668 #if HAVE_PTHREADS > 4
13669 /* Final pthreads */
13670 pthread_attr_t attr;
13672 status = pthread_attr_init(&attr);
13673 if( status ) return status;
13675 #if HAVE_PTHREADS < 7
13676 status = pthread_attr_setdetachstate(&attr, &detach);
13677 if( status < 0 ) status = errno;
13679 status = pthread_attr_setdetachstate(&attr, detach);
13681 if( status ) return status;
13682 status = pthread_create( &t, &attr, task, NULL );
13683 #if HAVE_PTHREADS < 7
13684 if( status < 0 ) status = errno;
13686 if( status ) return status;
13688 /* Draft 4 pthreads */
13689 status = pthread_create( &t, pthread_attr_default, task, NULL );
13690 if( status ) return errno;
13692 /* give thread a chance to complete */
13693 /* it should remain joinable and hence detachable */
13696 status = pthread_detach( &t );
13697 if( status ) return errno;
13700 #ifdef HAVE_LINUX_THREADS
13701 pthread_kill_other_threads_np();
13708 if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13710 ol_cv_pthread_threads=yes
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13715 ol_cv_pthread_threads=no
13719 cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13722 /* pthread test headers */
13723 #include <pthread.h>
13724 #if HAVE_PTHREADS < 7
13728 #define NULL (void*)0
13731 static void *task(p)
13734 return (void *) (p == NULL);
13738 int main(argc, argv)
13743 /* pthread test function */
13744 #ifndef PTHREAD_CREATE_DETACHED
13745 #define PTHREAD_CREATE_DETACHED 1
13749 int detach = PTHREAD_CREATE_DETACHED;
13751 #if HAVE_PTHREADS > 4
13752 /* Final pthreads */
13753 pthread_attr_t attr;
13755 status = pthread_attr_init(&attr);
13756 if( status ) return status;
13758 #if HAVE_PTHREADS < 7
13759 status = pthread_attr_setdetachstate(&attr, &detach);
13760 if( status < 0 ) status = errno;
13762 status = pthread_attr_setdetachstate(&attr, detach);
13764 if( status ) return status;
13765 status = pthread_create( &t, &attr, task, NULL );
13766 #if HAVE_PTHREADS < 7
13767 if( status < 0 ) status = errno;
13769 if( status ) return status;
13771 /* Draft 4 pthreads */
13772 status = pthread_create( &t, pthread_attr_default, task, NULL );
13773 if( status ) return errno;
13775 /* give thread a chance to complete */
13776 /* it should remain joinable and hence detachable */
13779 status = pthread_detach( &t );
13780 if( status ) return errno;
13783 #ifdef HAVE_LINUX_THREADS
13784 pthread_kill_other_threads_np();
13792 if { (eval echo configure:13793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13794 ol_cv_pthread_threads=yes
13796 echo "configure: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13799 ol_cv_pthread_threads=no
13810 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13812 if test $ol_cv_pthread_threads = yes ; then
13813 ol_link_pthreads="-threads"
13814 ol_link_threads=posix
13819 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13820 if test "$ol_link_threads" = no ; then
13821 # try -lpthreads -lmach -lexc -lc_r
13822 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13823 echo "configure:13824: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13824 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13825 echo $ac_n "(cached) $ac_c" 1>&6
13830 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13832 if test "$cross_compiling" = yes; then
13833 cat > conftest.$ac_ext <<EOF
13834 #line 13835 "configure"
13835 #include "confdefs.h"
13836 /* pthread test headers */
13837 #include <pthread.h>
13838 #if HAVE_PTHREADS < 7
13842 #define NULL (void*)0
13845 static void *task(p)
13848 return (void *) (p == NULL);
13853 /* pthread test function */
13854 #ifndef PTHREAD_CREATE_DETACHED
13855 #define PTHREAD_CREATE_DETACHED 1
13859 int detach = PTHREAD_CREATE_DETACHED;
13861 #if HAVE_PTHREADS > 4
13862 /* Final pthreads */
13863 pthread_attr_t attr;
13865 status = pthread_attr_init(&attr);
13866 if( status ) return status;
13868 #if HAVE_PTHREADS < 7
13869 status = pthread_attr_setdetachstate(&attr, &detach);
13870 if( status < 0 ) status = errno;
13872 status = pthread_attr_setdetachstate(&attr, detach);
13874 if( status ) return status;
13875 status = pthread_create( &t, &attr, task, NULL );
13876 #if HAVE_PTHREADS < 7
13877 if( status < 0 ) status = errno;
13879 if( status ) return status;
13881 /* Draft 4 pthreads */
13882 status = pthread_create( &t, pthread_attr_default, task, NULL );
13883 if( status ) return errno;
13885 /* give thread a chance to complete */
13886 /* it should remain joinable and hence detachable */
13889 status = pthread_detach( &t );
13890 if( status ) return errno;
13893 #ifdef HAVE_LINUX_THREADS
13894 pthread_kill_other_threads_np();
13901 if { (eval echo configure:13902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13903 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13905 echo "configure: failed program was:" >&5
13906 cat conftest.$ac_ext >&5
13908 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915 /* pthread test headers */
13916 #include <pthread.h>
13917 #if HAVE_PTHREADS < 7
13921 #define NULL (void*)0
13924 static void *task(p)
13927 return (void *) (p == NULL);
13931 int main(argc, argv)
13936 /* pthread test function */
13937 #ifndef PTHREAD_CREATE_DETACHED
13938 #define PTHREAD_CREATE_DETACHED 1
13942 int detach = PTHREAD_CREATE_DETACHED;
13944 #if HAVE_PTHREADS > 4
13945 /* Final pthreads */
13946 pthread_attr_t attr;
13948 status = pthread_attr_init(&attr);
13949 if( status ) return status;
13951 #if HAVE_PTHREADS < 7
13952 status = pthread_attr_setdetachstate(&attr, &detach);
13953 if( status < 0 ) status = errno;
13955 status = pthread_attr_setdetachstate(&attr, detach);
13957 if( status ) return status;
13958 status = pthread_create( &t, &attr, task, NULL );
13959 #if HAVE_PTHREADS < 7
13960 if( status < 0 ) status = errno;
13962 if( status ) return status;
13964 /* Draft 4 pthreads */
13965 status = pthread_create( &t, pthread_attr_default, task, NULL );
13966 if( status ) return errno;
13968 /* give thread a chance to complete */
13969 /* it should remain joinable and hence detachable */
13972 status = pthread_detach( &t );
13973 if( status ) return errno;
13976 #ifdef HAVE_LINUX_THREADS
13977 pthread_kill_other_threads_np();
13985 if { (eval echo configure:13986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13987 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13989 echo "configure: failed program was:" >&5
13990 cat conftest.$ac_ext >&5
13992 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14003 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14005 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14006 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14007 ol_link_threads=posix
14011 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14012 if test "$ol_link_threads" = no ; then
14013 # try -lpthreads -lmach -lexc
14014 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14015 echo "configure:14016: checking for pthread link with -lpthreads -lmach -lexc" >&5
14016 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14017 echo $ac_n "(cached) $ac_c" 1>&6
14022 LIBS="-lpthreads -lmach -lexc $LIBS"
14024 if test "$cross_compiling" = yes; then
14025 cat > conftest.$ac_ext <<EOF
14026 #line 14027 "configure"
14027 #include "confdefs.h"
14028 /* pthread test headers */
14029 #include <pthread.h>
14030 #if HAVE_PTHREADS < 7
14034 #define NULL (void*)0
14037 static void *task(p)
14040 return (void *) (p == NULL);
14045 /* pthread test function */
14046 #ifndef PTHREAD_CREATE_DETACHED
14047 #define PTHREAD_CREATE_DETACHED 1
14051 int detach = PTHREAD_CREATE_DETACHED;
14053 #if HAVE_PTHREADS > 4
14054 /* Final pthreads */
14055 pthread_attr_t attr;
14057 status = pthread_attr_init(&attr);
14058 if( status ) return status;
14060 #if HAVE_PTHREADS < 7
14061 status = pthread_attr_setdetachstate(&attr, &detach);
14062 if( status < 0 ) status = errno;
14064 status = pthread_attr_setdetachstate(&attr, detach);
14066 if( status ) return status;
14067 status = pthread_create( &t, &attr, task, NULL );
14068 #if HAVE_PTHREADS < 7
14069 if( status < 0 ) status = errno;
14071 if( status ) return status;
14073 /* Draft 4 pthreads */
14074 status = pthread_create( &t, pthread_attr_default, task, NULL );
14075 if( status ) return errno;
14077 /* give thread a chance to complete */
14078 /* it should remain joinable and hence detachable */
14081 status = pthread_detach( &t );
14082 if( status ) return errno;
14085 #ifdef HAVE_LINUX_THREADS
14086 pthread_kill_other_threads_np();
14093 if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14095 ol_cv_pthread_lpthreads_lmach_lexc=yes
14097 echo "configure: failed program was:" >&5
14098 cat conftest.$ac_ext >&5
14100 ol_cv_pthread_lpthreads_lmach_lexc=no
14104 cat > conftest.$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14107 /* pthread test headers */
14108 #include <pthread.h>
14109 #if HAVE_PTHREADS < 7
14113 #define NULL (void*)0
14116 static void *task(p)
14119 return (void *) (p == NULL);
14123 int main(argc, argv)
14128 /* pthread test function */
14129 #ifndef PTHREAD_CREATE_DETACHED
14130 #define PTHREAD_CREATE_DETACHED 1
14134 int detach = PTHREAD_CREATE_DETACHED;
14136 #if HAVE_PTHREADS > 4
14137 /* Final pthreads */
14138 pthread_attr_t attr;
14140 status = pthread_attr_init(&attr);
14141 if( status ) return status;
14143 #if HAVE_PTHREADS < 7
14144 status = pthread_attr_setdetachstate(&attr, &detach);
14145 if( status < 0 ) status = errno;
14147 status = pthread_attr_setdetachstate(&attr, detach);
14149 if( status ) return status;
14150 status = pthread_create( &t, &attr, task, NULL );
14151 #if HAVE_PTHREADS < 7
14152 if( status < 0 ) status = errno;
14154 if( status ) return status;
14156 /* Draft 4 pthreads */
14157 status = pthread_create( &t, pthread_attr_default, task, NULL );
14158 if( status ) return errno;
14160 /* give thread a chance to complete */
14161 /* it should remain joinable and hence detachable */
14164 status = pthread_detach( &t );
14165 if( status ) return errno;
14168 #ifdef HAVE_LINUX_THREADS
14169 pthread_kill_other_threads_np();
14177 if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14179 ol_cv_pthread_lpthreads_lmach_lexc=yes
14181 echo "configure: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14184 ol_cv_pthread_lpthreads_lmach_lexc=no
14195 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14197 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14198 ol_link_pthreads="-lpthreads -lmach -lexc"
14199 ol_link_threads=posix
14203 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14204 if test "$ol_link_threads" = no ; then
14205 # try -lpthreads -lexc
14206 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14207 echo "configure:14208: checking for pthread link with -lpthreads -lexc" >&5
14208 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14214 LIBS="-lpthreads -lexc $LIBS"
14216 if test "$cross_compiling" = yes; then
14217 cat > conftest.$ac_ext <<EOF
14218 #line 14219 "configure"
14219 #include "confdefs.h"
14220 /* pthread test headers */
14221 #include <pthread.h>
14222 #if HAVE_PTHREADS < 7
14226 #define NULL (void*)0
14229 static void *task(p)
14232 return (void *) (p == NULL);
14237 /* pthread test function */
14238 #ifndef PTHREAD_CREATE_DETACHED
14239 #define PTHREAD_CREATE_DETACHED 1
14243 int detach = PTHREAD_CREATE_DETACHED;
14245 #if HAVE_PTHREADS > 4
14246 /* Final pthreads */
14247 pthread_attr_t attr;
14249 status = pthread_attr_init(&attr);
14250 if( status ) return status;
14252 #if HAVE_PTHREADS < 7
14253 status = pthread_attr_setdetachstate(&attr, &detach);
14254 if( status < 0 ) status = errno;
14256 status = pthread_attr_setdetachstate(&attr, detach);
14258 if( status ) return status;
14259 status = pthread_create( &t, &attr, task, NULL );
14260 #if HAVE_PTHREADS < 7
14261 if( status < 0 ) status = errno;
14263 if( status ) return status;
14265 /* Draft 4 pthreads */
14266 status = pthread_create( &t, pthread_attr_default, task, NULL );
14267 if( status ) return errno;
14269 /* give thread a chance to complete */
14270 /* it should remain joinable and hence detachable */
14273 status = pthread_detach( &t );
14274 if( status ) return errno;
14277 #ifdef HAVE_LINUX_THREADS
14278 pthread_kill_other_threads_np();
14285 if { (eval echo configure:14286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14287 ol_cv_pthread_lpthreads_lexc=yes
14289 echo "configure: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14292 ol_cv_pthread_lpthreads_lexc=no
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* pthread test headers */
14300 #include <pthread.h>
14301 #if HAVE_PTHREADS < 7
14305 #define NULL (void*)0
14308 static void *task(p)
14311 return (void *) (p == NULL);
14315 int main(argc, argv)
14320 /* pthread test function */
14321 #ifndef PTHREAD_CREATE_DETACHED
14322 #define PTHREAD_CREATE_DETACHED 1
14326 int detach = PTHREAD_CREATE_DETACHED;
14328 #if HAVE_PTHREADS > 4
14329 /* Final pthreads */
14330 pthread_attr_t attr;
14332 status = pthread_attr_init(&attr);
14333 if( status ) return status;
14335 #if HAVE_PTHREADS < 7
14336 status = pthread_attr_setdetachstate(&attr, &detach);
14337 if( status < 0 ) status = errno;
14339 status = pthread_attr_setdetachstate(&attr, detach);
14341 if( status ) return status;
14342 status = pthread_create( &t, &attr, task, NULL );
14343 #if HAVE_PTHREADS < 7
14344 if( status < 0 ) status = errno;
14346 if( status ) return status;
14348 /* Draft 4 pthreads */
14349 status = pthread_create( &t, pthread_attr_default, task, NULL );
14350 if( status ) return errno;
14352 /* give thread a chance to complete */
14353 /* it should remain joinable and hence detachable */
14356 status = pthread_detach( &t );
14357 if( status ) return errno;
14360 #ifdef HAVE_LINUX_THREADS
14361 pthread_kill_other_threads_np();
14369 if { (eval echo configure:14370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14371 ol_cv_pthread_lpthreads_lexc=yes
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14376 ol_cv_pthread_lpthreads_lexc=no
14387 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14389 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14390 ol_link_pthreads="-lpthreads -lexc"
14391 ol_link_threads=posix
14396 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14397 if test "$ol_link_threads" = no ; then
14399 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14400 echo "configure:14401: checking for pthread link with -lpthreads" >&5
14401 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14402 echo $ac_n "(cached) $ac_c" 1>&6
14407 LIBS="-lpthreads $LIBS"
14409 if test "$cross_compiling" = yes; then
14410 cat > conftest.$ac_ext <<EOF
14411 #line 14412 "configure"
14412 #include "confdefs.h"
14413 /* pthread test headers */
14414 #include <pthread.h>
14415 #if HAVE_PTHREADS < 7
14419 #define NULL (void*)0
14422 static void *task(p)
14425 return (void *) (p == NULL);
14430 /* pthread test function */
14431 #ifndef PTHREAD_CREATE_DETACHED
14432 #define PTHREAD_CREATE_DETACHED 1
14436 int detach = PTHREAD_CREATE_DETACHED;
14438 #if HAVE_PTHREADS > 4
14439 /* Final pthreads */
14440 pthread_attr_t attr;
14442 status = pthread_attr_init(&attr);
14443 if( status ) return status;
14445 #if HAVE_PTHREADS < 7
14446 status = pthread_attr_setdetachstate(&attr, &detach);
14447 if( status < 0 ) status = errno;
14449 status = pthread_attr_setdetachstate(&attr, detach);
14451 if( status ) return status;
14452 status = pthread_create( &t, &attr, task, NULL );
14453 #if HAVE_PTHREADS < 7
14454 if( status < 0 ) status = errno;
14456 if( status ) return status;
14458 /* Draft 4 pthreads */
14459 status = pthread_create( &t, pthread_attr_default, task, NULL );
14460 if( status ) return errno;
14462 /* give thread a chance to complete */
14463 /* it should remain joinable and hence detachable */
14466 status = pthread_detach( &t );
14467 if( status ) return errno;
14470 #ifdef HAVE_LINUX_THREADS
14471 pthread_kill_other_threads_np();
14478 if { (eval echo configure:14479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14480 ol_cv_pthread_lib_lpthreads=yes
14482 echo "configure: failed program was:" >&5
14483 cat conftest.$ac_ext >&5
14485 ol_cv_pthread_lib_lpthreads=no
14489 cat > conftest.$ac_ext <<EOF
14490 #line 14491 "configure"
14491 #include "confdefs.h"
14492 /* pthread test headers */
14493 #include <pthread.h>
14494 #if HAVE_PTHREADS < 7
14498 #define NULL (void*)0
14501 static void *task(p)
14504 return (void *) (p == NULL);
14508 int main(argc, argv)
14513 /* pthread test function */
14514 #ifndef PTHREAD_CREATE_DETACHED
14515 #define PTHREAD_CREATE_DETACHED 1
14519 int detach = PTHREAD_CREATE_DETACHED;
14521 #if HAVE_PTHREADS > 4
14522 /* Final pthreads */
14523 pthread_attr_t attr;
14525 status = pthread_attr_init(&attr);
14526 if( status ) return status;
14528 #if HAVE_PTHREADS < 7
14529 status = pthread_attr_setdetachstate(&attr, &detach);
14530 if( status < 0 ) status = errno;
14532 status = pthread_attr_setdetachstate(&attr, detach);
14534 if( status ) return status;
14535 status = pthread_create( &t, &attr, task, NULL );
14536 #if HAVE_PTHREADS < 7
14537 if( status < 0 ) status = errno;
14539 if( status ) return status;
14541 /* Draft 4 pthreads */
14542 status = pthread_create( &t, pthread_attr_default, task, NULL );
14543 if( status ) return errno;
14545 /* give thread a chance to complete */
14546 /* it should remain joinable and hence detachable */
14549 status = pthread_detach( &t );
14550 if( status ) return errno;
14553 #ifdef HAVE_LINUX_THREADS
14554 pthread_kill_other_threads_np();
14562 if { (eval echo configure:14563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14564 ol_cv_pthread_lib_lpthreads=yes
14566 echo "configure: failed program was:" >&5
14567 cat conftest.$ac_ext >&5
14569 ol_cv_pthread_lib_lpthreads=no
14580 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14582 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14583 ol_link_pthreads="-lpthreads"
14584 ol_link_threads=posix
14589 if test $ol_link_threads != no ; then
14590 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14592 save_CPPFLAGS="$CPPFLAGS"
14594 LIBS="$LTHREAD_LIBS $LIBS"
14596 for ac_func in sched_yield pthread_yield thr_yield
14598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14599 echo "configure:14600: checking for $ac_func" >&5
14600 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14601 echo $ac_n "(cached) $ac_c" 1>&6
14603 cat > conftest.$ac_ext <<EOF
14604 #line 14605 "configure"
14605 #include "confdefs.h"
14606 /* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char $ac_func(); below. */
14608 #include <assert.h>
14609 /* Override any gcc2 internal prototype to avoid an error. */
14610 /* We use char because int might match the return type of a gcc2
14611 builtin and then its argument prototype would still apply. */
14617 /* The GNU C library defines this for functions which it implements
14618 to always fail with ENOSYS. Some functions are actually named
14619 something starting with __ and the normal name is an alias. */
14620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14628 if { (eval echo configure:14629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14630 eval "ac_cv_func_$ac_func=yes"
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14635 eval "ac_cv_func_$ac_func=no"
14640 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14641 echo "$ac_t""yes" 1>&6
14642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14643 cat >> confdefs.h <<EOF
14644 #define $ac_tr_func 1
14648 echo "$ac_t""no" 1>&6
14653 if test $ac_cv_func_sched_yield = no -a \
14654 $ac_cv_func_pthread_yield = no -a \
14655 $ac_cv_func_thr_yield = no ; then
14656 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14657 echo "configure:14658: checking for sched_yield in -lrt" >&5
14658 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14659 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14660 echo $ac_n "(cached) $ac_c" 1>&6
14662 ac_save_LIBS="$LIBS"
14664 cat > conftest.$ac_ext <<EOF
14665 #line 14666 "configure"
14666 #include "confdefs.h"
14667 /* Override any gcc2 internal prototype to avoid an error. */
14668 /* We use char because int might match the return type of a gcc2
14669 builtin and then its argument prototype would still apply. */
14670 char sched_yield();
14676 if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14678 eval "ac_cv_lib_$ac_lib_var=yes"
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14683 eval "ac_cv_lib_$ac_lib_var=no"
14686 LIBS="$ac_save_LIBS"
14689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14690 echo "$ac_t""yes" 1>&6
14691 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14692 cat >> confdefs.h <<\EOF
14693 #define HAVE_SCHED_YIELD 1
14696 ac_cv_func_sched_yield=yes
14698 echo "$ac_t""no" 1>&6
14699 ac_cv_func_sched_yield=no
14703 if test $ac_cv_func_sched_yield = no -a \
14704 $ac_cv_func_pthread_yield = no -a \
14705 "$ac_cv_func_thr_yield" = no ; then
14706 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14709 for ac_func in pthread_kill pthread_rwlock_destroy
14711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14712 echo "configure:14713: checking for $ac_func" >&5
14713 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14714 echo $ac_n "(cached) $ac_c" 1>&6
14716 cat > conftest.$ac_ext <<EOF
14717 #line 14718 "configure"
14718 #include "confdefs.h"
14719 /* System header to define __stub macros and hopefully few prototypes,
14720 which can conflict with char $ac_func(); below. */
14721 #include <assert.h>
14722 /* Override any gcc2 internal prototype to avoid an error. */
14723 /* We use char because int might match the return type of a gcc2
14724 builtin and then its argument prototype would still apply. */
14730 /* The GNU C library defines this for functions which it implements
14731 to always fail with ENOSYS. Some functions are actually named
14732 something starting with __ and the normal name is an alias. */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14741 if { (eval echo configure:14742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14743 eval "ac_cv_func_$ac_func=yes"
14745 echo "configure: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14748 eval "ac_cv_func_$ac_func=no"
14753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14754 echo "$ac_t""yes" 1>&6
14755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14756 cat >> confdefs.h <<EOF
14757 #define $ac_tr_func 1
14761 echo "$ac_t""no" 1>&6
14766 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14767 echo "configure:14768: checking for pthread_detach with <pthread.h>" >&5
14768 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14769 echo $ac_n "(cached) $ac_c" 1>&6
14772 cat > conftest.$ac_ext <<EOF
14773 #line 14774 "configure"
14774 #include "confdefs.h"
14776 #include <pthread.h>
14778 #define NULL (void*)0
14782 pthread_detach(NULL);
14785 if { (eval echo configure:14786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14787 ol_cv_func_pthread_detach=yes
14789 echo "configure: failed program was:" >&5
14790 cat conftest.$ac_ext >&5
14792 ol_cv_func_pthread_detach=no
14798 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14800 if test $ol_cv_func_pthread_detach = no ; then
14801 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14804 cat >> confdefs.h <<\EOF
14805 #define HAVE_PTHREAD_DETACH 1
14810 pthread_setconcurrency \
14811 pthread_getconcurrency \
14812 thr_setconcurrency \
14813 thr_getconcurrency \
14816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14817 echo "configure:14818: checking for $ac_func" >&5
14818 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14819 echo $ac_n "(cached) $ac_c" 1>&6
14821 cat > conftest.$ac_ext <<EOF
14822 #line 14823 "configure"
14823 #include "confdefs.h"
14824 /* System header to define __stub macros and hopefully few prototypes,
14825 which can conflict with char $ac_func(); below. */
14826 #include <assert.h>
14827 /* Override any gcc2 internal prototype to avoid an error. */
14828 /* We use char because int might match the return type of a gcc2
14829 builtin and then its argument prototype would still apply. */
14835 /* The GNU C library defines this for functions which it implements
14836 to always fail with ENOSYS. Some functions are actually named
14837 something starting with __ and the normal name is an alias. */
14838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14846 if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14848 eval "ac_cv_func_$ac_func=yes"
14850 echo "configure: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14853 eval "ac_cv_func_$ac_func=no"
14858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14859 echo "$ac_t""yes" 1>&6
14860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14861 cat >> confdefs.h <<EOF
14862 #define $ac_tr_func 1
14866 echo "$ac_t""no" 1>&6
14872 for ac_func in pthread_kill_other_threads_np
14874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14875 echo "configure:14876: checking for $ac_func" >&5
14876 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14877 echo $ac_n "(cached) $ac_c" 1>&6
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14882 /* System header to define __stub macros and hopefully few prototypes,
14883 which can conflict with char $ac_func(); below. */
14884 #include <assert.h>
14885 /* Override any gcc2 internal prototype to avoid an error. */
14886 /* We use char because int might match the return type of a gcc2
14887 builtin and then its argument prototype would still apply. */
14893 /* The GNU C library defines this for functions which it implements
14894 to always fail with ENOSYS. Some functions are actually named
14895 something starting with __ and the normal name is an alias. */
14896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14904 if { (eval echo configure:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14906 eval "ac_cv_func_$ac_func=yes"
14908 echo "configure: failed program was:" >&5
14909 cat conftest.$ac_ext >&5
14911 eval "ac_cv_func_$ac_func=no"
14916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14917 echo "$ac_t""yes" 1>&6
14918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14919 cat >> confdefs.h <<EOF
14920 #define $ac_tr_func 1
14924 echo "$ac_t""no" 1>&6
14928 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14929 echo "configure:14930: checking for LinuxThreads implementation" >&5
14930 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14931 echo $ac_n "(cached) $ac_c" 1>&6
14933 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14936 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14941 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14942 echo "configure:14943: checking for LinuxThreads consistency" >&5
14943 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14944 echo $ac_n "(cached) $ac_c" 1>&6
14947 if test $ol_cv_header_linux_threads = yes -a \
14948 $ol_cv_sys_linux_threads = yes; then
14949 ol_cv_linux_threads=yes
14950 elif test $ol_cv_header_linux_threads = no -a \
14951 $ol_cv_sys_linux_threads = no; then
14952 ol_cv_linux_threads=no
14954 ol_cv_linux_threads=error
14959 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14962 if test $ol_cv_linux_threads = error; then
14963 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14966 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14967 echo "configure:14968: checking if pthread_create() works" >&5
14968 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14969 echo $ac_n "(cached) $ac_c" 1>&6
14972 if test "$cross_compiling" = yes; then
14973 ol_cv_pthread_create_works=yes
14975 cat > conftest.$ac_ext <<EOF
14976 #line 14977 "configure"
14977 #include "confdefs.h"
14978 /* pthread test headers */
14979 #include <pthread.h>
14980 #if HAVE_PTHREADS < 7
14984 #define NULL (void*)0
14987 static void *task(p)
14990 return (void *) (p == NULL);
14994 int main(argc, argv)
14999 /* pthread test function */
15000 #ifndef PTHREAD_CREATE_DETACHED
15001 #define PTHREAD_CREATE_DETACHED 1
15005 int detach = PTHREAD_CREATE_DETACHED;
15007 #if HAVE_PTHREADS > 4
15008 /* Final pthreads */
15009 pthread_attr_t attr;
15011 status = pthread_attr_init(&attr);
15012 if( status ) return status;
15014 #if HAVE_PTHREADS < 7
15015 status = pthread_attr_setdetachstate(&attr, &detach);
15016 if( status < 0 ) status = errno;
15018 status = pthread_attr_setdetachstate(&attr, detach);
15020 if( status ) return status;
15021 status = pthread_create( &t, &attr, task, NULL );
15022 #if HAVE_PTHREADS < 7
15023 if( status < 0 ) status = errno;
15025 if( status ) return status;
15027 /* Draft 4 pthreads */
15028 status = pthread_create( &t, pthread_attr_default, task, NULL );
15029 if( status ) return errno;
15031 /* give thread a chance to complete */
15032 /* it should remain joinable and hence detachable */
15035 status = pthread_detach( &t );
15036 if( status ) return errno;
15039 #ifdef HAVE_LINUX_THREADS
15040 pthread_kill_other_threads_np();
15048 if { (eval echo configure:15049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15050 ol_cv_pthread_create_works=yes
15052 echo "configure: failed program was:" >&5
15053 cat conftest.$ac_ext >&5
15055 ol_cv_pthread_create_works=no
15062 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15064 if test $ol_cv_pthread_create_works = no ; then
15065 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15068 if test $ol_with_yielding_select = auto ; then
15069 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15070 echo "configure:15071: checking if select yields when using pthreads" >&5
15071 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15072 echo $ac_n "(cached) $ac_c" 1>&6
15075 if test "$cross_compiling" = yes; then
15076 ol_cv_pthread_select_yields=cross
15078 cat > conftest.$ac_ext <<EOF
15079 #line 15080 "configure"
15080 #include "confdefs.h"
15082 #include <sys/types.h>
15083 #include <sys/time.h>
15084 #include <unistd.h>
15085 #include <pthread.h>
15087 #define NULL (void*) 0
15090 static int fildes[2];
15092 static void *task(p)
15104 FD_SET(fildes[0], &rfds);
15106 /* we're not interested in any fds */
15107 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15114 exit(0); /* if we exit here, the select blocked the whole process */
15117 int main(argc, argv)
15123 /* create a pipe to select */
15124 if(pipe(&fildes[0])) {
15129 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15130 (void) pthread_setconcurrency(2);
15132 #ifdef HAVE_THR_SETCONCURRENCY
15133 /* Set Solaris LWP concurrency to 2 */
15134 thr_setconcurrency(2);
15138 #if HAVE_PTHREADS < 6
15139 pthread_create(&t, pthread_attr_default, task, NULL);
15141 pthread_create(&t, NULL, task, NULL);
15144 /* make sure task runs first */
15147 #elif defined( HAVE_SCHED_YIELD )
15149 #elif defined( HAVE_PTHREAD_YIELD )
15156 if { (eval echo configure:15157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15158 ol_cv_pthread_select_yields=no
15160 echo "configure: failed program was:" >&5
15161 cat conftest.$ac_ext >&5
15163 ol_cv_pthread_select_yields=yes
15170 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15172 if test $ol_cv_pthread_select_yields = cross ; then
15173 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15176 if test $ol_cv_pthread_select_yields = yes ; then
15177 ol_with_yielding_select=yes
15181 CPPFLAGS="$save_CPPFLAGS"
15184 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15188 if test $ol_with_threads = posix ; then
15189 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15193 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15194 -o $ol_with_threads = mach ; then
15196 for ac_hdr in mach/cthreads.h cthreads.h
15198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15200 echo "configure:15201: checking for $ac_hdr" >&5
15201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15202 echo $ac_n "(cached) $ac_c" 1>&6
15204 cat > conftest.$ac_ext <<EOF
15205 #line 15206 "configure"
15206 #include "confdefs.h"
15209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15210 { (eval echo configure:15211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15212 if test -z "$ac_err"; then
15214 eval "ac_cv_header_$ac_safe=yes"
15217 echo "configure: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15220 eval "ac_cv_header_$ac_safe=no"
15224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15225 echo "$ac_t""yes" 1>&6
15226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15227 cat >> confdefs.h <<EOF
15228 #define $ac_tr_hdr 1
15232 echo "$ac_t""no" 1>&6
15236 if test $ac_cv_header_mach_cthreads_h = yes ; then
15237 ol_with_threads=found
15239 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15240 echo "configure:15241: checking for cthread_fork" >&5
15241 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15242 echo $ac_n "(cached) $ac_c" 1>&6
15244 cat > conftest.$ac_ext <<EOF
15245 #line 15246 "configure"
15246 #include "confdefs.h"
15247 /* System header to define __stub macros and hopefully few prototypes,
15248 which can conflict with char cthread_fork(); below. */
15249 #include <assert.h>
15250 /* Override any gcc2 internal prototype to avoid an error. */
15251 /* We use char because int might match the return type of a gcc2
15252 builtin and then its argument prototype would still apply. */
15253 char cthread_fork();
15258 /* The GNU C library defines this for functions which it implements
15259 to always fail with ENOSYS. Some functions are actually named
15260 something starting with __ and the normal name is an alias. */
15261 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15269 if { (eval echo configure:15270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15271 eval "ac_cv_func_cthread_fork=yes"
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15276 eval "ac_cv_func_cthread_fork=no"
15281 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15282 echo "$ac_t""yes" 1>&6
15283 ol_link_threads=yes
15285 echo "$ac_t""no" 1>&6
15289 if test $ol_link_threads = no ; then
15290 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15291 echo "configure:15292: checking for cthread_fork with -all_load" >&5
15292 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15293 echo $ac_n "(cached) $ac_c" 1>&6
15297 LIBS="-all_load $LIBS"
15298 cat > conftest.$ac_ext <<EOF
15299 #line 15300 "configure"
15300 #include "confdefs.h"
15301 #include <mach/cthreads.h>
15304 cthread_fork((void *)0, (void *)0);
15308 if { (eval echo configure:15309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15310 ol_cv_cthread_all_load=yes
15312 echo "configure: failed program was:" >&5
15313 cat conftest.$ac_ext >&5
15315 ol_cv_cthread_all_load=no
15322 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15324 if test $ol_cv_cthread_all_load = yes ; then
15325 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15326 ol_link_threads=mach
15327 ol_with_threads=found
15331 elif test $ac_cv_header_cthreads_h = yes ; then
15333 ol_with_threads=found
15336 LIBS="$LIBS -lthreads"
15337 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15338 echo "configure:15339: checking for cthread_fork" >&5
15339 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15340 echo $ac_n "(cached) $ac_c" 1>&6
15342 cat > conftest.$ac_ext <<EOF
15343 #line 15344 "configure"
15344 #include "confdefs.h"
15345 /* System header to define __stub macros and hopefully few prototypes,
15346 which can conflict with char cthread_fork(); below. */
15347 #include <assert.h>
15348 /* Override any gcc2 internal prototype to avoid an error. */
15349 /* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15351 char cthread_fork();
15356 /* The GNU C library defines this for functions which it implements
15357 to always fail with ENOSYS. Some functions are actually named
15358 something starting with __ and the normal name is an alias. */
15359 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15367 if { (eval echo configure:15368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15369 eval "ac_cv_func_cthread_fork=yes"
15371 echo "configure: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15374 eval "ac_cv_func_cthread_fork=no"
15379 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15380 echo "$ac_t""yes" 1>&6
15381 ol_link_threads=yes
15383 echo "$ac_t""no" 1>&6
15388 if test $ol_link_threads = yes ; then
15389 LTHREAD_LIBS="-lthreads"
15390 ol_link_threads=mach
15391 ol_with_threads=found
15393 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15396 elif test $ol_with_threads = mach ; then
15397 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15400 if test $ol_link_threads = mach ; then
15401 cat >> confdefs.h <<\EOF
15402 #define HAVE_MACH_CTHREADS 1
15405 elif test $ol_with_threads = found ; then
15406 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15410 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15411 -o $ol_with_threads = pth ; then
15413 for ac_hdr in pth.h
15415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15417 echo "configure:15418: checking for $ac_hdr" >&5
15418 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15419 echo $ac_n "(cached) $ac_c" 1>&6
15421 cat > conftest.$ac_ext <<EOF
15422 #line 15423 "configure"
15423 #include "confdefs.h"
15426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15427 { (eval echo configure:15428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15428 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15429 if test -z "$ac_err"; then
15431 eval "ac_cv_header_$ac_safe=yes"
15434 echo "configure: failed program was:" >&5
15435 cat conftest.$ac_ext >&5
15437 eval "ac_cv_header_$ac_safe=no"
15441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15442 echo "$ac_t""yes" 1>&6
15443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15444 cat >> confdefs.h <<EOF
15445 #define $ac_tr_hdr 1
15449 echo "$ac_t""no" 1>&6
15454 if test $ac_cv_header_pth_h = yes ; then
15455 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15456 echo "configure:15457: checking for pth_version in -lpth" >&5
15457 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15458 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15459 echo $ac_n "(cached) $ac_c" 1>&6
15461 ac_save_LIBS="$LIBS"
15463 cat > conftest.$ac_ext <<EOF
15464 #line 15465 "configure"
15465 #include "confdefs.h"
15466 /* Override any gcc2 internal prototype to avoid an error. */
15467 /* We use char because int might match the return type of a gcc2
15468 builtin and then its argument prototype would still apply. */
15469 char pth_version();
15475 if { (eval echo configure:15476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15477 eval "ac_cv_lib_$ac_lib_var=yes"
15479 echo "configure: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15482 eval "ac_cv_lib_$ac_lib_var=no"
15485 LIBS="$ac_save_LIBS"
15488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15489 echo "$ac_t""yes" 1>&6
15492 echo "$ac_t""no" 1>&6
15497 if test $have_pth = yes ; then
15498 cat >> confdefs.h <<\EOF
15499 #define HAVE_GNU_PTH 1
15502 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15503 ol_link_threads=pth
15504 ol_with_threads=found
15506 if test $ol_with_yielding_select = auto ; then
15507 ol_with_yielding_select=yes
15513 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15514 -o $ol_with_threads = lwp ; then
15516 for ac_hdr in thread.h synch.h
15518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15520 echo "configure:15521: checking for $ac_hdr" >&5
15521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15522 echo $ac_n "(cached) $ac_c" 1>&6
15524 cat > conftest.$ac_ext <<EOF
15525 #line 15526 "configure"
15526 #include "confdefs.h"
15529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15530 { (eval echo configure:15531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15532 if test -z "$ac_err"; then
15534 eval "ac_cv_header_$ac_safe=yes"
15537 echo "configure: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15540 eval "ac_cv_header_$ac_safe=no"
15544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15547 cat >> confdefs.h <<EOF
15548 #define $ac_tr_hdr 1
15552 echo "$ac_t""no" 1>&6
15556 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15557 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15558 echo "configure:15559: checking for thr_create in -lthread" >&5
15559 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15560 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15563 ac_save_LIBS="$LIBS"
15564 LIBS="-lthread $LIBS"
15565 cat > conftest.$ac_ext <<EOF
15566 #line 15567 "configure"
15567 #include "confdefs.h"
15568 /* Override any gcc2 internal prototype to avoid an error. */
15569 /* We use char because int might match the return type of a gcc2
15570 builtin and then its argument prototype would still apply. */
15577 if { (eval echo configure:15578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15579 eval "ac_cv_lib_$ac_lib_var=yes"
15581 echo "configure: failed program was:" >&5
15582 cat conftest.$ac_ext >&5
15584 eval "ac_cv_lib_$ac_lib_var=no"
15587 LIBS="$ac_save_LIBS"
15590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15591 echo "$ac_t""yes" 1>&6
15594 echo "$ac_t""no" 1>&6
15599 if test $have_thr = yes ; then
15600 cat >> confdefs.h <<\EOF
15604 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15605 ol_link_threads=thr
15607 if test $ol_with_yielding_select = auto ; then
15608 ol_with_yielding_select=yes
15612 thr_setconcurrency \
15613 thr_getconcurrency \
15616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15617 echo "configure:15618: checking for $ac_func" >&5
15618 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15619 echo $ac_n "(cached) $ac_c" 1>&6
15621 cat > conftest.$ac_ext <<EOF
15622 #line 15623 "configure"
15623 #include "confdefs.h"
15624 /* System header to define __stub macros and hopefully few prototypes,
15625 which can conflict with char $ac_func(); below. */
15626 #include <assert.h>
15627 /* Override any gcc2 internal prototype to avoid an error. */
15628 /* We use char because int might match the return type of a gcc2
15629 builtin and then its argument prototype would still apply. */
15635 /* The GNU C library defines this for functions which it implements
15636 to always fail with ENOSYS. Some functions are actually named
15637 something starting with __ and the normal name is an alias. */
15638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15646 if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15648 eval "ac_cv_func_$ac_func=yes"
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15653 eval "ac_cv_func_$ac_func=no"
15658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15659 echo "$ac_t""yes" 1>&6
15660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15661 cat >> confdefs.h <<EOF
15662 #define $ac_tr_func 1
15666 echo "$ac_t""no" 1>&6
15673 for ac_hdr in lwp/lwp.h
15675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15677 echo "configure:15678: checking for $ac_hdr" >&5
15678 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15679 echo $ac_n "(cached) $ac_c" 1>&6
15681 cat > conftest.$ac_ext <<EOF
15682 #line 15683 "configure"
15683 #include "confdefs.h"
15686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15687 { (eval echo configure:15688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15689 if test -z "$ac_err"; then
15691 eval "ac_cv_header_$ac_safe=yes"
15694 echo "configure: failed program was:" >&5
15695 cat conftest.$ac_ext >&5
15697 eval "ac_cv_header_$ac_safe=no"
15701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15702 echo "$ac_t""yes" 1>&6
15703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15704 cat >> confdefs.h <<EOF
15705 #define $ac_tr_hdr 1
15709 echo "$ac_t""no" 1>&6
15713 if test $ac_cv_header_lwp_lwp_h = yes ; then
15714 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15715 echo "configure:15716: checking for lwp_create in -llwp" >&5
15716 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15717 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15718 echo $ac_n "(cached) $ac_c" 1>&6
15720 ac_save_LIBS="$LIBS"
15722 cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15734 if { (eval echo configure:15735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15736 eval "ac_cv_lib_$ac_lib_var=yes"
15738 echo "configure: failed program was:" >&5
15739 cat conftest.$ac_ext >&5
15741 eval "ac_cv_lib_$ac_lib_var=no"
15744 LIBS="$ac_save_LIBS"
15747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15748 echo "$ac_t""yes" 1>&6
15751 echo "$ac_t""no" 1>&6
15756 if test $have_lwp = yes ; then
15757 cat >> confdefs.h <<\EOF
15761 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15762 ol_link_threads=lwp
15764 if test $ol_with_yielding_select = auto ; then
15765 ol_with_yielding_select=no
15771 if test $ol_with_yielding_select = yes ; then
15772 cat >> confdefs.h <<\EOF
15773 #define HAVE_YIELDING_SELECT 1
15778 if test $ol_with_threads = manual ; then
15779 ol_link_threads=yes
15781 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15783 for ac_hdr in pthread.h sched.h
15785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15787 echo "configure:15788: checking for $ac_hdr" >&5
15788 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15789 echo $ac_n "(cached) $ac_c" 1>&6
15791 cat > conftest.$ac_ext <<EOF
15792 #line 15793 "configure"
15793 #include "confdefs.h"
15796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15797 { (eval echo configure:15798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15799 if test -z "$ac_err"; then
15801 eval "ac_cv_header_$ac_safe=yes"
15804 echo "configure: failed program was:" >&5
15805 cat conftest.$ac_ext >&5
15807 eval "ac_cv_header_$ac_safe=no"
15811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15812 echo "$ac_t""yes" 1>&6
15813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15814 cat >> confdefs.h <<EOF
15815 #define $ac_tr_hdr 1
15819 echo "$ac_t""no" 1>&6
15823 for ac_func in sched_yield pthread_yield
15825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15826 echo "configure:15827: checking for $ac_func" >&5
15827 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15828 echo $ac_n "(cached) $ac_c" 1>&6
15830 cat > conftest.$ac_ext <<EOF
15831 #line 15832 "configure"
15832 #include "confdefs.h"
15833 /* System header to define __stub macros and hopefully few prototypes,
15834 which can conflict with char $ac_func(); below. */
15835 #include <assert.h>
15836 /* Override any gcc2 internal prototype to avoid an error. */
15837 /* We use char because int might match the return type of a gcc2
15838 builtin and then its argument prototype would still apply. */
15844 /* The GNU C library defines this for functions which it implements
15845 to always fail with ENOSYS. Some functions are actually named
15846 something starting with __ and the normal name is an alias. */
15847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 if { (eval echo configure:15856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15857 eval "ac_cv_func_$ac_func=yes"
15859 echo "configure: failed program was:" >&5
15860 cat conftest.$ac_ext >&5
15862 eval "ac_cv_func_$ac_func=no"
15867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15868 echo "$ac_t""yes" 1>&6
15869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15870 cat >> confdefs.h <<EOF
15871 #define $ac_tr_func 1
15875 echo "$ac_t""no" 1>&6
15880 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15881 echo "configure:15882: checking for LinuxThreads pthread.h" >&5
15882 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15885 cat > conftest.$ac_ext <<EOF
15886 #line 15887 "configure"
15887 #include "confdefs.h"
15888 #include <pthread.h>
15890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15891 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15893 ol_cv_header_linux_threads=yes
15896 ol_cv_header_linux_threads=no
15903 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15904 if test $ol_cv_header_linux_threads = yes; then
15905 cat >> confdefs.h <<\EOF
15906 #define HAVE_LINUX_THREADS 1
15912 for ac_hdr in mach/cthreads.h
15914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15916 echo "configure:15917: checking for $ac_hdr" >&5
15917 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15918 echo $ac_n "(cached) $ac_c" 1>&6
15920 cat > conftest.$ac_ext <<EOF
15921 #line 15922 "configure"
15922 #include "confdefs.h"
15925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15926 { (eval echo configure:15927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15928 if test -z "$ac_err"; then
15930 eval "ac_cv_header_$ac_safe=yes"
15933 echo "configure: failed program was:" >&5
15934 cat conftest.$ac_ext >&5
15936 eval "ac_cv_header_$ac_safe=no"
15940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15941 echo "$ac_t""yes" 1>&6
15942 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15943 cat >> confdefs.h <<EOF
15944 #define $ac_tr_hdr 1
15948 echo "$ac_t""no" 1>&6
15952 for ac_hdr in lwp/lwp.h
15954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15956 echo "configure:15957: checking for $ac_hdr" >&5
15957 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15958 echo $ac_n "(cached) $ac_c" 1>&6
15960 cat > conftest.$ac_ext <<EOF
15961 #line 15962 "configure"
15962 #include "confdefs.h"
15965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15966 { (eval echo configure:15967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15968 if test -z "$ac_err"; then
15970 eval "ac_cv_header_$ac_safe=yes"
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15976 eval "ac_cv_header_$ac_safe=no"
15980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15981 echo "$ac_t""yes" 1>&6
15982 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15983 cat >> confdefs.h <<EOF
15984 #define $ac_tr_hdr 1
15988 echo "$ac_t""no" 1>&6
15992 for ac_hdr in thread.h synch.h
15994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15996 echo "configure:15997: checking for $ac_hdr" >&5
15997 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15998 echo $ac_n "(cached) $ac_c" 1>&6
16000 cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16006 { (eval echo configure:16007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16008 if test -z "$ac_err"; then
16010 eval "ac_cv_header_$ac_safe=yes"
16013 echo "configure: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16016 eval "ac_cv_header_$ac_safe=no"
16020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16021 echo "$ac_t""yes" 1>&6
16022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16023 cat >> confdefs.h <<EOF
16024 #define $ac_tr_hdr 1
16028 echo "$ac_t""no" 1>&6
16034 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16035 cat >> confdefs.h <<\EOF
16036 #define REENTRANT 1
16039 cat >> confdefs.h <<\EOF
16040 #define _REENTRANT 1
16043 cat >> confdefs.h <<\EOF
16044 #define THREAD_SAFE 1
16047 cat >> confdefs.h <<\EOF
16048 #define _THREAD_SAFE 1
16051 cat >> confdefs.h <<\EOF
16052 #define THREADSAFE 1
16055 cat >> confdefs.h <<\EOF
16056 #define _THREADSAFE 1
16059 cat >> confdefs.h <<\EOF
16060 #define _SGI_MP_SOURCE 1
16064 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16065 echo "configure:16066: checking for thread specific errno" >&5
16066 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16070 cat > conftest.$ac_ext <<EOF
16071 #line 16072 "configure"
16072 #include "confdefs.h"
16078 if { (eval echo configure:16079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16080 ol_cv_errno_thread_specific=yes
16082 echo "configure: failed program was:" >&5
16083 cat conftest.$ac_ext >&5
16085 ol_cv_errno_thread_specific=no
16091 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16093 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16094 echo "configure:16095: checking for thread specific h_errno" >&5
16095 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16096 echo $ac_n "(cached) $ac_c" 1>&6
16099 cat > conftest.$ac_ext <<EOF
16100 #line 16101 "configure"
16101 #include "confdefs.h"
16107 if { (eval echo configure:16108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16109 ol_cv_h_errno_thread_specific=yes
16111 echo "configure: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16114 ol_cv_h_errno_thread_specific=no
16120 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16122 if test $ol_cv_errno_thread_specific != yes \
16123 -o $ol_cv_h_errno_thread_specific != yes ; then
16124 LIBS="$LTHREAD_LIBS $LIBS"
16130 if test $ol_link_threads = no ; then
16131 if test $ol_with_threads = yes ; then
16132 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16135 if test $ol_with_threads = auto ; then
16136 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16140 cat >> confdefs.h <<\EOF
16141 #define NO_THREADS 1
16147 if test $ol_link_threads != no ; then
16148 cat >> confdefs.h <<\EOF
16149 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16156 gethostbyname_r gethostbyaddr_r \
16159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16160 echo "configure:16161: checking for $ac_func" >&5
16161 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16164 cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure"
16166 #include "confdefs.h"
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func(); below. */
16169 #include <assert.h>
16170 /* Override any gcc2 internal prototype to avoid an error. */
16171 /* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16178 /* The GNU C library defines this for functions which it implements
16179 to always fail with ENOSYS. Some functions are actually named
16180 something starting with __ and the normal name is an alias. */
16181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16189 if { (eval echo configure:16190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16191 eval "ac_cv_func_$ac_func=yes"
16193 echo "configure: failed program was:" >&5
16194 cat conftest.$ac_ext >&5
16196 eval "ac_cv_func_$ac_func=no"
16201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16202 echo "$ac_t""yes" 1>&6
16203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16204 cat >> confdefs.h <<EOF
16205 #define $ac_tr_func 1
16209 echo "$ac_t""no" 1>&6
16214 if test "$ac_cv_func_ctime_r" = no ; then
16215 ol_cv_func_ctime_r_nargs=0
16217 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16218 echo "configure:16219: checking number of arguments of ctime_r" >&5
16219 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
16222 cat > conftest.$ac_ext <<EOF
16223 #line 16224 "configure"
16224 #include "confdefs.h"
16227 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16230 if { (eval echo configure:16231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16232 ol_cv_func_ctime_r_nargs3=yes
16234 echo "configure: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16237 ol_cv_func_ctime_r_nargs3=no
16241 cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16246 time_t ti; char *buffer; ctime_r(&ti,buffer);
16249 if { (eval echo configure:16250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16251 ol_cv_func_ctime_r_nargs2=yes
16253 echo "configure: failed program was:" >&5
16254 cat conftest.$ac_ext >&5
16256 ol_cv_func_ctime_r_nargs2=no
16260 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16261 $ol_cv_func_ctime_r_nargs2 = no ; then
16263 ol_cv_func_ctime_r_nargs=3
16265 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16266 $ol_cv_func_ctime_r_nargs2 = yes ; then
16268 ol_cv_func_ctime_r_nargs=2
16271 ol_cv_func_ctime_r_nargs=0
16276 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16278 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16279 cat >> confdefs.h <<EOF
16280 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16287 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16288 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16289 echo "configure:16290: checking number of arguments of gethostbyname_r" >&5
16290 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16291 echo $ac_n "(cached) $ac_c" 1>&6
16293 cat > conftest.$ac_ext <<EOF
16294 #line 16295 "configure"
16295 #include "confdefs.h"
16296 #include <sys/types.h>
16297 #include <sys/socket.h>
16298 #include <netinet/in.h>
16300 #define BUFSIZE (sizeof(struct hostent)+10)
16302 struct hostent hent; char buffer[BUFSIZE];
16303 int bufsize=BUFSIZE;int h_errno;
16304 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16305 buffer, bufsize, &h_errno);
16308 if { (eval echo configure:16309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16310 ol_cv_func_gethostbyname_r_nargs5=yes
16312 echo "configure: failed program was:" >&5
16313 cat conftest.$ac_ext >&5
16315 ol_cv_func_gethostbyname_r_nargs5=no
16319 cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16322 #include <sys/types.h>
16323 #include <sys/socket.h>
16324 #include <netinet/in.h>
16326 #define BUFSIZE (sizeof(struct hostent)+10)
16328 struct hostent hent;struct hostent *rhent;
16329 char buffer[BUFSIZE];
16330 int bufsize=BUFSIZE;int h_errno;
16331 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16335 if { (eval echo configure:16336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16337 ol_cv_func_gethostbyname_r_nargs6=yes
16339 echo "configure: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16342 ol_cv_func_gethostbyname_r_nargs6=no
16346 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16347 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16349 ol_cv_func_gethostbyname_r_nargs=5
16351 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16352 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16354 ol_cv_func_gethostbyname_r_nargs=6
16357 ol_cv_func_gethostbyname_r_nargs=0
16362 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16363 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16364 cat >> confdefs.h <<EOF
16365 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16371 ol_cv_func_gethostbyname_r_nargs=0
16374 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16375 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16376 echo "configure:16377: checking number of arguments of gethostbyaddr_r" >&5
16377 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
16380 cat > conftest.$ac_ext <<EOF
16381 #line 16382 "configure"
16382 #include "confdefs.h"
16383 #include <sys/types.h>
16384 #include <sys/socket.h>
16385 #include <netinet/in.h>
16387 #define BUFSIZE (sizeof(struct hostent)+10)
16389 struct hostent hent; char buffer[BUFSIZE];
16390 struct in_addr add;
16391 size_t alen=sizeof(struct in_addr);
16392 int bufsize=BUFSIZE;int h_errno;
16393 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16394 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16397 if { (eval echo configure:16398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16399 ol_cv_func_gethostbyaddr_r_nargs7=yes
16401 echo "configure: failed program was:" >&5
16402 cat conftest.$ac_ext >&5
16404 ol_cv_func_gethostbyaddr_r_nargs7=no
16408 cat > conftest.$ac_ext <<EOF
16409 #line 16410 "configure"
16410 #include "confdefs.h"
16411 #include <sys/types.h>
16412 #include <sys/socket.h>
16413 #include <netinet/in.h>
16415 #define BUFSIZE (sizeof(struct hostent)+10)
16417 struct hostent hent;
16418 struct hostent *rhent; char buffer[BUFSIZE];
16419 struct in_addr add;
16420 size_t alen=sizeof(struct in_addr);
16421 int bufsize=BUFSIZE;int h_errno;
16422 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16423 alen, AF_INET, &hent, buffer, bufsize,
16427 if { (eval echo configure:16428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16429 ol_cv_func_gethostbyaddr_r_nargs8=yes
16431 echo "configure: failed program was:" >&5
16432 cat conftest.$ac_ext >&5
16434 ol_cv_func_gethostbyaddr_r_nargs8=no
16438 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16439 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16441 ol_cv_func_gethostbyaddr_r_nargs=7
16443 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16444 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16446 ol_cv_func_gethostbyaddr_r_nargs=8
16449 ol_cv_func_gethostbyaddr_r_nargs=0
16454 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16455 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16456 cat >> confdefs.h <<EOF
16457 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16463 ol_cv_func_gethostbyaddr_r_nargs=0
16468 if test $ol_with_ldbm_api = auto \
16469 -o $ol_with_ldbm_api = berkeley \
16470 -o $ol_with_ldbm_api = bcompat ; then
16472 if test $ol_with_ldbm_api = bcompat; then \
16473 for ac_hdr in db_185.h db.h
16475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16477 echo "configure:16478: checking for $ac_hdr" >&5
16478 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16479 echo $ac_n "(cached) $ac_c" 1>&6
16481 cat > conftest.$ac_ext <<EOF
16482 #line 16483 "configure"
16483 #include "confdefs.h"
16486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16487 { (eval echo configure:16488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16489 if test -z "$ac_err"; then
16491 eval "ac_cv_header_$ac_safe=yes"
16494 echo "configure: failed program was:" >&5
16495 cat conftest.$ac_ext >&5
16497 eval "ac_cv_header_$ac_safe=no"
16501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16502 echo "$ac_t""yes" 1>&6
16503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16504 cat >> confdefs.h <<EOF
16505 #define $ac_tr_hdr 1
16509 echo "$ac_t""no" 1>&6
16513 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16514 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16515 echo "configure:16516: checking if Berkeley DB header compatibility" >&5
16516 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16517 echo $ac_n "(cached) $ac_c" 1>&6
16520 cat > conftest.$ac_ext <<EOF
16521 #line 16522 "configure"
16522 #include "confdefs.h"
16525 # include <db_185.h>
16530 /* this check could be improved */
16531 #ifndef DB_VERSION_MAJOR
16532 # define DB_VERSION_MAJOR 1
16535 #if DB_VERSION_MAJOR == 1
16540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16541 egrep "__db_version_1" >/dev/null 2>&1; then
16543 ol_cv_header_db1=yes
16546 ol_cv_header_db1=no
16552 echo "$ac_t""$ol_cv_header_db1" 1>&6
16554 if test $ol_cv_header_db1 = yes ; then
16556 if test $ol_cv_lib_db = no ; then
16557 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16558 echo "configure:16559: checking for Berkeley DB link (default)" >&5
16559 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16560 echo $ac_n "(cached) $ac_c" 1>&6
16565 LIBS="$ol_DB_LIB $LIBS"
16567 cat > conftest.$ac_ext <<EOF
16568 #line 16569 "configure"
16569 #include "confdefs.h"
16571 #ifdef HAVE_DB_185_H
16572 # include <db_185.h>
16577 #ifndef DB_VERSION_MAJOR
16578 # define DB_VERSION_MAJOR 1
16582 #define NULL ((void*)0)
16587 #if DB_VERSION_MAJOR > 1
16590 int major, minor, patch;
16592 version = db_version( &major, &minor, &patch );
16594 if( major != DB_VERSION_MAJOR ||
16595 minor < DB_VERSION_MINOR )
16597 printf("Berkeley DB version mismatch\n"
16598 "\texpected: %s\n\tgot: %s\n",
16599 DB_VERSION_STRING, version);
16605 #if DB_VERSION_MAJOR > 2
16606 db_env_create( NULL, 0 );
16607 #elif DB_VERSION_MAJOR > 1
16608 db_appexit( NULL );
16610 (void) dbopen( NULL, 0, 0, 0, NULL);
16615 if { (eval echo configure:16616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16619 echo "configure: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16630 echo "$ac_t""$ol_cv_db_none" 1>&6
16632 if test $ol_cv_db_none = yes ; then
16637 if test $ol_cv_lib_db = no ; then
16638 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16639 echo "configure:16640: checking for Berkeley DB link (-ldb4)" >&5
16640 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16641 echo $ac_n "(cached) $ac_c" 1>&6
16646 LIBS="$ol_DB_LIB $LIBS"
16648 cat > conftest.$ac_ext <<EOF
16649 #line 16650 "configure"
16650 #include "confdefs.h"
16652 #ifdef HAVE_DB_185_H
16653 # include <db_185.h>
16658 #ifndef DB_VERSION_MAJOR
16659 # define DB_VERSION_MAJOR 1
16663 #define NULL ((void*)0)
16668 #if DB_VERSION_MAJOR > 1
16671 int major, minor, patch;
16673 version = db_version( &major, &minor, &patch );
16675 if( major != DB_VERSION_MAJOR ||
16676 minor < DB_VERSION_MINOR )
16678 printf("Berkeley DB version mismatch\n"
16679 "\texpected: %s\n\tgot: %s\n",
16680 DB_VERSION_STRING, version);
16686 #if DB_VERSION_MAJOR > 2
16687 db_env_create( NULL, 0 );
16688 #elif DB_VERSION_MAJOR > 1
16689 db_appexit( NULL );
16691 (void) dbopen( NULL, 0, 0, 0, NULL);
16696 if { (eval echo configure:16697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16711 echo "$ac_t""$ol_cv_db_db4" 1>&6
16713 if test $ol_cv_db_db4 = yes ; then
16718 if test $ol_cv_lib_db = no ; then
16719 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16720 echo "configure:16721: checking for Berkeley DB link (-ldb-4)" >&5
16721 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16722 echo $ac_n "(cached) $ac_c" 1>&6
16727 LIBS="$ol_DB_LIB $LIBS"
16729 cat > conftest.$ac_ext <<EOF
16730 #line 16731 "configure"
16731 #include "confdefs.h"
16733 #ifdef HAVE_DB_185_H
16734 # include <db_185.h>
16739 #ifndef DB_VERSION_MAJOR
16740 # define DB_VERSION_MAJOR 1
16744 #define NULL ((void*)0)
16749 #if DB_VERSION_MAJOR > 1
16752 int major, minor, patch;
16754 version = db_version( &major, &minor, &patch );
16756 if( major != DB_VERSION_MAJOR ||
16757 minor < DB_VERSION_MINOR )
16759 printf("Berkeley DB version mismatch\n"
16760 "\texpected: %s\n\tgot: %s\n",
16761 DB_VERSION_STRING, version);
16767 #if DB_VERSION_MAJOR > 2
16768 db_env_create( NULL, 0 );
16769 #elif DB_VERSION_MAJOR > 1
16770 db_appexit( NULL );
16772 (void) dbopen( NULL, 0, 0, 0, NULL);
16777 if { (eval echo configure:16778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16781 echo "configure: failed program was:" >&5
16782 cat conftest.$ac_ext >&5
16792 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16794 if test $ol_cv_db_db_4 = yes ; then
16795 ol_cv_lib_db=-ldb-4
16799 if test $ol_cv_lib_db = no ; then
16800 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16801 echo "configure:16802: checking for Berkeley DB link (-ldb)" >&5
16802 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16803 echo $ac_n "(cached) $ac_c" 1>&6
16808 LIBS="$ol_DB_LIB $LIBS"
16810 cat > conftest.$ac_ext <<EOF
16811 #line 16812 "configure"
16812 #include "confdefs.h"
16814 #ifdef HAVE_DB_185_H
16815 # include <db_185.h>
16820 #ifndef DB_VERSION_MAJOR
16821 # define DB_VERSION_MAJOR 1
16825 #define NULL ((void*)0)
16830 #if DB_VERSION_MAJOR > 1
16833 int major, minor, patch;
16835 version = db_version( &major, &minor, &patch );
16837 if( major != DB_VERSION_MAJOR ||
16838 minor < DB_VERSION_MINOR )
16840 printf("Berkeley DB version mismatch\n"
16841 "\texpected: %s\n\tgot: %s\n",
16842 DB_VERSION_STRING, version);
16848 #if DB_VERSION_MAJOR > 2
16849 db_env_create( NULL, 0 );
16850 #elif DB_VERSION_MAJOR > 1
16851 db_appexit( NULL );
16853 (void) dbopen( NULL, 0, 0, 0, NULL);
16858 if { (eval echo configure:16859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16862 echo "configure: failed program was:" >&5
16863 cat conftest.$ac_ext >&5
16873 echo "$ac_t""$ol_cv_db_db" 1>&6
16875 if test $ol_cv_db_db = yes ; then
16880 if test $ol_cv_lib_db = no ; then
16881 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
16882 echo "configure:16883: checking for Berkeley DB link (-ldb3)" >&5
16883 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
16884 echo $ac_n "(cached) $ac_c" 1>&6
16889 LIBS="$ol_DB_LIB $LIBS"
16891 cat > conftest.$ac_ext <<EOF
16892 #line 16893 "configure"
16893 #include "confdefs.h"
16895 #ifdef HAVE_DB_185_H
16896 # include <db_185.h>
16901 #ifndef DB_VERSION_MAJOR
16902 # define DB_VERSION_MAJOR 1
16906 #define NULL ((void*)0)
16911 #if DB_VERSION_MAJOR > 1
16914 int major, minor, patch;
16916 version = db_version( &major, &minor, &patch );
16918 if( major != DB_VERSION_MAJOR ||
16919 minor < DB_VERSION_MINOR )
16921 printf("Berkeley DB version mismatch\n"
16922 "\texpected: %s\n\tgot: %s\n",
16923 DB_VERSION_STRING, version);
16929 #if DB_VERSION_MAJOR > 2
16930 db_env_create( NULL, 0 );
16931 #elif DB_VERSION_MAJOR > 1
16932 db_appexit( NULL );
16934 (void) dbopen( NULL, 0, 0, 0, NULL);
16939 if { (eval echo configure:16940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16943 echo "configure: failed program was:" >&5
16944 cat conftest.$ac_ext >&5
16954 echo "$ac_t""$ol_cv_db_db3" 1>&6
16956 if test $ol_cv_db_db3 = yes ; then
16961 if test $ol_cv_lib_db = no ; then
16962 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
16963 echo "configure:16964: checking for Berkeley DB link (-ldb-3)" >&5
16964 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
16965 echo $ac_n "(cached) $ac_c" 1>&6
16970 LIBS="$ol_DB_LIB $LIBS"
16972 cat > conftest.$ac_ext <<EOF
16973 #line 16974 "configure"
16974 #include "confdefs.h"
16976 #ifdef HAVE_DB_185_H
16977 # include <db_185.h>
16982 #ifndef DB_VERSION_MAJOR
16983 # define DB_VERSION_MAJOR 1
16987 #define NULL ((void*)0)
16992 #if DB_VERSION_MAJOR > 1
16995 int major, minor, patch;
16997 version = db_version( &major, &minor, &patch );
16999 if( major != DB_VERSION_MAJOR ||
17000 minor < DB_VERSION_MINOR )
17002 printf("Berkeley DB version mismatch\n"
17003 "\texpected: %s\n\tgot: %s\n",
17004 DB_VERSION_STRING, version);
17010 #if DB_VERSION_MAJOR > 2
17011 db_env_create( NULL, 0 );
17012 #elif DB_VERSION_MAJOR > 1
17013 db_appexit( NULL );
17015 (void) dbopen( NULL, 0, 0, 0, NULL);
17020 if { (eval echo configure:17021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17024 echo "configure: failed program was:" >&5
17025 cat conftest.$ac_ext >&5
17035 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17037 if test $ol_cv_db_db_3 = yes ; then
17038 ol_cv_lib_db=-ldb-3
17042 if test $ol_cv_lib_db = no ; then
17043 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17044 echo "configure:17045: checking for Berkeley DB link (-ldb2)" >&5
17045 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17046 echo $ac_n "(cached) $ac_c" 1>&6
17051 LIBS="$ol_DB_LIB $LIBS"
17053 cat > conftest.$ac_ext <<EOF
17054 #line 17055 "configure"
17055 #include "confdefs.h"
17057 #ifdef HAVE_DB_185_H
17058 # include <db_185.h>
17063 #ifndef DB_VERSION_MAJOR
17064 # define DB_VERSION_MAJOR 1
17068 #define NULL ((void*)0)
17073 #if DB_VERSION_MAJOR > 1
17076 int major, minor, patch;
17078 version = db_version( &major, &minor, &patch );
17080 if( major != DB_VERSION_MAJOR ||
17081 minor < DB_VERSION_MINOR )
17083 printf("Berkeley DB version mismatch\n"
17084 "\texpected: %s\n\tgot: %s\n",
17085 DB_VERSION_STRING, version);
17091 #if DB_VERSION_MAJOR > 2
17092 db_env_create( NULL, 0 );
17093 #elif DB_VERSION_MAJOR > 1
17094 db_appexit( NULL );
17096 (void) dbopen( NULL, 0, 0, 0, NULL);
17101 if { (eval echo configure:17102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17105 echo "configure: failed program was:" >&5
17106 cat conftest.$ac_ext >&5
17116 echo "$ac_t""$ol_cv_db_db2" 1>&6
17118 if test $ol_cv_db_db2 = yes ; then
17123 if test $ol_cv_lib_db = no ; then
17124 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17125 echo "configure:17126: checking for Berkeley DB link (-ldb-2)" >&5
17126 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17127 echo $ac_n "(cached) $ac_c" 1>&6
17132 LIBS="$ol_DB_LIB $LIBS"
17134 cat > conftest.$ac_ext <<EOF
17135 #line 17136 "configure"
17136 #include "confdefs.h"
17138 #ifdef HAVE_DB_185_H
17139 # include <db_185.h>
17144 #ifndef DB_VERSION_MAJOR
17145 # define DB_VERSION_MAJOR 1
17149 #define NULL ((void*)0)
17154 #if DB_VERSION_MAJOR > 1
17157 int major, minor, patch;
17159 version = db_version( &major, &minor, &patch );
17161 if( major != DB_VERSION_MAJOR ||
17162 minor < DB_VERSION_MINOR )
17164 printf("Berkeley DB version mismatch\n"
17165 "\texpected: %s\n\tgot: %s\n",
17166 DB_VERSION_STRING, version);
17172 #if DB_VERSION_MAJOR > 2
17173 db_env_create( NULL, 0 );
17174 #elif DB_VERSION_MAJOR > 1
17175 db_appexit( NULL );
17177 (void) dbopen( NULL, 0, 0, 0, NULL);
17182 if { (eval echo configure:17183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17186 echo "configure: failed program was:" >&5
17187 cat conftest.$ac_ext >&5
17197 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17199 if test $ol_cv_db_db_2 = yes ; then
17200 ol_cv_lib_db=-ldb-2
17204 if test $ol_cv_lib_db = no ; then
17205 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17206 echo "configure:17207: checking for Berkeley DB link (-ldb1)" >&5
17207 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17208 echo $ac_n "(cached) $ac_c" 1>&6
17213 LIBS="$ol_DB_LIB $LIBS"
17215 cat > conftest.$ac_ext <<EOF
17216 #line 17217 "configure"
17217 #include "confdefs.h"
17219 #ifdef HAVE_DB_185_H
17220 # include <db_185.h>
17225 #ifndef DB_VERSION_MAJOR
17226 # define DB_VERSION_MAJOR 1
17230 #define NULL ((void*)0)
17235 #if DB_VERSION_MAJOR > 1
17238 int major, minor, patch;
17240 version = db_version( &major, &minor, &patch );
17242 if( major != DB_VERSION_MAJOR ||
17243 minor < DB_VERSION_MINOR )
17245 printf("Berkeley DB version mismatch\n"
17246 "\texpected: %s\n\tgot: %s\n",
17247 DB_VERSION_STRING, version);
17253 #if DB_VERSION_MAJOR > 2
17254 db_env_create( NULL, 0 );
17255 #elif DB_VERSION_MAJOR > 1
17256 db_appexit( NULL );
17258 (void) dbopen( NULL, 0, 0, 0, NULL);
17263 if { (eval echo configure:17264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17267 echo "configure: failed program was:" >&5
17268 cat conftest.$ac_ext >&5
17278 echo "$ac_t""$ol_cv_db_db1" 1>&6
17280 if test $ol_cv_db_db1 = yes ; then
17285 if test $ol_cv_lib_db = no ; then
17286 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17287 echo "configure:17288: checking for Berkeley DB link (-ldb-1)" >&5
17288 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17289 echo $ac_n "(cached) $ac_c" 1>&6
17294 LIBS="$ol_DB_LIB $LIBS"
17296 cat > conftest.$ac_ext <<EOF
17297 #line 17298 "configure"
17298 #include "confdefs.h"
17300 #ifdef HAVE_DB_185_H
17301 # include <db_185.h>
17306 #ifndef DB_VERSION_MAJOR
17307 # define DB_VERSION_MAJOR 1
17311 #define NULL ((void*)0)
17316 #if DB_VERSION_MAJOR > 1
17319 int major, minor, patch;
17321 version = db_version( &major, &minor, &patch );
17323 if( major != DB_VERSION_MAJOR ||
17324 minor < DB_VERSION_MINOR )
17326 printf("Berkeley DB version mismatch\n"
17327 "\texpected: %s\n\tgot: %s\n",
17328 DB_VERSION_STRING, version);
17334 #if DB_VERSION_MAJOR > 2
17335 db_env_create( NULL, 0 );
17336 #elif DB_VERSION_MAJOR > 1
17337 db_appexit( NULL );
17339 (void) dbopen( NULL, 0, 0, 0, NULL);
17344 if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17348 echo "configure: failed program was:" >&5
17349 cat conftest.$ac_ext >&5
17359 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17361 if test $ol_cv_db_db_1 = yes ; then
17362 ol_cv_lib_db=-ldb-1
17367 if test "$ol_cv_lib_db" != no ; then
17368 ol_cv_berkeley_db=yes
17374 ol_cv_berkeley_db=no
17377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17379 echo "configure:17380: checking for $ac_hdr" >&5
17380 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17381 echo $ac_n "(cached) $ac_c" 1>&6
17383 cat > conftest.$ac_ext <<EOF
17384 #line 17385 "configure"
17385 #include "confdefs.h"
17388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17389 { (eval echo configure:17390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17391 if test -z "$ac_err"; then
17393 eval "ac_cv_header_$ac_safe=yes"
17396 echo "configure: failed program was:" >&5
17397 cat conftest.$ac_ext >&5
17399 eval "ac_cv_header_$ac_safe=no"
17403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17404 echo "$ac_t""yes" 1>&6
17405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17406 cat >> confdefs.h <<EOF
17407 #define $ac_tr_hdr 1
17411 echo "$ac_t""no" 1>&6
17415 if test $ac_cv_header_db_h = yes; then
17417 if test $ol_cv_lib_db = no ; then
17418 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17419 echo "configure:17420: checking for Berkeley DB link (default)" >&5
17420 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17421 echo $ac_n "(cached) $ac_c" 1>&6
17426 LIBS="$ol_DB_LIB $LIBS"
17428 cat > conftest.$ac_ext <<EOF
17429 #line 17430 "configure"
17430 #include "confdefs.h"
17432 #ifdef HAVE_DB_185_H
17433 # include <db_185.h>
17438 #ifndef DB_VERSION_MAJOR
17439 # define DB_VERSION_MAJOR 1
17443 #define NULL ((void*)0)
17448 #if DB_VERSION_MAJOR > 1
17451 int major, minor, patch;
17453 version = db_version( &major, &minor, &patch );
17455 if( major != DB_VERSION_MAJOR ||
17456 minor < DB_VERSION_MINOR )
17458 printf("Berkeley DB version mismatch\n"
17459 "\texpected: %s\n\tgot: %s\n",
17460 DB_VERSION_STRING, version);
17466 #if DB_VERSION_MAJOR > 2
17467 db_env_create( NULL, 0 );
17468 #elif DB_VERSION_MAJOR > 1
17469 db_appexit( NULL );
17471 (void) dbopen( NULL, 0, 0, 0, NULL);
17476 if { (eval echo configure:17477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17480 echo "configure: failed program was:" >&5
17481 cat conftest.$ac_ext >&5
17491 echo "$ac_t""$ol_cv_db_none" 1>&6
17493 if test $ol_cv_db_none = yes ; then
17498 if test $ol_cv_lib_db = no ; then
17499 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17500 echo "configure:17501: checking for Berkeley DB link (-ldb4)" >&5
17501 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17502 echo $ac_n "(cached) $ac_c" 1>&6
17507 LIBS="$ol_DB_LIB $LIBS"
17509 cat > conftest.$ac_ext <<EOF
17510 #line 17511 "configure"
17511 #include "confdefs.h"
17513 #ifdef HAVE_DB_185_H
17514 # include <db_185.h>
17519 #ifndef DB_VERSION_MAJOR
17520 # define DB_VERSION_MAJOR 1
17524 #define NULL ((void*)0)
17529 #if DB_VERSION_MAJOR > 1
17532 int major, minor, patch;
17534 version = db_version( &major, &minor, &patch );
17536 if( major != DB_VERSION_MAJOR ||
17537 minor < DB_VERSION_MINOR )
17539 printf("Berkeley DB version mismatch\n"
17540 "\texpected: %s\n\tgot: %s\n",
17541 DB_VERSION_STRING, version);
17547 #if DB_VERSION_MAJOR > 2
17548 db_env_create( NULL, 0 );
17549 #elif DB_VERSION_MAJOR > 1
17550 db_appexit( NULL );
17552 (void) dbopen( NULL, 0, 0, 0, NULL);
17557 if { (eval echo configure:17558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17561 echo "configure: failed program was:" >&5
17562 cat conftest.$ac_ext >&5
17572 echo "$ac_t""$ol_cv_db_db4" 1>&6
17574 if test $ol_cv_db_db4 = yes ; then
17579 if test $ol_cv_lib_db = no ; then
17580 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17581 echo "configure:17582: checking for Berkeley DB link (-ldb-4)" >&5
17582 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17583 echo $ac_n "(cached) $ac_c" 1>&6
17588 LIBS="$ol_DB_LIB $LIBS"
17590 cat > conftest.$ac_ext <<EOF
17591 #line 17592 "configure"
17592 #include "confdefs.h"
17594 #ifdef HAVE_DB_185_H
17595 # include <db_185.h>
17600 #ifndef DB_VERSION_MAJOR
17601 # define DB_VERSION_MAJOR 1
17605 #define NULL ((void*)0)
17610 #if DB_VERSION_MAJOR > 1
17613 int major, minor, patch;
17615 version = db_version( &major, &minor, &patch );
17617 if( major != DB_VERSION_MAJOR ||
17618 minor < DB_VERSION_MINOR )
17620 printf("Berkeley DB version mismatch\n"
17621 "\texpected: %s\n\tgot: %s\n",
17622 DB_VERSION_STRING, version);
17628 #if DB_VERSION_MAJOR > 2
17629 db_env_create( NULL, 0 );
17630 #elif DB_VERSION_MAJOR > 1
17631 db_appexit( NULL );
17633 (void) dbopen( NULL, 0, 0, 0, NULL);
17638 if { (eval echo configure:17639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17642 echo "configure: failed program was:" >&5
17643 cat conftest.$ac_ext >&5
17653 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17655 if test $ol_cv_db_db_4 = yes ; then
17656 ol_cv_lib_db=-ldb-4
17660 if test $ol_cv_lib_db = no ; then
17661 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17662 echo "configure:17663: checking for Berkeley DB link (-ldb)" >&5
17663 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17664 echo $ac_n "(cached) $ac_c" 1>&6
17669 LIBS="$ol_DB_LIB $LIBS"
17671 cat > conftest.$ac_ext <<EOF
17672 #line 17673 "configure"
17673 #include "confdefs.h"
17675 #ifdef HAVE_DB_185_H
17676 # include <db_185.h>
17681 #ifndef DB_VERSION_MAJOR
17682 # define DB_VERSION_MAJOR 1
17686 #define NULL ((void*)0)
17691 #if DB_VERSION_MAJOR > 1
17694 int major, minor, patch;
17696 version = db_version( &major, &minor, &patch );
17698 if( major != DB_VERSION_MAJOR ||
17699 minor < DB_VERSION_MINOR )
17701 printf("Berkeley DB version mismatch\n"
17702 "\texpected: %s\n\tgot: %s\n",
17703 DB_VERSION_STRING, version);
17709 #if DB_VERSION_MAJOR > 2
17710 db_env_create( NULL, 0 );
17711 #elif DB_VERSION_MAJOR > 1
17712 db_appexit( NULL );
17714 (void) dbopen( NULL, 0, 0, 0, NULL);
17719 if { (eval echo configure:17720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17723 echo "configure: failed program was:" >&5
17724 cat conftest.$ac_ext >&5
17734 echo "$ac_t""$ol_cv_db_db" 1>&6
17736 if test $ol_cv_db_db = yes ; then
17741 if test $ol_cv_lib_db = no ; then
17742 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17743 echo "configure:17744: checking for Berkeley DB link (-ldb3)" >&5
17744 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17745 echo $ac_n "(cached) $ac_c" 1>&6
17750 LIBS="$ol_DB_LIB $LIBS"
17752 cat > conftest.$ac_ext <<EOF
17753 #line 17754 "configure"
17754 #include "confdefs.h"
17756 #ifdef HAVE_DB_185_H
17757 # include <db_185.h>
17762 #ifndef DB_VERSION_MAJOR
17763 # define DB_VERSION_MAJOR 1
17767 #define NULL ((void*)0)
17772 #if DB_VERSION_MAJOR > 1
17775 int major, minor, patch;
17777 version = db_version( &major, &minor, &patch );
17779 if( major != DB_VERSION_MAJOR ||
17780 minor < DB_VERSION_MINOR )
17782 printf("Berkeley DB version mismatch\n"
17783 "\texpected: %s\n\tgot: %s\n",
17784 DB_VERSION_STRING, version);
17790 #if DB_VERSION_MAJOR > 2
17791 db_env_create( NULL, 0 );
17792 #elif DB_VERSION_MAJOR > 1
17793 db_appexit( NULL );
17795 (void) dbopen( NULL, 0, 0, 0, NULL);
17800 if { (eval echo configure:17801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17804 echo "configure: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17815 echo "$ac_t""$ol_cv_db_db3" 1>&6
17817 if test $ol_cv_db_db3 = yes ; then
17822 if test $ol_cv_lib_db = no ; then
17823 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17824 echo "configure:17825: checking for Berkeley DB link (-ldb-3)" >&5
17825 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17826 echo $ac_n "(cached) $ac_c" 1>&6
17831 LIBS="$ol_DB_LIB $LIBS"
17833 cat > conftest.$ac_ext <<EOF
17834 #line 17835 "configure"
17835 #include "confdefs.h"
17837 #ifdef HAVE_DB_185_H
17838 # include <db_185.h>
17843 #ifndef DB_VERSION_MAJOR
17844 # define DB_VERSION_MAJOR 1
17848 #define NULL ((void*)0)
17853 #if DB_VERSION_MAJOR > 1
17856 int major, minor, patch;
17858 version = db_version( &major, &minor, &patch );
17860 if( major != DB_VERSION_MAJOR ||
17861 minor < DB_VERSION_MINOR )
17863 printf("Berkeley DB version mismatch\n"
17864 "\texpected: %s\n\tgot: %s\n",
17865 DB_VERSION_STRING, version);
17871 #if DB_VERSION_MAJOR > 2
17872 db_env_create( NULL, 0 );
17873 #elif DB_VERSION_MAJOR > 1
17874 db_appexit( NULL );
17876 (void) dbopen( NULL, 0, 0, 0, NULL);
17881 if { (eval echo configure:17882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17885 echo "configure: failed program was:" >&5
17886 cat conftest.$ac_ext >&5
17896 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17898 if test $ol_cv_db_db_3 = yes ; then
17899 ol_cv_lib_db=-ldb-3
17903 if test $ol_cv_lib_db = no ; then
17904 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17905 echo "configure:17906: checking for Berkeley DB link (-ldb2)" >&5
17906 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17907 echo $ac_n "(cached) $ac_c" 1>&6
17912 LIBS="$ol_DB_LIB $LIBS"
17914 cat > conftest.$ac_ext <<EOF
17915 #line 17916 "configure"
17916 #include "confdefs.h"
17918 #ifdef HAVE_DB_185_H
17919 # include <db_185.h>
17924 #ifndef DB_VERSION_MAJOR
17925 # define DB_VERSION_MAJOR 1
17929 #define NULL ((void*)0)
17934 #if DB_VERSION_MAJOR > 1
17937 int major, minor, patch;
17939 version = db_version( &major, &minor, &patch );
17941 if( major != DB_VERSION_MAJOR ||
17942 minor < DB_VERSION_MINOR )
17944 printf("Berkeley DB version mismatch\n"
17945 "\texpected: %s\n\tgot: %s\n",
17946 DB_VERSION_STRING, version);
17952 #if DB_VERSION_MAJOR > 2
17953 db_env_create( NULL, 0 );
17954 #elif DB_VERSION_MAJOR > 1
17955 db_appexit( NULL );
17957 (void) dbopen( NULL, 0, 0, 0, NULL);
17962 if { (eval echo configure:17963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17966 echo "configure: failed program was:" >&5
17967 cat conftest.$ac_ext >&5
17977 echo "$ac_t""$ol_cv_db_db2" 1>&6
17979 if test $ol_cv_db_db2 = yes ; then
17984 if test $ol_cv_lib_db = no ; then
17985 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17986 echo "configure:17987: checking for Berkeley DB link (-ldb-2)" >&5
17987 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17988 echo $ac_n "(cached) $ac_c" 1>&6
17993 LIBS="$ol_DB_LIB $LIBS"
17995 cat > conftest.$ac_ext <<EOF
17996 #line 17997 "configure"
17997 #include "confdefs.h"
17999 #ifdef HAVE_DB_185_H
18000 # include <db_185.h>
18005 #ifndef DB_VERSION_MAJOR
18006 # define DB_VERSION_MAJOR 1
18010 #define NULL ((void*)0)
18015 #if DB_VERSION_MAJOR > 1
18018 int major, minor, patch;
18020 version = db_version( &major, &minor, &patch );
18022 if( major != DB_VERSION_MAJOR ||
18023 minor < DB_VERSION_MINOR )
18025 printf("Berkeley DB version mismatch\n"
18026 "\texpected: %s\n\tgot: %s\n",
18027 DB_VERSION_STRING, version);
18033 #if DB_VERSION_MAJOR > 2
18034 db_env_create( NULL, 0 );
18035 #elif DB_VERSION_MAJOR > 1
18036 db_appexit( NULL );
18038 (void) dbopen( NULL, 0, 0, 0, NULL);
18043 if { (eval echo configure:18044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18047 echo "configure: failed program was:" >&5
18048 cat conftest.$ac_ext >&5
18058 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18060 if test $ol_cv_db_db_2 = yes ; then
18061 ol_cv_lib_db=-ldb-2
18065 if test $ol_cv_lib_db = no ; then
18066 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18067 echo "configure:18068: checking for Berkeley DB link (-ldb1)" >&5
18068 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18069 echo $ac_n "(cached) $ac_c" 1>&6
18074 LIBS="$ol_DB_LIB $LIBS"
18076 cat > conftest.$ac_ext <<EOF
18077 #line 18078 "configure"
18078 #include "confdefs.h"
18080 #ifdef HAVE_DB_185_H
18081 # include <db_185.h>
18086 #ifndef DB_VERSION_MAJOR
18087 # define DB_VERSION_MAJOR 1
18091 #define NULL ((void*)0)
18096 #if DB_VERSION_MAJOR > 1
18099 int major, minor, patch;
18101 version = db_version( &major, &minor, &patch );
18103 if( major != DB_VERSION_MAJOR ||
18104 minor < DB_VERSION_MINOR )
18106 printf("Berkeley DB version mismatch\n"
18107 "\texpected: %s\n\tgot: %s\n",
18108 DB_VERSION_STRING, version);
18114 #if DB_VERSION_MAJOR > 2
18115 db_env_create( NULL, 0 );
18116 #elif DB_VERSION_MAJOR > 1
18117 db_appexit( NULL );
18119 (void) dbopen( NULL, 0, 0, 0, NULL);
18124 if { (eval echo configure:18125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18128 echo "configure: failed program was:" >&5
18129 cat conftest.$ac_ext >&5
18139 echo "$ac_t""$ol_cv_db_db1" 1>&6
18141 if test $ol_cv_db_db1 = yes ; then
18146 if test $ol_cv_lib_db = no ; then
18147 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18148 echo "configure:18149: checking for Berkeley DB link (-ldb-1)" >&5
18149 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18150 echo $ac_n "(cached) $ac_c" 1>&6
18155 LIBS="$ol_DB_LIB $LIBS"
18157 cat > conftest.$ac_ext <<EOF
18158 #line 18159 "configure"
18159 #include "confdefs.h"
18161 #ifdef HAVE_DB_185_H
18162 # include <db_185.h>
18167 #ifndef DB_VERSION_MAJOR
18168 # define DB_VERSION_MAJOR 1
18172 #define NULL ((void*)0)
18177 #if DB_VERSION_MAJOR > 1
18180 int major, minor, patch;
18182 version = db_version( &major, &minor, &patch );
18184 if( major != DB_VERSION_MAJOR ||
18185 minor < DB_VERSION_MINOR )
18187 printf("Berkeley DB version mismatch\n"
18188 "\texpected: %s\n\tgot: %s\n",
18189 DB_VERSION_STRING, version);
18195 #if DB_VERSION_MAJOR > 2
18196 db_env_create( NULL, 0 );
18197 #elif DB_VERSION_MAJOR > 1
18198 db_appexit( NULL );
18200 (void) dbopen( NULL, 0, 0, 0, NULL);
18205 if { (eval echo configure:18206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18209 echo "configure: failed program was:" >&5
18210 cat conftest.$ac_ext >&5
18220 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18222 if test $ol_cv_db_db_1 = yes ; then
18223 ol_cv_lib_db=-ldb-1
18228 if test "$ol_cv_lib_db" != no ; then
18229 ol_cv_berkeley_db=yes
18230 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18231 echo "configure:18232: checking for Berkeley DB thread support" >&5
18232 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18233 echo $ac_n "(cached) $ac_c" 1>&6
18237 if test $ol_cv_lib_db != yes ; then
18238 LIBS="$ol_cv_lib_db"
18241 if test "$cross_compiling" = yes; then
18242 ol_cv_berkeley_db_thread=cross
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18248 #ifdef HAVE_DB_185_H
18254 #define NULL ((void *)0)
18259 u_int32_t flags = DB_CREATE |
18265 #if DB_VERSION_MAJOR > 2
18266 DB_ENV *env = NULL;
18268 rc = db_env_create( &env, 0 );
18270 flags |= DB_INIT_MPOOL;
18271 #ifdef DB_MPOOL_PRIVATE
18272 flags |= DB_MPOOL_PRIVATE;
18276 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18280 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18281 rc = env->open( env, NULL, flags, 0 );
18283 rc = env->open( env, NULL, NULL, flags, 0 );
18287 rc = env->close( env, 0 );
18291 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18297 memset( &env, '\0', sizeof(env) );
18299 rc = db_appinit( NULL, NULL, &env, flags );
18302 db_appexit( &env );
18305 unlink("__db_mpool.share");
18306 unlink("__db_lock.share");
18312 if { (eval echo configure:18313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18314 ol_cv_berkeley_db_thread=yes
18316 echo "configure: failed program was:" >&5
18317 cat conftest.$ac_ext >&5
18319 ol_cv_berkeley_db_thread=no
18329 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18331 if test $ol_cv_berkeley_db_thread != no ; then
18332 cat >> confdefs.h <<\EOF
18333 #define HAVE_BERKELEY_DB_THREAD 1
18343 if test $ol_cv_berkeley_db != no ; then
18344 cat >> confdefs.h <<\EOF
18345 #define HAVE_BERKELEY_DB 1
18349 ol_link_ldbm=berkeley
18350 ol_with_ldbm_api=berkeley
18352 if test $ol_with_ldbm_type = hash ; then
18353 cat >> confdefs.h <<\EOF
18354 #define LDBM_USE_DBHASH 1
18358 cat >> confdefs.h <<\EOF
18359 #define LDBM_USE_DBBTREE 1
18364 if test $ol_cv_lib_db != yes ; then
18365 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18370 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18371 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18372 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18373 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18374 echo "configure:18375: checking Berkeley DB version for BDB backend" >&5
18375 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18376 echo $ac_n "(cached) $ac_c" 1>&6
18379 cat > conftest.$ac_ext <<EOF
18380 #line 18381 "configure"
18381 #include "confdefs.h"
18385 /* this check could be improved */
18386 #ifndef DB_VERSION_MAJOR
18387 # define DB_VERSION_MAJOR 1
18390 /* require 4.0 or later */
18391 #if DB_VERSION_MAJOR >= 4
18392 __db_version_compat
18396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18397 egrep "__db_version_compat" >/dev/null 2>&1; then
18399 ol_cv_bdb_compat=yes
18402 ol_cv_bdb_compat=no
18408 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18411 if test $ol_cv_bdb_compat = yes ; then
18413 elif test $ol_enable_bdb = yes ; then
18414 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18420 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18421 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18422 ol_with_ldbm_api=none
18425 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18426 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18427 echo "configure:18428: checking for MDBM library" >&5
18428 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18429 echo $ac_n "(cached) $ac_c" 1>&6
18432 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18433 echo "configure:18434: checking for mdbm_set_chain" >&5
18434 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18435 echo $ac_n "(cached) $ac_c" 1>&6
18437 cat > conftest.$ac_ext <<EOF
18438 #line 18439 "configure"
18439 #include "confdefs.h"
18440 /* System header to define __stub macros and hopefully few prototypes,
18441 which can conflict with char mdbm_set_chain(); below. */
18442 #include <assert.h>
18443 /* Override any gcc2 internal prototype to avoid an error. */
18444 /* We use char because int might match the return type of a gcc2
18445 builtin and then its argument prototype would still apply. */
18446 char mdbm_set_chain();
18451 /* The GNU C library defines this for functions which it implements
18452 to always fail with ENOSYS. Some functions are actually named
18453 something starting with __ and the normal name is an alias. */
18454 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18457 f = mdbm_set_chain;
18462 if { (eval echo configure:18463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18464 eval "ac_cv_func_mdbm_set_chain=yes"
18466 echo "configure: failed program was:" >&5
18467 cat conftest.$ac_ext >&5
18469 eval "ac_cv_func_mdbm_set_chain=no"
18474 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18475 echo "$ac_t""yes" 1>&6
18478 echo "$ac_t""no" 1>&6
18480 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18481 echo "configure:18482: checking for mdbm_set_chain in -lmdbm" >&5
18482 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18483 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18484 echo $ac_n "(cached) $ac_c" 1>&6
18486 ac_save_LIBS="$LIBS"
18487 LIBS="-lmdbm $LIBS"
18488 cat > conftest.$ac_ext <<EOF
18489 #line 18490 "configure"
18490 #include "confdefs.h"
18491 /* Override any gcc2 internal prototype to avoid an error. */
18492 /* We use char because int might match the return type of a gcc2
18493 builtin and then its argument prototype would still apply. */
18494 char mdbm_set_chain();
18500 if { (eval echo configure:18501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18502 eval "ac_cv_lib_$ac_lib_var=yes"
18504 echo "configure: failed program was:" >&5
18505 cat conftest.$ac_ext >&5
18507 eval "ac_cv_lib_$ac_lib_var=no"
18510 LIBS="$ac_save_LIBS"
18513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18514 echo "$ac_t""yes" 1>&6
18515 ol_cv_lib_mdbm=-lmdbm
18517 echo "$ac_t""no" 1>&6
18528 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18531 for ac_hdr in mdbm.h
18533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18535 echo "configure:18536: checking for $ac_hdr" >&5
18536 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18537 echo $ac_n "(cached) $ac_c" 1>&6
18539 cat > conftest.$ac_ext <<EOF
18540 #line 18541 "configure"
18541 #include "confdefs.h"
18544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18545 { (eval echo configure:18546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18547 if test -z "$ac_err"; then
18549 eval "ac_cv_header_$ac_safe=yes"
18552 echo "configure: failed program was:" >&5
18553 cat conftest.$ac_ext >&5
18555 eval "ac_cv_header_$ac_safe=no"
18559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18560 echo "$ac_t""yes" 1>&6
18561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18562 cat >> confdefs.h <<EOF
18563 #define $ac_tr_hdr 1
18567 echo "$ac_t""no" 1>&6
18571 echo $ac_n "checking for db""... $ac_c" 1>&6
18572 echo "configure:18573: checking for db" >&5
18573 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18574 echo $ac_n "(cached) $ac_c" 1>&6
18577 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18585 echo "$ac_t""$ol_cv_mdbm" 1>&6
18586 if test $ol_cv_mdbm = yes ; then
18587 cat >> confdefs.h <<\EOF
18588 #define HAVE_MDBM 1
18594 if test $ol_cv_mdbm = yes ; then
18596 ol_with_ldbm_api=mdbm
18597 if test $ol_cv_lib_mdbm != yes ; then
18598 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18603 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18604 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18605 echo "configure:18606: checking for GDBM library" >&5
18606 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18607 echo $ac_n "(cached) $ac_c" 1>&6
18610 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18611 echo "configure:18612: checking for gdbm_open" >&5
18612 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18613 echo $ac_n "(cached) $ac_c" 1>&6
18615 cat > conftest.$ac_ext <<EOF
18616 #line 18617 "configure"
18617 #include "confdefs.h"
18618 /* System header to define __stub macros and hopefully few prototypes,
18619 which can conflict with char gdbm_open(); below. */
18620 #include <assert.h>
18621 /* Override any gcc2 internal prototype to avoid an error. */
18622 /* We use char because int might match the return type of a gcc2
18623 builtin and then its argument prototype would still apply. */
18629 /* The GNU C library defines this for functions which it implements
18630 to always fail with ENOSYS. Some functions are actually named
18631 something starting with __ and the normal name is an alias. */
18632 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18640 if { (eval echo configure:18641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18642 eval "ac_cv_func_gdbm_open=yes"
18644 echo "configure: failed program was:" >&5
18645 cat conftest.$ac_ext >&5
18647 eval "ac_cv_func_gdbm_open=no"
18652 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18653 echo "$ac_t""yes" 1>&6
18656 echo "$ac_t""no" 1>&6
18658 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18659 echo "configure:18660: checking for gdbm_open in -lgdbm" >&5
18660 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18661 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18662 echo $ac_n "(cached) $ac_c" 1>&6
18664 ac_save_LIBS="$LIBS"
18665 LIBS="-lgdbm $LIBS"
18666 cat > conftest.$ac_ext <<EOF
18667 #line 18668 "configure"
18668 #include "confdefs.h"
18669 /* Override any gcc2 internal prototype to avoid an error. */
18670 /* We use char because int might match the return type of a gcc2
18671 builtin and then its argument prototype would still apply. */
18678 if { (eval echo configure:18679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18680 eval "ac_cv_lib_$ac_lib_var=yes"
18682 echo "configure: failed program was:" >&5
18683 cat conftest.$ac_ext >&5
18685 eval "ac_cv_lib_$ac_lib_var=no"
18688 LIBS="$ac_save_LIBS"
18691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18692 echo "$ac_t""yes" 1>&6
18693 ol_cv_lib_gdbm=-lgdbm
18695 echo "$ac_t""no" 1>&6
18706 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18709 for ac_hdr in gdbm.h
18711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18713 echo "configure:18714: checking for $ac_hdr" >&5
18714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18715 echo $ac_n "(cached) $ac_c" 1>&6
18717 cat > conftest.$ac_ext <<EOF
18718 #line 18719 "configure"
18719 #include "confdefs.h"
18722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18723 { (eval echo configure:18724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18725 if test -z "$ac_err"; then
18727 eval "ac_cv_header_$ac_safe=yes"
18730 echo "configure: failed program was:" >&5
18731 cat conftest.$ac_ext >&5
18733 eval "ac_cv_header_$ac_safe=no"
18737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18738 echo "$ac_t""yes" 1>&6
18739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18740 cat >> confdefs.h <<EOF
18741 #define $ac_tr_hdr 1
18745 echo "$ac_t""no" 1>&6
18749 echo $ac_n "checking for db""... $ac_c" 1>&6
18750 echo "configure:18751: checking for db" >&5
18751 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18752 echo $ac_n "(cached) $ac_c" 1>&6
18755 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18763 echo "$ac_t""$ol_cv_gdbm" 1>&6
18764 if test $ol_cv_gdbm = yes ; then
18765 cat >> confdefs.h <<\EOF
18766 #define HAVE_GDBM 1
18772 if test $ol_cv_gdbm = yes ; then
18774 ol_with_ldbm_api=gdbm
18776 if test $ol_cv_lib_gdbm != yes ; then
18777 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18782 if test $ol_with_ldbm_api = ndbm ; then
18783 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18784 echo "configure:18785: checking for NDBM library" >&5
18785 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18789 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18790 echo "configure:18791: checking for dbm_open" >&5
18791 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18792 echo $ac_n "(cached) $ac_c" 1>&6
18794 cat > conftest.$ac_ext <<EOF
18795 #line 18796 "configure"
18796 #include "confdefs.h"
18797 /* System header to define __stub macros and hopefully few prototypes,
18798 which can conflict with char dbm_open(); below. */
18799 #include <assert.h>
18800 /* Override any gcc2 internal prototype to avoid an error. */
18801 /* We use char because int might match the return type of a gcc2
18802 builtin and then its argument prototype would still apply. */
18808 /* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
18811 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18819 if { (eval echo configure:18820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18821 eval "ac_cv_func_dbm_open=yes"
18823 echo "configure: failed program was:" >&5
18824 cat conftest.$ac_ext >&5
18826 eval "ac_cv_func_dbm_open=no"
18831 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18832 echo "$ac_t""yes" 1>&6
18835 echo "$ac_t""no" 1>&6
18837 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18838 echo "configure:18839: checking for dbm_open in -lndbm" >&5
18839 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18840 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18841 echo $ac_n "(cached) $ac_c" 1>&6
18843 ac_save_LIBS="$LIBS"
18844 LIBS="-lndbm $LIBS"
18845 cat > conftest.$ac_ext <<EOF
18846 #line 18847 "configure"
18847 #include "confdefs.h"
18848 /* Override any gcc2 internal prototype to avoid an error. */
18849 /* We use char because int might match the return type of a gcc2
18850 builtin and then its argument prototype would still apply. */
18857 if { (eval echo configure:18858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18859 eval "ac_cv_lib_$ac_lib_var=yes"
18861 echo "configure: failed program was:" >&5
18862 cat conftest.$ac_ext >&5
18864 eval "ac_cv_lib_$ac_lib_var=no"
18867 LIBS="$ac_save_LIBS"
18870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18871 echo "$ac_t""yes" 1>&6
18872 ol_cv_lib_ndbm=-lndbm
18874 echo "$ac_t""no" 1>&6
18876 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18877 echo "configure:18878: checking for dbm_open in -ldbm" >&5
18878 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18879 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18880 echo $ac_n "(cached) $ac_c" 1>&6
18882 ac_save_LIBS="$LIBS"
18884 cat > conftest.$ac_ext <<EOF
18885 #line 18886 "configure"
18886 #include "confdefs.h"
18887 /* Override any gcc2 internal prototype to avoid an error. */
18888 /* We use char because int might match the return type of a gcc2
18889 builtin and then its argument prototype would still apply. */
18896 if { (eval echo configure:18897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18898 eval "ac_cv_lib_$ac_lib_var=yes"
18900 echo "configure: failed program was:" >&5
18901 cat conftest.$ac_ext >&5
18903 eval "ac_cv_lib_$ac_lib_var=no"
18906 LIBS="$ac_save_LIBS"
18909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18910 echo "$ac_t""yes" 1>&6
18911 ol_cv_lib_ndbm=-ldbm
18913 echo "$ac_t""no" 1>&6
18926 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18929 for ac_hdr in ndbm.h
18931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18933 echo "configure:18934: checking for $ac_hdr" >&5
18934 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18935 echo $ac_n "(cached) $ac_c" 1>&6
18937 cat > conftest.$ac_ext <<EOF
18938 #line 18939 "configure"
18939 #include "confdefs.h"
18942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18943 { (eval echo configure:18944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18945 if test -z "$ac_err"; then
18947 eval "ac_cv_header_$ac_safe=yes"
18950 echo "configure: failed program was:" >&5
18951 cat conftest.$ac_ext >&5
18953 eval "ac_cv_header_$ac_safe=no"
18957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18958 echo "$ac_t""yes" 1>&6
18959 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18960 cat >> confdefs.h <<EOF
18961 #define $ac_tr_hdr 1
18965 echo "$ac_t""no" 1>&6
18969 echo $ac_n "checking for db""... $ac_c" 1>&6
18970 echo "configure:18971: checking for db" >&5
18971 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18972 echo $ac_n "(cached) $ac_c" 1>&6
18975 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18983 echo "$ac_t""$ol_cv_ndbm" 1>&6
18984 if test $ol_cv_ndbm = yes ; then
18985 cat >> confdefs.h <<\EOF
18986 #define HAVE_NDBM 1
18992 if test $ol_cv_ndbm = yes ; then
18994 ol_with_ldbm_api=ndbm
18996 if test $ol_cv_lib_ndbm != yes ; then
18997 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19002 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19003 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19004 if test $ol_enable_ldbm = yes ; then
19005 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19008 echo "configure: warning: disabling LDBM" 1>&2
19012 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19013 BUILD_LIBS_DYNAMIC=shared
19014 cat >> confdefs.h <<\EOF
19015 #define LDAP_LIBS_DYNAMIC 1
19019 BUILD_LIBS_DYNAMIC=static
19022 if test $ol_enable_wrappers != no ; then
19023 for ac_hdr in tcpd.h
19025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19027 echo "configure:19028: checking for $ac_hdr" >&5
19028 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
19031 cat > conftest.$ac_ext <<EOF
19032 #line 19033 "configure"
19033 #include "confdefs.h"
19036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19037 { (eval echo configure:19038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19039 if test -z "$ac_err"; then
19041 eval "ac_cv_header_$ac_safe=yes"
19044 echo "configure: failed program was:" >&5
19045 cat conftest.$ac_ext >&5
19047 eval "ac_cv_header_$ac_safe=no"
19051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19052 echo "$ac_t""yes" 1>&6
19053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19054 cat >> confdefs.h <<EOF
19055 #define $ac_tr_hdr 1
19058 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19059 echo "configure:19060: checking for TCP wrappers library" >&5
19061 LIBS="$LIBS -lwrap"
19062 cat > conftest.$ac_ext <<EOF
19063 #line 19064 "configure"
19064 #include "confdefs.h"
19067 int allow_severity = 0;
19068 int deny_severity = 0;
19070 struct request_info *req;
19078 if { (eval echo configure:19079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19080 echo "$ac_t""-lwrap" 1>&6
19084 echo "configure: failed program was:" >&5
19085 cat conftest.$ac_ext >&5
19089 cat > conftest.$ac_ext <<EOF
19090 #line 19091 "configure"
19091 #include "confdefs.h"
19094 int allow_severity = 0;
19095 int deny_severity = 0;
19097 struct request_info *req;
19105 if { (eval echo configure:19106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19107 echo "$ac_t""-lwrap -lnsl" 1>&6
19109 LIBS="$save_LIBS -lnsl"
19111 echo "configure: failed program was:" >&5
19112 cat conftest.$ac_ext >&5
19115 echo "$ac_t""no" 1>&6
19123 echo "$ac_t""no" 1>&6
19129 if test $have_wrappers = yes ; then
19130 cat >> confdefs.h <<\EOF
19131 #define HAVE_TCPD 1
19135 elif test $ol_enable_wrappers = yes ; then
19136 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19138 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19143 if test $ol_enable_syslog != no ; then
19144 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19145 echo "configure:19146: checking for openlog" >&5
19146 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19147 echo $ac_n "(cached) $ac_c" 1>&6
19149 cat > conftest.$ac_ext <<EOF
19150 #line 19151 "configure"
19151 #include "confdefs.h"
19152 /* System header to define __stub macros and hopefully few prototypes,
19153 which can conflict with char openlog(); below. */
19154 #include <assert.h>
19155 /* Override any gcc2 internal prototype to avoid an error. */
19156 /* We use char because int might match the return type of a gcc2
19157 builtin and then its argument prototype would still apply. */
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined (__stub_openlog) || defined (__stub___openlog)
19174 if { (eval echo configure:19175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19176 eval "ac_cv_func_openlog=yes"
19178 echo "configure: failed program was:" >&5
19179 cat conftest.$ac_ext >&5
19181 eval "ac_cv_func_openlog=no"
19186 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19187 echo "$ac_t""yes" 1>&6
19190 echo "$ac_t""no" 1>&6
19193 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19194 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19196 ol_enable_syslog=$ac_cv_func_openlog
19201 if test $ol_enable_sql != no ; then
19202 for ac_hdr in sql.h sqlext.h
19204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19206 echo "configure:19207: checking for $ac_hdr" >&5
19207 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19208 echo $ac_n "(cached) $ac_c" 1>&6
19210 cat > conftest.$ac_ext <<EOF
19211 #line 19212 "configure"
19212 #include "confdefs.h"
19215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19216 { (eval echo configure:19217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19218 if test -z "$ac_err"; then
19220 eval "ac_cv_header_$ac_safe=yes"
19223 echo "configure: failed program was:" >&5
19224 cat conftest.$ac_ext >&5
19226 eval "ac_cv_header_$ac_safe=no"
19230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19231 echo "$ac_t""yes" 1>&6
19232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19233 cat >> confdefs.h <<EOF
19234 #define $ac_tr_hdr 1
19238 echo "$ac_t""no" 1>&6
19239 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
19245 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19246 echo "configure:19247: checking for SQLDriverConnect in -liodbc" >&5
19247 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19248 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19249 echo $ac_n "(cached) $ac_c" 1>&6
19251 ac_save_LIBS="$LIBS"
19252 LIBS="-liodbc $LIBS"
19253 cat > conftest.$ac_ext <<EOF
19254 #line 19255 "configure"
19255 #include "confdefs.h"
19256 /* Override any gcc2 internal prototype to avoid an error. */
19257 /* We use char because int might match the return type of a gcc2
19258 builtin and then its argument prototype would still apply. */
19259 char SQLDriverConnect();
19265 if { (eval echo configure:19266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19267 eval "ac_cv_lib_$ac_lib_var=yes"
19269 echo "configure: failed program was:" >&5
19270 cat conftest.$ac_ext >&5
19272 eval "ac_cv_lib_$ac_lib_var=no"
19275 LIBS="$ac_save_LIBS"
19278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19279 echo "$ac_t""yes" 1>&6
19282 echo "$ac_t""no" 1>&6
19286 if test $have_iodbc = yes ; then
19287 ol_link_sql="-liodbc"
19289 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19290 echo "configure:19291: checking for SQLDriverConnect in -lodbc" >&5
19291 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19292 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19293 echo $ac_n "(cached) $ac_c" 1>&6
19295 ac_save_LIBS="$LIBS"
19296 LIBS="-lodbc $LIBS"
19297 cat > conftest.$ac_ext <<EOF
19298 #line 19299 "configure"
19299 #include "confdefs.h"
19300 /* Override any gcc2 internal prototype to avoid an error. */
19301 /* We use char because int might match the return type of a gcc2
19302 builtin and then its argument prototype would still apply. */
19303 char SQLDriverConnect();
19309 if { (eval echo configure:19310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19311 eval "ac_cv_lib_$ac_lib_var=yes"
19313 echo "configure: failed program was:" >&5
19314 cat conftest.$ac_ext >&5
19316 eval "ac_cv_lib_$ac_lib_var=no"
19319 LIBS="$ac_save_LIBS"
19322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19323 echo "$ac_t""yes" 1>&6
19326 echo "$ac_t""no" 1>&6
19330 if test $have_odbc = yes ; then
19331 ol_link_sql="-lodbc"
19335 if test $ol_link_sql != no ; then
19336 SLAPD_SQL_LIBS="$ol_link_sql"
19338 elif test $ol_enable_sql != auto ; then
19339 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19343 if test $ol_enable_tcl != no ; then
19344 for ac_hdr in tcl.h
19346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19348 echo "configure:19349: checking for $ac_hdr" >&5
19349 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19350 echo $ac_n "(cached) $ac_c" 1>&6
19352 cat > conftest.$ac_ext <<EOF
19353 #line 19354 "configure"
19354 #include "confdefs.h"
19357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19358 { (eval echo configure:19359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19360 if test -z "$ac_err"; then
19362 eval "ac_cv_header_$ac_safe=yes"
19365 echo "configure: failed program was:" >&5
19366 cat conftest.$ac_ext >&5
19368 eval "ac_cv_header_$ac_safe=no"
19372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19373 echo "$ac_t""yes" 1>&6
19374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19375 cat >> confdefs.h <<EOF
19376 #define $ac_tr_hdr 1
19380 echo "$ac_t""no" 1>&6
19385 if test $ac_cv_header_tcl_h != yes ; then
19388 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19389 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19390 echo "configure:19391: checking for main in -l$lib" >&5
19391 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19392 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19393 echo $ac_n "(cached) $ac_c" 1>&6
19395 ac_save_LIBS="$LIBS"
19396 LIBS="-l$lib $LIBS"
19397 cat > conftest.$ac_ext <<EOF
19398 #line 19399 "configure"
19399 #include "confdefs.h"
19405 if { (eval echo configure:19406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19407 eval "ac_cv_lib_$ac_lib_var=yes"
19409 echo "configure: failed program was:" >&5
19410 cat conftest.$ac_ext >&5
19412 eval "ac_cv_lib_$ac_lib_var=no"
19415 LIBS="$ac_save_LIBS"
19418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19419 echo "$ac_t""yes" 1>&6
19421 if test x"$ol_with_tcl_module" = "xstatic" ; then
19422 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19424 MOD_TCL_LIB="-l${lib}"
19427 echo "$ac_t""no" 1>&6
19434 if test $have_tcl != yes ; then
19435 echo "configure: warning: could not find -ltcl" 1>&2
19436 if test $ol_enable_tcl = yes ; then
19437 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19445 for ac_hdr in termcap.h ncurses.h
19447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19449 echo "configure:19450: checking for $ac_hdr" >&5
19450 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19451 echo $ac_n "(cached) $ac_c" 1>&6
19453 cat > conftest.$ac_ext <<EOF
19454 #line 19455 "configure"
19455 #include "confdefs.h"
19458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19459 { (eval echo configure:19460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19461 if test -z "$ac_err"; then
19463 eval "ac_cv_header_$ac_safe=yes"
19466 echo "configure: failed program was:" >&5
19467 cat conftest.$ac_ext >&5
19469 eval "ac_cv_header_$ac_safe=no"
19473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19474 echo "$ac_t""yes" 1>&6
19475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19476 cat >> confdefs.h <<EOF
19477 #define $ac_tr_hdr 1
19481 echo "$ac_t""no" 1>&6
19486 if test $ol_link_termcap = no ; then
19487 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19488 echo "configure:19489: checking for tputs in -ltermcap" >&5
19489 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19490 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19491 echo $ac_n "(cached) $ac_c" 1>&6
19493 ac_save_LIBS="$LIBS"
19494 LIBS="-ltermcap $LIBS"
19495 cat > conftest.$ac_ext <<EOF
19496 #line 19497 "configure"
19497 #include "confdefs.h"
19498 /* Override any gcc2 internal prototype to avoid an error. */
19499 /* We use char because int might match the return type of a gcc2
19500 builtin and then its argument prototype would still apply. */
19507 if { (eval echo configure:19508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19509 eval "ac_cv_lib_$ac_lib_var=yes"
19511 echo "configure: failed program was:" >&5
19512 cat conftest.$ac_ext >&5
19514 eval "ac_cv_lib_$ac_lib_var=no"
19517 LIBS="$ac_save_LIBS"
19520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19521 echo "$ac_t""yes" 1>&6
19524 echo "$ac_t""no" 1>&6
19528 if test $have_termcap = yes ; then
19529 cat >> confdefs.h <<\EOF
19530 #define HAVE_TERMCAP 1
19533 ol_link_termcap=yes
19534 TERMCAP_LIBS=-ltermcap
19538 if test $ol_link_termcap = no ; then
19539 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19540 echo "configure:19541: checking for initscr in -lncurses" >&5
19541 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19543 echo $ac_n "(cached) $ac_c" 1>&6
19545 ac_save_LIBS="$LIBS"
19546 LIBS="-lncurses $LIBS"
19547 cat > conftest.$ac_ext <<EOF
19548 #line 19549 "configure"
19549 #include "confdefs.h"
19550 /* Override any gcc2 internal prototype to avoid an error. */
19551 /* We use char because int might match the return type of a gcc2
19552 builtin and then its argument prototype would still apply. */
19559 if { (eval echo configure:19560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19561 eval "ac_cv_lib_$ac_lib_var=yes"
19563 echo "configure: failed program was:" >&5
19564 cat conftest.$ac_ext >&5
19566 eval "ac_cv_lib_$ac_lib_var=no"
19569 LIBS="$ac_save_LIBS"
19572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19573 echo "$ac_t""yes" 1>&6
19576 echo "$ac_t""no" 1>&6
19580 if test $have_ncurses = yes ; then
19581 cat >> confdefs.h <<\EOF
19582 #define HAVE_NCURSES 1
19585 ol_link_termcap=yes
19586 TERMCAP_LIBS=-lncurses
19590 if test $ol_link_termcap = no ; then
19591 cat >> confdefs.h <<\EOF
19592 #define NO_TERMCAP 1
19600 if test $ol_with_cyrus_sasl != no ; then
19601 for ac_hdr in sasl/sasl.h sasl.h
19603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19605 echo "configure:19606: checking for $ac_hdr" >&5
19606 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19607 echo $ac_n "(cached) $ac_c" 1>&6
19609 cat > conftest.$ac_ext <<EOF
19610 #line 19611 "configure"
19611 #include "confdefs.h"
19614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19615 { (eval echo configure:19616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19617 if test -z "$ac_err"; then
19619 eval "ac_cv_header_$ac_safe=yes"
19622 echo "configure: failed program was:" >&5
19623 cat conftest.$ac_ext >&5
19625 eval "ac_cv_header_$ac_safe=no"
19629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19630 echo "$ac_t""yes" 1>&6
19631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19632 cat >> confdefs.h <<EOF
19633 #define $ac_tr_hdr 1
19637 echo "$ac_t""no" 1>&6
19642 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19643 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19644 echo "configure:19645: checking for sasl_client_init in -lsasl2" >&5
19645 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19646 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19647 echo $ac_n "(cached) $ac_c" 1>&6
19649 ac_save_LIBS="$LIBS"
19650 LIBS="-lsasl2 $LIBS"
19651 cat > conftest.$ac_ext <<EOF
19652 #line 19653 "configure"
19653 #include "confdefs.h"
19654 /* Override any gcc2 internal prototype to avoid an error. */
19655 /* We use char because int might match the return type of a gcc2
19656 builtin and then its argument prototype would still apply. */
19657 char sasl_client_init();
19663 if { (eval echo configure:19664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19665 eval "ac_cv_lib_$ac_lib_var=yes"
19667 echo "configure: failed program was:" >&5
19668 cat conftest.$ac_ext >&5
19670 eval "ac_cv_lib_$ac_lib_var=no"
19673 LIBS="$ac_save_LIBS"
19676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19677 echo "$ac_t""yes" 1>&6
19678 ol_link_sasl="-lsasl2"
19680 echo "$ac_t""no" 1>&6
19681 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19682 echo "configure:19683: checking for sasl_client_init in -lsasl" >&5
19683 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19684 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19685 echo $ac_n "(cached) $ac_c" 1>&6
19687 ac_save_LIBS="$LIBS"
19688 LIBS="-lsasl $LIBS"
19689 cat > conftest.$ac_ext <<EOF
19690 #line 19691 "configure"
19691 #include "confdefs.h"
19692 /* Override any gcc2 internal prototype to avoid an error. */
19693 /* We use char because int might match the return type of a gcc2
19694 builtin and then its argument prototype would still apply. */
19695 char sasl_client_init();
19701 if { (eval echo configure:19702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19703 eval "ac_cv_lib_$ac_lib_var=yes"
19705 echo "configure: failed program was:" >&5
19706 cat conftest.$ac_ext >&5
19708 eval "ac_cv_lib_$ac_lib_var=no"
19711 LIBS="$ac_save_LIBS"
19714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19715 echo "$ac_t""yes" 1>&6
19716 ol_link_sasl="-lsasl"
19718 echo "$ac_t""no" 1>&6
19725 if test $ol_link_sasl = no ; then
19726 if test $ol_with_cyrus_sasl != auto ; then
19727 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19729 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19730 echo "configure: warning: SASL authentication not supported!" 1>&2
19731 if test $ol_link_tls = no ; then
19732 echo "configure: warning: Strong authentication not supported!" 1>&2
19736 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
19737 echo "configure:19738: checking Cyrus SASL library version" >&5
19738 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
19739 echo $ac_n "(cached) $ac_c" 1>&6
19742 cat > conftest.$ac_ext <<EOF
19743 #line 19744 "configure"
19744 #include "confdefs.h"
19746 #ifdef HAVE_SASL_SASL_H
19747 #include <sasl/sasl.h>
19752 /* require 2.1.3 or later */
19753 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
19754 char *__sasl_compat = "1.5.x okay";
19755 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
19756 __sasl_compat "2.2+ or better okay (we guess)";
19757 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
19758 && SASL_VERSION_STEP >=3
19759 __sasl_compat = "2.1.3+ or better okay";
19763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19764 egrep "__sasl_compat" >/dev/null 2>&1; then
19766 ol_cv_sasl_compat=yes
19769 ol_cv_sasl_compat=no
19775 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
19777 if test $ol_cv_sasl_compat = no ; then
19779 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
19782 cat >> confdefs.h <<\EOF
19783 #define HAVE_CYRUS_SASL 1
19786 SASL_LIBS="$ol_link_sasl"
19787 if test $ol_enable_spasswd != no ; then
19788 ol_link_spasswd=yes
19791 ac_save_LIBS="$LIBS"
19792 LIBS="$LIBS $ol_link_sasl"
19793 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
19794 echo "configure:19795: checking for sasl_version" >&5
19795 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
19796 echo $ac_n "(cached) $ac_c" 1>&6
19798 cat > conftest.$ac_ext <<EOF
19799 #line 19800 "configure"
19800 #include "confdefs.h"
19801 /* System header to define __stub macros and hopefully few prototypes,
19802 which can conflict with char sasl_version(); below. */
19803 #include <assert.h>
19804 /* Override any gcc2 internal prototype to avoid an error. */
19805 /* We use char because int might match the return type of a gcc2
19806 builtin and then its argument prototype would still apply. */
19807 char sasl_version();
19812 /* The GNU C library defines this for functions which it implements
19813 to always fail with ENOSYS. Some functions are actually named
19814 something starting with __ and the normal name is an alias. */
19815 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
19823 if { (eval echo configure:19824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19825 eval "ac_cv_func_sasl_version=yes"
19827 echo "configure: failed program was:" >&5
19828 cat conftest.$ac_ext >&5
19830 eval "ac_cv_func_sasl_version=no"
19835 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
19836 echo "$ac_t""yes" 1>&6
19837 cat >> confdefs.h <<\EOF
19838 #define HAVE_SASL_VERSION 1
19842 echo "$ac_t""no" 1>&6
19845 LIBS="$ac_save_LIBS"
19849 echo "configure: warning: SASL authentication not supported!" 1>&2
19850 if test $ol_link_tls = no ; then
19851 echo "configure: warning: Strong authentication not supported!" 1>&2
19855 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19857 if test -r /dev/urandom ; then
19858 dev="/dev/urandom";
19859 elif test -r /idev/urandom ; then
19860 dev="/idev/urandom";
19861 elif test -r /dev/srandom ; then
19862 dev="/dev/srandom";
19863 elif test -r /dev/random ; then
19865 elif test -r /idev/random ; then
19866 dev="/idev/random";
19869 if test $dev != no ; then
19870 cat >> confdefs.h <<EOF
19871 #define URANDOM_DEVICE "$dev"
19878 if test $ol_with_fetch != no ; then
19880 LIBS="-lfetch -lcom_err $LIBS"
19881 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19882 echo "configure:19883: checking fetch(3) library" >&5
19883 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19884 echo $ac_n "(cached) $ac_c" 1>&6
19887 cat > conftest.$ac_ext <<EOF
19888 #line 19889 "configure"
19889 #include "confdefs.h"
19891 #include <sys/param.h>
19895 struct url *u = fetchParseURL("file:///");
19898 if { (eval echo configure:19899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19900 ol_cv_lib_fetch=yes
19902 echo "configure: failed program was:" >&5
19903 cat conftest.$ac_ext >&5
19910 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19912 if test $ol_cv_lib_fetch != no ; then
19913 ol_link_fetch="-lfetch -lcom_err"
19914 cat >> confdefs.h <<\EOF
19915 #define HAVE_FETCH 1
19921 if test $ol_cv_lib_fetch != no ; then
19922 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19923 ol_link_fetch=freebsd
19925 elif test $ol_with_fetch != auto ; then
19926 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19930 ol_link_readline=no
19931 if test $ol_with_readline != no ; then
19932 for ac_hdr in readline/readline.h readline/history.h
19934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19936 echo "configure:19937: checking for $ac_hdr" >&5
19937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19938 echo $ac_n "(cached) $ac_c" 1>&6
19940 cat > conftest.$ac_ext <<EOF
19941 #line 19942 "configure"
19942 #include "confdefs.h"
19945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19946 { (eval echo configure:19947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19948 if test -z "$ac_err"; then
19950 eval "ac_cv_header_$ac_safe=yes"
19953 echo "configure: failed program was:" >&5
19954 cat conftest.$ac_ext >&5
19956 eval "ac_cv_header_$ac_safe=no"
19960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19961 echo "$ac_t""yes" 1>&6
19962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19963 cat >> confdefs.h <<EOF
19964 #define $ac_tr_hdr 1
19968 echo "$ac_t""no" 1>&6
19973 if test $ac_cv_header_readline_readline_h = yes ; then
19975 LIBS="$TERMCAP_LIBS $LIBS"
19976 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19977 echo "configure:19978: checking for readline in -lreadline" >&5
19978 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19979 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19980 echo $ac_n "(cached) $ac_c" 1>&6
19982 ac_save_LIBS="$LIBS"
19983 LIBS="-lreadline $LIBS"
19984 cat > conftest.$ac_ext <<EOF
19985 #line 19986 "configure"
19986 #include "confdefs.h"
19987 /* Override any gcc2 internal prototype to avoid an error. */
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19996 if { (eval echo configure:19997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19998 eval "ac_cv_lib_$ac_lib_var=yes"
20000 echo "configure: failed program was:" >&5
20001 cat conftest.$ac_ext >&5
20003 eval "ac_cv_lib_$ac_lib_var=no"
20006 LIBS="$ac_save_LIBS"
20009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20010 echo "$ac_t""yes" 1>&6
20013 echo "$ac_t""no" 1>&6
20019 if test $have_readline = yes ; then
20020 ol_with_readline=found
20021 ol_link_readline=yes
20023 READLINE_LIBS="-lreadline"
20028 if test $ol_link_readline = yes ; then
20029 cat >> confdefs.h <<\EOF
20030 #define HAVE_READLINE 1
20036 if test $ol_enable_crypt != no ; then
20038 LIBS="$TLS_LIBS $LIBS"
20040 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20041 echo "configure:20042: checking for crypt" >&5
20042 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20043 echo $ac_n "(cached) $ac_c" 1>&6
20045 cat > conftest.$ac_ext <<EOF
20046 #line 20047 "configure"
20047 #include "confdefs.h"
20048 /* System header to define __stub macros and hopefully few prototypes,
20049 which can conflict with char crypt(); below. */
20050 #include <assert.h>
20051 /* Override any gcc2 internal prototype to avoid an error. */
20052 /* We use char because int might match the return type of a gcc2
20053 builtin and then its argument prototype would still apply. */
20059 /* The GNU C library defines this for functions which it implements
20060 to always fail with ENOSYS. Some functions are actually named
20061 something starting with __ and the normal name is an alias. */
20062 #if defined (__stub_crypt) || defined (__stub___crypt)
20070 if { (eval echo configure:20071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20072 eval "ac_cv_func_crypt=yes"
20074 echo "configure: failed program was:" >&5
20075 cat conftest.$ac_ext >&5
20077 eval "ac_cv_func_crypt=no"
20082 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20083 echo "$ac_t""yes" 1>&6
20086 echo "$ac_t""no" 1>&6
20089 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20090 echo "configure:20091: checking for crypt in -lcrypt" >&5
20091 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20092 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20093 echo $ac_n "(cached) $ac_c" 1>&6
20095 ac_save_LIBS="$LIBS"
20096 LIBS="-lcrypt $LIBS"
20097 cat > conftest.$ac_ext <<EOF
20098 #line 20099 "configure"
20099 #include "confdefs.h"
20100 /* Override any gcc2 internal prototype to avoid an error. */
20101 /* We use char because int might match the return type of a gcc2
20102 builtin and then its argument prototype would still apply. */
20109 if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20111 eval "ac_cv_lib_$ac_lib_var=yes"
20113 echo "configure: failed program was:" >&5
20114 cat conftest.$ac_ext >&5
20116 eval "ac_cv_lib_$ac_lib_var=no"
20119 LIBS="$ac_save_LIBS"
20122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20123 echo "$ac_t""yes" 1>&6
20124 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20127 echo "$ac_t""no" 1>&6
20136 if test $have_crypt = yes ; then
20137 cat >> confdefs.h <<\EOF
20138 #define HAVE_CRYPT 1
20142 echo "configure: warning: could not find crypt" 1>&2
20143 if test $ol_enable_crypt = yes ; then
20144 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20147 echo "configure: warning: disabling crypt support" 1>&2
20152 if test $ol_enable_proctitle != no ; then
20153 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20154 echo "configure:20155: checking for setproctitle" >&5
20155 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20158 cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20161 /* System header to define __stub macros and hopefully few prototypes,
20162 which can conflict with char setproctitle(); below. */
20163 #include <assert.h>
20164 /* Override any gcc2 internal prototype to avoid an error. */
20165 /* We use char because int might match the return type of a gcc2
20166 builtin and then its argument prototype would still apply. */
20167 char setproctitle();
20172 /* The GNU C library defines this for functions which it implements
20173 to always fail with ENOSYS. Some functions are actually named
20174 something starting with __ and the normal name is an alias. */
20175 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20183 if { (eval echo configure:20184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20185 eval "ac_cv_func_setproctitle=yes"
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20190 eval "ac_cv_func_setproctitle=no"
20195 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20196 echo "$ac_t""yes" 1>&6
20197 have_setproctitle=yes
20199 echo "$ac_t""no" 1>&6
20201 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20202 echo "configure:20203: checking for setproctitle in -lutil" >&5
20203 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20204 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20205 echo $ac_n "(cached) $ac_c" 1>&6
20207 ac_save_LIBS="$LIBS"
20208 LIBS="-lutil $LIBS"
20209 cat > conftest.$ac_ext <<EOF
20210 #line 20211 "configure"
20211 #include "confdefs.h"
20212 /* Override any gcc2 internal prototype to avoid an error. */
20213 /* We use char because int might match the return type of a gcc2
20214 builtin and then its argument prototype would still apply. */
20215 char setproctitle();
20221 if { (eval echo configure:20222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20223 eval "ac_cv_lib_$ac_lib_var=yes"
20225 echo "configure: failed program was:" >&5
20226 cat conftest.$ac_ext >&5
20228 eval "ac_cv_lib_$ac_lib_var=no"
20231 LIBS="$ac_save_LIBS"
20234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20235 echo "$ac_t""yes" 1>&6
20236 have_setproctitle=yes
20237 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20239 echo "$ac_t""no" 1>&6
20240 have_setproctitle=no
20241 LIBOBJS="$LIBOBJS setproctitle.o"
20242 LIBSRCS="$LIBSRCS setproctitle.c"
20248 if test $have_setproctitle = yes ; then
20249 cat >> confdefs.h <<\EOF
20250 #define HAVE_SETPROCTITLE 1
20256 if test $ol_enable_slp != no ; then
20257 for ac_hdr in slp.h
20259 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20261 echo "configure:20262: checking for $ac_hdr" >&5
20262 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20263 echo $ac_n "(cached) $ac_c" 1>&6
20265 cat > conftest.$ac_ext <<EOF
20266 #line 20267 "configure"
20267 #include "confdefs.h"
20270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20271 { (eval echo configure:20272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20273 if test -z "$ac_err"; then
20275 eval "ac_cv_header_$ac_safe=yes"
20278 echo "configure: failed program was:" >&5
20279 cat conftest.$ac_ext >&5
20281 eval "ac_cv_header_$ac_safe=no"
20285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20286 echo "$ac_t""yes" 1>&6
20287 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20288 cat >> confdefs.h <<EOF
20289 #define $ac_tr_hdr 1
20293 echo "$ac_t""no" 1>&6
20298 if test $ac_cv_header_slp_h = yes ; then
20299 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20300 echo "configure:20301: checking for SLPOpen in -lslp" >&5
20301 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20302 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20303 echo $ac_n "(cached) $ac_c" 1>&6
20305 ac_save_LIBS="$LIBS"
20307 cat > conftest.$ac_ext <<EOF
20308 #line 20309 "configure"
20309 #include "confdefs.h"
20310 /* Override any gcc2 internal prototype to avoid an error. */
20311 /* We use char because int might match the return type of a gcc2
20312 builtin and then its argument prototype would still apply. */
20319 if { (eval echo configure:20320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20321 eval "ac_cv_lib_$ac_lib_var=yes"
20323 echo "configure: failed program was:" >&5
20324 cat conftest.$ac_ext >&5
20326 eval "ac_cv_lib_$ac_lib_var=no"
20329 LIBS="$ac_save_LIBS"
20332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20333 echo "$ac_t""yes" 1>&6
20336 echo "$ac_t""no" 1>&6
20340 if test $have_slp = yes ; then
20341 cat >> confdefs.h <<\EOF
20345 SLAPD_SLP_LIBS=-lslp
20348 elif test $ol_enable_slp = yes ; then
20349 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20353 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20354 echo "configure:20355: checking for ANSI C header files" >&5
20355 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20356 echo $ac_n "(cached) $ac_c" 1>&6
20358 cat > conftest.$ac_ext <<EOF
20359 #line 20360 "configure"
20360 #include "confdefs.h"
20361 #include <stdlib.h>
20362 #include <stdarg.h>
20363 #include <string.h>
20366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20367 { (eval echo configure:20368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20369 if test -z "$ac_err"; then
20371 ac_cv_header_stdc=yes
20374 echo "configure: failed program was:" >&5
20375 cat conftest.$ac_ext >&5
20377 ac_cv_header_stdc=no
20381 if test $ac_cv_header_stdc = yes; then
20382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20383 cat > conftest.$ac_ext <<EOF
20384 #line 20385 "configure"
20385 #include "confdefs.h"
20386 #include <string.h>
20388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20389 egrep "memchr" >/dev/null 2>&1; then
20393 ac_cv_header_stdc=no
20399 if test $ac_cv_header_stdc = yes; then
20400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20401 cat > conftest.$ac_ext <<EOF
20402 #line 20403 "configure"
20403 #include "confdefs.h"
20404 #include <stdlib.h>
20406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20407 egrep "free" >/dev/null 2>&1; then
20411 ac_cv_header_stdc=no
20417 if test $ac_cv_header_stdc = yes; then
20418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20419 if test "$cross_compiling" = yes; then
20422 cat > conftest.$ac_ext <<EOF
20423 #line 20424 "configure"
20424 #include "confdefs.h"
20426 #if ((' ' & 0x0FF) == 0x020)
20427 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20428 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20430 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20431 || ('j' <= (c) && (c) <= 'r') \
20432 || ('s' <= (c) && (c) <= 'z'))
20433 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20436 int main () { int i; for (i = 0; i < 256; i++)
20437 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20441 if { (eval echo configure:20442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20445 echo "configure: failed program was:" >&5
20446 cat conftest.$ac_ext >&5
20448 ac_cv_header_stdc=no
20456 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20457 if test $ac_cv_header_stdc = yes; then
20458 cat >> confdefs.h <<\EOF
20459 #define STDC_HEADERS 1
20464 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20465 echo "configure:20466: checking for mode_t" >&5
20466 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20467 echo $ac_n "(cached) $ac_c" 1>&6
20469 cat > conftest.$ac_ext <<EOF
20470 #line 20471 "configure"
20471 #include "confdefs.h"
20472 #include <sys/types.h>
20474 #include <stdlib.h>
20475 #include <stddef.h>
20479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20480 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20482 eval "ac_cv_type_mode_t=yes"
20485 eval "ac_cv_type_mode_t=no"
20490 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20491 echo "$ac_t""yes" 1>&6
20493 echo "$ac_t""no" 1>&6
20494 cat >> confdefs.h <<EOF
20500 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20501 echo "configure:20502: checking for off_t" >&5
20502 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20503 echo $ac_n "(cached) $ac_c" 1>&6
20505 cat > conftest.$ac_ext <<EOF
20506 #line 20507 "configure"
20507 #include "confdefs.h"
20508 #include <sys/types.h>
20510 #include <stdlib.h>
20511 #include <stddef.h>
20515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20516 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20518 eval "ac_cv_type_off_t=yes"
20521 eval "ac_cv_type_off_t=no"
20526 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20527 echo "$ac_t""yes" 1>&6
20529 echo "$ac_t""no" 1>&6
20530 cat >> confdefs.h <<EOF
20536 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20537 echo "configure:20538: checking for pid_t" >&5
20538 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20539 echo $ac_n "(cached) $ac_c" 1>&6
20541 cat > conftest.$ac_ext <<EOF
20542 #line 20543 "configure"
20543 #include "confdefs.h"
20544 #include <sys/types.h>
20546 #include <stdlib.h>
20547 #include <stddef.h>
20551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20552 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20554 eval "ac_cv_type_pid_t=yes"
20557 eval "ac_cv_type_pid_t=no"
20562 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20563 echo "$ac_t""yes" 1>&6
20565 echo "$ac_t""no" 1>&6
20566 cat >> confdefs.h <<EOF
20572 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20573 echo "configure:20574: checking for ptrdiff_t" >&5
20574 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20575 echo $ac_n "(cached) $ac_c" 1>&6
20577 cat > conftest.$ac_ext <<EOF
20578 #line 20579 "configure"
20579 #include "confdefs.h"
20580 #include <stddef.h>
20585 if { (eval echo configure:20586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20587 am_cv_type_ptrdiff_t=yes
20589 echo "configure: failed program was:" >&5
20590 cat conftest.$ac_ext >&5
20592 am_cv_type_ptrdiff_t=no
20597 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20598 if test $am_cv_type_ptrdiff_t = yes; then
20599 cat >> confdefs.h <<\EOF
20600 #define HAVE_PTRDIFF_T 1
20605 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20606 echo "configure:20607: checking return type of signal handlers" >&5
20607 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20608 echo $ac_n "(cached) $ac_c" 1>&6
20610 cat > conftest.$ac_ext <<EOF
20611 #line 20612 "configure"
20612 #include "confdefs.h"
20613 #include <sys/types.h>
20614 #include <signal.h>
20619 extern "C" void (*signal (int, void (*)(int)))(int);
20621 void (*signal ()) ();
20628 if { (eval echo configure:20629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20630 ac_cv_type_signal=void
20632 echo "configure: failed program was:" >&5
20633 cat conftest.$ac_ext >&5
20635 ac_cv_type_signal=int
20640 echo "$ac_t""$ac_cv_type_signal" 1>&6
20641 cat >> confdefs.h <<EOF
20642 #define RETSIGTYPE $ac_cv_type_signal
20646 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20647 echo "configure:20648: checking for size_t" >&5
20648 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20649 echo $ac_n "(cached) $ac_c" 1>&6
20651 cat > conftest.$ac_ext <<EOF
20652 #line 20653 "configure"
20653 #include "confdefs.h"
20654 #include <sys/types.h>
20656 #include <stdlib.h>
20657 #include <stddef.h>
20661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20662 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20664 eval "ac_cv_type_size_t=yes"
20667 eval "ac_cv_type_size_t=no"
20672 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20673 echo "$ac_t""yes" 1>&6
20675 echo "$ac_t""no" 1>&6
20676 cat >> confdefs.h <<EOF
20677 #define size_t unsigned
20683 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20684 echo "configure:20685: checking for ssize_t" >&5
20685 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20686 echo $ac_n "(cached) $ac_c" 1>&6
20688 cat > conftest.$ac_ext <<EOF
20689 #line 20690 "configure"
20690 #include "confdefs.h"
20691 #include <sys/types.h>
20693 #include <stdlib.h>
20694 #include <stddef.h>
20698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20699 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20701 eval "ac_cv_type_ssize_t=yes"
20704 eval "ac_cv_type_ssize_t=no"
20709 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20710 echo "$ac_t""yes" 1>&6
20712 echo "$ac_t""no" 1>&6
20713 cat >> confdefs.h <<EOF
20714 #define ssize_t signed int
20719 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20720 echo "configure:20721: checking for caddr_t" >&5
20721 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20722 echo $ac_n "(cached) $ac_c" 1>&6
20724 cat > conftest.$ac_ext <<EOF
20725 #line 20726 "configure"
20726 #include "confdefs.h"
20727 #include <sys/types.h>
20729 #include <stdlib.h>
20730 #include <stddef.h>
20734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20735 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20737 eval "ac_cv_type_caddr_t=yes"
20740 eval "ac_cv_type_caddr_t=no"
20745 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20746 echo "$ac_t""yes" 1>&6
20748 echo "$ac_t""no" 1>&6
20749 cat >> confdefs.h <<EOF
20750 #define caddr_t char *
20756 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20757 echo "configure:20758: checking for socklen_t" >&5
20758 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20759 echo $ac_n "(cached) $ac_c" 1>&6
20761 cat > conftest.$ac_ext <<EOF
20762 #line 20763 "configure"
20763 #include "confdefs.h"
20765 #ifdef HAVE_SYS_TYPES_H
20766 #include <sys/types.h>
20768 #ifdef HAVE_SYS_SOCKET_H
20769 #include <sys/socket.h>
20776 if { (eval echo configure:20777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20778 ol_cv_type_socklen_t=yes
20780 echo "configure: failed program was:" >&5
20781 cat conftest.$ac_ext >&5
20783 ol_cv_type_socklen_t=no
20788 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20789 if test $ol_cv_type_socklen_t = no; then
20790 cat >> confdefs.h <<\EOF
20791 #define socklen_t int
20796 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20797 echo "configure:20798: checking for member st_blksize in aggregate type struct stat" >&5
20798 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20799 echo $ac_n "(cached) $ac_c" 1>&6
20801 cat > conftest.$ac_ext <<EOF
20802 #line 20803 "configure"
20803 #include "confdefs.h"
20804 #include <sys/types.h>
20805 #include <sys/stat.h>
20807 struct stat foo; foo.st_blksize;
20810 if { (eval echo configure:20811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20812 ac_cv_c_struct_member_st_blksize=yes
20814 echo "configure: failed program was:" >&5
20815 cat conftest.$ac_ext >&5
20817 ac_cv_c_struct_member_st_blksize=no
20822 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20823 st_blksize="$ac_cv_c_struct_member_st_blksize"
20824 if test $ac_cv_c_struct_member_st_blksize = yes; then
20825 cat >> confdefs.h <<\EOF
20826 #define HAVE_ST_BLKSIZE 1
20831 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20832 echo "configure:20833: checking whether time.h and sys/time.h may both be included" >&5
20833 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20834 echo $ac_n "(cached) $ac_c" 1>&6
20836 cat > conftest.$ac_ext <<EOF
20837 #line 20838 "configure"
20838 #include "confdefs.h"
20839 #include <sys/types.h>
20840 #include <sys/time.h>
20846 if { (eval echo configure:20847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20848 ac_cv_header_time=yes
20850 echo "configure: failed program was:" >&5
20851 cat conftest.$ac_ext >&5
20853 ac_cv_header_time=no
20858 echo "$ac_t""$ac_cv_header_time" 1>&6
20859 if test $ac_cv_header_time = yes; then
20860 cat >> confdefs.h <<\EOF
20861 #define TIME_WITH_SYS_TIME 1
20866 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20867 echo "configure:20868: checking whether struct tm is in sys/time.h or time.h" >&5
20868 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20869 echo $ac_n "(cached) $ac_c" 1>&6
20871 cat > conftest.$ac_ext <<EOF
20872 #line 20873 "configure"
20873 #include "confdefs.h"
20874 #include <sys/types.h>
20877 struct tm *tp; tp->tm_sec;
20880 if { (eval echo configure:20881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20882 ac_cv_struct_tm=time.h
20884 echo "configure: failed program was:" >&5
20885 cat conftest.$ac_ext >&5
20887 ac_cv_struct_tm=sys/time.h
20892 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20893 if test $ac_cv_struct_tm = sys/time.h; then
20894 cat >> confdefs.h <<\EOF
20895 #define TM_IN_SYS_TIME 1
20900 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20901 echo "configure:20902: checking for uid_t in sys/types.h" >&5
20902 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20903 echo $ac_n "(cached) $ac_c" 1>&6
20905 cat > conftest.$ac_ext <<EOF
20906 #line 20907 "configure"
20907 #include "confdefs.h"
20908 #include <sys/types.h>
20910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20911 egrep "uid_t" >/dev/null 2>&1; then
20913 ac_cv_type_uid_t=yes
20916 ac_cv_type_uid_t=no
20922 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20923 if test $ac_cv_type_uid_t = no; then
20924 cat >> confdefs.h <<\EOF
20928 cat >> confdefs.h <<\EOF
20934 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20935 echo "configure:20936: checking for sig_atomic_t" >&5
20936 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20937 echo $ac_n "(cached) $ac_c" 1>&6
20939 cat > conftest.$ac_ext <<EOF
20940 #line 20941 "configure"
20941 #include "confdefs.h"
20942 #include <signal.h>
20944 sig_atomic_t atomic;
20947 if { (eval echo configure:20948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20949 ol_cv_type_sig_atomic_t=yes
20951 echo "configure: failed program was:" >&5
20952 cat conftest.$ac_ext >&5
20954 ol_cv_type_sig_atomic_t=no
20959 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20960 if test $ol_cv_type_sig_atomic_t = no; then
20961 cat >> confdefs.h <<\EOF
20962 #define sig_atomic_t int
20969 # test for pw_gecos in struct passwd
20970 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20971 echo "configure:20972: checking struct passwd for pw_gecos" >&5
20972 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20973 echo $ac_n "(cached) $ac_c" 1>&6
20976 cat > conftest.$ac_ext <<EOF
20977 #line 20978 "configure"
20978 #include "confdefs.h"
20983 pwd.pw_gecos = pwd.pw_name;
20987 if { (eval echo configure:20988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20989 ol_cv_struct_passwd_pw_gecos=yes
20991 echo "configure: failed program was:" >&5
20992 cat conftest.$ac_ext >&5
20994 ol_cv_struct_passwd_pw_gecos=no
20999 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21000 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21001 cat >> confdefs.h <<\EOF
21002 #define HAVE_PW_GECOS 1
21007 # test for pw_passwd in struct passwd
21008 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21009 echo "configure:21010: checking struct passwd for pw_passwd" >&5
21010 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21011 echo $ac_n "(cached) $ac_c" 1>&6
21014 cat > conftest.$ac_ext <<EOF
21015 #line 21016 "configure"
21016 #include "confdefs.h"
21021 pwd.pw_passwd = pwd.pw_name;
21025 if { (eval echo configure:21026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21027 ol_cv_struct_passwd_pw_passwd=yes
21029 echo "configure: failed program was:" >&5
21030 cat conftest.$ac_ext >&5
21032 ol_cv_struct_passwd_pw_passwd=no
21037 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21038 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21039 cat >> confdefs.h <<\EOF
21040 #define HAVE_PW_PASSWD 1
21046 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21047 echo "configure:21048: checking if toupper() requires islower()" >&5
21048 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21049 echo $ac_n "(cached) $ac_c" 1>&6
21052 if test "$cross_compiling" = yes; then
21053 ol_cv_c_upper_lower=safe
21055 cat > conftest.$ac_ext <<EOF
21056 #line 21057 "configure"
21057 #include "confdefs.h"
21062 if ('C' == toupper('C'))
21068 if { (eval echo configure:21069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21070 ol_cv_c_upper_lower=no
21072 echo "configure: failed program was:" >&5
21073 cat conftest.$ac_ext >&5
21075 ol_cv_c_upper_lower=yes
21082 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21083 if test $ol_cv_c_upper_lower != no ; then
21084 cat >> confdefs.h <<\EOF
21085 #define C_UPPER_LOWER 1
21090 echo $ac_n "checking for working const""... $ac_c" 1>&6
21091 echo "configure:21092: checking for working const" >&5
21092 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21093 echo $ac_n "(cached) $ac_c" 1>&6
21095 cat > conftest.$ac_ext <<EOF
21096 #line 21097 "configure"
21097 #include "confdefs.h"
21101 /* Ultrix mips cc rejects this. */
21102 typedef int charset[2]; const charset x;
21103 /* SunOS 4.1.1 cc rejects this. */
21104 char const *const *ccp;
21106 /* NEC SVR4.0.2 mips cc rejects this. */
21107 struct point {int x, y;};
21108 static struct point const zero = {0,0};
21109 /* AIX XL C 1.02.0.0 rejects this.
21110 It does not let you subtract one const X* pointer from another in an arm
21111 of an if-expression whose if-part is not a constant expression */
21112 const char *g = "string";
21113 ccp = &g + (g ? g-g : 0);
21114 /* HPUX 7.0 cc rejects these. */
21117 ccp = (char const *const *) p;
21118 { /* SCO 3.2v4 cc rejects this. */
21120 char const *s = 0 ? (char *) 0 : (char const *) 0;
21124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21125 int x[] = {25, 17};
21126 const int *foo = &x[0];
21129 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21130 typedef const int *iptr;
21134 { /* AIX XL C 1.02.0.0 rejects this saying
21135 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21136 struct s { int j; const int *ap[3]; };
21137 struct s *b; b->j = 5;
21139 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21140 const int foo = 10;
21145 if { (eval echo configure:21146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21149 echo "configure: failed program was:" >&5
21150 cat conftest.$ac_ext >&5
21157 echo "$ac_t""$ac_cv_c_const" 1>&6
21158 if test $ac_cv_c_const = no; then
21159 cat >> confdefs.h <<\EOF
21165 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21166 echo "configure:21167: checking if compiler understands volatile" >&5
21167 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21168 echo $ac_n "(cached) $ac_c" 1>&6
21170 cat > conftest.$ac_ext <<EOF
21171 #line 21172 "configure"
21172 #include "confdefs.h"
21175 volatile int a; int * volatile b = x ? &y : &z;
21176 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21180 if { (eval echo configure:21181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21182 ol_cv_c_volatile=yes
21184 echo "configure: failed program was:" >&5
21185 cat conftest.$ac_ext >&5
21187 ol_cv_c_volatile=no
21192 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21193 if test $ol_cv_c_volatile = yes; then
21196 cat >> confdefs.h <<\EOF
21203 if test $cross_compiling = yes ; then
21204 cat >> confdefs.h <<\EOF
21205 #define CROSS_COMPILING 1
21209 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21210 echo "configure:21211: checking whether byte ordering is bigendian" >&5
21211 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21212 echo $ac_n "(cached) $ac_c" 1>&6
21214 ac_cv_c_bigendian=unknown
21215 # See if sys/param.h defines the BYTE_ORDER macro.
21216 cat > conftest.$ac_ext <<EOF
21217 #line 21218 "configure"
21218 #include "confdefs.h"
21219 #include <sys/types.h>
21220 #include <sys/param.h>
21223 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21224 bogus endian macros
21228 if { (eval echo configure:21229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21230 # It does; now see whether it defined to BIG_ENDIAN or not.
21231 cat > conftest.$ac_ext <<EOF
21232 #line 21233 "configure"
21233 #include "confdefs.h"
21234 #include <sys/types.h>
21235 #include <sys/param.h>
21238 #if BYTE_ORDER != BIG_ENDIAN
21243 if { (eval echo configure:21244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21245 ac_cv_c_bigendian=yes
21247 echo "configure: failed program was:" >&5
21248 cat conftest.$ac_ext >&5
21250 ac_cv_c_bigendian=no
21254 echo "configure: failed program was:" >&5
21255 cat conftest.$ac_ext >&5
21258 if test $ac_cv_c_bigendian = unknown; then
21259 if test "$cross_compiling" = yes; then
21260 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21262 cat > conftest.$ac_ext <<EOF
21263 #line 21264 "configure"
21264 #include "confdefs.h"
21266 /* Are we little or big endian? From Harbison&Steele. */
21270 char c[sizeof (long)];
21273 exit (u.c[sizeof (long) - 1] == 1);
21276 if { (eval echo configure:21277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21278 ac_cv_c_bigendian=no
21280 echo "configure: failed program was:" >&5
21281 cat conftest.$ac_ext >&5
21283 ac_cv_c_bigendian=yes
21291 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21292 if test $ac_cv_c_bigendian = yes; then
21293 cat >> confdefs.h <<\EOF
21294 #define WORDS_BIGENDIAN 1
21301 echo $ac_n "checking size of short""... $ac_c" 1>&6
21302 echo "configure:21303: checking size of short" >&5
21303 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21304 echo $ac_n "(cached) $ac_c" 1>&6
21306 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21307 cat > conftest.$ac_ext <<EOF
21308 #line 21309 "configure"
21309 #include "confdefs.h"
21310 #include "confdefs.h"
21311 #include <sys/types.h>
21315 switch (0) case 0: case (sizeof (short) == $ac_size):;
21318 if { (eval echo configure:21319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21320 ac_cv_sizeof_short=$ac_size
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21326 if test x$ac_cv_sizeof_short != x ; then break; fi
21331 if test x$ac_cv_sizeof_short = x ; then
21332 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21334 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21335 cat >> confdefs.h <<EOF
21336 #define SIZEOF_SHORT $ac_cv_sizeof_short
21340 echo $ac_n "checking size of int""... $ac_c" 1>&6
21341 echo "configure:21342: checking size of int" >&5
21342 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21343 echo $ac_n "(cached) $ac_c" 1>&6
21345 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21346 cat > conftest.$ac_ext <<EOF
21347 #line 21348 "configure"
21348 #include "confdefs.h"
21349 #include "confdefs.h"
21350 #include <sys/types.h>
21354 switch (0) case 0: case (sizeof (int) == $ac_size):;
21357 if { (eval echo configure:21358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21359 ac_cv_sizeof_int=$ac_size
21361 echo "configure: failed program was:" >&5
21362 cat conftest.$ac_ext >&5
21365 if test x$ac_cv_sizeof_int != x ; then break; fi
21370 if test x$ac_cv_sizeof_int = x ; then
21371 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21373 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21374 cat >> confdefs.h <<EOF
21375 #define SIZEOF_INT $ac_cv_sizeof_int
21379 echo $ac_n "checking size of long""... $ac_c" 1>&6
21380 echo "configure:21381: checking size of long" >&5
21381 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21382 echo $ac_n "(cached) $ac_c" 1>&6
21384 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21385 cat > conftest.$ac_ext <<EOF
21386 #line 21387 "configure"
21387 #include "confdefs.h"
21388 #include "confdefs.h"
21389 #include <sys/types.h>
21393 switch (0) case 0: case (sizeof (long) == $ac_size):;
21396 if { (eval echo configure:21397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21398 ac_cv_sizeof_long=$ac_size
21400 echo "configure: failed program was:" >&5
21401 cat conftest.$ac_ext >&5
21404 if test x$ac_cv_sizeof_long != x ; then break; fi
21409 if test x$ac_cv_sizeof_long = x ; then
21410 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21412 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21413 cat >> confdefs.h <<EOF
21414 #define SIZEOF_LONG $ac_cv_sizeof_long
21419 if test "$ac_cv_sizeof_int" -lt 4 ; then
21420 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21422 cat >> confdefs.h <<\EOF
21423 #define LBER_INT_T long
21427 cat >> confdefs.h <<\EOF
21428 #define LBER_INT_T int
21433 cat >> confdefs.h <<\EOF
21434 #define LBER_LEN_T long
21437 cat >> confdefs.h <<\EOF
21438 #define LBER_SOCKET_T int
21441 cat >> confdefs.h <<\EOF
21442 #define LBER_TAG_T long
21446 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21447 echo "configure:21448: checking for 8-bit clean memcmp" >&5
21448 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21449 echo $ac_n "(cached) $ac_c" 1>&6
21451 if test "$cross_compiling" = yes; then
21452 ac_cv_func_memcmp_clean=no
21454 cat > conftest.$ac_ext <<EOF
21455 #line 21456 "configure"
21456 #include "confdefs.h"
21460 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21461 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21465 if { (eval echo configure:21466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21467 ac_cv_func_memcmp_clean=yes
21469 echo "configure: failed program was:" >&5
21470 cat conftest.$ac_ext >&5
21472 ac_cv_func_memcmp_clean=no
21479 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21480 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21482 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21483 echo "configure:21484: checking for strftime" >&5
21484 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21485 echo $ac_n "(cached) $ac_c" 1>&6
21487 cat > conftest.$ac_ext <<EOF
21488 #line 21489 "configure"
21489 #include "confdefs.h"
21490 /* System header to define __stub macros and hopefully few prototypes,
21491 which can conflict with char strftime(); below. */
21492 #include <assert.h>
21493 /* Override any gcc2 internal prototype to avoid an error. */
21494 /* We use char because int might match the return type of a gcc2
21495 builtin and then its argument prototype would still apply. */
21501 /* The GNU C library defines this for functions which it implements
21502 to always fail with ENOSYS. Some functions are actually named
21503 something starting with __ and the normal name is an alias. */
21504 #if defined (__stub_strftime) || defined (__stub___strftime)
21512 if { (eval echo configure:21513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21514 eval "ac_cv_func_strftime=yes"
21516 echo "configure: failed program was:" >&5
21517 cat conftest.$ac_ext >&5
21519 eval "ac_cv_func_strftime=no"
21524 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21525 echo "$ac_t""yes" 1>&6
21526 cat >> confdefs.h <<\EOF
21527 #define HAVE_STRFTIME 1
21531 echo "$ac_t""no" 1>&6
21532 # strftime is in -lintl on SCO UNIX.
21533 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21534 echo "configure:21535: checking for strftime in -lintl" >&5
21535 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21536 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21537 echo $ac_n "(cached) $ac_c" 1>&6
21539 ac_save_LIBS="$LIBS"
21540 LIBS="-lintl $LIBS"
21541 cat > conftest.$ac_ext <<EOF
21542 #line 21543 "configure"
21543 #include "confdefs.h"
21544 /* Override any gcc2 internal prototype to avoid an error. */
21545 /* We use char because int might match the return type of a gcc2
21546 builtin and then its argument prototype would still apply. */
21553 if { (eval echo configure:21554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21555 eval "ac_cv_lib_$ac_lib_var=yes"
21557 echo "configure: failed program was:" >&5
21558 cat conftest.$ac_ext >&5
21560 eval "ac_cv_lib_$ac_lib_var=no"
21563 LIBS="$ac_save_LIBS"
21566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21567 echo "$ac_t""yes" 1>&6
21568 cat >> confdefs.h <<\EOF
21569 #define HAVE_STRFTIME 1
21572 LIBS="-lintl $LIBS"
21574 echo "$ac_t""no" 1>&6
21580 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21581 echo "configure:21582: checking for inet_aton()" >&5
21582 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21583 echo $ac_n "(cached) $ac_c" 1>&6
21585 cat > conftest.$ac_ext <<EOF
21586 #line 21587 "configure"
21587 #include "confdefs.h"
21589 #ifdef HAVE_SYS_TYPES_H
21590 # include <sys/types.h>
21592 #ifdef HAVE_SYS_SOCKET_H
21593 # include <sys/socket.h>
21594 # ifdef HAVE_SYS_SELECT_H
21595 # include <sys/select.h>
21597 # include <netinet/in.h>
21598 # ifdef HAVE_ARPA_INET_H
21599 # include <arpa/inet.h>
21605 int rc = inet_aton( "255.255.255.255", &in );
21608 if { (eval echo configure:21609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21610 ol_cv_func_inet_aton=yes
21612 echo "configure: failed program was:" >&5
21613 cat conftest.$ac_ext >&5
21615 ol_cv_func_inet_aton=no
21620 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21621 if test $ol_cv_func_inet_aton != no; then
21622 cat >> confdefs.h <<\EOF
21623 #define HAVE_INET_ATON 1
21629 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21630 echo "configure:21631: checking for _spawnlp" >&5
21631 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21632 echo $ac_n "(cached) $ac_c" 1>&6
21634 cat > conftest.$ac_ext <<EOF
21635 #line 21636 "configure"
21636 #include "confdefs.h"
21637 /* System header to define __stub macros and hopefully few prototypes,
21638 which can conflict with char _spawnlp(); below. */
21639 #include <assert.h>
21640 /* Override any gcc2 internal prototype to avoid an error. */
21641 /* We use char because int might match the return type of a gcc2
21642 builtin and then its argument prototype would still apply. */
21648 /* The GNU C library defines this for functions which it implements
21649 to always fail with ENOSYS. Some functions are actually named
21650 something starting with __ and the normal name is an alias. */
21651 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21659 if { (eval echo configure:21660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21661 eval "ac_cv_func__spawnlp=yes"
21663 echo "configure: failed program was:" >&5
21664 cat conftest.$ac_ext >&5
21666 eval "ac_cv_func__spawnlp=no"
21671 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21672 echo "$ac_t""yes" 1>&6
21673 cat >> confdefs.h <<\EOF
21674 #define HAVE_SPAWNLP 1
21678 echo "$ac_t""no" 1>&6
21682 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21683 echo "configure:21684: checking for _snprintf" >&5
21684 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21685 echo $ac_n "(cached) $ac_c" 1>&6
21687 cat > conftest.$ac_ext <<EOF
21688 #line 21689 "configure"
21689 #include "confdefs.h"
21690 /* System header to define __stub macros and hopefully few prototypes,
21691 which can conflict with char _snprintf(); below. */
21692 #include <assert.h>
21693 /* Override any gcc2 internal prototype to avoid an error. */
21694 /* We use char because int might match the return type of a gcc2
21695 builtin and then its argument prototype would still apply. */
21701 /* The GNU C library defines this for functions which it implements
21702 to always fail with ENOSYS. Some functions are actually named
21703 something starting with __ and the normal name is an alias. */
21704 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21712 if { (eval echo configure:21713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21714 eval "ac_cv_func__snprintf=yes"
21716 echo "configure: failed program was:" >&5
21717 cat conftest.$ac_ext >&5
21719 eval "ac_cv_func__snprintf=no"
21724 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21725 echo "$ac_t""yes" 1>&6
21726 ac_cv_func_snprintf=yes
21727 cat >> confdefs.h <<\EOF
21728 #define snprintf _snprintf
21733 echo "$ac_t""no" 1>&6
21737 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21738 echo "configure:21739: checking for _vsnprintf" >&5
21739 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21740 echo $ac_n "(cached) $ac_c" 1>&6
21742 cat > conftest.$ac_ext <<EOF
21743 #line 21744 "configure"
21744 #include "confdefs.h"
21745 /* System header to define __stub macros and hopefully few prototypes,
21746 which can conflict with char _vsnprintf(); below. */
21747 #include <assert.h>
21748 /* Override any gcc2 internal prototype to avoid an error. */
21749 /* We use char because int might match the return type of a gcc2
21750 builtin and then its argument prototype would still apply. */
21756 /* The GNU C library defines this for functions which it implements
21757 to always fail with ENOSYS. Some functions are actually named
21758 something starting with __ and the normal name is an alias. */
21759 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21767 if { (eval echo configure:21768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21769 eval "ac_cv_func__vsnprintf=yes"
21771 echo "configure: failed program was:" >&5
21772 cat conftest.$ac_ext >&5
21774 eval "ac_cv_func__vsnprintf=no"
21779 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21780 echo "$ac_t""yes" 1>&6
21781 ac_cv_func_vsnprintf=yes
21782 cat >> confdefs.h <<\EOF
21783 #define vsnprintf _vsnprintf
21788 echo "$ac_t""no" 1>&6
21792 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21793 echo "configure:21794: checking for vprintf" >&5
21794 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21795 echo $ac_n "(cached) $ac_c" 1>&6
21797 cat > conftest.$ac_ext <<EOF
21798 #line 21799 "configure"
21799 #include "confdefs.h"
21800 /* System header to define __stub macros and hopefully few prototypes,
21801 which can conflict with char vprintf(); below. */
21802 #include <assert.h>
21803 /* Override any gcc2 internal prototype to avoid an error. */
21804 /* We use char because int might match the return type of a gcc2
21805 builtin and then its argument prototype would still apply. */
21811 /* The GNU C library defines this for functions which it implements
21812 to always fail with ENOSYS. Some functions are actually named
21813 something starting with __ and the normal name is an alias. */
21814 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21822 if { (eval echo configure:21823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21824 eval "ac_cv_func_vprintf=yes"
21826 echo "configure: failed program was:" >&5
21827 cat conftest.$ac_ext >&5
21829 eval "ac_cv_func_vprintf=no"
21834 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21835 echo "$ac_t""yes" 1>&6
21836 cat >> confdefs.h <<\EOF
21837 #define HAVE_VPRINTF 1
21841 echo "$ac_t""no" 1>&6
21844 if test "$ac_cv_func_vprintf" != yes; then
21845 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21846 echo "configure:21847: checking for _doprnt" >&5
21847 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21848 echo $ac_n "(cached) $ac_c" 1>&6
21850 cat > conftest.$ac_ext <<EOF
21851 #line 21852 "configure"
21852 #include "confdefs.h"
21853 /* System header to define __stub macros and hopefully few prototypes,
21854 which can conflict with char _doprnt(); below. */
21855 #include <assert.h>
21856 /* Override any gcc2 internal prototype to avoid an error. */
21857 /* We use char because int might match the return type of a gcc2
21858 builtin and then its argument prototype would still apply. */
21864 /* The GNU C library defines this for functions which it implements
21865 to always fail with ENOSYS. Some functions are actually named
21866 something starting with __ and the normal name is an alias. */
21867 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21875 if { (eval echo configure:21876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21877 eval "ac_cv_func__doprnt=yes"
21879 echo "configure: failed program was:" >&5
21880 cat conftest.$ac_ext >&5
21882 eval "ac_cv_func__doprnt=no"
21887 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21888 echo "$ac_t""yes" 1>&6
21889 cat >> confdefs.h <<\EOF
21890 #define HAVE_DOPRNT 1
21894 echo "$ac_t""no" 1>&6
21900 if test $ac_cv_func_vprintf = yes ; then
21901 for ac_func in snprintf vsnprintf
21903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21904 echo "configure:21905: checking for $ac_func" >&5
21905 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21906 echo $ac_n "(cached) $ac_c" 1>&6
21908 cat > conftest.$ac_ext <<EOF
21909 #line 21910 "configure"
21910 #include "confdefs.h"
21911 /* System header to define __stub macros and hopefully few prototypes,
21912 which can conflict with char $ac_func(); below. */
21913 #include <assert.h>
21914 /* Override any gcc2 internal prototype to avoid an error. */
21915 /* We use char because int might match the return type of a gcc2
21916 builtin and then its argument prototype would still apply. */
21922 /* The GNU C library defines this for functions which it implements
21923 to always fail with ENOSYS. Some functions are actually named
21924 something starting with __ and the normal name is an alias. */
21925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21933 if { (eval echo configure:21934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21935 eval "ac_cv_func_$ac_func=yes"
21937 echo "configure: failed program was:" >&5
21938 cat conftest.$ac_ext >&5
21940 eval "ac_cv_func_$ac_func=no"
21945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21946 echo "$ac_t""yes" 1>&6
21947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21948 cat >> confdefs.h <<EOF
21949 #define $ac_tr_func 1
21953 echo "$ac_t""no" 1>&6
22014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22015 echo "configure:22016: checking for $ac_func" >&5
22016 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22017 echo $ac_n "(cached) $ac_c" 1>&6
22019 cat > conftest.$ac_ext <<EOF
22020 #line 22021 "configure"
22021 #include "confdefs.h"
22022 /* System header to define __stub macros and hopefully few prototypes,
22023 which can conflict with char $ac_func(); below. */
22024 #include <assert.h>
22025 /* Override any gcc2 internal prototype to avoid an error. */
22026 /* We use char because int might match the return type of a gcc2
22027 builtin and then its argument prototype would still apply. */
22033 /* The GNU C library defines this for functions which it implements
22034 to always fail with ENOSYS. Some functions are actually named
22035 something starting with __ and the normal name is an alias. */
22036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22044 if { (eval echo configure:22045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22046 eval "ac_cv_func_$ac_func=yes"
22048 echo "configure: failed program was:" >&5
22049 cat conftest.$ac_ext >&5
22051 eval "ac_cv_func_$ac_func=no"
22056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22057 echo "$ac_t""yes" 1>&6
22058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22059 cat >> confdefs.h <<EOF
22060 #define $ac_tr_func 1
22064 echo "$ac_t""no" 1>&6
22069 for ac_func in getopt
22071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22072 echo "configure:22073: checking for $ac_func" >&5
22073 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22074 echo $ac_n "(cached) $ac_c" 1>&6
22076 cat > conftest.$ac_ext <<EOF
22077 #line 22078 "configure"
22078 #include "confdefs.h"
22079 /* System header to define __stub macros and hopefully few prototypes,
22080 which can conflict with char $ac_func(); below. */
22081 #include <assert.h>
22082 /* Override any gcc2 internal prototype to avoid an error. */
22083 /* We use char because int might match the return type of a gcc2
22084 builtin and then its argument prototype would still apply. */
22090 /* The GNU C library defines this for functions which it implements
22091 to always fail with ENOSYS. Some functions are actually named
22092 something starting with __ and the normal name is an alias. */
22093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22101 if { (eval echo configure:22102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22103 eval "ac_cv_func_$ac_func=yes"
22105 echo "configure: failed program was:" >&5
22106 cat conftest.$ac_ext >&5
22108 eval "ac_cv_func_$ac_func=no"
22113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22114 echo "$ac_t""yes" 1>&6
22115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22116 cat >> confdefs.h <<EOF
22117 #define $ac_tr_func 1
22121 echo "$ac_t""no" 1>&6
22122 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22128 if test "$ac_cv_func_getopt" != yes; then
22129 LIBSRCS="$LIBSRCS getopt.c"
22131 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22132 if test "$ac_cv_func_snprintf" != yes; then
22133 cat >> confdefs.h <<\EOF
22134 #define snprintf ber_pvt_snprintf
22138 if test "$ac_cv_func_vsnprintf" != yes; then
22139 cat >> confdefs.h <<\EOF
22140 #define vsnprintf ber_pvt_vsnprintf
22146 # Check Configuration
22147 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22148 echo "configure:22149: checking declaration of sys_errlist" >&5
22149 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22150 echo $ac_n "(cached) $ac_c" 1>&6
22153 cat > conftest.$ac_ext <<EOF
22154 #line 22155 "configure"
22155 #include "confdefs.h"
22158 #include <sys/types.h>
22161 #include <stdlib.h>
22164 char *c = (char *) *sys_errlist
22167 if { (eval echo configure:22168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22169 ol_cv_dcl_sys_errlist=yes
22170 ol_cv_have_sys_errlist=yes
22172 echo "configure: failed program was:" >&5
22173 cat conftest.$ac_ext >&5
22175 ol_cv_dcl_sys_errlist=no
22180 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22182 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22183 if test $ol_cv_dcl_sys_errlist = no ; then
22184 cat >> confdefs.h <<\EOF
22185 #define DECL_SYS_ERRLIST 1
22189 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22190 echo "configure:22191: checking existence of sys_errlist" >&5
22191 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22192 echo $ac_n "(cached) $ac_c" 1>&6
22195 cat > conftest.$ac_ext <<EOF
22196 #line 22197 "configure"
22197 #include "confdefs.h"
22200 char *c = (char *) *sys_errlist
22203 if { (eval echo configure:22204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22205 ol_cv_have_sys_errlist=yes
22207 echo "configure: failed program was:" >&5
22208 cat conftest.$ac_ext >&5
22210 ol_cv_have_sys_errlist=no
22215 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22217 if test $ol_cv_have_sys_errlist = yes ; then
22218 cat >> confdefs.h <<\EOF
22219 #define HAVE_SYS_ERRLIST 1
22226 if test "$ol_enable_debug" != no ; then
22227 cat >> confdefs.h <<\EOF
22228 #define LDAP_DEBUG 1
22232 if test "$ol_enable_syslog" = yes ; then
22233 cat >> confdefs.h <<\EOF
22234 #define LDAP_SYSLOG 1
22238 if test "$ol_enable_cache" = no ; then
22239 cat >> confdefs.h <<\EOF
22240 #define LDAP_NOCACHE 1
22244 if test "$ol_link_kbind" != no ; then
22245 cat >> confdefs.h <<\EOF
22246 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22250 if test "$ol_enable_proctitle" != no ; then
22251 cat >> confdefs.h <<\EOF
22252 #define LDAP_PROCTITLE 1
22256 if test "$ol_enable_referrals" != no ; then
22257 cat >> confdefs.h <<\EOF
22258 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22262 if test "$ol_enable_local" != no; then
22263 cat >> confdefs.h <<\EOF
22264 #define LDAP_PF_LOCAL 1
22268 if test "$ol_link_ipv6" != no; then
22269 cat >> confdefs.h <<\EOF
22270 #define LDAP_PF_INET6 1
22274 if test "$ol_enable_cleartext" != no ; then
22275 cat >> confdefs.h <<\EOF
22276 #define SLAPD_CLEARTEXT 1
22280 if test "$ol_enable_crypt" != no ; then
22281 cat >> confdefs.h <<\EOF
22282 #define SLAPD_CRYPT 1
22286 if test "$ol_link_kpasswd" != no ; then
22287 cat >> confdefs.h <<\EOF
22288 #define SLAPD_KPASSWD 1
22292 if test "$ol_link_spasswd" != no ; then
22293 cat >> confdefs.h <<\EOF
22294 #define SLAPD_SPASSWD 1
22298 if test "$ol_enable_multimaster" != no ; then
22299 cat >> confdefs.h <<\EOF
22300 #define SLAPD_MULTIMASTER 1
22304 if test "$ol_enable_phonetic" != no ; then
22305 cat >> confdefs.h <<\EOF
22306 #define SLAPD_PHONETIC 1
22310 if test "$ol_enable_rlookups" != no ; then
22311 cat >> confdefs.h <<\EOF
22312 #define SLAPD_RLOOKUPS 1
22316 if test "$ol_enable_aci" != no ; then
22317 cat >> confdefs.h <<\EOF
22318 #define SLAPD_ACI_ENABLED 1
22323 if test "$ol_link_modules" != no ; then
22324 cat >> confdefs.h <<\EOF
22325 #define SLAPD_MODULES 1
22329 SLAPD_MODULES_LDFLAGS="-dlopen self"
22332 if test "$ol_enable_bdb" != no ; then
22333 cat >> confdefs.h <<\EOF
22334 #define SLAPD_BDB 1
22339 if test "$ol_with_bdb_module" != static ; then
22340 cat >> confdefs.h <<\EOF
22341 #define SLAPD_BDB_DYNAMIC 1
22345 BUILD_BDB_DYNAMIC=shared
22346 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22348 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22352 if test "$ol_link_dnssrv" != no ; then
22353 cat >> confdefs.h <<\EOF
22354 #define SLAPD_DNSSRV 1
22359 if test "$ol_with_dnssrv_module" != static ; then
22360 cat >> confdefs.h <<\EOF
22361 #define SLAPD_DNSSRV_DYNAMIC 1
22365 BUILD_DNSSRV_DYNAMIC=shared
22366 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22368 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22372 if test "$ol_enable_ldap" != no ; then
22373 cat >> confdefs.h <<\EOF
22374 #define SLAPD_LDAP 1
22379 if test "$ol_with_ldap_module" != static ; then
22380 cat >> confdefs.h <<\EOF
22381 #define SLAPD_LDAP_DYNAMIC 1
22385 BUILD_LDAP_DYNAMIC=shared
22386 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22388 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22392 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22393 cat >> confdefs.h <<\EOF
22394 #define SLAPD_LDBM 1
22399 if test "$ol_with_ldbm_module" != static ; then
22400 cat >> confdefs.h <<\EOF
22401 #define SLAPD_LDBM_DYNAMIC 1
22405 BUILD_LDBM_DYNAMIC=shared
22406 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22408 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22412 if test "$ol_enable_meta" != no ; then
22413 if test "$ol_enable_ldap" = no ; then
22414 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22416 if test "$ol_enable_rewrite" = no ; then
22417 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22419 cat >> confdefs.h <<\EOF
22420 #define SLAPD_META 1
22427 if test "$ol_with_meta_module" != static ; then
22428 cat >> confdefs.h <<\EOF
22429 #define SLAPD_META_DYNAMIC 1
22433 BUILD_META_DYNAMIC=shared
22434 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22436 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22440 if test "$ol_enable_monitor" != no ; then
22441 cat >> confdefs.h <<\EOF
22442 #define SLAPD_MONITOR 1
22447 if test "$ol_with_monitor_module" != static ; then
22448 cat >> confdefs.h <<\EOF
22449 #define SLAPD_MONITOR_DYNAMIC 1
22453 BUILD_MONITOR_DYNAMIC=shared
22454 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22456 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22460 if test "$ol_enable_null" != no ; then
22461 cat >> confdefs.h <<\EOF
22462 #define SLAPD_NULL 1
22467 if test "$ol_with_null_module" != static ; then
22468 cat >> confdefs.h <<\EOF
22469 #define SLAPD_NULL_DYNAMIC 1
22473 BUILD_NULL_DYNAMIC=shared
22474 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
22476 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
22480 if test "$ol_enable_passwd" != no ; then
22481 cat >> confdefs.h <<\EOF
22482 #define SLAPD_PASSWD 1
22487 if test "$ol_with_passwd_module" != static ; then
22488 cat >> confdefs.h <<\EOF
22489 #define SLAPD_PASSWD_DYNAMIC 1
22493 BUILD_PASSWD_DYNAMIC=shared
22494 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22496 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22500 if test "$ol_link_perl" != no ; then
22501 cat >> confdefs.h <<\EOF
22502 #define SLAPD_PERL 1
22507 if test "$ol_with_perl_module" != static ; then
22508 cat >> confdefs.h <<\EOF
22509 #define SLAPD_PERL_DYNAMIC 1
22513 BUILD_PERL_DYNAMIC=shared
22514 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22516 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22520 if test "$ol_enable_shell" != no ; then
22521 if test "$ol_link_thread" != no ; then
22522 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
22524 cat >> confdefs.h <<\EOF
22525 #define SLAPD_SHELL 1
22530 if test "$ol_with_shell_module" != static ; then
22531 cat >> confdefs.h <<\EOF
22532 #define SLAPD_SHELL_DYNAMIC 1
22536 BUILD_SHELL_DYNAMIC=shared
22537 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22539 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22543 if test "$ol_enable_tcl" != no ; then
22544 cat >> confdefs.h <<\EOF
22545 #define SLAPD_TCL 1
22550 if test "$ol_with_tcl_module" != static; then
22551 cat >> confdefs.h <<\EOF
22552 #define SLAPD_TCL_DYNAMIC 1
22556 BUILD_TCL_DYNAMIC=shared
22557 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22559 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22563 if test "$ol_link_sql" != no ; then
22564 cat >> confdefs.h <<\EOF
22565 #define SLAPD_SQL 1
22570 if test "$ol_with_sql_module" != static; then
22571 cat >> confdefs.h <<\EOF
22572 #define SLAPD_SQL_DYNAMIC 1
22576 BUILD_SQL_DYNAMIC=shared
22577 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22579 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22583 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22584 $BUILD_SLAPD = yes ; then
22588 if test "$ol_enable_rewrite" != no ; then
22589 cat >> confdefs.h <<\EOF
22590 #define ENABLE_REWRITE 1
22598 if test "$ac_cv_mingw32" = yes ; then
22600 SLAPD_MODULES_LDFLAGS=
22605 if test -z "$SLAPD_STATIC_BACKENDS"; then
22606 SLAPD_NO_STATIC='#'
22678 # Check whether --with-xxinstall or --without-xxinstall was given.
22679 if test "${with_xxinstall+set}" = set; then
22680 withval="$with_xxinstall"
22688 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22691 # Let make expand exec_prefix.
22692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22694 # Any assignment to VPATH causes Sun make to only execute
22695 # the first set of double-colon rules, so remove it if not needed.
22696 # If there is a colon in the path, we need to keep it.
22697 if test "x$srcdir" = x.; then
22698 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22701 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22703 DEFS=-DHAVE_CONFIG_H
22705 # Without the "./", some shells look in PATH for config.status.
22706 : ${CONFIG_STATUS=./config.status}
22708 echo creating $CONFIG_STATUS
22709 rm -f $CONFIG_STATUS
22710 cat > $CONFIG_STATUS <<EOF
22712 # Generated automatically by configure.
22713 # Run this file to recreate the current configuration.
22714 # This directory was configured as follows,
22715 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22717 # $0 $ac_configure_args
22719 # Compiler output produced by configure, useful for debugging
22720 # configure, is in ./config.log if it exists.
22722 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22725 case "\$ac_option" in
22726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22727 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22728 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22729 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22730 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22732 -help | --help | --hel | --he | --h)
22733 echo "\$ac_cs_usage"; exit 0 ;;
22734 *) echo "\$ac_cs_usage"; exit 1 ;;
22738 ac_given_srcdir=$srcdir
22739 ac_given_INSTALL="$INSTALL"
22741 trap 'rm -fr `echo "\
22742 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22743 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22744 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22745 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22746 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22747 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22748 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22749 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22750 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22751 include/Makefile:build/top.mk:include/Makefile.in \
22752 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22753 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22754 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22755 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22756 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22757 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22758 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22759 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22760 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22761 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22762 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22763 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22764 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22765 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22766 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22767 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22768 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22769 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22770 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22771 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22772 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22773 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22774 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22775 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22776 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22777 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22778 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22779 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22780 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22781 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22783 cat >> $CONFIG_STATUS <<EOF
22785 # Protect against being on the right side of a sed subst in config.status.
22786 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22791 s%@CFLAGS@%$CFLAGS%g
22792 s%@CPPFLAGS@%$CPPFLAGS%g
22793 s%@CXXFLAGS@%$CXXFLAGS%g
22794 s%@FFLAGS@%$FFLAGS%g
22796 s%@LDFLAGS@%$LDFLAGS%g
22798 s%@exec_prefix@%$exec_prefix%g
22799 s%@prefix@%$prefix%g
22800 s%@program_transform_name@%$program_transform_name%g
22801 s%@bindir@%$bindir%g
22802 s%@sbindir@%$sbindir%g
22803 s%@libexecdir@%$libexecdir%g
22804 s%@datadir@%$datadir%g
22805 s%@sysconfdir@%$sysconfdir%g
22806 s%@sharedstatedir@%$sharedstatedir%g
22807 s%@localstatedir@%$localstatedir%g
22808 s%@libdir@%$libdir%g
22809 s%@includedir@%$includedir%g
22810 s%@oldincludedir@%$oldincludedir%g
22811 s%@infodir@%$infodir%g
22812 s%@mandir@%$mandir%g
22814 s%@host_alias@%$host_alias%g
22815 s%@host_cpu@%$host_cpu%g
22816 s%@host_vendor@%$host_vendor%g
22817 s%@host_os@%$host_os%g
22818 s%@target@%$target%g
22819 s%@target_alias@%$target_alias%g
22820 s%@target_cpu@%$target_cpu%g
22821 s%@target_vendor@%$target_vendor%g
22822 s%@target_os@%$target_os%g
22824 s%@build_alias@%$build_alias%g
22825 s%@build_cpu@%$build_cpu%g
22826 s%@build_vendor@%$build_vendor%g
22827 s%@build_os@%$build_os%g
22828 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22829 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22830 s%@INSTALL_DATA@%$INSTALL_DATA%g
22831 s%@PACKAGE@%$PACKAGE%g
22832 s%@VERSION@%$VERSION%g
22833 s%@ACLOCAL@%$ACLOCAL%g
22834 s%@AUTOCONF@%$AUTOCONF%g
22835 s%@AUTOMAKE@%$AUTOMAKE%g
22836 s%@AUTOHEADER@%$AUTOHEADER%g
22837 s%@MAKEINFO@%$MAKEINFO%g
22838 s%@install_sh@%$install_sh%g
22841 s%@AMTARFLAGS@%$AMTARFLAGS%g
22842 s%@SET_MAKE@%$SET_MAKE%g
22843 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22844 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
22845 s%@top_builddir@%$top_builddir%g
22846 s%@ldap_subdir@%$ldap_subdir%g
22850 s%@OBJEXT@%$OBJEXT%g
22851 s%@EXEEXT@%$EXEEXT%g
22853 s%@RANLIB@%$RANLIB%g
22855 s%@DLLTOOL@%$DLLTOOL%g
22857 s%@OBJDUMP@%$OBJDUMP%g
22859 s%@LIBTOOL@%$LIBTOOL%g
22860 s%@LTSTATIC@%$LTSTATIC%g
22862 s%@PERLBIN@%$PERLBIN%g
22863 s%@OL_MKDEP@%$OL_MKDEP%g
22864 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22865 s%@LIBOBJS@%$LIBOBJS%g
22866 s%@LIBSRCS@%$LIBSRCS%g
22868 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22869 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22870 s%@BUILD_BDB@%$BUILD_BDB%g
22871 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22872 s%@BUILD_LDAP@%$BUILD_LDAP%g
22873 s%@BUILD_LDBM@%$BUILD_LDBM%g
22874 s%@BUILD_META@%$BUILD_META%g
22875 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22876 s%@BUILD_NULL@%$BUILD_NULL%g
22877 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22878 s%@BUILD_PERL@%$BUILD_PERL%g
22879 s%@BUILD_SHELL@%$BUILD_SHELL%g
22880 s%@BUILD_SQL@%$BUILD_SQL%g
22881 s%@BUILD_TCL@%$BUILD_TCL%g
22882 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22883 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22884 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22885 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22886 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22887 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22888 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
22889 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22890 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22891 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22892 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22893 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22894 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22895 s%@LDAP_LIBS@%$LDAP_LIBS%g
22896 s%@LDIF_LIBS@%$LDIF_LIBS%g
22897 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22898 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22899 s%@LDBM_LIBS@%$LDBM_LIBS%g
22900 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22901 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22902 s%@WRAP_LIBS@%$WRAP_LIBS%g
22903 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22904 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22905 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22906 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
22907 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22908 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22909 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22910 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22911 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22912 s%@KRB4_LIBS@%$KRB4_LIBS%g
22913 s%@KRB5_LIBS@%$KRB5_LIBS%g
22914 s%@READLINE_LIBS@%$READLINE_LIBS%g
22915 s%@SASL_LIBS@%$SASL_LIBS%g
22916 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22917 s%@TLS_LIBS@%$TLS_LIBS%g
22918 s%@MODULES_LIBS@%$MODULES_LIBS%g
22919 s%@AUTH_LIBS@%$AUTH_LIBS%g
22920 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22921 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22922 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22923 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22928 cat >> $CONFIG_STATUS <<\EOF
22930 # Split the substitutions into bite-sized pieces for seds with
22931 # small command number limits, like on Digital OSF/1 and HP-UX.
22932 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22933 ac_file=1 # Number of current file.
22934 ac_beg=1 # First line for current file.
22935 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22938 while $ac_more_lines; do
22939 if test $ac_beg -gt 1; then
22940 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22942 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22944 if test ! -s conftest.s$ac_file; then
22945 ac_more_lines=false
22946 rm -f conftest.s$ac_file
22948 if test -z "$ac_sed_cmds"; then
22949 ac_sed_cmds="sed -f conftest.s$ac_file"
22951 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22953 ac_file=`expr $ac_file + 1`
22955 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22958 if test -z "$ac_sed_cmds"; then
22963 cat >> $CONFIG_STATUS <<EOF
22965 CONFIG_FILES=\${CONFIG_FILES-"\
22966 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22967 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22968 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22969 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22970 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22971 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22972 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22973 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22974 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22975 include/Makefile:build/top.mk:include/Makefile.in \
22976 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22977 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22978 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22979 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22980 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22981 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22982 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22983 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22984 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22985 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22986 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22987 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22988 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22989 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22990 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22991 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22992 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22993 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22994 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
22995 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22996 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22997 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22998 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22999 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23000 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23001 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23002 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23003 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23004 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23007 cat >> $CONFIG_STATUS <<\EOF
23008 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23011 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23012 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23013 *) ac_file_in="${ac_file}.in" ;;
23016 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23018 # Remove last slash and all that follows it. Not all systems have dirname.
23019 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23020 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23021 # The file is in a subdirectory.
23022 test ! -d "$ac_dir" && mkdir "$ac_dir"
23023 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23024 # A "../" for each directory in $ac_dir_suffix.
23025 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23027 ac_dir_suffix= ac_dots=
23030 case "$ac_given_srcdir" in
23032 if test -z "$ac_dots"; then top_srcdir=.
23033 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23034 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23035 *) # Relative path.
23036 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23037 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23040 case "$ac_given_INSTALL" in
23041 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23042 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23045 echo creating "$ac_file"
23047 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23049 *[Mm]akefile*) ac_comsub="1i\\
23050 # $configure_input" ;;
23054 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23056 s%@configure_input@%$configure_input%g
23057 s%@srcdir@%$srcdir%g
23058 s%@top_srcdir@%$top_srcdir%g
23059 s%@INSTALL@%$INSTALL%g
23060 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23064 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23065 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23067 # ac_d sets the value in "#define NAME VALUE" lines.
23068 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23069 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23072 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23073 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23074 ac_uB='\([ ]\)%\1#\2define\3'
23077 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23078 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23079 ac_eB='$%\1#\2define\3'
23083 if test "${CONFIG_HEADERS+set}" != set; then
23085 cat >> $CONFIG_STATUS <<EOF
23086 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23088 cat >> $CONFIG_STATUS <<\EOF
23090 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23091 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23093 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23094 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23095 *) ac_file_in="${ac_file}.in" ;;
23098 echo creating $ac_file
23100 rm -f conftest.frag conftest.in conftest.out
23101 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23102 cat $ac_file_inputs > conftest.in
23106 # Transform confdefs.h into a sed script conftest.vals that substitutes
23107 # the proper values into config.h.in to produce config.h. And first:
23108 # Protect against being on the right side of a sed subst in config.status.
23109 # Protect against being in an unquoted here document in config.status.
23110 rm -f conftest.vals
23111 cat > conftest.hdr <<\EOF
23114 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23118 sed -n -f conftest.hdr confdefs.h > conftest.vals
23121 # This sed command replaces #undef with comments. This is necessary, for
23122 # example, in the case of _POSIX_SOURCE, which is predefined and required
23123 # on some systems where configure will not decide to define it.
23124 cat >> conftest.vals <<\EOF
23125 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23128 # Break up conftest.vals because some shells have a limit on
23129 # the size of here documents, and old seds have small limits too.
23131 rm -f conftest.tail
23134 ac_lines=`grep -c . conftest.vals`
23135 # grep -c gives empty output for an empty file on some AIX systems.
23136 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23137 # Write a limited-size here document to conftest.frag.
23138 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23139 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23141 sed -f conftest.frag conftest.in > conftest.out
23143 mv conftest.out conftest.in
23144 ' >> $CONFIG_STATUS
23145 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23146 rm -f conftest.vals
23147 mv conftest.tail conftest.vals
23149 rm -f conftest.vals
23151 cat >> $CONFIG_STATUS <<\EOF
23152 rm -f conftest.frag conftest.h
23153 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23154 cat conftest.in >> conftest.h
23156 if cmp -s $ac_file conftest.h 2>/dev/null; then
23157 echo "$ac_file is unchanged"
23160 # Remove last slash and all that follows it. Not all systems have dirname.
23161 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23162 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23163 # The file is in a subdirectory.
23164 test ! -d "$ac_dir" && mkdir "$ac_dir"
23167 mv conftest.h $ac_file
23172 cat >> $CONFIG_STATUS <<EOF
23175 cat >> $CONFIG_STATUS <<\EOF
23178 echo Please run \"make depend\" to build dependencies
23182 chmod +x $CONFIG_STATUS
23183 rm -fr confdefs* $ac_clean_files
23184 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1