3 # from OpenLDAP: pkg/ldap/configure.in,v 1.428 2002/08/28 05:12:22 hyc 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`
874 TN=`$SHTOOL echo -e %b`
876 echo "Configuring $TB$OL_STRING$TN ..."
879 echo $ac_n "checking host system type""... $ac_c" 1>&6
880 echo "configure:881: checking host system type" >&5
881 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 ac_cv_host_alias=$host
889 case "$ac_cv_host_alias" in
893 if ac_cv_host_alias=`$ac_config_guess`; then :
894 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
896 *) ac_cv_host_alias=$nonopt ;;
900 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
901 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
902 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
903 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
905 echo $ac_n "(cached) $ac_c" 1>&6
908 echo "$ac_t""$ac_cv_host" 1>&6
911 host_alias=$ac_cv_host_alias
912 host_cpu=$ac_cv_host_cpu
913 host_vendor=$ac_cv_host_vendor
914 host_os=$ac_cv_host_os
920 echo $ac_n "checking target system type""... $ac_c" 1>&6
921 echo "configure:922: checking target system type" >&5
922 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
924 # Make sure we can run config.sub.
925 if $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 ac_cv_target_alias=$target
930 case "$ac_cv_target_alias" in
934 ac_cv_target_alias=$host_alias ;;
936 *) ac_cv_target_alias=$nonopt ;;
940 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
941 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
942 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
943 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
945 echo $ac_n "(cached) $ac_c" 1>&6
948 echo "$ac_t""$ac_cv_target" 1>&6
951 target_alias=$ac_cv_target_alias
952 target_cpu=$ac_cv_target_cpu
953 target_vendor=$ac_cv_target_vendor
954 target_os=$ac_cv_target_os
960 echo $ac_n "checking build system type""... $ac_c" 1>&6
961 echo "configure:962: checking build system type" >&5
962 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
964 # Make sure we can run config.sub.
965 if $ac_config_sub sun4 >/dev/null 2>&1; then :
966 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
969 ac_cv_build_alias=$build
970 case "$ac_cv_build_alias" in
974 ac_cv_build_alias=$host_alias ;;
976 *) ac_cv_build_alias=$nonopt ;;
980 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
981 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
982 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
983 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
985 echo $ac_n "(cached) $ac_c" 1>&6
988 echo "$ac_t""$ac_cv_build" 1>&6
991 build_alias=$ac_cv_build_alias
992 build_cpu=$ac_cv_build_cpu
993 build_vendor=$ac_cv_build_vendor
994 build_os=$ac_cv_build_os
1000 # Do some error checking and defaulting for the host and target type.
1002 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1005 # 1. You are not allowed to specify --host, --target, and nonopt at the
1007 # 2. Host defaults to nonopt.
1008 # 3. If nonopt is not specified, then host defaults to the current host,
1009 # as determined by config.guess.
1010 # 4. Target and build default to nonopt.
1011 # 5. If nonopt is not specified, then target and build default to host.
1013 # The aliases save the names the user supplied, while $host etc.
1014 # will get canonicalized.
1015 case $host---$target---$nonopt in
1016 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1017 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1020 test "$host_alias" != "$target_alias" &&
1021 test "$program_prefix$program_suffix$program_transform_name" = \
1023 program_prefix=${target_alias}-
1026 # Find a good install program. We prefer a C program (faster),
1027 # so one script is as good as another. But avoid the broken or
1028 # incompatible versions:
1029 # SysV /etc/install, /usr/sbin/install
1030 # SunOS /usr/etc/install
1031 # IRIX /sbin/install
1033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1036 # ./install, which can be erroneously created by make from ./install.sh.
1037 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1038 echo "configure:1039: checking for a BSD compatible install" >&5
1039 if test -z "$INSTALL"; then
1040 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1044 for ac_dir in $PATH; do
1045 # Account for people who put trailing slashes in PATH elements.
1047 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 # Don't use installbsd from OSF since it installs stuff as root
1052 for ac_prog in ginstall scoinst install; do
1053 if test -f $ac_dir/$ac_prog; then
1054 if test $ac_prog = install &&
1055 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # AIX install. It has an incompatible calling convention.
1058 elif test $ac_prog = install &&
1059 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1060 # program-specific install script used by HP pwplus--don't use.
1063 ac_cv_path_install="$ac_dir/$ac_prog -c"
1074 if test "${ac_cv_path_install+set}" = set; then
1075 INSTALL="$ac_cv_path_install"
1077 # As a last resort, use the slow shell script. We don't cache a
1078 # path for INSTALL within a source directory, because that will
1079 # break other packages using the cache if that directory is
1080 # removed, or if the path is relative.
1081 INSTALL="$ac_install_sh"
1084 echo "$ac_t""$INSTALL" 1>&6
1086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1087 # It thinks the first close brace ends the variable substitution.
1088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1094 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether build environment is sane" >&5
1098 echo timestamp > conftestfile
1099 # Do `set' in a subshell so we don't clobber the current shell's
1100 # arguments. Must try -L first in case configure is actually a
1101 # symlink; some systems play weird games with the mod time of symlinks
1102 # (eg FreeBSD returns the mod time of the symlink's containing
1105 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1106 if test "$*" = "X"; then
1108 set X `ls -t $srcdir/configure conftestfile`
1110 if test "$*" != "X $srcdir/configure conftestfile" \
1111 && test "$*" != "X conftestfile $srcdir/configure"; then
1113 # If neither matched, then we have a broken ls. This can happen
1114 # if, for instance, CONFIG_SHELL is bash and it inherits a
1115 # broken ls alias from the environment. This has actually
1116 # happened. Such a system could not be considered "sane".
1117 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1118 alias in your environment" 1>&2; exit 1; }
1121 test "$2" = conftestfile
1127 { echo "configure: error: newly created file is older than distributed files!
1128 Check your system clock" 1>&2; exit 1; }
1131 echo "$ac_t""yes" 1>&6
1132 if test "$program_transform_name" = s,x,x,; then
1133 program_transform_name=
1135 # Double any \ or $. echo might interpret backslashes.
1136 cat <<\EOF_SED > conftestsed
1137 s,\\,\\\\,g; s,\$,$$,g
1139 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1142 test "$program_prefix" != NONE &&
1143 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1144 # Use a double $ so make ignores it.
1145 test "$program_suffix" != NONE &&
1146 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1148 # sed with no file args requires a program.
1149 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1151 for ac_prog in mawk gawk nawk awk
1153 # Extract the first word of "$ac_prog", so it can be a program name with args.
1154 set dummy $ac_prog; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$AWK"; then
1161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_AWK="$ac_prog"
1175 AWK="$ac_cv_prog_AWK"
1176 if test -n "$AWK"; then
1177 echo "$ac_t""$AWK" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 test -n "$AWK" && break
1185 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether ${MAKE-make} sets \${MAKE}" >&5
1187 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1188 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 cat > conftestmake <<\EOF
1193 @echo 'ac_maketemp="${MAKE}"'
1195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1196 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1197 if test -n "$ac_maketemp"; then
1198 eval ac_cv_prog_make_${ac_make}_set=yes
1200 eval ac_cv_prog_make_${ac_make}_set=no
1204 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1205 echo "$ac_t""yes" 1>&6
1208 echo "$ac_t""no" 1>&6
1209 SET_MAKE="MAKE=${MAKE-make}"
1218 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1219 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1224 missing_dir=`cd $ac_aux_dir && pwd`
1225 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1226 echo "configure:1227: checking for working aclocal" >&5
1227 # Run test in a subshell; some versions of sh will print an error if
1228 # an executable is not found, even if stderr is redirected.
1229 # Redirect stdin to placate older versions of autoconf. Sigh.
1230 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1232 echo "$ac_t""found" 1>&6
1234 ACLOCAL="$missing_dir/missing aclocal"
1235 echo "$ac_t""missing" 1>&6
1238 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1239 echo "configure:1240: checking for working autoconf" >&5
1240 # Run test in a subshell; some versions of sh will print an error if
1241 # an executable is not found, even if stderr is redirected.
1242 # Redirect stdin to placate older versions of autoconf. Sigh.
1243 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1245 echo "$ac_t""found" 1>&6
1247 AUTOCONF="$missing_dir/missing autoconf"
1248 echo "$ac_t""missing" 1>&6
1251 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1252 echo "configure:1253: checking for working automake" >&5
1253 # Run test in a subshell; some versions of sh will print an error if
1254 # an executable is not found, even if stderr is redirected.
1255 # Redirect stdin to placate older versions of autoconf. Sigh.
1256 if (automake --version) < /dev/null > /dev/null 2>&1; then
1258 echo "$ac_t""found" 1>&6
1260 AUTOMAKE="$missing_dir/missing automake"
1261 echo "$ac_t""missing" 1>&6
1264 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1265 echo "configure:1266: checking for working autoheader" >&5
1266 # Run test in a subshell; some versions of sh will print an error if
1267 # an executable is not found, even if stderr is redirected.
1268 # Redirect stdin to placate older versions of autoconf. Sigh.
1269 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1270 AUTOHEADER=autoheader
1271 echo "$ac_t""found" 1>&6
1273 AUTOHEADER="$missing_dir/missing autoheader"
1274 echo "$ac_t""missing" 1>&6
1277 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1278 echo "configure:1279: checking for working makeinfo" >&5
1279 # Run test in a subshell; some versions of sh will print an error if
1280 # an executable is not found, even if stderr is redirected.
1281 # Redirect stdin to placate older versions of autoconf. Sigh.
1282 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1284 echo "$ac_t""found" 1>&6
1286 MAKEINFO="$missing_dir/missing makeinfo"
1287 echo "$ac_t""missing" 1>&6
1290 install_sh="$missing_dir/install-sh"
1291 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1293 for ac_prog in gnutar gtar tar
1295 # Extract the first word of "$ac_prog", so it can be a program name with args.
1296 set dummy $ac_prog; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$AMTAR"; then
1303 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AMTAR="$ac_prog"
1317 AMTAR="$ac_cv_prog_AMTAR"
1318 if test -n "$AMTAR"; then
1319 echo "$ac_t""$AMTAR" 1>&6
1321 echo "$ac_t""no" 1>&6
1324 test -n "$AMTAR" && break
1329 if test -n "$AMTAR"; then
1330 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_PACKAGE "$PACKAGE"
1339 cat >> confdefs.h <<EOF
1340 #define OPENLDAP_VERSION "$VERSION"
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION $OL_API_INC
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1361 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1367 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1368 echo "configure:1369: checking configure arguments" >&5
1373 ldap_subdir="/openldap"
1375 # Check whether --with-subdir or --without-subdir was given.
1376 if test "${with_subdir+set}" = set; then
1377 withval="$with_subdir"
1384 ldap_subdir="$withval"
1387 ldap_subdir="/$withval"
1394 # OpenLDAP --enable-debug
1395 # Check whether --enable-debug or --disable-debug was given.
1396 if test "${enable_debug+set}" = set; then
1397 enableval="$enable_debug"
1400 for ol_val in auto yes no ; do
1401 if test "$enableval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1408 ol_enable_debug="$ol_arg"
1411 ol_enable_debug="yes"
1413 # end --enable-debug
1414 # OpenLDAP --enable-syslog
1415 # Check whether --enable-syslog or --disable-syslog was given.
1416 if test "${enable_syslog+set}" = set; then
1417 enableval="$enable_syslog"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1428 ol_enable_syslog="$ol_arg"
1431 ol_enable_syslog="auto"
1433 # end --enable-syslog
1434 # OpenLDAP --enable-proctitle
1435 # Check whether --enable-proctitle or --disable-proctitle was given.
1436 if test "${enable_proctitle+set}" = set; then
1437 enableval="$enable_proctitle"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1448 ol_enable_proctitle="$ol_arg"
1451 ol_enable_proctitle="yes"
1453 # end --enable-proctitle
1454 # OpenLDAP --enable-cache
1455 # Check whether --enable-cache or --disable-cache was given.
1456 if test "${enable_cache+set}" = set; then
1457 enableval="$enable_cache"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1468 ol_enable_cache="$ol_arg"
1471 ol_enable_cache="no"
1473 # end --enable-cache
1474 # OpenLDAP --enable-referrals
1475 # Check whether --enable-referrals or --disable-referrals was given.
1476 if test "${enable_referrals+set}" = set; then
1477 enableval="$enable_referrals"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1488 ol_enable_referrals="$ol_arg"
1491 ol_enable_referrals="no"
1493 # end --enable-referrals
1494 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1535 # OpenLDAP --enable-x_compile
1536 # Check whether --enable-x_compile or --disable-x_compile was given.
1537 if test "${enable_x_compile+set}" = set; then
1538 enableval="$enable_x_compile"
1541 for ol_val in yes no ; do
1542 if test "$enableval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1549 ol_enable_x_compile="$ol_arg"
1552 ol_enable_x_compile="no"
1554 # end --enable-x_compile
1557 # OpenLDAP --with-cyrus_sasl
1558 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1559 if test "${with_cyrus_sasl+set}" = set; then
1560 withval="$with_cyrus_sasl"
1563 for ol_val in auto yes no ; do
1564 if test "$withval" = "$ol_val" ; then
1568 if test "$ol_arg" = "invalid" ; then
1569 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1571 ol_with_cyrus_sasl="$ol_arg"
1574 ol_with_cyrus_sasl="auto"
1576 # end --with-cyrus_sasl
1578 # OpenLDAP --with-fetch
1579 # Check whether --with-fetch or --without-fetch was given.
1580 if test "${with_fetch+set}" = set; then
1581 withval="$with_fetch"
1584 for ol_val in auto yes no ; do
1585 if test "$withval" = "$ol_val" ; then
1589 if test "$ol_arg" = "invalid" ; then
1590 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1592 ol_with_fetch="$ol_arg"
1595 ol_with_fetch="auto"
1599 # OpenLDAP --with-kerberos
1600 # Check whether --with-kerberos or --without-kerberos was given.
1601 if test "${with_kerberos+set}" = set; then
1602 withval="$with_kerberos"
1605 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1606 if test "$withval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1613 ol_with_kerberos="$ol_arg"
1616 ol_with_kerberos="auto"
1618 # end --with-kerberos
1620 # OpenLDAP --with-readline
1621 # Check whether --with-readline or --without-readline was given.
1622 if test "${with_readline+set}" = set; then
1623 withval="$with_readline"
1626 for ol_val in auto yes no ; do
1627 if test "$withval" = "$ol_val" ; then
1631 if test "$ol_arg" = "invalid" ; then
1632 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1634 ol_with_readline="$ol_arg"
1637 ol_with_readline="auto"
1639 # end --with-readline
1641 # OpenLDAP --with-threads
1642 # Check whether --with-threads or --without-threads was given.
1643 if test "${with_threads+set}" = set; then
1644 withval="$with_threads"
1647 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1648 if test "$withval" = "$ol_val" ; then
1652 if test "$ol_arg" = "invalid" ; then
1653 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1655 ol_with_threads="$ol_arg"
1658 ol_with_threads="auto"
1660 # end --with-threads
1662 # OpenLDAP --with-tls
1663 # Check whether --with-tls or --without-tls was given.
1664 if test "${with_tls+set}" = set; then
1668 for ol_val in auto ssleay openssl yes no ; do
1669 if test "$withval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1676 ol_with_tls="$ol_arg"
1683 # OpenLDAP --with-yielding_select
1684 # Check whether --with-yielding_select or --without-yielding_select was given.
1685 if test "${with_yielding_select+set}" = set; then
1686 withval="$with_yielding_select"
1689 for ol_val in auto yes no manual ; do
1690 if test "$withval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1697 ol_with_yielding_select="$ol_arg"
1700 ol_with_yielding_select="auto"
1702 # end --with-yielding_select
1706 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1707 if test "${with_xxslapdoptions+set}" = set; then
1708 withval="$with_xxslapdoptions"
1712 # OpenLDAP --enable-slapd
1713 # Check whether --enable-slapd or --disable-slapd was given.
1714 if test "${enable_slapd+set}" = set; then
1715 enableval="$enable_slapd"
1718 for ol_val in auto yes no ; do
1719 if test "$enableval" = "$ol_val" ; then
1723 if test "$ol_arg" = "invalid" ; then
1724 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1726 ol_enable_slapd="$ol_arg"
1729 ol_enable_slapd="yes"
1731 # end --enable-slapd
1732 # OpenLDAP --enable-aci
1733 # Check whether --enable-aci or --disable-aci was given.
1734 if test "${enable_aci+set}" = set; then
1735 enableval="$enable_aci"
1738 for ol_val in auto yes no ; do
1739 if test "$enableval" = "$ol_val" ; then
1743 if test "$ol_arg" = "invalid" ; then
1744 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1746 ol_enable_aci="$ol_arg"
1752 # OpenLDAP --enable-cleartext
1753 # Check whether --enable-cleartext or --disable-cleartext was given.
1754 if test "${enable_cleartext+set}" = set; then
1755 enableval="$enable_cleartext"
1758 for ol_val in auto yes no ; do
1759 if test "$enableval" = "$ol_val" ; then
1763 if test "$ol_arg" = "invalid" ; then
1764 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1766 ol_enable_cleartext="$ol_arg"
1769 ol_enable_cleartext="yes"
1771 # end --enable-cleartext
1772 # OpenLDAP --enable-crypt
1773 # Check whether --enable-crypt or --disable-crypt was given.
1774 if test "${enable_crypt+set}" = set; then
1775 enableval="$enable_crypt"
1778 for ol_val in auto yes no ; do
1779 if test "$enableval" = "$ol_val" ; then
1783 if test "$ol_arg" = "invalid" ; then
1784 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1786 ol_enable_crypt="$ol_arg"
1789 ol_enable_crypt="no"
1791 # end --enable-crypt
1792 # OpenLDAP --enable-dynamic
1793 # Check whether --enable-dynamic or --disable-dynamic was given.
1794 if test "${enable_dynamic+set}" = set; then
1795 enableval="$enable_dynamic"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1806 ol_enable_dynamic="$ol_arg"
1809 ol_enable_dynamic="no"
1811 # end --enable-dynamic
1812 # OpenLDAP --enable-kpasswd
1813 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1814 if test "${enable_kpasswd+set}" = set; then
1815 enableval="$enable_kpasswd"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1826 ol_enable_kpasswd="$ol_arg"
1829 ol_enable_kpasswd="no"
1831 # end --enable-kpasswd
1832 # OpenLDAP --enable-lmpasswd
1833 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1834 if test "${enable_lmpasswd+set}" = set; then
1835 enableval="$enable_lmpasswd"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1846 ol_enable_lmpasswd="$ol_arg"
1849 ol_enable_lmpasswd="no"
1851 # end --enable-lmpasswd
1852 # OpenLDAP --enable-spasswd
1853 # Check whether --enable-spasswd or --disable-spasswd was given.
1854 if test "${enable_spasswd+set}" = set; then
1855 enableval="$enable_spasswd"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1866 ol_enable_spasswd="$ol_arg"
1869 ol_enable_spasswd="no"
1871 # end --enable-spasswd
1872 # OpenLDAP --enable-modules
1873 # Check whether --enable-modules or --disable-modules was given.
1874 if test "${enable_modules+set}" = set; then
1875 enableval="$enable_modules"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1886 ol_enable_modules="$ol_arg"
1889 ol_enable_modules="no"
1891 # end --enable-modules
1892 ol_enable_multimaster=${ol_enable_multimaster-no}
1893 # OpenLDAP --enable-phonetic
1894 # Check whether --enable-phonetic or --disable-phonetic was given.
1895 if test "${enable_phonetic+set}" = set; then
1896 enableval="$enable_phonetic"
1899 for ol_val in auto yes no ; do
1900 if test "$enableval" = "$ol_val" ; then
1904 if test "$ol_arg" = "invalid" ; then
1905 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1907 ol_enable_phonetic="$ol_arg"
1910 ol_enable_phonetic="no"
1912 # end --enable-phonetic
1913 # OpenLDAP --enable-rewrite
1914 # Check whether --enable-rewrite or --disable-rewrite was given.
1915 if test "${enable_rewrite+set}" = set; then
1916 enableval="$enable_rewrite"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1927 ol_enable_rewrite="$ol_arg"
1930 ol_enable_rewrite="no"
1932 # end --enable-rewrite
1933 # OpenLDAP --enable-rlookups
1934 # Check whether --enable-rlookups or --disable-rlookups was given.
1935 if test "${enable_rlookups+set}" = set; then
1936 enableval="$enable_rlookups"
1939 for ol_val in auto yes no ; do
1940 if test "$enableval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1947 ol_enable_rlookups="$ol_arg"
1950 ol_enable_rlookups="no"
1952 # end --enable-rlookups
1953 # OpenLDAP --enable-slp
1954 # Check whether --enable-slp or --disable-slp was given.
1955 if test "${enable_slp+set}" = set; then
1956 enableval="$enable_slp"
1959 for ol_val in auto yes no ; do
1960 if test "$enableval" = "$ol_val" ; then
1964 if test "$ol_arg" = "invalid" ; then
1965 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1967 ol_enable_slp="$ol_arg"
1973 # OpenLDAP --enable-wrappers
1974 # Check whether --enable-wrappers or --disable-wrappers was given.
1975 if test "${enable_wrappers+set}" = set; then
1976 enableval="$enable_wrappers"
1979 for ol_val in auto yes no ; do
1980 if test "$enableval" = "$ol_val" ; then
1984 if test "$ol_arg" = "invalid" ; then
1985 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1987 ol_enable_wrappers="$ol_arg"
1990 ol_enable_wrappers="no"
1992 # end --enable-wrappers
1994 # OpenLDAP --enable-bdb
1995 # Check whether --enable-bdb or --disable-bdb was given.
1996 if test "${enable_bdb+set}" = set; then
1997 enableval="$enable_bdb"
2000 for ol_val in auto yes no ; do
2001 if test "$enableval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2008 ol_enable_bdb="$ol_arg"
2014 # OpenLDAP --with-bdb_module
2015 # Check whether --with-bdb_module or --without-bdb_module was given.
2016 if test "${with_bdb_module+set}" = set; then
2017 withval="$with_bdb_module"
2020 for ol_val in static dynamic ; do
2021 if test "$withval" = "$ol_val" ; then
2025 if test "$ol_arg" = "invalid" ; then
2026 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2028 ol_with_bdb_module="$ol_arg"
2031 ol_with_bdb_module="static"
2033 # end --with-bdb_module
2035 # OpenLDAP --enable-dnssrv
2036 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2037 if test "${enable_dnssrv+set}" = set; then
2038 enableval="$enable_dnssrv"
2041 for ol_val in auto yes no ; do
2042 if test "$enableval" = "$ol_val" ; then
2046 if test "$ol_arg" = "invalid" ; then
2047 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2049 ol_enable_dnssrv="$ol_arg"
2052 ol_enable_dnssrv="no"
2054 # end --enable-dnssrv
2055 # OpenLDAP --with-dnssrv_module
2056 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2057 if test "${with_dnssrv_module+set}" = set; then
2058 withval="$with_dnssrv_module"
2061 for ol_val in static dynamic ; do
2062 if test "$withval" = "$ol_val" ; then
2066 if test "$ol_arg" = "invalid" ; then
2067 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2069 ol_with_dnssrv_module="$ol_arg"
2072 ol_with_dnssrv_module="static"
2074 # end --with-dnssrv_module
2076 # OpenLDAP --enable-ldap
2077 # Check whether --enable-ldap or --disable-ldap was given.
2078 if test "${enable_ldap+set}" = set; then
2079 enableval="$enable_ldap"
2082 for ol_val in auto yes no ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2090 ol_enable_ldap="$ol_arg"
2096 # OpenLDAP --with-ldap_module
2097 # Check whether --with-ldap_module or --without-ldap_module was given.
2098 if test "${with_ldap_module+set}" = set; then
2099 withval="$with_ldap_module"
2102 for ol_val in static dynamic ; do
2103 if test "$withval" = "$ol_val" ; then
2107 if test "$ol_arg" = "invalid" ; then
2108 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2110 ol_with_ldap_module="$ol_arg"
2113 ol_with_ldap_module="static"
2115 # end --with-ldap_module
2117 # OpenLDAP --enable-ldbm
2118 # Check whether --enable-ldbm or --disable-ldbm was given.
2119 if test "${enable_ldbm+set}" = set; then
2120 enableval="$enable_ldbm"
2123 for ol_val in auto yes no ; do
2124 if test "$enableval" = "$ol_val" ; then
2128 if test "$ol_arg" = "invalid" ; then
2129 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2131 ol_enable_ldbm="$ol_arg"
2137 # OpenLDAP --with-ldbm_api
2138 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2139 if test "${with_ldbm_api+set}" = set; then
2140 withval="$with_ldbm_api"
2143 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2144 if test "$withval" = "$ol_val" ; then
2148 if test "$ol_arg" = "invalid" ; then
2149 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2151 ol_with_ldbm_api="$ol_arg"
2154 ol_with_ldbm_api="auto"
2156 # end --with-ldbm_api
2158 # OpenLDAP --with-ldbm_module
2159 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2160 if test "${with_ldbm_module+set}" = set; then
2161 withval="$with_ldbm_module"
2164 for ol_val in static dynamic ; do
2165 if test "$withval" = "$ol_val" ; then
2169 if test "$ol_arg" = "invalid" ; then
2170 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2172 ol_with_ldbm_module="$ol_arg"
2175 ol_with_ldbm_module="static"
2177 # end --with-ldbm_module
2179 # OpenLDAP --with-ldbm_type
2180 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2181 if test "${with_ldbm_type+set}" = set; then
2182 withval="$with_ldbm_type"
2185 for ol_val in auto btree hash ; do
2186 if test "$withval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2193 ol_with_ldbm_type="$ol_arg"
2196 ol_with_ldbm_type="auto"
2198 # end --with-ldbm_type
2200 # OpenLDAP --enable-meta
2201 # Check whether --enable-meta or --disable-meta was given.
2202 if test "${enable_meta+set}" = set; then
2203 enableval="$enable_meta"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2214 ol_enable_meta="$ol_arg"
2220 # OpenLDAP --with-meta_module
2221 # Check whether --with-meta_module or --without-meta_module was given.
2222 if test "${with_meta_module+set}" = set; then
2223 withval="$with_meta_module"
2226 for ol_val in static dynamic ; do
2227 if test "$withval" = "$ol_val" ; then
2231 if test "$ol_arg" = "invalid" ; then
2232 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2234 ol_with_meta_module="$ol_arg"
2237 ol_with_meta_module="static"
2239 # end --with-meta_module
2241 # OpenLDAP --enable-monitor
2242 # Check whether --enable-monitor or --disable-monitor was given.
2243 if test "${enable_monitor+set}" = set; then
2244 enableval="$enable_monitor"
2247 for ol_val in auto yes no ; do
2248 if test "$enableval" = "$ol_val" ; then
2252 if test "$ol_arg" = "invalid" ; then
2253 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2255 ol_enable_monitor="$ol_arg"
2258 ol_enable_monitor="no"
2260 # end --enable-monitor
2261 # OpenLDAP --with-monitor_module
2262 # Check whether --with-monitor_module or --without-monitor_module was given.
2263 if test "${with_monitor_module+set}" = set; then
2264 withval="$with_monitor_module"
2267 for ol_val in static dynamic ; do
2268 if test "$withval" = "$ol_val" ; then
2272 if test "$ol_arg" = "invalid" ; then
2273 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2275 ol_with_monitor_module="$ol_arg"
2278 ol_with_monitor_module="static"
2280 # end --with-monitor_module
2282 # OpenLDAP --enable-null
2283 # Check whether --enable-null or --disable-null was given.
2284 if test "${enable_null+set}" = set; then
2285 enableval="$enable_null"
2288 for ol_val in auto yes no ; do
2289 if test "$enableval" = "$ol_val" ; then
2293 if test "$ol_arg" = "invalid" ; then
2294 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2296 ol_enable_null="$ol_arg"
2302 # OpenLDAP --with-null_module
2303 # Check whether --with-null_module or --without-null_module was given.
2304 if test "${with_null_module+set}" = set; then
2305 withval="$with_null_module"
2308 for ol_val in static dynamic ; do
2309 if test "$withval" = "$ol_val" ; then
2313 if test "$ol_arg" = "invalid" ; then
2314 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2316 ol_with_null_module="$ol_arg"
2319 ol_with_null_module="static"
2321 # end --with-null_module
2323 # OpenLDAP --enable-passwd
2324 # Check whether --enable-passwd or --disable-passwd was given.
2325 if test "${enable_passwd+set}" = set; then
2326 enableval="$enable_passwd"
2329 for ol_val in auto yes no ; do
2330 if test "$enableval" = "$ol_val" ; then
2334 if test "$ol_arg" = "invalid" ; then
2335 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2337 ol_enable_passwd="$ol_arg"
2340 ol_enable_passwd="no"
2342 # end --enable-passwd
2343 # OpenLDAP --with-passwd_module
2344 # Check whether --with-passwd_module or --without-passwd_module was given.
2345 if test "${with_passwd_module+set}" = set; then
2346 withval="$with_passwd_module"
2349 for ol_val in static dynamic ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2357 ol_with_passwd_module="$ol_arg"
2360 ol_with_passwd_module="static"
2362 # end --with-passwd_module
2364 # OpenLDAP --enable-perl
2365 # Check whether --enable-perl or --disable-perl was given.
2366 if test "${enable_perl+set}" = set; then
2367 enableval="$enable_perl"
2370 for ol_val in auto yes no ; do
2371 if test "$enableval" = "$ol_val" ; then
2375 if test "$ol_arg" = "invalid" ; then
2376 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2378 ol_enable_perl="$ol_arg"
2384 # OpenLDAP --with-perl_module
2385 # Check whether --with-perl_module or --without-perl_module was given.
2386 if test "${with_perl_module+set}" = set; then
2387 withval="$with_perl_module"
2390 for ol_val in static dynamic ; do
2391 if test "$withval" = "$ol_val" ; then
2395 if test "$ol_arg" = "invalid" ; then
2396 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2398 ol_with_perl_module="$ol_arg"
2401 ol_with_perl_module="static"
2403 # end --with-perl_module
2405 # OpenLDAP --enable-shell
2406 # Check whether --enable-shell or --disable-shell was given.
2407 if test "${enable_shell+set}" = set; then
2408 enableval="$enable_shell"
2411 for ol_val in auto yes no ; do
2412 if test "$enableval" = "$ol_val" ; then
2416 if test "$ol_arg" = "invalid" ; then
2417 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2419 ol_enable_shell="$ol_arg"
2422 ol_enable_shell="no"
2424 # end --enable-shell
2425 # OpenLDAP --with-shell_module
2426 # Check whether --with-shell_module or --without-shell_module was given.
2427 if test "${with_shell_module+set}" = set; then
2428 withval="$with_shell_module"
2431 for ol_val in static dynamic ; do
2432 if test "$withval" = "$ol_val" ; then
2436 if test "$ol_arg" = "invalid" ; then
2437 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2439 ol_with_shell_module="$ol_arg"
2442 ol_with_shell_module="static"
2444 # end --with-shell_module
2446 # OpenLDAP --enable-sql
2447 # Check whether --enable-sql or --disable-sql was given.
2448 if test "${enable_sql+set}" = set; then
2449 enableval="$enable_sql"
2452 for ol_val in auto yes no ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2460 ol_enable_sql="$ol_arg"
2466 # OpenLDAP --with-sql_module
2467 # Check whether --with-sql_module or --without-sql_module was given.
2468 if test "${with_sql_module+set}" = set; then
2469 withval="$with_sql_module"
2472 for ol_val in static dynamic ; do
2473 if test "$withval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2480 ol_with_sql_module="$ol_arg"
2483 ol_with_sql_module="static"
2485 # end --with-sql_module
2487 # OpenLDAP --enable-tcl
2488 # Check whether --enable-tcl or --disable-tcl was given.
2489 if test "${enable_tcl+set}" = set; then
2490 enableval="$enable_tcl"
2493 for ol_val in auto yes no ; do
2494 if test "$enableval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2501 ol_enable_tcl="$ol_arg"
2507 # OpenLDAP --with-tcl_module
2508 # Check whether --with-tcl_module or --without-tcl_module was given.
2509 if test "${with_tcl_module+set}" = set; then
2510 withval="$with_tcl_module"
2513 for ol_val in static dynamic ; do
2514 if test "$withval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2521 ol_with_tcl_module="$ol_arg"
2524 ol_with_tcl_module="static"
2526 # end --with-tcl_module
2529 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2530 if test "${with_xxslurpdoptions+set}" = set; then
2531 withval="$with_xxslurpdoptions"
2535 # OpenLDAP --enable-slurpd
2536 # Check whether --enable-slurpd or --disable-slurpd was given.
2537 if test "${enable_slurpd+set}" = set; then
2538 enableval="$enable_slurpd"
2541 for ol_val in auto yes no ; do
2542 if test "$enableval" = "$ol_val" ; then
2546 if test "$ol_arg" = "invalid" ; then
2547 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2549 ol_enable_slurpd="$ol_arg"
2552 ol_enable_slurpd="auto"
2554 # end --enable-slurpd
2556 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2557 if test "${with_xxliboptions+set}" = set; then
2558 withval="$with_xxliboptions"
2562 # Check whether --enable-static or --disable-static was given.
2563 if test "${enable_static+set}" = set; then
2564 enableval="$enable_static"
2565 p=${PACKAGE-default}
2567 yes) enable_static=yes ;;
2568 no) enable_static=no ;;
2571 # Look at the argument we got. We use all the common list separators.
2572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2573 for pkg in $enableval; do
2574 if test "X$pkg" = "X$p"; then
2585 # Check whether --enable-shared or --disable-shared was given.
2586 if test "${enable_shared+set}" = set; then
2587 enableval="$enable_shared"
2588 p=${PACKAGE-default}
2590 yes) enable_shared=yes ;;
2591 no) enable_shared=no ;;
2594 # Look at the argument we got. We use all the common list separators.
2595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2596 for pkg in $enableval; do
2597 if test "X$pkg" = "X$p"; then
2611 if test $ol_enable_slapd = no ; then
2612 if test $ol_enable_bdb = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2615 if test $ol_enable_dnssrv = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2618 if test $ol_enable_ldap = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2621 if test $ol_enable_ldbm = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2624 if test $ol_enable_meta = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2627 if test $ol_enable_monitor = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2630 if test $ol_enable_null = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2633 if test $ol_enable_passwd = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2636 if test $ol_enable_perl = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2639 if test $ol_enable_shell = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2642 if test $ol_enable_tcl = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2645 if test $ol_enable_sql = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2648 if test $ol_enable_modules = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2651 if test $ol_enable_multimaster = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2654 if test $ol_enable_wrappers = yes ; then
2655 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2657 if test $ol_enable_phonetic = yes ; then
2658 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2660 if test $ol_enable_rlookups = yes ; then
2661 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2663 if test $ol_enable_aci = yes ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2666 if test $ol_with_ldbm_api != auto ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2669 if test $ol_with_ldbm_type != auto ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2672 if test $ol_with_bdb_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2675 if test $ol_with_dnssrv_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2678 if test $ol_with_ldap_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2681 if test $ol_with_ldbm_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2684 if test $ol_with_meta_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2687 if test $ol_with_monitor_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2690 if test $ol_with_null_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2693 if test $ol_with_passwd_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2696 if test $ol_with_perl_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2699 if test $ol_with_shell_module != static ; then
2700 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2702 if test $ol_with_tcl_module != static ; then
2703 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2705 if test $ol_with_sql_module != static ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2708 if test $ol_enable_slurpd = yes ; then
2709 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2711 if test $ol_enable_rewrite = yes ; then
2712 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2715 # force settings to no
2721 ol_enable_monitor=no
2729 ol_enable_modules=no
2730 ol_enable_multimaster=no
2731 ol_enable_phonetic=no
2732 ol_enable_rlookups=no
2734 ol_enable_wrappers=no
2735 ol_enable_dynamic=no
2738 ol_with_ldbm_type=no
2740 ol_with_bdb_module=static
2741 ol_with_dnssrv_module=static
2742 ol_with_ldap_module=static
2743 ol_with_ldbm_module=static
2744 ol_with_meta_module=static
2745 ol_with_monitor_module=static
2746 ol_with_null_module=static
2747 ol_with_passwd_module=static
2748 ol_with_perl_module=static
2749 ol_with_shell_module=static
2750 ol_with_tcl_module=static
2751 ol_with_sql_module=static
2755 ol_enable_rewrite=no
2757 elif test $ol_enable_ldbm = no ; then
2759 if test $ol_with_ldbm_api != auto ; then
2760 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2763 if test $ol_with_ldbm_type != auto ; then
2764 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2767 if test $ol_with_ldbm_module != static ; then
2768 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2771 if test $ol_enable_modules != yes -a \
2772 $ol_enable_bdb = no -a \
2773 $ol_enable_dnssrv = no -a \
2774 $ol_enable_ldap = no -a \
2775 $ol_enable_meta = no -a \
2776 $ol_enable_monitor = no -a \
2777 $ol_enable_null = no -a \
2778 $ol_enable_passwd = no -a \
2779 $ol_enable_perl = no -a \
2780 $ol_enable_shell = no -a \
2781 $ol_enable_sql = no -a \
2782 $ol_enable_tcl = no ; then
2784 if test $ol_enable_slapd = yes ; then
2785 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2787 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2793 ol_with_ldbm_type=no
2794 ol_with_ldbm_module=static
2796 if test $ol_enable_bdb != no ; then
2797 ol_with_ldbm_api=berkeley
2801 if test $ol_with_ldbm_api = gdbm -a \
2802 $ol_with_ldbm_type = btree ; then
2803 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2805 if test $ol_with_ldbm_api = mdbm -a \
2806 $ol_with_ldbm_type = btree ; then
2807 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2809 if test $ol_with_ldbm_api = ndbm -a \
2810 $ol_with_ldbm_type = btree ; then
2811 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2814 if test $ol_enable_bdb = yes ; then
2815 if test $ol_with_ldbm_api = auto ; then
2816 ol_with_ldbm_api=berkeley
2817 elif test $ol_with_ldbm_api != berkeley ; then
2818 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2821 elif test $ol_enable_bdb = auto ; then
2822 if test $ol_with_ldbm_api != berkeley \
2823 -o $ol_with_ldbm_api != auto ; then
2824 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2830 if test $ol_enable_slurpd = yes ; then
2831 if test $ol_with_threads = no ; then
2832 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2836 if test $ol_enable_lmpasswd = yes ; then
2837 if test $ol_with_tls = no ; then
2838 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2842 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2843 if test $ol_with_kerberos = no ; then
2844 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2845 elif test $ol_with_kerberos = auto ; then
2846 ol_with_kerberos=yes
2849 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2850 if test $ol_with_kerberos = auto ; then
2852 elif test $ol_with_kerberos != no ; then
2853 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2858 if test $ol_enable_spasswd = yes ; then
2859 if test $ol_with_cyrus_sasl = no ; then
2860 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2862 ol_with_cyrus_sasl=yes
2865 echo "$ac_t""done" 1>&6
2894 BUILD_BDB_DYNAMIC=static
2895 BUILD_DNSSRV_DYNAMIC=static
2896 BUILD_LDAP_DYNAMIC=static
2897 BUILD_LDBM_DYNAMIC=static
2898 BUILD_META_DYNAMIC=static
2899 BUILD_MONITOR_DYNAMIC=static
2900 BUILD_NULL_DYNAMIC=static
2901 BUILD_PASSWD_DYNAMIC=static
2902 BUILD_PERL_DYNAMIC=static
2903 BUILD_SHELL_DYNAMIC=static
2904 BUILD_TCL_DYNAMIC=static
2905 BUILD_SQL_DYNAMIC=static
2907 SLAPD_MODULES_LDFLAGS=
2908 SLAPD_MODULES_CPPFLAGS=
2910 SLAPD_STATIC_BACKENDS=
2911 SLAPD_DYNAMIC_BACKENDS=
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2946 echo "configure:2947: checking for a BSD compatible install" >&5
2947 if test -z "$INSTALL"; then
2948 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2952 for ac_dir in $PATH; do
2953 # Account for people who put trailing slashes in PATH elements.
2955 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2960 for ac_prog in ginstall scoinst install; do
2961 if test -f $ac_dir/$ac_prog; then
2962 if test $ac_prog = install &&
2963 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2966 elif test $ac_prog = install &&
2967 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2971 ac_cv_path_install="$ac_dir/$ac_prog -c"
2982 if test "${ac_cv_path_install+set}" = set; then
2983 INSTALL="$ac_cv_path_install"
2985 # As a last resort, use the slow shell script. We don't cache a
2986 # path for INSTALL within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the path is relative.
2989 INSTALL="$ac_install_sh"
2992 echo "$ac_t""$INSTALL" 1>&6
2994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2995 # It thinks the first close brace ends the variable substitution.
2996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_MKVERSION 1
3012 *-*-aix*) if test -z "$CC" ; then
3013 case "$ol_with_threads" in
3014 auto | yes | posix) ol_aix_threads=yes ;;
3020 if test $ol_aix_threads = yes ; then
3021 if test -z "${CC}" ; then
3022 for ac_prog in cc_r xlc_r cc
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_CC="$ac_prog"
3047 if test -n "$CC"; then
3048 echo "$ac_t""$CC" 1>&6
3050 echo "$ac_t""no" 1>&6
3053 test -n "$CC" && break
3057 if test "$CC" = cc ; then
3058 if test $ol_with_threads != auto ; then
3059 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3061 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3067 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3068 ol_with_threads=posix
3069 ol_cv_pthread_create=yes
3073 if test -z "${CC}"; then
3074 for ac_prog in cc gcc
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3080 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_CC="$ac_prog"
3099 if test -n "$CC"; then
3100 echo "$ac_t""$CC" 1>&6
3102 echo "$ac_t""no" 1>&6
3105 test -n "$CC" && break
3107 test -n "$CC" || CC="missing"
3110 if test "${CC}" = "missing" ; then
3111 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3115 if test -z "${AR}"; then
3116 for ac_prog in ar gar
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_word" >&5
3122 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 if test -n "$AR"; then
3126 ac_cv_prog_AR="$AR" # Let the user override the test.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3130 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 if test -f $ac_dir/$ac_word; then
3133 ac_cv_prog_AR="$ac_prog"
3141 if test -n "$AR"; then
3142 echo "$ac_t""$AR" 1>&6
3144 echo "$ac_t""no" 1>&6
3147 test -n "$AR" && break
3149 test -n "$AR" || AR="missing"
3152 if test "${AR}" = "missing" ; then
3153 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3159 # Find the correct PATH separator. Usually this is `:', but
3160 # DJGPP uses `;' like DOS.
3161 if test "X${PATH_SEPARATOR+set}" != Xset; then
3162 UNAME=${UNAME-`uname 2>/dev/null`}
3164 *-DOS) lt_cv_sys_path_separator=';' ;;
3165 *) lt_cv_sys_path_separator=':' ;;
3167 PATH_SEPARATOR=$lt_cv_sys_path_separator
3170 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3171 echo "configure:3172: checking for Cygwin environment" >&5
3172 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3182 #define __CYGWIN__ __CYGWIN32__
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3199 echo "$ac_t""$ac_cv_cygwin" 1>&6
3201 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3202 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3203 echo "configure:3204: checking for mingw32 environment" >&5
3204 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3227 echo "$ac_t""$ac_cv_mingw32" 1>&6
3229 test "$ac_cv_mingw32" = yes && MINGW32=yes
3230 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3231 echo "configure:3232: checking for EMX OS/2 environment" >&5
3232 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3255 echo "$ac_t""$ac_cv_emxos2" 1>&6
3257 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3258 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3259 echo "configure:3260: checking how to run the C preprocessor" >&5
3260 # On Suns, sometimes $CPP names a directory.
3261 if test -n "$CPP" && test -d "$CPP"; then
3264 if test -z "$CPP"; then
3265 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 # This must be in double quotes, not single quotes, because CPP may get
3269 # substituted into the Makefile and "${CC-cc}" will confuse make.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp.
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3280 { (eval echo configure:3281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3282 if test -z "$ac_err"; then
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 CPP="${CC-cc} -E -traditional-cpp"
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 CPP="${CC-cc} -nologo -E"
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3314 { (eval echo configure:3315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3316 if test -z "$ac_err"; then
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3330 ac_cv_prog_CPP="$CPP"
3332 CPP="$ac_cv_prog_CPP"
3334 ac_cv_prog_CPP="$CPP"
3336 echo "$ac_t""$CPP" 1>&6
3338 # Check whether --enable-fast-install or --disable-fast-install was given.
3339 if test "${enable_fast_install+set}" = set; then
3340 enableval="$enable_fast_install"
3341 p=${PACKAGE-default}
3343 yes) enable_fast_install=yes ;;
3344 no) enable_fast_install=no ;;
3346 enable_fast_install=no
3347 # Look at the argument we got. We use all the common list separators.
3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3349 for pkg in $enableval; do
3350 if test "X$pkg" = "X$p"; then
3351 enable_fast_install=yes
3358 enable_fast_install=yes
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 for ac_dir in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir=.
3375 if test -f $ac_dir/$ac_word; then
3384 if test -n "$CC"; then
3385 echo "$ac_t""$CC" 1>&6
3387 echo "$ac_t""no" 1>&6
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3407 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy $ac_cv_prog_CC
3420 if test $# -gt 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3425 set dummy "$ac_dir/$ac_word" "$@"
3433 if test -n "$CC"; then
3434 echo "$ac_t""$CC" 1>&6
3436 echo "$ac_t""no" 1>&6
3439 if test -z "$CC"; then
3440 case "`uname -s`" in
3441 *win32* | *WIN32* | *CYGWIN*)
3442 # Extract the first word of "cl", so it can be a program name with args.
3443 set dummy cl; ac_word=$2
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_word" >&5
3446 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3454 for ac_dir in $ac_dummy; do
3455 test -z "$ac_dir" && ac_dir=.
3456 if test -f $ac_dir/$ac_word; then
3465 if test -n "$CC"; then
3466 echo "$ac_t""$CC" 1>&6
3468 echo "$ac_t""no" 1>&6
3473 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3476 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3477 echo "configure:3478: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cc_cross
3486 cat > conftest.$ac_ext << EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 ac_cv_prog_cc_works=yes
3495 # If we can't run a trivial program, we are probably using a cross compiler.
3496 if (./conftest; exit) 2>/dev/null; then
3497 ac_cv_prog_cc_cross=no
3499 ac_cv_prog_cc_cross=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 ac_cv_prog_cc_works=no
3508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3512 cross_compiling=$ac_cv_prog_cc_cross
3514 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3515 if test $ac_cv_prog_cc_works = no; then
3516 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3518 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3520 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3521 cross_compiling=$ac_cv_prog_cc_cross
3523 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3524 echo "configure:3525: checking whether we are using GNU C" >&5
3525 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.c <<EOF
3533 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3540 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3542 if test $ac_cv_prog_gcc = yes; then
3548 ac_test_CFLAGS="${CFLAGS+set}"
3549 ac_save_CFLAGS="$CFLAGS"
3551 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether ${CC-cc} accepts -g" >&5
3553 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 echo 'void f(){}' > conftest.c
3557 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3566 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS="$ac_save_CFLAGS"
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3576 if test "$GCC" = yes; then
3583 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3584 if test "${with_gnu_ld+set}" = set; then
3585 withval="$with_gnu_ld"
3586 test "$withval" = no || with_gnu_ld=yes
3592 if test "$GCC" = yes; then
3593 # Check if gcc -print-prog-name=ld gives a path.
3594 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ld used by GCC" >&5
3598 # gcc leaves a trailing carriage return which upsets mingw
3599 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3601 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3604 # Accept absolute paths.
3605 [\\/]* | [A-Za-z]:[\\/]*)
3606 re_direlt='/[^/][^/]*/\.\./'
3607 # Canonicalize the path of ld
3608 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3609 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3610 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3612 test -z "$LD" && LD="$ac_prog"
3615 # If it fails, then pretend we aren't using GCC.
3619 # If it is relative, then search for the first ld in PATH.
3623 elif test "$with_gnu_ld" = yes; then
3624 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3625 echo "configure:3626: checking for GNU ld" >&5
3627 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3628 echo "configure:3629: checking for non-GNU ld" >&5
3630 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 if test -z "$LD"; then
3634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3635 for ac_dir in $PATH; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3638 lt_cv_path_LD="$ac_dir/$ac_prog"
3639 # Check to see if the program is GNU ld. I'd rather use --version,
3640 # but apparently some GNU ld's only accept -v.
3641 # Break only if it was the GNU/non-GNU ld that we prefer.
3642 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3643 test "$with_gnu_ld" != no && break
3645 test "$with_gnu_ld" != yes && break
3651 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3656 if test -n "$LD"; then
3657 echo "$ac_t""$LD" 1>&6
3659 echo "$ac_t""no" 1>&6
3661 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3662 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3663 echo "configure:3664: checking if the linker ($LD) is GNU ld" >&5
3664 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3668 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3669 lt_cv_prog_gnu_ld=yes
3671 lt_cv_prog_gnu_ld=no
3675 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3676 with_gnu_ld=$lt_cv_prog_gnu_ld
3679 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $LD option to reload object files" >&5
3681 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 lt_cv_ld_reload_flag='-r'
3687 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3688 reload_flag=$lt_cv_ld_reload_flag
3689 test -n "$reload_flag" && reload_flag=" $reload_flag"
3691 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3692 echo "configure:3693: checking for BSD-compatible nm" >&5
3693 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3701 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3702 test -z "$ac_dir" && ac_dir=.
3703 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3704 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3705 # Check to see if the nm accepts a BSD-compat flag.
3706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3707 # nm: unknown option "B" ignored
3708 # Tru64's nm complains that /dev/null is an invalid object file
3709 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3710 lt_cv_path_NM="$tmp_nm -B"
3712 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3713 lt_cv_path_NM="$tmp_nm -p"
3716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3717 continue # so that we can try to find one that supports BSD flags
3722 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3727 echo "$ac_t""$NM" 1>&6
3729 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3730 echo "configure:3731: checking whether ln -s works" >&5
3731 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3735 if ln -s X conftestdata 2>/dev/null
3738 ac_cv_prog_LN_S="ln -s"
3743 LN_S="$ac_cv_prog_LN_S"
3744 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3745 echo "$ac_t""yes" 1>&6
3747 echo "$ac_t""no" 1>&6
3750 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3751 echo "configure:3752: checking how to recognise dependant libraries" >&5
3752 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 lt_cv_file_magic_cmd='$MAGIC_CMD'
3756 lt_cv_file_magic_test_file=
3757 lt_cv_deplibs_check_method='unknown'
3758 # Need to set the preceding variable on all platforms that support
3759 # interlibrary dependencies.
3760 # 'none' -- dependencies not supported.
3761 # `unknown' -- same as none, but documents that we really don't know.
3762 # 'pass_all' -- all dependencies passed with no checks.
3763 # 'test_compile' -- check by making test program.
3764 # 'file_magic [[regex]]' -- check by looking for files in library path
3765 # which responds to the $file_magic_cmd with a given egrep regex.
3766 # If you have `file' or equivalent on your system and you're not sure
3767 # whether `pass_all' will *always* work, you probably want this one.
3771 lt_cv_deplibs_check_method=pass_all
3775 lt_cv_deplibs_check_method=pass_all
3779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3780 lt_cv_file_magic_cmd='/usr/bin/file -L'
3781 lt_cv_file_magic_test_file=/shlib/libc.so
3784 cygwin* | mingw* | pw32*)
3785 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3786 lt_cv_file_magic_cmd='$OBJDUMP -f'
3789 darwin* | rhapsody*)
3790 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3791 lt_cv_file_magic_cmd='/usr/bin/file -L'
3793 rhapsody* | darwin1.[012])
3794 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3797 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3803 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3806 # Not sure whether the presence of OpenBSD here was a mistake.
3807 # Let's accept both of them until this is cleared up.
3808 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3809 lt_cv_file_magic_cmd=/usr/bin/file
3810 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3814 lt_cv_deplibs_check_method=pass_all
3819 lt_cv_deplibs_check_method=pass_all
3823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3824 lt_cv_file_magic_cmd=/usr/bin/file
3825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3831 # this will be overridden with pass_all, but let us keep it just in case
3832 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3836 *-32|*"-32 ") libmagic=32-bit;;
3837 *-n32|*"-n32 ") libmagic=N32;;
3838 *-64|*"-64 ") libmagic=64-bit;;
3839 *) libmagic=never-match;;
3841 # this will be overridden with pass_all, but let us keep it just in case
3842 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3845 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3846 lt_cv_deplibs_check_method=pass_all
3849 # This must be Linux ELF.
3852 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3853 lt_cv_deplibs_check_method=pass_all ;;
3855 # glibc up to 2.1.1 does not perform some relocations on ARM
3856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3858 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3862 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3865 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3871 lt_cv_file_magic_cmd=/usr/bin/file
3872 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3876 lt_cv_file_magic_cmd=/usr/bin/file
3877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3881 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3885 osf3* | osf4* | osf5*)
3886 # this will be overridden with pass_all, but let us keep it just in case
3887 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3888 lt_cv_file_magic_test_file=/shlib/libc.so
3889 lt_cv_deplibs_check_method=pass_all
3893 lt_cv_deplibs_check_method=pass_all
3897 lt_cv_deplibs_check_method=pass_all
3898 lt_cv_file_magic_test_file=/lib/libc.so
3901 sysv5uw[78]* | sysv4*uw2*)
3902 lt_cv_deplibs_check_method=pass_all
3905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3906 case $host_vendor in
3908 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]'
3909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3912 lt_cv_deplibs_check_method=pass_all
3915 lt_cv_file_magic_cmd='/bin/file'
3916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3919 lt_cv_file_magic_cmd='/bin/file'
3920 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3921 lt_cv_file_magic_test_file=/lib/libc.so
3929 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3930 file_magic_cmd=$lt_cv_file_magic_cmd
3931 deplibs_check_method=$lt_cv_deplibs_check_method
3933 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3934 echo "configure:3935: checking for object suffix" >&5
3935 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3939 echo 'int i = 1;' > conftest.$ac_ext
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 for ac_file in conftest.*; do
3944 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3948 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3953 echo "$ac_t""$ac_cv_objext" 1>&6
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$ac_cv_objext
3960 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3961 echo "configure:3962: checking for executable suffix" >&5
3962 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3969 echo 'int main () { return 0; }' > conftest.$ac_ext
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3972 for file in conftest.*; do
3974 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3975 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3979 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3982 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3987 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3988 echo "$ac_t""${ac_cv_exeext}" 1>&6
3991 if test $host != $build; then
3992 ac_tool_prefix=${host_alias}-
4000 # Check for command to grab the raw symbol name followed by C symbol from nm.
4001 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4002 echo "configure:4003: checking command to parse $NM output" >&5
4003 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4007 # These are sane defaults that work on at least a few old systems.
4008 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4010 # Character class describing NM global symbol codes.
4011 symcode='[BCDEGRST]'
4013 # Regexp to match symbols that can be accessed directly from C.
4014 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4016 # Transform the above into a raw symbol and a C symbol.
4017 symxfrm='\1 \2\3 \3'
4019 # Transform an extracted symbol line into a proper C declaration
4020 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4022 # Transform an extracted symbol line into symbol name and symbol address
4023 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'"
4025 # Define system-specific variables.
4030 cygwin* | mingw* | pw32*)
4031 symcode='[ABCDGISTW]'
4033 hpux*) # Its linker distinguishes data from code symbols
4034 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4035 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'"
4038 symcode='[BCDEGRST]'
4048 # Handle CRLF in mingw tool chain
4052 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4056 # If we're using GNU nm, then use its standard symbol codes.
4057 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4058 symcode='[ABCDGISTW]'
4061 # Try without a prefix undercore, then with it.
4062 for ac_symprfx in "" "_"; do
4064 # Write the raw and C identifiers.
4065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4067 # Check to see that the pipe works correctly.
4070 cat > conftest.$ac_ext <<EOF
4075 void nm_test_func(){}
4079 int main(){nm_test_var='a';nm_test_func();return(0);}
4082 if { (eval echo configure:4083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4083 # Now try to grab the symbols.
4085 if { (eval echo configure:4086: \"$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
4086 # Try sorting and uniquifying the output.
4087 if sort "$nlist" | uniq > "$nlist"T; then
4088 mv -f "$nlist"T "$nlist"
4093 # Make sure that we snagged all the symbols we need.
4094 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4095 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4096 cat <<EOF > conftest.$ac_ext
4102 # Now generate the symbol file.
4103 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4105 cat <<EOF >> conftest.$ac_ext
4106 #if defined (__STDC__) && __STDC__
4107 # define lt_ptr void *
4109 # define lt_ptr char *
4113 /* The mapping between symbol names and symbols. */
4118 lt_preloaded_symbols[] =
4121 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4122 cat <<\EOF >> conftest.$ac_ext
4130 # Now try linking the two files.
4131 mv conftest.$ac_objext conftstm.$ac_objext
4133 save_CFLAGS="$CFLAGS"
4134 LIBS="conftstm.$ac_objext"
4135 CFLAGS="$CFLAGS$no_builtin_flag"
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4140 CFLAGS="$save_CFLAGS"
4142 echo "cannot find nm_test_func in $nlist" >&5
4145 echo "cannot find nm_test_var in $nlist" >&5
4148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4151 echo "$progname: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 rm -f conftest* conftst*
4156 # Do not use the global_symbol_pipe unless it works.
4157 if test "$pipe_works" = yes; then
4160 lt_cv_sys_global_symbol_pipe=
4166 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4168 global_symbol_to_cdecl=
4169 global_symbol_to_c_name_address=
4171 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4172 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4174 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4176 echo "$ac_t""failed" 1>&6
4178 echo "$ac_t""ok" 1>&6
4181 for ac_hdr in dlfcn.h
4183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4185 echo "configure:4186: checking for $ac_hdr" >&5
4186 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4187 echo $ac_n "(cached) $ac_c" 1>&6
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4195 { (eval echo configure:4196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4197 if test -z "$ac_err"; then
4199 eval "ac_cv_header_$ac_safe=yes"
4202 echo "configure: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 eval "ac_cv_header_$ac_safe=no"
4209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4212 cat >> confdefs.h <<EOF
4213 #define $ac_tr_hdr 1
4217 echo "$ac_t""no" 1>&6
4225 # Only perform the check for file, if the check method requires it
4226 case $deplibs_check_method in
4228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4229 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4230 echo "configure:4231: checking for ${ac_tool_prefix}file" >&5
4231 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4242 ac_save_MAGIC_CMD="$MAGIC_CMD"
4243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4244 ac_dummy="/usr/bin:$PATH"
4245 for ac_dir in $ac_dummy; do
4246 test -z "$ac_dir" && ac_dir=.
4247 if test -f $ac_dir/${ac_tool_prefix}file; then
4248 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4249 if test -n "$file_magic_test_file"; then
4250 case $deplibs_check_method in
4252 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4255 egrep "$file_magic_regex" > /dev/null; then
4260 *** Warning: the command libtool uses to detect shared libraries,
4261 *** $file_magic_cmd, produces output that libtool cannot recognize.
4262 *** The result is that libtool may fail to recognize shared libraries
4263 *** as such. This will affect the creation of libtool libraries that
4264 *** depend on shared libraries, but programs linked with such libtool
4265 *** libraries will work regardless of this problem. Nevertheless, you
4266 *** may want to report the problem to your system manager and/or to
4267 *** bug-libtool@gnu.org
4277 MAGIC_CMD="$ac_save_MAGIC_CMD"
4282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4283 if test -n "$MAGIC_CMD"; then
4284 echo "$ac_t""$MAGIC_CMD" 1>&6
4286 echo "$ac_t""no" 1>&6
4289 if test -z "$lt_cv_path_MAGIC_CMD"; then
4290 if test -n "$ac_tool_prefix"; then
4291 echo $ac_n "checking for file""... $ac_c" 1>&6
4292 echo "configure:4293: checking for file" >&5
4293 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4304 ac_save_MAGIC_CMD="$MAGIC_CMD"
4305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4306 ac_dummy="/usr/bin:$PATH"
4307 for ac_dir in $ac_dummy; do
4308 test -z "$ac_dir" && ac_dir=.
4309 if test -f $ac_dir/file; then
4310 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4311 if test -n "$file_magic_test_file"; then
4312 case $deplibs_check_method in
4314 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4317 egrep "$file_magic_regex" > /dev/null; then
4322 *** Warning: the command libtool uses to detect shared libraries,
4323 *** $file_magic_cmd, produces output that libtool cannot recognize.
4324 *** The result is that libtool may fail to recognize shared libraries
4325 *** as such. This will affect the creation of libtool libraries that
4326 *** depend on shared libraries, but programs linked with such libtool
4327 *** libraries will work regardless of this problem. Nevertheless, you
4328 *** may want to report the problem to your system manager and/or to
4329 *** bug-libtool@gnu.org
4339 MAGIC_CMD="$ac_save_MAGIC_CMD"
4344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4345 if test -n "$MAGIC_CMD"; then
4346 echo "$ac_t""$MAGIC_CMD" 1>&6
4348 echo "$ac_t""no" 1>&6
4360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4363 echo "configure:4364: checking for $ac_word" >&5
4364 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4367 if test -n "$RANLIB"; then
4368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4372 for ac_dir in $ac_dummy; do
4373 test -z "$ac_dir" && ac_dir=.
4374 if test -f $ac_dir/$ac_word; then
4375 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4382 RANLIB="$ac_cv_prog_RANLIB"
4383 if test -n "$RANLIB"; then
4384 echo "$ac_t""$RANLIB" 1>&6
4386 echo "$ac_t""no" 1>&6
4390 if test -z "$ac_cv_prog_RANLIB"; then
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "ranlib", so it can be a program name with args.
4393 set dummy ranlib; ac_word=$2
4394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4395 echo "configure:4396: checking for $ac_word" >&5
4396 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 if test -n "$RANLIB"; then
4400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4404 for ac_dir in $ac_dummy; do
4405 test -z "$ac_dir" && ac_dir=.
4406 if test -f $ac_dir/$ac_word; then
4407 ac_cv_prog_RANLIB="ranlib"
4412 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4415 RANLIB="$ac_cv_prog_RANLIB"
4416 if test -n "$RANLIB"; then
4417 echo "$ac_t""$RANLIB" 1>&6
4419 echo "$ac_t""no" 1>&6
4427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}strip; ac_word=$2
4429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4430 echo "configure:4431: checking for $ac_word" >&5
4431 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 if test -n "$STRIP"; then
4435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4439 for ac_dir in $ac_dummy; do
4440 test -z "$ac_dir" && ac_dir=.
4441 if test -f $ac_dir/$ac_word; then
4442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4449 STRIP="$ac_cv_prog_STRIP"
4450 if test -n "$STRIP"; then
4451 echo "$ac_t""$STRIP" 1>&6
4453 echo "$ac_t""no" 1>&6
4457 if test -z "$ac_cv_prog_STRIP"; then
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "strip", so it can be a program name with args.
4460 set dummy strip; ac_word=$2
4461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4462 echo "configure:4463: checking for $ac_word" >&5
4463 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 if test -n "$STRIP"; then
4467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4471 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f $ac_dir/$ac_word; then
4474 ac_cv_prog_STRIP="strip"
4479 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4482 STRIP="$ac_cv_prog_STRIP"
4483 if test -n "$STRIP"; then
4484 echo "$ac_t""$STRIP" 1>&6
4486 echo "$ac_t""no" 1>&6
4496 enable_win32_dll=yes
4498 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4499 if test "${enable_libtool_lock+set}" = set; then
4500 enableval="$enable_libtool_lock"
4504 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4506 # Some flags need to be propagated to the compiler or linker for good
4510 # Find out which ABI we are using.
4511 echo '#line 4512 "configure"' > conftest.$ac_ext
4512 if { (eval echo configure:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4513 case `/usr/bin/file conftest.$ac_objext` in
4529 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4530 SAVE_CFLAGS="$CFLAGS"
4531 CFLAGS="$CFLAGS -belf"
4532 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4533 echo "configure:4534: checking whether the C compiler needs -belf" >&5
4534 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543 cross_compiling=$ac_cv_prog_cc_cross
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555 lt_cv_cc_needs_belf=yes
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 lt_cv_cc_needs_belf=no
4564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4568 cross_compiling=$ac_cv_prog_cc_cross
4572 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4573 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4574 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4575 CFLAGS="$SAVE_CFLAGS"
4579 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4580 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4583 echo "configure:4584: checking for $ac_word" >&5
4584 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 if test -n "$DLLTOOL"; then
4588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4592 for ac_dir in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir=.
4594 if test -f $ac_dir/$ac_word; then
4595 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4602 DLLTOOL="$ac_cv_prog_DLLTOOL"
4603 if test -n "$DLLTOOL"; then
4604 echo "$ac_t""$DLLTOOL" 1>&6
4606 echo "$ac_t""no" 1>&6
4610 if test -z "$ac_cv_prog_DLLTOOL"; then
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "dlltool", so it can be a program name with args.
4613 set dummy dlltool; ac_word=$2
4614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4615 echo "configure:4616: checking for $ac_word" >&5
4616 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 if test -n "$DLLTOOL"; then
4620 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4624 for ac_dir in $ac_dummy; do
4625 test -z "$ac_dir" && ac_dir=.
4626 if test -f $ac_dir/$ac_word; then
4627 ac_cv_prog_DLLTOOL="dlltool"
4632 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4635 DLLTOOL="$ac_cv_prog_DLLTOOL"
4636 if test -n "$DLLTOOL"; then
4637 echo "$ac_t""$DLLTOOL" 1>&6
4639 echo "$ac_t""no" 1>&6
4647 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}as; ac_word=$2
4649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_word" >&5
4651 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test -n "$AS"; then
4655 ac_cv_prog_AS="$AS" # Let the user override the test.
4657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 if test -f $ac_dir/$ac_word; then
4662 ac_cv_prog_AS="${ac_tool_prefix}as"
4670 if test -n "$AS"; then
4671 echo "$ac_t""$AS" 1>&6
4673 echo "$ac_t""no" 1>&6
4677 if test -z "$ac_cv_prog_AS"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "as", so it can be a program name with args.
4680 set dummy as; ac_word=$2
4681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_word" >&5
4683 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 if test -n "$AS"; then
4687 ac_cv_prog_AS="$AS" # Let the user override the test.
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4699 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4703 if test -n "$AS"; then
4704 echo "$ac_t""$AS" 1>&6
4706 echo "$ac_t""no" 1>&6
4714 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_word" >&5
4718 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 if test -n "$OBJDUMP"; then
4722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4726 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f $ac_dir/$ac_word; then
4729 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4736 OBJDUMP="$ac_cv_prog_OBJDUMP"
4737 if test -n "$OBJDUMP"; then
4738 echo "$ac_t""$OBJDUMP" 1>&6
4740 echo "$ac_t""no" 1>&6
4744 if test -z "$ac_cv_prog_OBJDUMP"; then
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "objdump", so it can be a program name with args.
4747 set dummy objdump; ac_word=$2
4748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_word" >&5
4750 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 if test -n "$OBJDUMP"; then
4754 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/$ac_word; then
4761 ac_cv_prog_OBJDUMP="objdump"
4766 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4769 OBJDUMP="$ac_cv_prog_OBJDUMP"
4770 if test -n "$OBJDUMP"; then
4771 echo "$ac_t""$OBJDUMP" 1>&6
4773 echo "$ac_t""no" 1>&6
4782 # recent cygwin and mingw systems supply a stub DllMain which the user
4783 # can override, but on older systems we have to supply one
4784 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4785 echo "configure:4786: checking if libtool should supply DllMain function" >&5
4786 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 cat > conftest.$ac_ext <<EOF
4790 #line 4791 "configure"
4791 #include "confdefs.h"
4794 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4800 lt_cv_need_dllmain=no
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4805 lt_cv_need_dllmain=yes
4810 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4813 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4814 # old mingw systems require "-dll" to link a DLL, while more recent ones
4816 SAVE_CFLAGS="$CFLAGS"
4817 CFLAGS="$CFLAGS -mdll"
4818 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4819 echo "configure:4820: checking how to link DLLs" >&5
4820 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4821 echo $ac_n "(cached) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure"
4825 #include "confdefs.h"
4831 if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833 lt_cv_cc_dll_switch=-mdll
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 lt_cv_cc_dll_switch=-dll
4843 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4844 CFLAGS="$SAVE_CFLAGS" ;;
4845 *-*-cygwin* | *-*-pw32*)
4846 # cygwin systems need to pass --dll to the linker, and not link
4847 # crt.o which will require a WinMain@16 definition.
4848 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4854 # Sed substitution that helps us do robust quoting. It backslashifies
4855 # metacharacters that are still active within double-quoted strings.
4856 Xsed='sed -e s/^X//'
4857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4859 # Same as above, but do not quote variable references.
4860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4862 # Sed substitution to delay expansion of an escaped shell variable in a
4863 # double_quote_subst'ed string.
4864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4870 default_ofile=libtool
4871 can_build_shared=yes
4873 # All known linkers require a `.a' archive for static linking (except M$VC,
4874 # which needs '.lib').
4876 ltmain="$ac_aux_dir/ltmain.sh"
4877 ofile="$default_ofile"
4878 with_gnu_ld="$lt_cv_prog_gnu_ld"
4879 need_locks="$enable_libtool_lock"
4882 old_CFLAGS="$CFLAGS"
4884 # Set sane defaults for various variables
4885 test -z "$AR" && AR=ar
4886 test -z "$AR_FLAGS" && AR_FLAGS=cru
4887 test -z "$AS" && AS=as
4888 test -z "$CC" && CC=cc
4889 test -z "$DLLTOOL" && DLLTOOL=dlltool
4890 test -z "$LD" && LD=ld
4891 test -z "$LN_S" && LN_S="ln -s"
4892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4893 test -z "$NM" && NM=nm
4894 test -z "$OBJDUMP" && OBJDUMP=objdump
4895 test -z "$RANLIB" && RANLIB=:
4896 test -z "$STRIP" && STRIP=:
4897 test -z "$ac_objext" && ac_objext=o
4899 if test x"$host" != x"$build"; then
4900 ac_tool_prefix=${host_alias}-
4905 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4908 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4913 # AIX sometimes has problems with the GCC collect2 program. For some
4914 # reason, if we set the COLLECT_NAMES environment variable, the problems
4915 # vanish in a puff of smoke.
4916 if test "X${COLLECT_NAMES+set}" != Xset; then
4918 export COLLECT_NAMES
4923 # Determine commands to create old-style static archives.
4924 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4925 old_postinstall_cmds='chmod 644 $oldlib'
4926 old_postuninstall_cmds=
4928 if test -n "$RANLIB"; then
4931 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4934 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4937 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4940 # Allow CC to be a program name with arguments.
4944 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4945 echo "configure:4946: checking for objdir" >&5
4946 rm -f .libs 2>/dev/null
4947 mkdir .libs 2>/dev/null
4948 if test -d .libs; then
4951 # MS-DOS does not allow filenames that begin with a dot.
4954 rmdir .libs 2>/dev/null
4955 echo "$ac_t""$objdir" 1>&6
4958 # Check whether --with-pic or --without-pic was given.
4959 if test "${with_pic+set}" = set; then
4966 test -z "$pic_mode" && pic_mode=default
4968 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4969 # in isolation, and that seeing it set (from the cache) indicates that
4970 # the associated values are set (in the cache) correctly too.
4971 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $compiler option to produce PIC" >&5
4973 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4977 lt_cv_prog_cc_shlib=
4979 lt_cv_prog_cc_static=
4980 lt_cv_prog_cc_no_builtin=
4981 lt_cv_prog_cc_can_build_shared=$can_build_shared
4983 if test "$GCC" = yes; then
4984 lt_cv_prog_cc_wl='-Wl,'
4985 lt_cv_prog_cc_static='-static'
4989 # Below there is a dirty hack to force normal static linking with -ldl
4990 # The problem is because libdl dynamically linked with both libc and
4991 # libC (AIX C++ library), which obviously doesn't included in libraries
4992 # list by gcc. This cause undefined symbols with -static flags.
4993 # This hack allows C programs to be linked with "-static -ldl", but
4994 # not sure about C++ programs.
4995 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4998 # FIXME: we need at least 68020 code to build shared libraries, but
4999 # adding the `-m68020' flag to GCC prevents building anything better,
5001 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5003 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5004 # PIC is the default for these OSes.
5006 darwin* | rhapsody*)
5007 # PIC is the default on this platform
5008 # Common symbols not allowed in MH_DYLIB files
5009 lt_cv_prog_cc_pic='-fno-common'
5011 cygwin* | mingw* | pw32* | os2*)
5012 # This hack is so that the source file can tell whether it is being
5013 # built for inclusion in a dll (and should export symbols for example).
5014 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5017 if test -d /usr/nec; then
5018 lt_cv_prog_cc_pic=-Kconform_pic
5022 lt_cv_prog_cc_pic='-fPIC'
5026 # PORTME Check for PIC flags for the system compiler.
5028 aix3* | aix4* | aix5*)
5029 lt_cv_prog_cc_wl='-Wl,'
5030 # All AIX code is PIC.
5031 if test "$host_cpu" = ia64; then
5032 # AIX 5 now supports IA64 processor
5033 lt_cv_prog_cc_static='-Bstatic'
5035 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5039 hpux9* | hpux10* | hpux11*)
5040 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5041 lt_cv_prog_cc_wl='-Wl,'
5042 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5043 lt_cv_prog_cc_pic='+Z'
5047 lt_cv_prog_cc_wl='-Wl,'
5048 lt_cv_prog_cc_static='-non_shared'
5049 # PIC (with -KPIC) is the default.
5052 cygwin* | mingw* | pw32* | os2*)
5053 # This hack is so that the source file can tell whether it is being
5054 # built for inclusion in a dll (and should export symbols for example).
5055 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5059 lt_cv_prog_cc_pic='-KPIC'
5060 lt_cv_prog_cc_static='-Bstatic'
5063 osf3* | osf4* | osf5*)
5064 # All OSF/1 code is PIC.
5065 lt_cv_prog_cc_wl='-Wl,'
5066 lt_cv_prog_cc_static='-non_shared'
5070 lt_cv_prog_cc_pic='-Kpic'
5071 lt_cv_prog_cc_static='-dn'
5072 lt_cv_prog_cc_shlib='-belf'
5076 lt_cv_prog_cc_pic='-KPIC'
5077 lt_cv_prog_cc_static='-Bstatic'
5078 lt_cv_prog_cc_wl='-Wl,'
5082 lt_cv_prog_cc_pic='-PIC'
5083 lt_cv_prog_cc_static='-Bstatic'
5084 lt_cv_prog_cc_wl='-Qoption ld '
5087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5088 lt_cv_prog_cc_pic='-KPIC'
5089 lt_cv_prog_cc_static='-Bstatic'
5090 if test "x$host_vendor" = xsni; then
5091 lt_cv_prog_cc_wl='-LD'
5093 lt_cv_prog_cc_wl='-Wl,'
5098 lt_cv_prog_cc_pic='-pic'
5099 lt_cv_prog_cc_static='-Bstatic'
5103 if test -d /usr/nec ;then
5104 lt_cv_prog_cc_pic='-Kconform_pic'
5105 lt_cv_prog_cc_static='-Bstatic'
5110 lt_cv_prog_cc_can_build_shared=no
5117 if test -z "$lt_cv_prog_cc_pic"; then
5118 echo "$ac_t""none" 1>&6
5120 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5122 # Check to make sure the pic_flag actually works.
5123 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5124 echo "configure:5125: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5125 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 save_CFLAGS="$CFLAGS"
5129 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5130 cat > conftest.$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 hpux9* | hpux10* | hpux11*)
5142 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5143 # they create non-PIC objects. So, if there were any warnings, we
5144 # assume that PIC is not supported.
5145 if test -s conftest.err; then
5146 lt_cv_prog_cc_pic_works=no
5148 lt_cv_prog_cc_pic_works=yes
5152 lt_cv_prog_cc_pic_works=yes
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 lt_cv_prog_cc_pic_works=no
5164 CFLAGS="$save_CFLAGS"
5169 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5171 lt_cv_prog_cc_can_build_shared=no
5173 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5176 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5179 # Check for any special shared library compilation flags.
5180 if test -n "$lt_cv_prog_cc_shlib"; then
5181 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5182 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5184 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5185 lt_cv_prog_cc_can_build_shared=no
5189 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5190 echo "configure:5191: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5191 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5192 echo $ac_n "(cached) $ac_c" 1>&6
5194 lt_cv_prog_cc_static_works=no
5195 save_LDFLAGS="$LDFLAGS"
5196 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5207 lt_cv_prog_cc_static_works=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5213 LDFLAGS="$save_LDFLAGS"
5218 # Belt *and* braces to stop my trousers falling down:
5219 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5220 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5222 pic_flag="$lt_cv_prog_cc_pic"
5223 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5224 wl="$lt_cv_prog_cc_wl"
5225 link_static_flag="$lt_cv_prog_cc_static"
5226 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5227 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5230 # Check to see if options -o and -c are simultaneously supported by compiler
5231 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5232 echo "configure:5233: checking if $compiler supports -c -o file.$ac_objext" >&5
5233 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5237 $rm -r conftest 2>/dev/null
5240 echo "int some_variable = 0;" > conftest.$ac_ext
5242 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5243 # that will create temporary files in the current directory regardless of
5244 # the output directory. Thus, making CWD read-only will cause this test
5245 # to fail, enabling locking or at least warning the user not to do parallel
5248 save_CFLAGS="$CFLAGS"
5249 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5251 if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5252 # The compiler can only warn and ignore the option if not recognized
5253 # So say no if there are warnings
5254 if test -s out/conftest.err; then
5255 lt_cv_compiler_c_o=no
5257 lt_cv_compiler_c_o=yes
5260 # Append any errors to the config.log.
5261 cat out/conftest.err 1>&5
5262 lt_cv_compiler_c_o=no
5264 CFLAGS="$save_CFLAGS"
5270 $rm -r conftest 2>/dev/null
5274 compiler_c_o=$lt_cv_compiler_c_o
5275 echo "$ac_t""$compiler_c_o" 1>&6
5277 if test x"$compiler_c_o" = x"yes"; then
5278 # Check to see if we can write to a .lo
5279 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5280 echo "configure:5281: checking if $compiler supports -c -o file.lo" >&5
5281 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5285 lt_cv_compiler_o_lo=no
5286 save_CFLAGS="$CFLAGS"
5287 CFLAGS="$CFLAGS -c -o conftest.lo"
5288 save_objext="$ac_objext"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure"
5292 #include "confdefs.h"
5295 int some_variable = 0;
5298 if { (eval echo configure:5299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5300 # The compiler can only warn and ignore the option if not recognized
5301 # So say no if there are warnings
5302 if test -s conftest.err; then
5303 lt_cv_compiler_o_lo=no
5305 lt_cv_compiler_o_lo=yes
5309 echo "configure: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5313 ac_objext="$save_objext"
5314 CFLAGS="$save_CFLAGS"
5318 compiler_o_lo=$lt_cv_compiler_o_lo
5319 echo "$ac_t""$compiler_o_lo" 1>&6
5324 # Check to see if we can do hard links to lock some files if needed
5325 hard_links="nottested"
5326 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5327 # do not overwrite the value of need_locks provided by the user
5328 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5329 echo "configure:5330: checking if we can lock with hard links" >&5
5332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5334 ln conftest.a conftest.b 2>&5 || hard_links=no
5335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5336 echo "$ac_t""$hard_links" 1>&6
5337 if test "$hard_links" = no; then
5338 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5345 if test "$GCC" = yes; then
5346 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5347 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5348 echo "configure:5349: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5349 echo "int some_variable = 0;" > conftest.$ac_ext
5350 save_CFLAGS="$CFLAGS"
5351 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5352 compiler_rtti_exceptions=no
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5358 int some_variable = 0;
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363 # The compiler can only warn and ignore the option if not recognized
5364 # So say no if there are warnings
5365 if test -s conftest.err; then
5366 compiler_rtti_exceptions=no
5368 compiler_rtti_exceptions=yes
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5376 CFLAGS="$save_CFLAGS"
5377 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5379 if test "$compiler_rtti_exceptions" = "yes"; then
5380 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5382 no_builtin_flag=' -fno-builtin'
5386 # See if the linker supports building shared libraries.
5387 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5388 echo "configure:5389: checking whether the linker ($LD) supports shared libraries" >&5
5390 allow_undefined_flag=
5392 need_lib_prefix=unknown
5393 need_version=unknown
5394 # when you set need_version to no, make sure it does not cause -set_version
5395 # flags to be left without arguments
5397 archive_expsym_cmds=
5398 old_archive_from_new_cmds=
5399 old_archive_from_expsyms_cmds=
5400 export_dynamic_flag_spec=
5401 whole_archive_flag_spec=
5402 thread_safe_flag_spec=
5403 hardcode_into_libs=no
5404 hardcode_libdir_flag_spec=
5405 hardcode_libdir_separator=
5408 hardcode_shlibpath_var=unsupported
5410 link_all_deplibs=unknown
5411 always_export_symbols=no
5412 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5413 # include_expsyms should be a list of space-separated symbols to be *always*
5414 # included in the symbol list
5416 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5419 # as well as any symbol that contains `d'.
5420 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5422 # platforms (ab)use it in PIC code, but their linkers get confused if
5423 # the symbol is explicitly referenced. Since portable code cannot
5424 # rely on this symbol name, it's probably fine to never include it in
5425 # preloaded symbol tables.
5426 extract_expsyms_cmds=
5429 cygwin* | mingw* | pw32*)
5430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5431 # When not using gcc, we currently assume that we are using
5432 # Microsoft Visual C++.
5433 if test "$GCC" != yes; then
5443 if test "$with_gnu_ld" = yes; then
5444 # If archive_cmds runs LD, not CC, wlarc should be empty
5447 # See if GNU ld supports shared libraries.
5449 aix3* | aix4* | aix5*)
5450 # On AIX, the GNU linker is very broken
5451 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5456 *** to be unable to reliably create shared libraries on AIX.
5457 *** Therefore, libtool is disabling shared libraries support. If you
5458 *** really care for shared libraries, you may want to modify your PATH
5459 *** so that a non-GNU linker is found, and then restart.
5465 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)'
5466 hardcode_libdir_flag_spec='-L$libdir'
5467 hardcode_minus_L=yes
5469 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5470 # that the semantics of dynamic libraries on AmigaOS, at least up
5471 # to version 4, is to share data among multiple programs linked
5472 # with the same dynamic library. Since this doesn't match the
5473 # behavior of shared libraries on other platforms, we can use
5479 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5480 allow_undefined_flag=unsupported
5481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5482 # support --undefined. This deserves some investigation. FIXME
5483 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5489 cygwin* | mingw* | pw32*)
5490 # hardcode_libdir_flag_spec is actually meaningless, as there is
5491 # no search path for DLLs.
5492 hardcode_libdir_flag_spec='-L$libdir'
5493 allow_undefined_flag=unsupported
5494 always_export_symbols=yes
5496 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5497 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5498 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5499 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5500 else $CC -o impgen impgen.c ; fi)~
5501 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5503 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5505 # cygwin and mingw dlls have different entry points and sets of symbols
5507 # FIXME: what about values for MSVC?
5508 dll_entry=__cygwin_dll_entry@12
5509 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5513 dll_entry=_DllMainCRTStartup@12
5514 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5518 # mingw and cygwin differ, and it's simplest to just exclude the union
5519 # of the two symbol sets.
5520 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5522 # recent cygwin and mingw systems supply a stub DllMain which the user
5523 # can override, but on older systems we have to supply one (in ltdll.c)
5524 if test "x$lt_cv_need_dllmain" = "xyes"; then
5525 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5526 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~
5527 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5533 # Extract the symbol export list from an `--export-all' def file,
5534 # then regenerate the def file from the symbol export list, so that
5535 # the compiled dll only exports the symbol export list.
5536 # Be careful not to strip the DATA tag left be newer dlltools.
5537 export_symbols_cmds="$ltdll_cmds"'
5538 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5539 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5541 # If the export-symbols file already is a .def file (1st line
5542 # is EXPORTS), use it as is.
5543 # If DATA tags from a recent dlltool are present, honour them!
5544 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5545 cp $export_symbols $output_objdir/$soname-def;
5547 echo EXPORTS > $output_objdir/$soname-def;
5549 cat $export_symbols | while read symbol; do
5552 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5553 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5555 _lt_hint=`expr 1 + \$_lt_hint`;
5559 $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~
5560 $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~
5561 $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~
5562 $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~
5563 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5567 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5571 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5572 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5577 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5582 *** create shared libraries on Solaris systems. Therefore, libtool
5583 *** is disabling shared libraries support. We urge you to upgrade GNU
5584 *** binutils to release 2.9.1 or newer. Another option is to modify
5585 *** your PATH or compiler configuration so that the native linker is
5586 *** used, and then restart.
5589 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5601 hardcode_shlibpath_var=no
5605 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5614 if test "$ld_shlibs" = yes; then
5615 runpath_var=LD_RUN_PATH
5616 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5617 export_dynamic_flag_spec='${wl}--export-dynamic'
5619 cygwin* | mingw* | pw32*)
5620 # dlltool doesn't understand --whole-archive et. al.
5621 whole_archive_flag_spec=
5624 # ancient GNU ld didn't support --whole-archive et. al.
5625 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5628 whole_archive_flag_spec=
5634 # PORTME fill in a description of your system's linker (not GNU ld)
5637 allow_undefined_flag=unsupported
5638 always_export_symbols=yes
5639 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'
5640 # Note: this linker hardcodes the directories in LIBPATH if there
5641 # are no directories specified by -L.
5642 hardcode_minus_L=yes
5643 if test "$GCC" = yes && test -z "$link_static_flag"; then
5644 # Neither direct hardcoding nor static linking is supported with a
5646 hardcode_direct=unsupported
5651 if test "$host_cpu" = ia64; then
5652 # On IA64, the linker does run time linking by default, so we don't
5653 # have to do anything special.
5654 aix_use_runtimelinking=no
5655 exp_sym_flag='-Bexport'
5658 aix_use_runtimelinking=no
5660 # Test if we are trying to use run time linking or normal
5661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5662 # need to do runtime linking.
5663 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5664 for ld_flag in $LDFLAGS; do
5665 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5666 aix_use_runtimelinking=yes
5672 exp_sym_flag='-bexport'
5673 no_entry_flag='-bnoentry'
5676 # When large executables or shared objects are built, AIX ld can
5677 # have problems creating the table of contents. If linking a library
5678 # or program results in "error TOC overflow" add -mminimal-toc to
5679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5684 hardcode_libdir_separator=':'
5685 if test "$GCC" = yes; then
5686 case $host_os in aix4.[012]|aix4.[012].*)
5687 collect2name=`${CC} -print-prog-name=collect2`
5688 if test -f "$collect2name" && \
5689 strings "$collect2name" | grep resolve_lib_name >/dev/null
5691 # We have reworked collect2
5694 # We have old collect2
5695 hardcode_direct=unsupported
5696 # It fails to find uninstalled libraries when the uninstalled
5697 # path is not listed in the libpath. Setting hardcode_minus_L
5698 # to unsupported forces relinking
5699 hardcode_minus_L=yes
5700 hardcode_libdir_flag_spec='-L$libdir'
5701 hardcode_libdir_separator=
5705 shared_flag='-shared'
5708 if test "$host_cpu" = ia64; then
5709 shared_flag='${wl}-G'
5711 if test "$aix_use_runtimelinking" = yes; then
5712 shared_flag='${wl}-G'
5714 shared_flag='${wl}-bM:SRE'
5719 # It seems that -bexpall can do strange things, so it is better to
5720 # generate a list of symbols to export.
5721 always_export_symbols=yes
5722 if test "$aix_use_runtimelinking" = yes; then
5723 # Warning - without using the other runtime loading flags (-brtl),
5724 # -berok will link without error, but may produce a broken library.
5725 allow_undefined_flag='-berok'
5726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5727 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"
5729 if test "$host_cpu" = ia64; then
5730 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5731 allow_undefined_flag="-z nodefs"
5732 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"
5734 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5735 # Warning - without using the other run time loading flags,
5736 # -berok will link without error, but may produce a broken library.
5737 allow_undefined_flag='${wl}-berok'
5738 # This is a bit strange, but is similar to how AIX traditionally builds
5739 # it's shared libraries.
5740 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'
5746 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)'
5747 hardcode_libdir_flag_spec='-L$libdir'
5748 hardcode_minus_L=yes
5749 # see comment about different semantics on the GNU ld section
5753 cygwin* | mingw* | pw32*)
5754 # When not using gcc, we currently assume that we are using
5755 # Microsoft Visual C++.
5756 # hardcode_libdir_flag_spec is actually meaningless, as there is
5757 # no search path for DLLs.
5758 hardcode_libdir_flag_spec=' '
5759 allow_undefined_flag=unsupported
5760 # Tell ltmain to make .lib files, not .a files.
5762 # FIXME: Setting linknames here is a bad hack.
5763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5764 # The linker will automatically build a .lib file if we build a DLL.
5765 old_archive_from_new_cmds='true'
5766 # FIXME: Should let the user specify the lib program.
5767 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5768 fix_srcfile_path='`cygpath -w "$srcfile"`'
5771 darwin* | rhapsody*)
5773 rhapsody* | darwin1.[012])
5774 allow_undefined_flag='-undefined suppress'
5777 allow_undefined_flag='-flat_namespace -undefined suppress'
5780 # FIXME: Relying on posixy $() will cause problems for
5781 # cross-compilation, but unfortunately the echo tests do not
5782 # yet detect zsh echo's removal of \ escapes.
5783 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'
5784 # We need to add '_' to the symbols in $export_symbols first
5785 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5787 hardcode_shlibpath_var=no
5788 whole_archive_flag_spec='-all_load $convenience'
5795 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5796 # support. Future versions do this automatically, but an explicit c++rt0.o
5797 # does not break anything, and helps significantly (at the cost of a little
5800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5801 hardcode_libdir_flag_spec='-R$libdir'
5803 hardcode_shlibpath_var=no
5806 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_minus_L=yes
5811 hardcode_shlibpath_var=no
5814 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5816 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5817 hardcode_libdir_flag_spec='-R$libdir'
5819 hardcode_shlibpath_var=no
5822 hpux9* | hpux10* | hpux11*)
5824 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' ;;
5825 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5828 hardcode_libdir_separator=:
5830 hardcode_minus_L=yes # Not in the search PATH, but as the default
5831 # location of the library.
5832 export_dynamic_flag_spec='${wl}-E'
5836 if test "$GCC" = yes; then
5837 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'
5839 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'
5841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5842 hardcode_libdir_separator=:
5843 link_all_deplibs=yes
5847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5852 hardcode_libdir_flag_spec='-R$libdir'
5854 hardcode_shlibpath_var=no
5858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5861 hardcode_libdir_separator=:
5862 hardcode_shlibpath_var=no
5867 hardcode_shlibpath_var=no
5868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5871 export_dynamic_flag_spec='${wl}-E'
5874 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5876 hardcode_libdir_flag_spec='-R$libdir'
5879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5887 hardcode_libdir_flag_spec='-L$libdir'
5888 hardcode_minus_L=yes
5889 allow_undefined_flag=unsupported
5890 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'
5891 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5895 if test "$GCC" = yes; then
5896 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5897 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'
5899 allow_undefined_flag=' -expect_unresolved \*'
5900 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'
5902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5903 hardcode_libdir_separator=:
5906 osf4* | osf5*) # as osf3* with the addition of -msym flag
5907 if test "$GCC" = yes; then
5908 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5909 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'
5910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5912 allow_undefined_flag=' -expect_unresolved \*'
5913 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'
5914 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5915 $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'
5917 #Both c and cxx compiler support -rpath directly
5918 hardcode_libdir_flag_spec='-rpath $libdir'
5920 hardcode_libdir_separator=:
5924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 hardcode_shlibpath_var=no
5926 runpath_var=LD_RUN_PATH
5927 hardcode_runpath_var=yes
5928 export_dynamic_flag_spec='${wl}-Bexport'
5932 # gcc --version < 3.0 without binutils cannot create self contained
5933 # shared libraries reliably, requiring libgcc.a to resolve some of
5934 # the object symbols generated in some cases. Libraries that use
5935 # assert need libgcc.a to resolve __eprintf, for example. Linking
5936 # a copy of libgcc.a into every shared library to guarantee resolving
5937 # such symbols causes other problems: According to Tim Van Holder
5938 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5939 # (to the application) exception stack for one thing.
5940 no_undefined_flag=' -z defs'
5941 if test "$GCC" = yes; then
5942 case `$CC --version 2>/dev/null` in
5946 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5947 *** create self contained shared libraries on Solaris systems, without
5948 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5949 *** -no-undefined support, which will at least allow you to build shared
5950 *** libraries. However, you may find that when you link such libraries
5951 *** into an application without using GCC, you have to manually add
5952 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5953 *** upgrade to a newer version of GCC. Another option is to rebuild your
5954 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5961 # $CC -shared without GNU ld will not create a library from C++
5962 # object files and a static libstdc++, better avoid it by now
5963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5966 hardcode_libdir_flag_spec='-R$libdir'
5967 hardcode_shlibpath_var=no
5969 solaris2.[0-5] | solaris2.[0-5].*) ;;
5970 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5973 link_all_deplibs=yes
5977 if test "x$host_vendor" = xsequent; then
5978 # Use $CC to link under sequent, because it throws in some extra .o
5979 # files that make .init and .fini sections work.
5980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5984 hardcode_libdir_flag_spec='-L$libdir'
5986 hardcode_minus_L=yes
5987 hardcode_shlibpath_var=no
5991 if test "x$host_vendor" = xsno; then
5992 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993 hardcode_direct=yes # is this really true???
5995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5996 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5998 runpath_var='LD_RUN_PATH'
5999 hardcode_shlibpath_var=no
6003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6004 hardcode_shlibpath_var=no
6005 export_dynamic_flag_spec='-Bexport'
6009 no_undefined_flag=' -z text'
6010 # $CC -shared without GNU ld will not create a library from C++
6011 # object files and a static libstdc++, better avoid it by now
6012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6013 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6015 hardcode_libdir_flag_spec=
6016 hardcode_shlibpath_var=no
6017 runpath_var='LD_RUN_PATH'
6021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6022 hardcode_libdir_flag_spec='-L$libdir'
6023 hardcode_shlibpath_var=no
6027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6028 hardcode_libdir_flag_spec='-L$libdir'
6029 hardcode_shlibpath_var=no
6033 if test -d /usr/nec; then
6034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6035 hardcode_shlibpath_var=no
6036 runpath_var=LD_RUN_PATH
6037 hardcode_runpath_var=yes
6043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6046 hardcode_shlibpath_var=no
6047 hardcode_runpath_var=yes
6048 runpath_var=LD_RUN_PATH
6051 sysv5uw7* | unixware7*)
6052 no_undefined_flag='${wl}-z ${wl}text'
6053 if test "$GCC" = yes; then
6054 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6056 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6058 runpath_var='LD_RUN_PATH'
6059 hardcode_shlibpath_var=no
6067 echo "$ac_t""$ld_shlibs" 1>&6
6068 test "$ld_shlibs" = no && can_build_shared=no
6070 # Check hardcoding attributes.
6071 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6072 echo "configure:6073: checking how to hardcode library paths into programs" >&5
6074 if test -n "$hardcode_libdir_flag_spec" || \
6075 test -n "$runpath_var"; then
6077 # We can hardcode non-existant directories.
6078 if test "$hardcode_direct" != no &&
6079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6080 # have to relink, otherwise we might link with an installed library
6081 # when we should be linking with a yet-to-be-installed one
6082 ## test "$hardcode_shlibpath_var" != no &&
6083 test "$hardcode_minus_L" != no; then
6084 # Linking always hardcodes the temporary library directory.
6085 hardcode_action=relink
6087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6088 hardcode_action=immediate
6091 # We cannot hardcode anything, or else we can only hardcode existing
6093 hardcode_action=unsupported
6095 echo "$ac_t""$hardcode_action" 1>&6
6099 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6100 echo "configure:6101: checking whether stripping libraries is possible" >&5
6101 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6102 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6103 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6104 echo "$ac_t""yes" 1>&6
6106 echo "$ac_t""no" 1>&6
6109 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6110 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6112 # PORTME Fill in your ld.so characteristics
6113 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6114 echo "configure:6115: checking dynamic linker characteristics" >&5
6116 libname_spec='lib$name'
6123 shlibpath_overrides_runpath=unknown
6125 dynamic_linker="$host_os ld.so"
6126 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6132 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6133 shlibpath_var=LIBPATH
6135 # AIX has no versioning support, so we append a major version to the name.
6136 soname_spec='${libname}${release}.so$major'
6141 if test "$host_cpu" = ia64; then
6142 # AIX 5 supports IA64
6143 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6144 shlibpath_var=LD_LIBRARY_PATH
6146 # With GCC up to 2.95.x, collect2 would create an import file
6147 # for dependence libraries. The import file would start with
6148 # the line `#! .'. This would cause the generated library to
6149 # depend on `.', always an invalid library. This was fixed in
6150 # development snapshots of GCC prior to 3.0.
6152 aix4 | aix4.[01] | aix4.[01].*)
6153 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6155 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6162 # AIX (on Power*) has no versioning support, so currently we can
6163 # not hardcode correct soname into executable. Probably we can
6164 # add versioning support to collect2, so additional links can
6165 # be useful in future.
6166 if test "$aix_use_runtimelinking" = yes; then
6167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6168 # instead of lib<name>.a to let people know that these are not
6169 # typical AIX shared libraries.
6170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6172 # We preserve .a as extension for shared libraries through AIX4.2
6173 # and later when we are not doing run time linking.
6174 library_names_spec='${libname}${release}.a $libname.a'
6175 soname_spec='${libname}${release}.so$major'
6177 shlibpath_var=LIBPATH
6182 library_names_spec='$libname.ixlibrary $libname.a'
6183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6184 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'
6188 library_names_spec='${libname}.so'
6189 dynamic_linker="$host_os ld.so"
6190 shlibpath_var=LIBRARY_PATH
6196 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6197 soname_spec='${libname}${release}.so$major'
6198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6199 shlibpath_var=LD_LIBRARY_PATH
6200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6202 export_dynamic_flag_spec=-rdynamic
6203 # the default ld.so.conf also contains /usr/contrib/lib and
6204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6205 # libtool to hard-code these into programs
6208 cygwin* | mingw* | pw32*)
6209 version_type=windows
6212 case $GCC,$host_os in
6214 library_names_spec='$libname.dll.a'
6215 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6216 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6217 dldir=$destdir/`dirname \$dlpath`~
6218 test -d \$dldir || mkdir -p \$dldir~
6219 $install_prog .libs/$dlname \$dldir/$dlname'
6220 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6221 dlpath=$dir/\$dldll~
6225 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6232 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6235 dynamic_linker='Win32 ld.exe'
6236 # FIXME: first we should search . and the directory the executable is in
6240 darwin* | rhapsody*)
6241 dynamic_linker="$host_os dyld"
6245 # FIXME: Relying on posixy $() will cause problems for
6246 # cross-compilation, but unfortunately the echo tests do not
6247 # yet detect zsh echo's removal of \ escapes.
6248 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)'
6249 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6250 shlibpath_overrides_runpath=yes
6251 shlibpath_var=DYLD_LIBRARY_PATH
6259 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6260 version_type=freebsd-$objformat
6261 case $version_type in
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6268 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6272 shlibpath_var=LD_LIBRARY_PATH
6275 shlibpath_overrides_runpath=yes
6278 shlibpath_overrides_runpath=no
6279 hardcode_into_libs=yes
6288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6289 soname_spec='${libname}${release}.so$major'
6290 shlibpath_var=LD_LIBRARY_PATH
6291 hardcode_into_libs=yes
6294 hpux9* | hpux10* | hpux11*)
6295 # Give a soname corresponding to the major version so that dld.sl refuses to
6296 # link against other versions.
6297 dynamic_linker="$host_os dld.sl"
6301 shlibpath_var=SHLIB_PATH
6302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6303 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6304 soname_spec='${libname}${release}.sl$major'
6305 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6306 postinstall_cmds='chmod 555 $lib'
6313 soname_spec='${libname}${release}.so$major'
6314 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6320 case $LD in # libtool.m4 will add one of these switches to LD
6321 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6322 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6323 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6324 *) libsuff= shlibsuff= libmagic=never-match;;
6328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6329 shlibpath_overrides_runpath=no
6330 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6331 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6334 # No shared lib support for Linux oldld, aout, or coff.
6335 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6339 # This must be Linux ELF.
6344 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6345 soname_spec='${libname}${release}.so$major'
6346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6347 shlibpath_var=LD_LIBRARY_PATH
6348 shlibpath_overrides_runpath=no
6349 # This implies no fast_install, which is unacceptable.
6350 # Some rework will be needed to allow for fast_install
6351 # before this can be enabled.
6352 hardcode_into_libs=yes
6354 # We used to test for /lib/ld.so.1 and disable shared libraries on
6355 # powerpc, because MkLinux only supported shared libraries with the
6356 # GNU dynamic linker. Since this was broken with cross compilers,
6357 # most powerpc-linux boxes support dynamic linking these days and
6358 # people can always --disable-shared, the test was removed, and we
6359 # assume the GNU/Linux dynamic linker is in use.
6360 dynamic_linker='GNU/Linux ld.so'
6367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6368 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6370 dynamic_linker='NetBSD (a.out) ld.so'
6372 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6373 soname_spec='${libname}${release}.so$major'
6374 dynamic_linker='NetBSD ld.elf_so'
6376 shlibpath_var=LD_LIBRARY_PATH
6377 shlibpath_overrides_runpath=yes
6378 hardcode_into_libs=yes
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6384 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6394 openbsd2.[89] | openbsd2.[89].*)
6395 shlibpath_overrides_runpath=no
6398 shlibpath_overrides_runpath=yes
6402 shlibpath_overrides_runpath=yes
6404 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6406 shlibpath_var=LD_LIBRARY_PATH
6410 libname_spec='$name'
6412 library_names_spec='$libname.dll $libname.a'
6413 dynamic_linker='OS/2 ld.exe'
6414 shlibpath_var=LIBPATH
6417 osf3* | osf4* | osf5*)
6420 soname_spec='${libname}${release}.so'
6421 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6422 shlibpath_var=LD_LIBRARY_PATH
6423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6429 soname_spec='${libname}${release}.so$major'
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 shlibpath_var=LD_LIBRARY_PATH
6438 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6439 soname_spec='${libname}${release}.so$major'
6440 shlibpath_var=LD_LIBRARY_PATH
6441 shlibpath_overrides_runpath=yes
6442 hardcode_into_libs=yes
6443 # ldd complains unless libraries are executable
6444 postinstall_cmds='chmod +x $lib'
6449 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 shlibpath_overrides_runpath=yes
6453 if test "$with_gnu_ld" = yes; then
6459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6461 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6462 soname_spec='${libname}${release}.so$major'
6463 shlibpath_var=LD_LIBRARY_PATH
6464 case $host_vendor in
6466 shlibpath_overrides_runpath=no
6471 shlibpath_overrides_runpath=no
6472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480 soname_spec='${libname}${release}.so$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6488 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6489 soname_spec='${libname}${release}.so$major'
6490 shlibpath_var=LD_LIBRARY_PATH
6494 if test -d /usr/nec ;then
6496 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6497 soname_spec='$libname.so.$major'
6498 shlibpath_var=LD_LIBRARY_PATH
6506 echo "$ac_t""$dynamic_linker" 1>&6
6507 test "$dynamic_linker" = no && can_build_shared=no
6509 # Report the final consequences.
6510 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6511 echo "configure:6512: checking if libtool supports shared libraries" >&5
6512 echo "$ac_t""$can_build_shared" 1>&6
6514 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6515 echo "configure:6516: checking whether to build shared libraries" >&5
6516 test "$can_build_shared" = "no" && enable_shared=no
6518 # On AIX, shared libraries and static libraries use the same namespace, and
6519 # are all built from PIC.
6522 test "$enable_shared" = yes && enable_static=no
6523 if test -n "$RANLIB"; then
6524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6525 postinstall_cmds='$RANLIB $lib'
6530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6531 test "$enable_shared" = yes && enable_static=no
6535 echo "$ac_t""$enable_shared" 1>&6
6537 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6538 echo "configure:6539: checking whether to build static libraries" >&5
6539 # Make sure either enable_shared or enable_static is yes.
6540 test "$enable_shared" = yes || enable_static=yes
6541 echo "$ac_t""$enable_static" 1>&6
6543 if test "$hardcode_action" = relink; then
6544 # Fast installation is not supported
6545 enable_fast_install=no
6546 elif test "$shlibpath_overrides_runpath" = yes ||
6547 test "$enable_shared" = no; then
6548 # Fast installation is not necessary
6549 enable_fast_install=needless
6552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6553 if test "$GCC" = yes; then
6554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6557 if test "x$enable_dlopen" != xyes; then
6558 enable_dlopen=unknown
6559 enable_dlopen_self=unknown
6560 enable_dlopen_self_static=unknown
6567 lt_cv_dlopen="load_add_on"
6569 lt_cv_dlopen_self=yes
6572 cygwin* | mingw* | pw32*)
6573 lt_cv_dlopen="LoadLibrary"
6578 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6579 echo "configure:6580: checking for shl_load" >&5
6580 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* System header to define __stub macros and hopefully few prototypes,
6587 which can conflict with char shl_load(); below. */
6589 /* Override any gcc2 internal prototype to avoid an error. */
6590 /* We use char because int might match the return type of a gcc2
6591 builtin and then its argument prototype would still apply. */
6597 /* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6610 eval "ac_cv_func_shl_load=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 eval "ac_cv_func_shl_load=no"
6620 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 lt_cv_dlopen="shl_load"
6624 echo "$ac_t""no" 1>&6
6625 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6626 echo "configure:6627: checking for shl_load in -ldld" >&5
6627 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6629 echo $ac_n "(cached) $ac_c" 1>&6
6631 ac_save_LIBS="$LIBS"
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 eval "ac_cv_lib_$ac_lib_var=yes"
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6652 eval "ac_cv_lib_$ac_lib_var=no"
6655 LIBS="$ac_save_LIBS"
6658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6662 echo "$ac_t""no" 1>&6
6663 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6664 echo "configure:6665: checking for dlopen" >&5
6665 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char dlopen(); below. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6682 /* The GNU C library defines this for functions which it implements
6683 to always fail with ENOSYS. Some functions are actually named
6684 something starting with __ and the normal name is an alias. */
6685 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6693 if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695 eval "ac_cv_func_dlopen=yes"
6697 echo "configure: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 eval "ac_cv_func_dlopen=no"
6705 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6706 echo "$ac_t""yes" 1>&6
6707 lt_cv_dlopen="dlopen"
6709 echo "$ac_t""no" 1>&6
6710 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6711 echo "configure:6712: checking for dlopen in -ldl" >&5
6712 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6713 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 ac_save_LIBS="$LIBS"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 eval "ac_cv_lib_$ac_lib_var=yes"
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6737 eval "ac_cv_lib_$ac_lib_var=no"
6740 LIBS="$ac_save_LIBS"
6743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6747 echo "$ac_t""no" 1>&6
6748 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6749 echo "configure:6750: checking for dlopen in -lsvld" >&5
6750 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 ac_save_LIBS="$LIBS"
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_lib_$ac_lib_var=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_lib_$ac_lib_var=no"
6778 LIBS="$ac_save_LIBS"
6781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6785 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6787 echo "configure:6788: checking for dld_link in -ldld" >&5
6788 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6823 echo "$ac_t""no" 1>&6
6844 if test "x$lt_cv_dlopen" != xno; then
6850 case $lt_cv_dlopen in
6852 save_CPPFLAGS="$CPPFLAGS"
6853 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6855 save_LDFLAGS="$LDFLAGS"
6856 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6859 LIBS="$lt_cv_dlopen_libs $LIBS"
6861 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6862 echo "configure:6863: checking whether a program can dlopen itself" >&5
6863 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 if test "$cross_compiling" = yes; then :
6867 lt_cv_dlopen_self=cross
6869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6870 lt_status=$lt_dlunknown
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6882 # define LT_DLGLOBAL RTLD_GLOBAL
6885 # define LT_DLGLOBAL DL_GLOBAL
6887 # define LT_DLGLOBAL 0
6891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6892 find out it does not work in some platform. */
6893 #ifndef LT_DLLAZY_OR_NOW
6895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6898 # define LT_DLLAZY_OR_NOW DL_LAZY
6901 # define LT_DLLAZY_OR_NOW RTLD_NOW
6904 # define LT_DLLAZY_OR_NOW DL_NOW
6906 # define LT_DLLAZY_OR_NOW 0
6914 extern "C" void exit (int);
6917 void fnord() { int i=42;}
6920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6921 int status = $lt_dlunknown;
6925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6926 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6927 /* dlclose (self); */
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6934 (./conftest; exit; ) 2>/dev/null
6937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6939 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6942 # compilation failed
6943 lt_cv_dlopen_self=no
6951 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6953 if test "x$lt_cv_dlopen_self" = xyes; then
6954 LDFLAGS="$LDFLAGS $link_static_flag"
6955 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6956 echo "configure:6957: checking whether a statically linked program can dlopen itself" >&5
6957 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 if test "$cross_compiling" = yes; then :
6961 lt_cv_dlopen_self_static=cross
6963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6964 lt_status=$lt_dlunknown
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6976 # define LT_DLGLOBAL RTLD_GLOBAL
6979 # define LT_DLGLOBAL DL_GLOBAL
6981 # define LT_DLGLOBAL 0
6985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6986 find out it does not work in some platform. */
6987 #ifndef LT_DLLAZY_OR_NOW
6989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6992 # define LT_DLLAZY_OR_NOW DL_LAZY
6995 # define LT_DLLAZY_OR_NOW RTLD_NOW
6998 # define LT_DLLAZY_OR_NOW DL_NOW
7000 # define LT_DLLAZY_OR_NOW 0
7008 extern "C" void exit (int);
7011 void fnord() { int i=42;}
7014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7015 int status = $lt_dlunknown;
7019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7020 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7021 /* dlclose (self); */
7027 if { (eval echo configure:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7028 (./conftest; exit; ) 2>/dev/null
7031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7033 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7036 # compilation failed
7037 lt_cv_dlopen_self_static=no
7045 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7048 CPPFLAGS="$save_CPPFLAGS"
7049 LDFLAGS="$save_LDFLAGS"
7054 case $lt_cv_dlopen_self in
7055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7056 *) enable_dlopen_self=unknown ;;
7059 case $lt_cv_dlopen_self_static in
7060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7061 *) enable_dlopen_self_static=unknown ;;
7066 if test "$enable_shared" = yes && test "$GCC" = yes; then
7067 case $archive_cmds in
7069 # FIXME: we may have to deal with multi-command sequences.
7072 # Test whether the compiler implicitly links with -lc since on some
7073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7074 # to ld, don't add -lc before -lgcc.
7075 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7076 echo "configure:7077: checking whether -lc should be explicitly linked in" >&5
7077 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7081 echo 'static int dummy;' > conftest.$ac_ext
7083 if { (eval echo configure:7084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7086 libobjs=conftest.$ac_objext
7088 wl=$lt_cv_prog_cc_wl
7094 save_allow_undefined_flag=$allow_undefined_flag
7095 allow_undefined_flag=
7096 if { (eval echo configure:7097: \"$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; }
7098 lt_cv_archive_cmds_need_lc=no
7100 lt_cv_archive_cmds_need_lc=yes
7102 allow_undefined_flag=$save_allow_undefined_flag
7104 cat conftest.err 1>&5
7108 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7112 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7114 # The second clause should only fire when bootstrapping the
7115 # libtool distribution, otherwise you forgot to ship ltmain.sh
7116 # with your package, and you will get complaints that there are
7117 # no rules to generate ltmain.sh.
7118 if test -f "$ltmain"; then
7121 # If there is no Makefile yet, we rely on a make rule to execute
7122 # `config.status --recheck' to rerun these tests and create the
7123 # libtool script then.
7124 test -f Makefile && make "$ltmain"
7127 if test -f "$ltmain"; then
7128 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7131 echo creating $ofile
7133 # Now quote all the things that may contain metacharacters while being
7134 # careful not to overquote the AC_SUBSTed values. We take copies of the
7135 # variables and quote the copies for generation of the libtool script.
7136 for var in echo old_CC old_CFLAGS \
7137 AR AR_FLAGS CC LD LN_S NM SHELL \
7138 reload_flag reload_cmds wl \
7139 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7140 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7141 library_names_spec soname_spec \
7142 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7143 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7144 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7145 old_striplib striplib file_magic_cmd export_symbols_cmds \
7146 deplibs_check_method allow_undefined_flag no_undefined_flag \
7147 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7148 global_symbol_to_c_name_address \
7149 hardcode_libdir_flag_spec hardcode_libdir_separator \
7150 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7151 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7154 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7155 old_postinstall_cmds | old_postuninstall_cmds | \
7156 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7157 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7158 postinstall_cmds | postuninstall_cmds | \
7159 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7160 # Double-quote double-evaled strings.
7161 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7169 cat <<__EOF__ > "${ofile}T"
7172 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7173 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7174 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7176 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7177 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7179 # This program is free software; you can redistribute it and/or modify
7180 # it under the terms of the GNU General Public License as published by
7181 # the Free Software Foundation; either version 2 of the License, or
7182 # (at your option) any later version.
7184 # This program is distributed in the hope that it will be useful, but
7185 # WITHOUT ANY WARRANTY; without even the implied warranty of
7186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7187 # General Public License for more details.
7189 # You should have received a copy of the GNU General Public License
7190 # along with this program; if not, write to the Free Software
7191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7193 # As a special exception to the GNU General Public License, if you
7194 # distribute this file as part of a program that contains a
7195 # configuration script generated by Autoconf, you may include it under
7196 # the same distribution terms that you use for the rest of that program.
7198 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7199 Xsed="sed -e s/^X//"
7201 # The HP-UX ksh and POSIX shell print the target directory to stdout
7203 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7205 # ### BEGIN LIBTOOL CONFIG
7207 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7209 # Shell to use when invoking shell scripts.
7212 # Whether or not to build shared libraries.
7213 build_libtool_libs=$enable_shared
7215 # Whether or not to build static libraries.
7216 build_old_libs=$enable_static
7218 # Whether or not to add -lc for building shared libraries.
7219 build_libtool_need_lc=$need_lc
7221 # Whether or not to optimize for fast installation.
7222 fast_install=$enable_fast_install
7225 host_alias=$host_alias
7228 # An echo program that does not interpret backslashes.
7233 AR_FLAGS=$lt_AR_FLAGS
7235 # The default C compiler.
7238 # Is the compiler the GNU C compiler?
7241 # The linker used to build libraries.
7244 # Whether we need hard or soft links.
7247 # A BSD-compatible nm program.
7250 # A symbol stripping program
7253 # Used to examine libraries when file_magic_cmd begins "file"
7254 MAGIC_CMD=$MAGIC_CMD
7256 # Used on cygwin: DLL creation program.
7259 # Used on cygwin: object dumper.
7262 # Used on cygwin: assembler.
7265 # The name of the directory that contains temporary libtool files.
7268 # How to create reloadable object files.
7269 reload_flag=$lt_reload_flag
7270 reload_cmds=$lt_reload_cmds
7272 # How to pass a linker flag through the compiler.
7275 # Object file suffix (normally "o").
7278 # Old archive suffix (normally "a").
7281 # Executable file suffix (normally "").
7284 # Additional compiler flags for building library objects.
7285 pic_flag=$lt_pic_flag
7288 # Does compiler simultaneously support -c and -o options?
7289 compiler_c_o=$lt_compiler_c_o
7291 # Can we write directly to a .lo ?
7292 compiler_o_lo=$lt_compiler_o_lo
7294 # Must we lock files when doing compilation ?
7295 need_locks=$lt_need_locks
7297 # Do we need the lib prefix for modules?
7298 need_lib_prefix=$need_lib_prefix
7300 # Do we need a version for libraries?
7301 need_version=$need_version
7303 # Whether dlopen is supported.
7304 dlopen_support=$enable_dlopen
7306 # Whether dlopen of programs is supported.
7307 dlopen_self=$enable_dlopen_self
7309 # Whether dlopen of statically linked programs is supported.
7310 dlopen_self_static=$enable_dlopen_self_static
7312 # Compiler flag to prevent dynamic linking.
7313 link_static_flag=$lt_link_static_flag
7315 # Compiler flag to turn off builtin functions.
7316 no_builtin_flag=$lt_no_builtin_flag
7318 # Compiler flag to allow reflexive dlopens.
7319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7321 # Compiler flag to generate shared objects directly from archives.
7322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7324 # Compiler flag to generate thread-safe objects.
7325 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7327 # Library versioning type.
7328 version_type=$version_type
7330 # Format of library name prefix.
7331 libname_spec=$lt_libname_spec
7333 # List of archive names. First name is the real one, the rest are links.
7334 # The last name is the one that the linker finds with -lNAME.
7335 library_names_spec=$lt_library_names_spec
7337 # The coded name of the library, if different from the real name.
7338 soname_spec=$lt_soname_spec
7340 # Commands used to build and install an old-style archive.
7342 old_archive_cmds=$lt_old_archive_cmds
7343 old_postinstall_cmds=$lt_old_postinstall_cmds
7344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7346 # Create an old-style archive from a shared archive.
7347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7349 # Create a temporary old-style archive to link instead of a shared archive.
7350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7352 # Commands used to build and install a shared archive.
7353 archive_cmds=$lt_archive_cmds
7354 archive_expsym_cmds=$lt_archive_expsym_cmds
7355 postinstall_cmds=$lt_postinstall_cmds
7356 postuninstall_cmds=$lt_postuninstall_cmds
7358 # Commands to strip libraries.
7359 old_striplib=$lt_old_striplib
7360 striplib=$lt_striplib
7362 # Method to check whether dependent libraries are shared objects.
7363 deplibs_check_method=$lt_deplibs_check_method
7365 # Command to use when deplibs_check_method == file_magic.
7366 file_magic_cmd=$lt_file_magic_cmd
7368 # Flag that allows shared libraries with undefined symbols to be built.
7369 allow_undefined_flag=$lt_allow_undefined_flag
7371 # Flag that forces no undefined symbols.
7372 no_undefined_flag=$lt_no_undefined_flag
7374 # Commands used to finish a libtool library installation in a directory.
7375 finish_cmds=$lt_finish_cmds
7377 # Same as above, but a single script fragment to be evaled but not shown.
7378 finish_eval=$lt_finish_eval
7380 # Take the output of nm and produce a listing of raw symbols and C names.
7381 global_symbol_pipe=$lt_global_symbol_pipe
7383 # Transform the output of nm in a proper C declaration
7384 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7386 # Transform the output of nm in a C name address pair
7387 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7389 # This is the shared library runtime path variable.
7390 runpath_var=$runpath_var
7392 # This is the shared library path variable.
7393 shlibpath_var=$shlibpath_var
7395 # Is shlibpath searched before the hard-coded library search path?
7396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7398 # How to hardcode a shared library path into an executable.
7399 hardcode_action=$hardcode_action
7401 # Whether we should hardcode library paths into libraries.
7402 hardcode_into_libs=$hardcode_into_libs
7404 # Flag to hardcode \$libdir into a binary during linking.
7405 # This must work even if \$libdir does not exist.
7406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7408 # Whether we need a single -rpath flag with a separated argument.
7409 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7411 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7413 hardcode_direct=$hardcode_direct
7415 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7417 hardcode_minus_L=$hardcode_minus_L
7419 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7420 # the resulting binary.
7421 hardcode_shlibpath_var=$hardcode_shlibpath_var
7423 # Variables whose values should be saved in libtool wrapper scripts and
7424 # restored at relink time.
7425 variables_saved_for_relink="$variables_saved_for_relink"
7427 # Whether libtool must link a program against all its dependency libraries.
7428 link_all_deplibs=$link_all_deplibs
7430 # Compile-time system search path for libraries
7431 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7433 # Run-time system search path for libraries
7434 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7436 # Fix the shell variable \$srcfile for the compiler.
7437 fix_srcfile_path="$fix_srcfile_path"
7439 # Set to yes if exported symbols are required.
7440 always_export_symbols=$always_export_symbols
7442 # The commands to list exported symbols.
7443 export_symbols_cmds=$lt_export_symbols_cmds
7445 # The commands to extract the exported symbol list from a shared archive.
7446 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7448 # Symbols that should not be listed in the preloaded symbols.
7449 exclude_expsyms=$lt_exclude_expsyms
7451 # Symbols that must always be exported.
7452 include_expsyms=$lt_include_expsyms
7454 # ### END LIBTOOL CONFIG
7460 cat <<\EOF >> "${ofile}T"
7462 # AIX sometimes has problems with the GCC collect2 program. For some
7463 # reason, if we set the COLLECT_NAMES environment variable, the problems
7464 # vanish in a puff of smoke.
7465 if test "X${COLLECT_NAMES+set}" != Xset; then
7467 export COLLECT_NAMES
7474 cygwin* | mingw* | pw32* | os2*)
7475 cat <<'EOF' >> "${ofile}T"
7476 # This is a source program that is used to create dlls on Windows
7477 # Don't remove nor modify the starting and closing comments
7478 # /* ltdll.c starts here */
7479 # #define WIN32_LEAN_AND_MEAN
7480 # #include <windows.h>
7481 # #undef WIN32_LEAN_AND_MEAN
7482 # #include <stdio.h>
7484 # #ifndef __CYGWIN__
7485 # # ifdef __CYGWIN32__
7486 # # define __CYGWIN__ __CYGWIN32__
7490 # #ifdef __cplusplus
7493 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7494 # #ifdef __cplusplus
7499 # #include <cygwin/cygwin_dll.h>
7500 # DECLARE_CYGWIN_DLL( DllMain );
7502 # HINSTANCE __hDllInstance_base;
7505 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7507 # __hDllInstance_base = hInst;
7510 # /* ltdll.c ends here */
7511 # This is a source program that is used to create import libraries
7512 # on Windows for dlls which lack them. Don't remove nor modify the
7513 # starting and closing comments
7514 # /* impgen.c starts here */
7515 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7517 # This file is part of GNU libtool.
7519 # This program is free software; you can redistribute it and/or modify
7520 # it under the terms of the GNU General Public License as published by
7521 # the Free Software Foundation; either version 2 of the License, or
7522 # (at your option) any later version.
7524 # This program is distributed in the hope that it will be useful,
7525 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7527 # GNU General Public License for more details.
7529 # You should have received a copy of the GNU General Public License
7530 # along with this program; if not, write to the Free Software
7531 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7534 # #include <stdio.h> /* for printf() */
7535 # #include <unistd.h> /* for open(), lseek(), read() */
7536 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7537 # #include <string.h> /* for strdup() */
7539 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7541 # #define O_BINARY 0
7544 # static unsigned int
7545 # pe_get16 (fd, offset)
7549 # unsigned char b[2];
7550 # lseek (fd, offset, SEEK_SET);
7552 # return b[0] + (b[1]<<8);
7555 # static unsigned int
7556 # pe_get32 (fd, offset)
7560 # unsigned char b[4];
7561 # lseek (fd, offset, SEEK_SET);
7563 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7566 # static unsigned int
7570 # unsigned char *b = ptr;
7571 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7580 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7581 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7582 # unsigned long name_rvas, nexp;
7583 # unsigned char *expdata, *erva;
7584 # char *filename, *dll_name;
7586 # filename = argv[1];
7588 # dll = open(filename, O_RDONLY|O_BINARY);
7592 # dll_name = filename;
7594 # for (i=0; filename[i]; i++)
7595 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7596 # dll_name = filename + i +1;
7598 # pe_header_offset = pe_get32 (dll, 0x3c);
7599 # opthdr_ofs = pe_header_offset + 4 + 20;
7600 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7602 # if (num_entries < 1) /* no exports */
7605 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7606 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7607 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7608 # secptr = (pe_header_offset + 4 + 20 +
7609 # pe_get16 (dll, pe_header_offset + 4 + 16));
7612 # for (i = 0; i < nsections; i++)
7615 # unsigned long secptr1 = secptr + 40 * i;
7616 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7617 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7618 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7619 # lseek(dll, secptr1, SEEK_SET);
7620 # read(dll, sname, 8);
7621 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7623 # expptr = fptr + (export_rva - vaddr);
7624 # if (export_rva + export_size > vaddr + vsize)
7625 # export_size = vsize - (export_rva - vaddr);
7630 # expdata = (unsigned char*)malloc(export_size);
7631 # lseek (dll, expptr, SEEK_SET);
7632 # read (dll, expdata, export_size);
7633 # erva = expdata - export_rva;
7635 # nexp = pe_as32 (expdata+24);
7636 # name_rvas = pe_as32 (expdata+32);
7638 # printf ("EXPORTS\n");
7639 # for (i = 0; i<nexp; i++)
7641 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7642 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7647 # /* impgen.c ends here */
7653 # We use sed instead of cat because bash on DJGPP gets confused if
7654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7655 # text mode, it properly converts lines to CR/LF. This bash problem
7656 # is reportedly fixed, but why not run on old versions too?
7657 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7659 mv -f "${ofile}T" "$ofile" || \
7660 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7668 # This can be used to rebuild libtool when needed
7669 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7671 # Always use our own libtool.
7672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7674 # Prevent multiple expansion
7678 for ac_prog in mawk gawk nawk awk
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_word" >&5
7684 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 if test -n "$AWK"; then
7688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7692 for ac_dir in $ac_dummy; do
7693 test -z "$ac_dir" && ac_dir=.
7694 if test -f $ac_dir/$ac_word; then
7695 ac_cv_prog_AWK="$ac_prog"
7702 AWK="$ac_cv_prog_AWK"
7703 if test -n "$AWK"; then
7704 echo "$ac_t""$AWK" 1>&6
7706 echo "$ac_t""no" 1>&6
7709 test -n "$AWK" && break
7712 # test for ln hardlink support
7713 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7714 echo "configure:7715: checking whether ln works" >&5
7715 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7718 rm -f conftest.src conftest.dst
7719 echo "conftest" > conftest.src
7720 if ln conftest.src conftest.dst 2>/dev/null
7722 ol_cv_prog_LN_H="ln"
7724 ol_cv_prog_LN_H="cp"
7726 rm -f conftest.src conftest.dst
7729 LN_H="$ol_cv_prog_LN_H"
7730 if test "$ol_cv_prog_LN_H" = "ln"; then
7731 echo "$ac_t""yes" 1>&6
7733 echo "$ac_t""no" 1>&6
7736 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7737 echo "configure:7738: checking whether ln -s works" >&5
7738 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7742 if ln -s X conftestdata 2>/dev/null
7745 ac_cv_prog_LN_S="ln -s"
7750 LN_S="$ac_cv_prog_LN_S"
7751 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7752 echo "$ac_t""yes" 1>&6
7754 echo "$ac_t""no" 1>&6
7758 # Extract the first word of "sendmail", so it can be a program name with args.
7759 set dummy sendmail; ac_word=$2
7760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7761 echo "configure:7762: checking for $ac_word" >&5
7762 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7767 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7770 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7774 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7775 for ac_dir in $ac_dummy; do
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f $ac_dir/$ac_word; then
7778 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7783 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7787 SENDMAIL="$ac_cv_path_SENDMAIL"
7788 if test -n "$SENDMAIL"; then
7789 echo "$ac_t""$SENDMAIL" 1>&6
7791 echo "$ac_t""no" 1>&6
7794 # Extract the first word of "vi", so it can be a program name with args.
7795 set dummy vi; ac_word=$2
7796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7797 echo "configure:7798: checking for $ac_word" >&5
7798 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7803 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7806 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7810 ac_dummy="$PATH:/usr/ucb"
7811 for ac_dir in $ac_dummy; do
7812 test -z "$ac_dir" && ac_dir=.
7813 if test -f $ac_dir/$ac_word; then
7814 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7819 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7823 EDITOR="$ac_cv_path_EDITOR"
7824 if test -n "$EDITOR"; then
7825 echo "$ac_t""$EDITOR" 1>&6
7827 echo "$ac_t""no" 1>&6
7832 if test $ol_enable_perl != no ; then
7833 # Extract the first word of "perl", so it can be a program name with args.
7834 set dummy perl; ac_word=$2
7835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7836 echo "configure:7837: checking for $ac_word" >&5
7837 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7842 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7845 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7850 for ac_dir in $ac_dummy; do
7851 test -z "$ac_dir" && ac_dir=.
7852 if test -f $ac_dir/$ac_word; then
7853 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7858 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7862 PERLBIN="$ac_cv_path_PERLBIN"
7863 if test -n "$PERLBIN"; then
7864 echo "$ac_t""$PERLBIN" 1>&6
7866 echo "$ac_t""no" 1>&6
7870 if test "no$PERLBIN" = "no" ; then
7871 if test $ol_enable_perl = yes ; then
7872 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7876 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7877 if test x"$ol_with_perl_module" = "xstatic" ; then
7878 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7880 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7886 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7887 echo "configure:7888: checking how to run the C preprocessor" >&5
7888 # On Suns, sometimes $CPP names a directory.
7889 if test -n "$CPP" && test -d "$CPP"; then
7892 if test -z "$CPP"; then
7893 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7896 # This must be in double quotes, not single quotes, because CPP may get
7897 # substituted into the Makefile and "${CC-cc}" will confuse make.
7899 # On the NeXT, cc -E runs the code through the compiler's parser,
7900 # not just through cpp.
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7908 { (eval echo configure:7909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7910 if test -z "$ac_err"; then
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7917 CPP="${CC-cc} -E -traditional-cpp"
7918 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure"
7920 #include "confdefs.h"
7924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7925 { (eval echo configure:7926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7927 if test -z "$ac_err"; then
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7934 CPP="${CC-cc} -nologo -E"
7935 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure"
7937 #include "confdefs.h"
7941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7942 { (eval echo configure:7943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7944 if test -z "$ac_err"; then
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7958 ac_cv_prog_CPP="$CPP"
7960 CPP="$ac_cv_prog_CPP"
7962 ac_cv_prog_CPP="$CPP"
7964 echo "$ac_t""$CPP" 1>&6
7967 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7968 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7970 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7971 echo "configure: warning: programs compiled here do run here..." 1>&2
7972 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7974 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7975 echo "configure: warning: programs compiled here do not run here..." 1>&2
7976 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7980 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7981 echo "configure:7982: checking for Cygwin environment" >&5
7982 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7992 #define __CYGWIN__ __CYGWIN32__
7997 if { (eval echo configure:7998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8001 echo "configure: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8009 echo "$ac_t""$ac_cv_cygwin" 1>&6
8011 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8012 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8013 echo "configure:8014: checking for mingw32 environment" >&5
8014 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8025 if { (eval echo configure:8026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8029 echo "configure: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8037 echo "$ac_t""$ac_cv_mingw32" 1>&6
8039 test "$ac_cv_mingw32" = yes && MINGW32=yes
8043 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8044 echo "configure:8045: checking for executable suffix" >&5
8045 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8046 echo $ac_n "(cached) $ac_c" 1>&6
8048 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8052 echo 'int main () { return 0; }' > conftest.$ac_ext
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8055 for file in conftest.*; do
8057 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8058 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8062 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8065 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8070 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8071 echo "$ac_t""${ac_cv_exeext}" 1>&6
8074 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8075 echo "configure:8076: checking for object suffix" >&5
8076 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8080 echo 'int i = 1;' > conftest.$ac_ext
8081 if { (eval echo configure:8082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8082 for ac_file in conftest.*; do
8085 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8089 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8094 echo "$ac_t""$ac_cv_objext" 1>&6
8095 OBJEXT=$ac_cv_objext
8096 ac_objext=$ac_cv_objext
8099 cat >> confdefs.h <<EOF
8100 #define EXEEXT "${EXEEXT}"
8104 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8105 echo "configure:8106: checking for be_app in -lbe" >&5
8106 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 ac_save_LIBS="$LIBS"
8111 LIBS="-lbe -lroot -lnet $LIBS"
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 /* Override any gcc2 internal prototype to avoid an error. */
8116 /* We use char because int might match the return type of a gcc2
8117 builtin and then its argument prototype would still apply. */
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 eval "ac_cv_lib_$ac_lib_var=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_lib_$ac_lib_var=no"
8134 LIBS="$ac_save_LIBS"
8137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8138 echo "$ac_t""yes" 1>&6
8139 LIBS="$LIBS -lbe -lroot -lnet"
8141 echo "$ac_t""no" 1>&6
8149 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8150 echo "configure:8151: checking for ${CC-cc} option to accept ANSI C" >&5
8151 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 am_cv_prog_cc_stdc=no
8156 # Don't try gcc -ansi; that turns off useful extensions and
8157 # breaks some systems' header files.
8158 # AIX -qlanglvl=ansi
8159 # Ultrix and OSF/1 -std1
8160 # HP-UX 10.20 and later -Ae
8161 # HP-UX older versions -Aa -D_HPUX_SOURCE
8162 # SVR4 -Xc -D__EXTENSIONS__
8163 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8165 CC="$ac_save_CC $ac_arg"
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8171 #include <sys/types.h>
8172 #include <sys/stat.h>
8173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8174 struct buf { int x; };
8175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8176 static char *e (p, i)
8182 static char *f (char * (*g) (char **, int), char **p, ...)
8187 s = g (p, va_arg (v,int));
8191 int test (int i, double x);
8192 struct s1 {int (*f) (int a);};
8193 struct s2 {int (*f) (double a);};
8194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8204 if { (eval echo configure:8205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8206 am_cv_prog_cc_stdc="$ac_arg"; break
8208 echo "configure: failed program was:" >&5
8209 cat conftest.$ac_ext >&5
8217 if test -z "$am_cv_prog_cc_stdc"; then
8218 echo "$ac_t""none needed" 1>&6
8220 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8222 case "x$am_cv_prog_cc_stdc" in
8224 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8227 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8228 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8231 # test for make depend flag
8234 if test -z "${MKDEP}"; then
8236 if test -z "${MKDEP_FLAGS}"; then
8237 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8238 echo "configure:8239: checking for ${OL_MKDEP} depend flag" >&5
8239 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8244 for flag in "-M" "-xM"; do
8245 cat > conftest.c <<EOF
8248 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8249 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8251 if test ! -f conftest."${ac_object}" ; then
8253 OL_MKDEP_FLAGS="$flag"
8262 echo "$ac_t""$ol_cv_mkdep" 1>&6
8265 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8270 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8275 if test "${ol_cv_mkdep}" = no ; then
8276 # this will soon become an error
8277 echo "configure: warning: do not know how to generate dependencies" 1>&2
8280 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8281 echo "configure:8282: checking for afopen in -ls" >&5
8282 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8286 ac_save_LIBS="$LIBS"
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 /* We use char because int might match the return type of a gcc2
8293 builtin and then its argument prototype would still apply. */
8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 eval "ac_cv_lib_$ac_lib_var=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8307 eval "ac_cv_lib_$ac_lib_var=no"
8310 LIBS="$ac_save_LIBS"
8313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8314 echo "$ac_t""yes" 1>&6
8317 cat >> confdefs.h <<\EOF
8318 #define HAVE_AIX_SECURITY 1
8323 echo "$ac_t""no" 1>&6
8329 if test $ol_enable_modules != no ; then
8330 for ac_hdr in ltdl.h
8332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8334 echo "configure:8335: checking for $ac_hdr" >&5
8335 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8344 { (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8346 if test -z "$ac_err"; then
8348 eval "ac_cv_header_$ac_safe=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8354 eval "ac_cv_header_$ac_safe=no"
8358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8359 echo "$ac_t""yes" 1>&6
8360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8361 cat >> confdefs.h <<EOF
8362 #define $ac_tr_hdr 1
8366 echo "$ac_t""no" 1>&6
8371 if test $ac_cv_header_ltdl_h = no ; then
8372 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8375 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8376 echo "configure:8377: checking for lt_dlinit in -lltdl" >&5
8377 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8378 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 ac_save_LIBS="$LIBS"
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8386 /* Override any gcc2 internal prototype to avoid an error. */
8387 /* We use char because int might match the return type of a gcc2
8388 builtin and then its argument prototype would still apply. */
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397 eval "ac_cv_lib_$ac_lib_var=yes"
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8402 eval "ac_cv_lib_$ac_lib_var=no"
8405 LIBS="$ac_save_LIBS"
8408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6
8412 cat >> confdefs.h <<\EOF
8413 #define HAVE_LIBLTDL 1
8418 echo "$ac_t""no" 1>&6
8422 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8423 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8427 ol_with_bdb_module=static
8428 ol_with_dnssrv_module=static
8429 ol_with_ldap_module=static
8430 ol_with_ldbm_module=static
8431 ol_with_meta_module=static
8432 ol_with_monitor_module=static
8433 ol_with_null_module=static
8434 ol_with_passwd_module=static
8435 ol_with_perl_module=static
8436 ol_with_shell_module=static
8437 ol_with_tcl_module=static
8438 ol_with_sql_module=static
8442 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8443 echo "configure:8444: checking for EBCDIC" >&5
8444 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8445 echo $ac_n "(cached) $ac_c" 1>&6
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8453 #include <__ASCII__/generate_error.h>
8457 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8458 { (eval echo configure:8459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8459 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8460 if test -z "$ac_err"; then
8462 ol_cv_cpp_ebcdic=yes
8465 echo "configure: failed program was:" >&5
8466 cat conftest.$ac_ext >&5
8473 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8474 if test $ol_cv_cpp_ebcdic = yes ; then
8475 cat >> confdefs.h <<\EOF
8476 #define HAVE_EBCDIC 1
8481 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8482 echo "configure:8483: checking for ANSI C header files" >&5
8483 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8486 cat > conftest.$ac_ext <<EOF
8487 #line 8488 "configure"
8488 #include "confdefs.h"
8494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8495 { (eval echo configure:8496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8497 if test -z "$ac_err"; then
8499 ol_cv_header_stdc=yes
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 ol_cv_header_stdc=no
8509 if test $ol_cv_header_stdc = yes; then
8510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8511 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8517 egrep "memchr" >/dev/null 2>&1; then
8521 ol_cv_header_stdc=no
8527 if test $ol_cv_header_stdc = yes; then
8528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8529 cat > conftest.$ac_ext <<EOF
8530 #line 8531 "configure"
8531 #include "confdefs.h"
8534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8535 egrep "free" >/dev/null 2>&1; then
8539 ol_cv_header_stdc=no
8545 if test $ol_cv_header_stdc = yes; then
8546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8547 if test "$cross_compiling" = yes; then
8550 cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8558 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8559 || ('j' <= (c) && (c) <= 'r') \
8560 || ('s' <= (c) && (c) <= 'z'))
8561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8564 int main () { int i; for (i = 0; i < 256; i++)
8565 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8569 if { (eval echo configure:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8573 echo "configure: failed program was:" >&5
8574 cat conftest.$ac_ext >&5
8576 ol_cv_header_stdc=no
8584 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8585 if test $ol_cv_header_stdc = yes; then
8586 cat >> confdefs.h <<\EOF
8587 #define STDC_HEADERS 1
8591 ac_cv_header_stdc=disable
8594 if test $ol_cv_header_stdc != yes; then
8595 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8599 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8602 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8603 echo "configure:8604: checking for $ac_hdr that defines DIR" >&5
8604 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8610 #include <sys/types.h>
8616 if { (eval echo configure:8617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8618 eval "ac_cv_header_dirent_$ac_safe=yes"
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 eval "ac_cv_header_dirent_$ac_safe=no"
8627 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8628 echo "$ac_t""yes" 1>&6
8629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8630 cat >> confdefs.h <<EOF
8631 #define $ac_tr_hdr 1
8633 ac_header_dirent=$ac_hdr; break
8635 echo "$ac_t""no" 1>&6
8638 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8639 if test $ac_header_dirent = dirent.h; then
8640 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8641 echo "configure:8642: checking for opendir in -ldir" >&5
8642 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8643 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8646 ac_save_LIBS="$LIBS"
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 eval "ac_cv_lib_$ac_lib_var=yes"
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8667 eval "ac_cv_lib_$ac_lib_var=no"
8670 LIBS="$ac_save_LIBS"
8673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8677 echo "$ac_t""no" 1>&6
8681 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8682 echo "configure:8683: checking for opendir in -lx" >&5
8683 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8684 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8687 ac_save_LIBS="$LIBS"
8689 cat > conftest.$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8692 /* Override any gcc2 internal prototype to avoid an error. */
8693 /* We use char because int might match the return type of a gcc2
8694 builtin and then its argument prototype would still apply. */
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8703 eval "ac_cv_lib_$ac_lib_var=yes"
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 eval "ac_cv_lib_$ac_lib_var=no"
8711 LIBS="$ac_save_LIBS"
8714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8715 echo "$ac_t""yes" 1>&6
8718 echo "$ac_t""no" 1>&6
8723 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8724 echo "configure:8725: checking for sys/wait.h that is POSIX.1 compatible" >&5
8725 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8726 echo $ac_n "(cached) $ac_c" 1>&6
8728 cat > conftest.$ac_ext <<EOF
8729 #line 8730 "configure"
8730 #include "confdefs.h"
8731 #include <sys/types.h>
8732 #include <sys/wait.h>
8734 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8737 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8742 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8745 if { (eval echo configure:8746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8747 ac_cv_header_sys_wait_h=yes
8749 echo "configure: failed program was:" >&5
8750 cat conftest.$ac_ext >&5
8752 ac_cv_header_sys_wait_h=no
8757 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8758 if test $ac_cv_header_sys_wait_h = yes; then
8759 cat >> confdefs.h <<\EOF
8760 #define HAVE_SYS_WAIT_H 1
8765 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8766 echo "configure:8767: checking POSIX termios" >&5
8767 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8768 echo $ac_n "(cached) $ac_c" 1>&6
8770 cat > conftest.$ac_ext <<EOF
8771 #line 8772 "configure"
8772 #include "confdefs.h"
8773 #include <sys/types.h>
8775 #include <termios.h>
8777 /* SunOS 4.0.3 has termios.h but not the library calls. */
8781 if { (eval echo configure:8782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8783 am_cv_sys_posix_termios=yes
8785 echo "configure: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8788 am_cv_sys_posix_termios=no
8793 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8796 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8797 echo "configure:8798: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8798 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8799 echo $ac_n "(cached) $ac_c" 1>&6
8801 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8803 gwinsz_in_termios_h=no
8804 if test $am_cv_sys_posix_termios = yes; then
8805 cat > conftest.$ac_ext <<EOF
8806 #line 8807 "configure"
8807 #include "confdefs.h"
8808 #include <sys/types.h>
8809 # include <termios.h>
8815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8816 egrep "yes" >/dev/null 2>&1; then
8818 gwinsz_in_termios_h=yes
8824 if test $gwinsz_in_termios_h = no; then
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8828 #include <sys/types.h>
8829 # include <sys/ioctl.h>
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836 egrep "yes" >/dev/null 2>&1; then
8838 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8846 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8847 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8848 cat >> confdefs.h <<\EOF
8849 #define GWINSZ_IN_SYS_IOCTL 1
8854 if test $am_cv_sys_posix_termios = yes ; then
8855 cat >> confdefs.h <<\EOF
8856 #define HAVE_POSIX_TERMIOS 1
8908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8910 echo "configure:8911: checking for $ac_hdr" >&5
8911 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8912 echo $ac_n "(cached) $ac_c" 1>&6
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8920 { (eval echo configure:8921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8922 if test -z "$ac_err"; then
8924 eval "ac_cv_header_$ac_safe=yes"
8927 echo "configure: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8930 eval "ac_cv_header_$ac_safe=no"
8934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8935 echo "$ac_t""yes" 1>&6
8936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8937 cat >> confdefs.h <<EOF
8938 #define $ac_tr_hdr 1
8942 echo "$ac_t""no" 1>&6
8949 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8950 echo "configure:8951: checking for dlopen" >&5
8951 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 /* System header to define __stub macros and hopefully few prototypes,
8958 which can conflict with char dlopen(); below. */
8960 /* Override any gcc2 internal prototype to avoid an error. */
8961 /* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
8968 /* The GNU C library defines this for functions which it implements
8969 to always fail with ENOSYS. Some functions are actually named
8970 something starting with __ and the normal name is an alias. */
8971 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8981 eval "ac_cv_func_dlopen=yes"
8983 echo "configure: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8986 eval "ac_cv_func_dlopen=no"
8991 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8992 echo "$ac_t""yes" 1>&6
8995 echo "$ac_t""no" 1>&6
8996 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8997 echo "configure:8998: checking for dlopen in -ldl" >&5
8998 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9002 ac_save_LIBS="$LIBS"
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9007 /* Override any gcc2 internal prototype to avoid an error. */
9008 /* We use char because int might match the return type of a gcc2
9009 builtin and then its argument prototype would still apply. */
9016 if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9018 eval "ac_cv_lib_$ac_lib_var=yes"
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9023 eval "ac_cv_lib_$ac_lib_var=no"
9026 LIBS="$ac_save_LIBS"
9029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9030 echo "$ac_t""yes" 1>&6
9031 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9032 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9033 cat >> confdefs.h <<EOF
9034 #define $ac_tr_lib 1
9040 echo "$ac_t""no" 1>&6
9046 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9047 echo "configure:9048: checking for sigset in -lV3" >&5
9048 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9050 echo $ac_n "(cached) $ac_c" 1>&6
9052 ac_save_LIBS="$LIBS"
9054 cat > conftest.$ac_ext <<EOF
9055 #line 9056 "configure"
9056 #include "confdefs.h"
9057 /* Override any gcc2 internal prototype to avoid an error. */
9058 /* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9068 eval "ac_cv_lib_$ac_lib_var=yes"
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9073 eval "ac_cv_lib_$ac_lib_var=no"
9076 LIBS="$ac_save_LIBS"
9079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9080 echo "$ac_t""yes" 1>&6
9081 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9083 cat >> confdefs.h <<EOF
9084 #define $ac_tr_lib 1
9090 echo "$ac_t""no" 1>&6
9094 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9095 echo "configure:9096: checking for winsock" >&5
9097 for curlib in ws2_32 wsock32; do
9098 LIBS="$LIBS -l$curlib"
9099 cat > conftest.$ac_ext <<EOF
9100 #line 9101 "configure"
9101 #include "confdefs.h"
9105 char closesocket@4();
9106 char gethostname@8();
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9128 if test $have_winsock = yes; then
9129 cat >> confdefs.h <<\EOF
9130 #define HAVE_WINSOCK 1
9133 ac_cv_func_socket=yes
9134 ac_cv_func_select=yes
9135 ac_cv_func_closesocket=yes
9136 ac_cv_func_gethostname=yes
9137 if test $curlib = ws2_32; then
9138 have_winsock=winsock2
9139 cat >> confdefs.h <<\EOF
9140 #define HAVE_WINSOCK2 1
9148 echo "$ac_t""$have_winsock" 1>&6
9151 echo $ac_n "checking for socket""... $ac_c" 1>&6
9152 echo "configure:9153: checking for socket" >&5
9153 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9159 /* System header to define __stub macros and hopefully few prototypes,
9160 which can conflict with char socket(); below. */
9162 /* Override any gcc2 internal prototype to avoid an error. */
9163 /* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
9170 /* The GNU C library defines this for functions which it implements
9171 to always fail with ENOSYS. Some functions are actually named
9172 something starting with __ and the normal name is an alias. */
9173 #if defined (__stub_socket) || defined (__stub___socket)
9181 if { (eval echo configure:9182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9183 eval "ac_cv_func_socket=yes"
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 eval "ac_cv_func_socket=no"
9193 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9194 echo "$ac_t""yes" 1>&6
9197 echo "$ac_t""no" 1>&6
9199 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9200 echo "configure:9201: checking for main in -lsocket" >&5
9201 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9203 echo $ac_n "(cached) $ac_c" 1>&6
9205 ac_save_LIBS="$LIBS"
9206 LIBS="-lsocket $LIBS"
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9215 if { (eval echo configure:9216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9217 eval "ac_cv_lib_$ac_lib_var=yes"
9219 echo "configure: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9222 eval "ac_cv_lib_$ac_lib_var=no"
9225 LIBS="$ac_save_LIBS"
9228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9229 echo "$ac_t""yes" 1>&6
9230 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9232 cat >> confdefs.h <<EOF
9233 #define $ac_tr_lib 1
9236 LIBS="-lsocket $LIBS"
9239 echo "$ac_t""no" 1>&6
9242 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9243 echo "configure:9244: checking for main in -lnet" >&5
9244 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9248 ac_save_LIBS="$LIBS"
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9260 eval "ac_cv_lib_$ac_lib_var=yes"
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 eval "ac_cv_lib_$ac_lib_var=no"
9268 LIBS="$ac_save_LIBS"
9271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9272 echo "$ac_t""yes" 1>&6
9273 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9275 cat >> confdefs.h <<EOF
9276 #define $ac_tr_lib 1
9282 echo "$ac_t""no" 1>&6
9285 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9286 echo "configure:9287: checking for main in -lnsl_s" >&5
9287 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9288 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9291 ac_save_LIBS="$LIBS"
9292 LIBS="-lnsl_s $LIBS"
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9303 eval "ac_cv_lib_$ac_lib_var=yes"
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 eval "ac_cv_lib_$ac_lib_var=no"
9311 LIBS="$ac_save_LIBS"
9314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9316 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9317 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9318 cat >> confdefs.h <<EOF
9319 #define $ac_tr_lib 1
9322 LIBS="-lnsl_s $LIBS"
9325 echo "$ac_t""no" 1>&6
9328 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9329 echo "configure:9330: checking for main in -lnsl" >&5
9330 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9331 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9332 echo $ac_n "(cached) $ac_c" 1>&6
9334 ac_save_LIBS="$LIBS"
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9346 eval "ac_cv_lib_$ac_lib_var=yes"
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 eval "ac_cv_lib_$ac_lib_var=no"
9354 LIBS="$ac_save_LIBS"
9357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9358 echo "$ac_t""yes" 1>&6
9359 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9361 cat >> confdefs.h <<EOF
9362 #define $ac_tr_lib 1
9368 echo "$ac_t""no" 1>&6
9371 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9372 echo "configure:9373: checking for socket in -linet" >&5
9373 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9377 ac_save_LIBS="$LIBS"
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9382 /* Override any gcc2 internal prototype to avoid an error. */
9383 /* We use char because int might match the return type of a gcc2
9384 builtin and then its argument prototype would still apply. */
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9393 eval "ac_cv_lib_$ac_lib_var=yes"
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 eval "ac_cv_lib_$ac_lib_var=no"
9401 LIBS="$ac_save_LIBS"
9404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9405 echo "$ac_t""yes" 1>&6
9406 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9407 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9408 cat >> confdefs.h <<EOF
9409 #define $ac_tr_lib 1
9415 echo "$ac_t""no" 1>&6
9418 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9419 echo "configure:9420: checking for main in -lgen" >&5
9420 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9422 echo $ac_n "(cached) $ac_c" 1>&6
9424 ac_save_LIBS="$LIBS"
9426 cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure"
9428 #include "confdefs.h"
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9436 eval "ac_cv_lib_$ac_lib_var=yes"
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 eval "ac_cv_lib_$ac_lib_var=no"
9444 LIBS="$ac_save_LIBS"
9447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9448 echo "$ac_t""yes" 1>&6
9449 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9451 cat >> confdefs.h <<EOF
9452 #define $ac_tr_lib 1
9458 echo "$ac_t""no" 1>&6
9465 echo $ac_n "checking for select""... $ac_c" 1>&6
9466 echo "configure:9467: checking for select" >&5
9467 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9470 cat > conftest.$ac_ext <<EOF
9471 #line 9472 "configure"
9472 #include "confdefs.h"
9473 /* System header to define __stub macros and hopefully few prototypes,
9474 which can conflict with char select(); below. */
9476 /* Override any gcc2 internal prototype to avoid an error. */
9477 /* We use char because int might match the return type of a gcc2
9478 builtin and then its argument prototype would still apply. */
9484 /* The GNU C library defines this for functions which it implements
9485 to always fail with ENOSYS. Some functions are actually named
9486 something starting with __ and the normal name is an alias. */
9487 #if defined (__stub_select) || defined (__stub___select)
9495 if { (eval echo configure:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9497 eval "ac_cv_func_select=yes"
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9502 eval "ac_cv_func_select=no"
9507 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9511 echo "$ac_t""no" 1>&6
9512 { echo "configure: error: select() required." 1>&2; exit 1; }
9516 if test "${ac_cv_header_winsock_h}" != yes; then
9517 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9518 echo "configure:9519: checking types of arguments for select()" >&5
9519 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9522 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9523 echo $ac_n "(cached) $ac_c" 1>&6
9525 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9528 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9529 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9530 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 #ifdef HAVE_SYS_TYPES_H
9535 #include <sys/types.h>
9537 #ifdef HAVE_SYS_TIME_H
9538 #include <sys/time.h>
9540 #ifdef HAVE_SYS_SELECT_H
9541 #include <sys/select.h>
9543 #ifdef HAVE_SYS_SOCKET_H
9544 #include <sys/socket.h>
9546 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);
9551 if { (eval echo configure:9552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9553 ac_not_found=no ; break 3
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9570 if test "$ac_not_found" = yes; then
9571 ac_cv_func_select_arg1=int
9572 ac_cv_func_select_arg234='int *'
9573 ac_cv_func_select_arg5='struct timeval *'
9575 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9576 cat >> confdefs.h <<EOF
9577 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9580 cat >> confdefs.h <<EOF
9581 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9584 cat >> confdefs.h <<EOF
9585 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9592 for ac_hdr in regex.h
9594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9596 echo "configure:9597: checking for $ac_hdr" >&5
9597 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9606 { (eval echo configure:9607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9608 if test -z "$ac_err"; then
9610 eval "ac_cv_header_$ac_safe=yes"
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9616 eval "ac_cv_header_$ac_safe=no"
9620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9621 echo "$ac_t""yes" 1>&6
9622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9623 cat >> confdefs.h <<EOF
9624 #define $ac_tr_hdr 1
9628 echo "$ac_t""no" 1>&6
9632 if test "$ac_cv_header_regex_h" != yes ; then
9633 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9636 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9637 echo "configure:9638: checking for library containing regfree" >&5
9638 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9641 ac_func_search_save_LIBS="$LIBS"
9642 ac_cv_search_regfree="no"
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9646 /* Override any gcc2 internal prototype to avoid an error. */
9647 /* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9655 if { (eval echo configure:9656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9657 ac_cv_search_regfree="none required"
9659 echo "configure: failed program was:" >&5
9660 cat conftest.$ac_ext >&5
9663 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 /* Override any gcc2 internal prototype to avoid an error. */
9669 /* We use char because int might match the return type of a gcc2
9670 builtin and then its argument prototype would still apply. */
9677 if { (eval echo configure:9678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9679 ac_cv_search_regfree="-l$ac_lib"
9682 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9687 LIBS="$ac_func_search_save_LIBS"
9690 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9691 if test "$ac_cv_search_regfree" != "no"; then
9692 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9695 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9699 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9700 echo "configure:9701: checking for compatible POSIX regex" >&5
9701 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9705 if test "$cross_compiling" = yes; then
9706 ol_cv_c_posix_regex=cross
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9712 #include <sys/types.h>
9714 static char *pattern, *string;
9722 if(regcomp(&re, pattern, 0)) {
9726 string = "ALL MATCH";
9728 rc = regexec(&re, string, 0, (void*)0, 0);
9735 if { (eval echo configure:9736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9737 ol_cv_c_posix_regex=yes
9739 echo "configure: failed program was:" >&5
9740 cat conftest.$ac_ext >&5
9742 ol_cv_c_posix_regex=no
9749 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9751 if test "$ol_cv_c_posix_regex" = no ; then
9752 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9757 for ac_hdr in sys/uuid.h
9759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9761 echo "configure:9762: checking for $ac_hdr" >&5
9762 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9765 cat > conftest.$ac_ext <<EOF
9766 #line 9767 "configure"
9767 #include "confdefs.h"
9770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9771 { (eval echo configure:9772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9773 if test -z "$ac_err"; then
9775 eval "ac_cv_header_$ac_safe=yes"
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9781 eval "ac_cv_header_$ac_safe=no"
9785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9786 echo "$ac_t""yes" 1>&6
9787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9788 cat >> confdefs.h <<EOF
9789 #define $ac_tr_hdr 1
9793 echo "$ac_t""no" 1>&6
9797 if test $ac_cv_header_sys_uuid_h = yes ; then
9800 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9801 echo "configure:9802: checking for library containing uuid_to_str" >&5
9802 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9803 echo $ac_n "(cached) $ac_c" 1>&6
9805 ac_func_search_save_LIBS="$LIBS"
9806 ac_cv_search_uuid_to_str="no"
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9810 /* Override any gcc2 internal prototype to avoid an error. */
9811 /* We use char because int might match the return type of a gcc2
9812 builtin and then its argument prototype would still apply. */
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9821 ac_cv_search_uuid_to_str="none required"
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9827 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 /* Override any gcc2 internal prototype to avoid an error. */
9833 /* We use char because int might match the return type of a gcc2
9834 builtin and then its argument prototype would still apply. */
9841 if { (eval echo configure:9842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9843 ac_cv_search_uuid_to_str="-l$ac_lib"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9851 LIBS="$ac_func_search_save_LIBS"
9854 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9855 if test "$ac_cv_search_uuid_to_str" != "no"; then
9856 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9863 if test have_uuid = yes ; then
9864 cat >> confdefs.h <<\EOF
9865 #define HAVE_UUID_TO_STR 1
9869 test "$ac_cv_search_uuid_to_str" = "none required" || \
9870 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9874 if test $have_uuid = no ; then
9875 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9876 echo "configure:9877: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9878 LIBS="$LIBS -lrpcrt4"
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9883 char UuidCreate@4();
9884 char UuidToStringA@8();
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9903 if test $need_rpcrt = yes; then
9904 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9907 echo "$ac_t""$need_rpcrt" 1>&6
9911 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9912 echo "configure:9913: checking for res_query" >&5
9913 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9919 /* System header to define __stub macros and hopefully few prototypes,
9920 which can conflict with char res_query(); below. */
9922 /* Override any gcc2 internal prototype to avoid an error. */
9923 /* We use char because int might match the return type of a gcc2
9924 builtin and then its argument prototype would still apply. */
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined (__stub_res_query) || defined (__stub___res_query)
9941 if { (eval echo configure:9942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9943 eval "ac_cv_func_res_query=yes"
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9948 eval "ac_cv_func_res_query=no"
9953 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9957 echo "$ac_t""no" 1>&6
9960 if test $ac_cv_func_res_query = no ; then
9961 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9962 echo "configure:9963: checking for __res_query" >&5
9963 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9966 cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9969 /* System header to define __stub macros and hopefully few prototypes,
9970 which can conflict with char __res_query(); below. */
9972 /* Override any gcc2 internal prototype to avoid an error. */
9973 /* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
9980 /* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983 #if defined (__stub___res_query) || defined (__stub_____res_query)
9991 if { (eval echo configure:9992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9993 eval "ac_cv_func___res_query=yes"
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9998 eval "ac_cv_func___res_query=no"
10003 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10004 echo "$ac_t""yes" 1>&6
10007 echo "$ac_t""no" 1>&6
10010 ac_cv_func_res_query=$ac_cv_func___res_query
10013 if test $ac_cv_func_res_query = no ; then
10014 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10015 echo "configure:10016: checking for res_query in -lbind" >&5
10016 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10017 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10020 ac_save_LIBS="$LIBS"
10021 LIBS="-lbind $LIBS"
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10034 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10036 eval "ac_cv_lib_$ac_lib_var=yes"
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10041 eval "ac_cv_lib_$ac_lib_var=no"
10044 LIBS="$ac_save_LIBS"
10047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10048 echo "$ac_t""yes" 1>&6
10049 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10051 cat >> confdefs.h <<EOF
10052 #define $ac_tr_lib 1
10055 LIBS="-lbind $LIBS"
10058 echo "$ac_t""no" 1>&6
10061 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10064 if test $ac_cv_func_res_query = no ; then
10065 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10066 echo "configure:10067: checking for __res_query in -lbind" >&5
10067 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10068 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10071 ac_save_LIBS="$LIBS"
10072 LIBS="-lbind $LIBS"
10073 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char __res_query();
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10087 eval "ac_cv_lib_$ac_lib_var=yes"
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10092 eval "ac_cv_lib_$ac_lib_var=no"
10095 LIBS="$ac_save_LIBS"
10098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10099 echo "$ac_t""yes" 1>&6
10100 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10102 cat >> confdefs.h <<EOF
10103 #define $ac_tr_lib 1
10106 LIBS="-lbind $LIBS"
10109 echo "$ac_t""no" 1>&6
10112 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10115 if test $ac_cv_func_res_query = no ; then
10116 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10117 echo "configure:10118: checking for res_query in -lresolv" >&5
10118 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10120 echo $ac_n "(cached) $ac_c" 1>&6
10122 ac_save_LIBS="$LIBS"
10123 LIBS="-lresolv $LIBS"
10124 cat > conftest.$ac_ext <<EOF
10125 #line 10126 "configure"
10126 #include "confdefs.h"
10127 /* Override any gcc2 internal prototype to avoid an error. */
10128 /* We use char because int might match the return type of a gcc2
10129 builtin and then its argument prototype would still apply. */
10136 if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10138 eval "ac_cv_lib_$ac_lib_var=yes"
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 eval "ac_cv_lib_$ac_lib_var=no"
10146 LIBS="$ac_save_LIBS"
10149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10152 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10153 cat >> confdefs.h <<EOF
10154 #define $ac_tr_lib 1
10157 LIBS="-lresolv $LIBS"
10160 echo "$ac_t""no" 1>&6
10163 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10166 if test $ac_cv_func_res_query = no ; then
10167 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10168 echo "configure:10169: checking for __res_query in -lresolv" >&5
10169 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10170 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10173 ac_save_LIBS="$LIBS"
10174 LIBS="-lresolv $LIBS"
10175 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 /* Override any gcc2 internal prototype to avoid an error. */
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char __res_query();
10187 if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10189 eval "ac_cv_lib_$ac_lib_var=yes"
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10194 eval "ac_cv_lib_$ac_lib_var=no"
10197 LIBS="$ac_save_LIBS"
10200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10201 echo "$ac_t""yes" 1>&6
10202 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10204 cat >> confdefs.h <<EOF
10205 #define $ac_tr_lib 1
10208 LIBS="-lresolv $LIBS"
10211 echo "$ac_t""no" 1>&6
10214 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10217 if test "$ac_cv_func_res_query" = yes ; then
10218 cat >> confdefs.h <<\EOF
10219 #define HAVE_RES_QUERY 1
10223 if test $ol_enable_dnssrv != no ; then
10228 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10229 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10232 for ac_func in getaddrinfo gai_strerror inet_ntop
10234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10235 echo "configure:10236: checking for $ac_func" >&5
10236 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10239 cat > conftest.$ac_ext <<EOF
10240 #line 10241 "configure"
10241 #include "confdefs.h"
10242 /* System header to define __stub macros and hopefully few prototypes,
10243 which can conflict with char $ac_func(); below. */
10244 #include <assert.h>
10245 /* Override any gcc2 internal prototype to avoid an error. */
10246 /* We use char because int might match the return type of a gcc2
10247 builtin and then its argument prototype would still apply. */
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10266 eval "ac_cv_func_$ac_func=yes"
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10271 eval "ac_cv_func_$ac_func=no"
10276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10277 echo "$ac_t""yes" 1>&6
10278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10279 cat >> confdefs.h <<EOF
10280 #define $ac_tr_func 1
10284 echo "$ac_t""no" 1>&6
10290 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10291 if test $ol_enable_ipv6 = yes ; then
10292 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10294 elif test $ol_enable_ipv6 != no ; then
10295 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10296 echo "configure:10297: checking INET6_ADDRSTRLEN" >&5
10297 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10305 # include <netinet/in.h>
10306 # ifdef INET6_ADDRSTRLEN
10307 __has_inet6_addrstrlen__;
10311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10312 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10314 ol_cv_inet6_addrstrlen=yes
10317 ol_cv_inet6_addrstrlen=no
10323 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10326 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10327 echo "configure:10328: checking struct sockaddr_storage" >&5
10328 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure"
10334 #include "confdefs.h"
10336 #include <sys/types.h>
10337 #include <sys/socket.h>
10341 struct sockaddr_storage ss;
10345 if { (eval echo configure:10346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10347 ol_cv_struct_sockaddr_storage=yes
10349 echo "configure: failed program was:" >&5
10350 cat conftest.$ac_ext >&5
10352 ol_cv_struct_sockaddr_storage=no
10357 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10359 if test $ol_cv_inet6_addrstrlen = yes \
10360 -a $ol_cv_struct_sockaddr_storage = yes ; then
10362 elif test $ol_enable_ipv6 = yes \
10363 -a $ol_cv_inet6_addrstrlen = no ; then
10364 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10365 elif test $ol_enable_ipv6 = yes \
10366 -a $ol_cv_struct_sockaddr_storage = no ; then
10367 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10371 if test $ol_enable_local != no ; then
10372 for ac_hdr in sys/un.h
10374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10376 echo "configure:10377: checking for $ac_hdr" >&5
10377 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 cat > conftest.$ac_ext <<EOF
10381 #line 10382 "configure"
10382 #include "confdefs.h"
10385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10386 { (eval echo configure:10387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10388 if test -z "$ac_err"; then
10390 eval "ac_cv_header_$ac_safe=yes"
10393 echo "configure: failed program was:" >&5
10394 cat conftest.$ac_ext >&5
10396 eval "ac_cv_header_$ac_safe=no"
10400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10401 echo "$ac_t""yes" 1>&6
10402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10403 cat >> confdefs.h <<EOF
10404 #define $ac_tr_hdr 1
10408 echo "$ac_t""no" 1>&6
10413 if test $ol_enable_local = auto ; then
10414 ol_enable_local=$ac_cv_header_sys_un_h
10415 elif test $ac_cv_header_sys_un_h = no ; then
10416 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10425 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10426 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10427 -o $ol_with_kerberos = k425 ; then
10429 for ac_hdr in krb5.h
10431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10433 echo "configure:10434: checking for $ac_hdr" >&5
10434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10443 { (eval echo configure:10444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10445 if test -z "$ac_err"; then
10447 eval "ac_cv_header_$ac_safe=yes"
10450 echo "configure: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10453 eval "ac_cv_header_$ac_safe=no"
10457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10458 echo "$ac_t""yes" 1>&6
10459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10460 cat >> confdefs.h <<EOF
10461 #define $ac_tr_hdr 1
10465 echo "$ac_t""no" 1>&6
10470 if test $ac_cv_header_krb5_h = yes ; then
10471 for ac_hdr in heim_err.h
10473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10475 echo "configure:10476: checking for $ac_hdr" >&5
10476 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10485 { (eval echo configure:10486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10487 if test -z "$ac_err"; then
10489 eval "ac_cv_header_$ac_safe=yes"
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10495 eval "ac_cv_header_$ac_safe=no"
10499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10500 echo "$ac_t""yes" 1>&6
10501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10502 cat >> confdefs.h <<EOF
10503 #define $ac_tr_hdr 1
10507 echo "$ac_t""no" 1>&6
10511 if test $ac_cv_header_heim_err_h = yes ; then
10517 if test $krb5_impl = mit; then
10518 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10519 echo "configure:10520: checking for main in -lk5crypto" >&5
10520 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10521 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
10524 ac_save_LIBS="$LIBS"
10525 LIBS="-lk5crypto $LIBS"
10526 cat > conftest.$ac_ext <<EOF
10527 #line 10528 "configure"
10528 #include "confdefs.h"
10534 if { (eval echo configure:10535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10536 eval "ac_cv_lib_$ac_lib_var=yes"
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10541 eval "ac_cv_lib_$ac_lib_var=no"
10544 LIBS="$ac_save_LIBS"
10547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10548 echo "$ac_t""yes" 1>&6
10549 krb5crypto=k5crypto
10551 echo "$ac_t""no" 1>&6
10556 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10557 echo "configure:10558: checking for main in -lkrb5" >&5
10558 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10559 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10562 ac_save_LIBS="$LIBS"
10563 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10564 cat > conftest.$ac_ext <<EOF
10565 #line 10566 "configure"
10566 #include "confdefs.h"
10572 if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10574 eval "ac_cv_lib_$ac_lib_var=yes"
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10579 eval "ac_cv_lib_$ac_lib_var=no"
10582 LIBS="$ac_save_LIBS"
10585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10586 echo "$ac_t""yes" 1>&6
10588 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10590 echo "$ac_t""no" 1>&6
10595 elif test $krb5_impl = heimdal; then
10596 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10597 echo "configure:10598: checking for main in -ldes" >&5
10598 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10599 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 ac_save_LIBS="$LIBS"
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 eval "ac_cv_lib_$ac_lib_var=yes"
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 eval "ac_cv_lib_$ac_lib_var=no"
10622 LIBS="$ac_save_LIBS"
10625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10626 echo "$ac_t""yes" 1>&6
10629 echo "$ac_t""no" 1>&6
10634 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10635 echo "configure:10636: checking for main in -lkrb5" >&5
10636 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10637 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10638 echo $ac_n "(cached) $ac_c" 1>&6
10640 ac_save_LIBS="$LIBS"
10641 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10642 cat > conftest.$ac_ext <<EOF
10643 #line 10644 "configure"
10644 #include "confdefs.h"
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_lib_$ac_lib_var=no"
10660 LIBS="$ac_save_LIBS"
10663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
10666 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10668 echo "$ac_t""no" 1>&6
10673 cat >> confdefs.h <<\EOF
10674 #define HAVE_HEIMDAL_KERBEROS 1
10680 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10683 if test $have_krb5 = yes ; then
10686 cat >> confdefs.h <<\EOF
10687 #define HAVE_KRB5 1
10691 if test $ol_enable_kpasswd != no ; then
10692 ol_link_kpasswd=yes;
10695 if test $ol_with_kerberos = k5only ; then
10696 ol_with_kerberos=found
10699 elif test $ol_with_kerberos != auto ; then
10700 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10706 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10707 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10709 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10713 echo "configure:10714: checking for $ac_hdr" >&5
10714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10717 cat > conftest.$ac_ext <<EOF
10718 #line 10719 "configure"
10719 #include "confdefs.h"
10722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10723 { (eval echo configure:10724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10725 if test -z "$ac_err"; then
10727 eval "ac_cv_header_$ac_safe=yes"
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10733 eval "ac_cv_header_$ac_safe=no"
10737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10738 echo "$ac_t""yes" 1>&6
10739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10740 cat >> confdefs.h <<EOF
10741 #define $ac_tr_hdr 1
10745 echo "$ac_t""no" 1>&6
10750 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10751 if test $krb5_impl = mit; then
10752 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10753 echo "configure:10754: checking for main in -lkrb4" >&5
10754 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10755 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10756 echo $ac_n "(cached) $ac_c" 1>&6
10758 ac_save_LIBS="$LIBS"
10759 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10768 if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10770 eval "ac_cv_lib_$ac_lib_var=yes"
10772 echo "configure: failed program was:" >&5
10773 cat conftest.$ac_ext >&5
10775 eval "ac_cv_lib_$ac_lib_var=no"
10778 LIBS="$ac_save_LIBS"
10781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10784 KRB4_LIBS="-lkrb4 -ldes425"
10786 echo "$ac_t""no" 1>&6
10791 elif test $krb5_impl = heimdal; then
10792 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10793 echo "configure:10794: checking for main in -lkrb4" >&5
10794 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10798 ac_save_LIBS="$LIBS"
10799 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10800 cat > conftest.$ac_ext <<EOF
10801 #line 10802 "configure"
10802 #include "confdefs.h"
10808 if { (eval echo configure:10809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10810 eval "ac_cv_lib_$ac_lib_var=yes"
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 eval "ac_cv_lib_$ac_lib_var=no"
10818 LIBS="$ac_save_LIBS"
10821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10826 echo "$ac_t""no" 1>&6
10833 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10836 if test $have_k425 = yes ; then
10837 ol_with_kerberos=found
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_KRB425 1
10844 cat >> confdefs.h <<\EOF
10845 #define HAVE_KRB4 1
10849 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10850 echo "configure:10851: checking for des_debug in Kerberos libraries" >&5
10851 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10856 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10861 #include <kerberosIV/krb.h>
10862 #include <kerberosIV/des.h>
10863 extern int des_debug;
10871 if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10873 ol_cv_var_des_debug=yes
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10878 ol_cv_var_des_debug=no
10885 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10887 if test $ol_cv_var_des_debug = yes ; then
10888 cat >> confdefs.h <<\EOF
10889 #define HAVE_DES_DEBUG 1
10899 if test $ol_link_krb5 = yes ; then
10900 ol_with_kerberos=found
10903 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10904 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10906 for ac_hdr in krb.h des.h krb-archaeology.h
10908 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10909 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10910 echo "configure:10911: checking for $ac_hdr" >&5
10911 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10914 cat > conftest.$ac_ext <<EOF
10915 #line 10916 "configure"
10916 #include "confdefs.h"
10919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10920 { (eval echo configure:10921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10922 if test -z "$ac_err"; then
10924 eval "ac_cv_header_$ac_safe=yes"
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10930 eval "ac_cv_header_$ac_safe=no"
10934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10935 echo "$ac_t""yes" 1>&6
10936 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10937 cat >> confdefs.h <<EOF
10938 #define $ac_tr_hdr 1
10942 echo "$ac_t""no" 1>&6
10947 if test $ac_cv_header_krb_h = yes ; then
10948 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10949 echo "configure:10950: checking for main in -lkrb" >&5
10950 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10951 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10954 ac_save_LIBS="$LIBS"
10955 LIBS="-lkrb -ldes $LIBS"
10956 cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10964 if { (eval echo configure:10965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10966 eval "ac_cv_lib_$ac_lib_var=yes"
10968 echo "configure: failed program was:" >&5
10969 cat conftest.$ac_ext >&5
10971 eval "ac_cv_lib_$ac_lib_var=no"
10974 LIBS="$ac_save_LIBS"
10977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10978 echo "$ac_t""yes" 1>&6
10981 echo "$ac_t""no" 1>&6
10986 if test $have_k4 = yes ; then
10987 ol_with_kerberos=found
10990 cat >> confdefs.h <<\EOF
10991 #define HAVE_KRB4 1
10995 KRB4_LIBS="-lkrb -ldes"
10997 if test $ac_cv_header_krb_archaeology_h = yes ; then
10998 cat >> confdefs.h <<\EOF
10999 #define HAVE_KTH_KERBEROS 1
11007 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11008 ol_link_kpasswd=yes
11011 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11014 elif test $ol_enable_kbind = yes ; then
11015 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11018 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11019 cat >> confdefs.h <<\EOF
11020 #define HAVE_KERBEROS 1
11024 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11025 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11029 if test $ol_with_tls != no ; then
11030 for ac_hdr in openssl/ssl.h ssl.h
11032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11034 echo "configure:11035: checking for $ac_hdr" >&5
11035 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11036 echo $ac_n "(cached) $ac_c" 1>&6
11038 cat > conftest.$ac_ext <<EOF
11039 #line 11040 "configure"
11040 #include "confdefs.h"
11043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11044 { (eval echo configure:11045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11046 if test -z "$ac_err"; then
11048 eval "ac_cv_header_$ac_safe=yes"
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 eval "ac_cv_header_$ac_safe=no"
11058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11059 echo "$ac_t""yes" 1>&6
11060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11061 cat >> confdefs.h <<EOF
11062 #define $ac_tr_hdr 1
11066 echo "$ac_t""no" 1>&6
11071 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
11072 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11073 echo "configure:11074: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11074 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11078 ac_save_LIBS="$LIBS"
11079 LIBS="-lssl -lcrypto $LIBS"
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11083 /* Override any gcc2 internal prototype to avoid an error. */
11084 /* We use char because int might match the return type of a gcc2
11085 builtin and then its argument prototype would still apply. */
11086 char SSLeay_add_ssl_algorithms();
11089 SSLeay_add_ssl_algorithms()
11092 if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11094 eval "ac_cv_lib_$ac_lib_var=yes"
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11099 eval "ac_cv_lib_$ac_lib_var=no"
11102 LIBS="$ac_save_LIBS"
11105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11106 echo "$ac_t""yes" 1>&6
11110 echo "$ac_t""no" 1>&6
11115 if test $have_ssleay = no ; then
11116 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11117 echo "configure:11118: checking for SSL_library_init in -lssl" >&5
11118 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11120 echo $ac_n "(cached) $ac_c" 1>&6
11122 ac_save_LIBS="$LIBS"
11123 LIBS="-lssl -lcrypto $LIBS"
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11130 char SSL_library_init();
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11138 eval "ac_cv_lib_$ac_lib_var=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_lib_$ac_lib_var=no"
11146 LIBS="$ac_save_LIBS"
11149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11150 echo "$ac_t""yes" 1>&6
11154 echo "$ac_t""no" 1>&6
11160 if test $have_ssleay = no ; then
11161 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11162 echo "configure:11163: checking for ssl3_accept in -lssl" >&5
11163 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11164 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11167 ac_save_LIBS="$LIBS"
11168 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11169 cat > conftest.$ac_ext <<EOF
11170 #line 11171 "configure"
11171 #include "confdefs.h"
11172 /* Override any gcc2 internal prototype to avoid an error. */
11173 /* We use char because int might match the return type of a gcc2
11174 builtin and then its argument prototype would still apply. */
11175 char ssl3_accept();
11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11183 eval "ac_cv_lib_$ac_lib_var=yes"
11185 echo "configure: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11188 eval "ac_cv_lib_$ac_lib_var=no"
11191 LIBS="$ac_save_LIBS"
11194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11195 echo "$ac_t""yes" 1>&6
11199 echo "$ac_t""no" 1>&6
11205 if test $have_ssleay = yes ; then
11209 cat >> confdefs.h <<\EOF
11210 #define HAVE_SSLEAY 1
11214 if test $need_rsaref = yes; then
11215 cat >> confdefs.h <<\EOF
11216 #define HAVE_RSAREF 1
11220 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11222 TLS_LIBS="-lssl -lcrypto"
11228 echo "configure: warning: TLS data protection not supported!" 1>&2
11231 if test $ol_link_tls = yes ; then
11232 cat >> confdefs.h <<\EOF
11237 elif test $ol_with_tls = auto ; then
11238 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11239 echo "configure: warning: TLS data protection not supported!" 1>&2
11241 elif test $ol_with_tls != no ; then
11242 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11245 if test $ol_enable_lmpasswd != no; then
11246 if test $ol_link_tls != yes ; then
11247 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11250 cat >> confdefs.h <<\EOF
11251 #define SLAPD_LMHASH 1
11258 gethostbyname_r gethostbyaddr_r \
11261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11262 echo "configure:11263: checking for $ac_func" >&5
11263 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 /* System header to define __stub macros and hopefully few prototypes,
11270 which can conflict with char $ac_func(); below. */
11271 #include <assert.h>
11272 /* Override any gcc2 internal prototype to avoid an error. */
11273 /* We use char because int might match the return type of a gcc2
11274 builtin and then its argument prototype would still apply. */
11280 /* The GNU C library defines this for functions which it implements
11281 to always fail with ENOSYS. Some functions are actually named
11282 something starting with __ and the normal name is an alias. */
11283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11291 if { (eval echo configure:11292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11293 eval "ac_cv_func_$ac_func=yes"
11295 echo "configure: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11298 eval "ac_cv_func_$ac_func=no"
11303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11304 echo "$ac_t""yes" 1>&6
11305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11306 cat >> confdefs.h <<EOF
11307 #define $ac_tr_func 1
11311 echo "$ac_t""no" 1>&6
11316 if test "$ac_cv_func_ctime_r" = no ; then
11317 ol_cv_func_ctime_r_nargs=0
11319 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11320 echo "configure:11321: checking number of arguments of ctime_r" >&5
11321 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11329 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11332 if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11334 ol_cv_func_ctime_r_nargs3=yes
11336 echo "configure: failed program was:" >&5
11337 cat conftest.$ac_ext >&5
11339 ol_cv_func_ctime_r_nargs3=no
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11348 time_t ti; char *buffer; ctime_r(&ti,buffer);
11351 if { (eval echo configure:11352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11353 ol_cv_func_ctime_r_nargs2=yes
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 ol_cv_func_ctime_r_nargs2=no
11362 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11363 $ol_cv_func_ctime_r_nargs2 = no ; then
11365 ol_cv_func_ctime_r_nargs=3
11367 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11368 $ol_cv_func_ctime_r_nargs2 = yes ; then
11370 ol_cv_func_ctime_r_nargs=2
11373 ol_cv_func_ctime_r_nargs=0
11378 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11380 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11381 cat >> confdefs.h <<EOF
11382 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11389 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11390 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11391 echo "configure:11392: checking number of arguments of gethostbyname_r" >&5
11392 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11395 cat > conftest.$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11398 #include <sys/types.h>
11399 #include <sys/socket.h>
11400 #include <netinet/in.h>
11402 #define BUFSIZE (sizeof(struct hostent)+10)
11404 struct hostent hent; char buffer[BUFSIZE];
11405 int bufsize=BUFSIZE;int h_errno;
11406 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11407 buffer, bufsize, &h_errno);
11410 if { (eval echo configure:11411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11412 ol_cv_func_gethostbyname_r_nargs5=yes
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11417 ol_cv_func_gethostbyname_r_nargs5=no
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11424 #include <sys/types.h>
11425 #include <sys/socket.h>
11426 #include <netinet/in.h>
11428 #define BUFSIZE (sizeof(struct hostent)+10)
11430 struct hostent hent;struct hostent *rhent;
11431 char buffer[BUFSIZE];
11432 int bufsize=BUFSIZE;int h_errno;
11433 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11437 if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11439 ol_cv_func_gethostbyname_r_nargs6=yes
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11444 ol_cv_func_gethostbyname_r_nargs6=no
11448 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11449 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11451 ol_cv_func_gethostbyname_r_nargs=5
11453 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11454 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11456 ol_cv_func_gethostbyname_r_nargs=6
11459 ol_cv_func_gethostbyname_r_nargs=0
11464 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11465 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11466 cat >> confdefs.h <<EOF
11467 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11473 ol_cv_func_gethostbyname_r_nargs=0
11476 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11477 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11478 echo "configure:11479: checking number of arguments of gethostbyaddr_r" >&5
11479 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11482 cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include <sys/types.h>
11486 #include <sys/socket.h>
11487 #include <netinet/in.h>
11489 #define BUFSIZE (sizeof(struct hostent)+10)
11491 struct hostent hent; char buffer[BUFSIZE];
11492 struct in_addr add;
11493 size_t alen=sizeof(struct in_addr);
11494 int bufsize=BUFSIZE;int h_errno;
11495 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11496 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11499 if { (eval echo configure:11500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11501 ol_cv_func_gethostbyaddr_r_nargs7=yes
11503 echo "configure: failed program was:" >&5
11504 cat conftest.$ac_ext >&5
11506 ol_cv_func_gethostbyaddr_r_nargs7=no
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <sys/types.h>
11514 #include <sys/socket.h>
11515 #include <netinet/in.h>
11517 #define BUFSIZE (sizeof(struct hostent)+10)
11519 struct hostent hent;
11520 struct hostent *rhent; char buffer[BUFSIZE];
11521 struct in_addr add;
11522 size_t alen=sizeof(struct in_addr);
11523 int bufsize=BUFSIZE;int h_errno;
11524 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11525 alen, AF_INET, &hent, buffer, bufsize,
11529 if { (eval echo configure:11530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11531 ol_cv_func_gethostbyaddr_r_nargs8=yes
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11536 ol_cv_func_gethostbyaddr_r_nargs8=no
11540 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11541 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11543 ol_cv_func_gethostbyaddr_r_nargs=7
11545 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11546 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11548 ol_cv_func_gethostbyaddr_r_nargs=8
11551 ol_cv_func_gethostbyaddr_r_nargs=0
11556 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11557 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11558 cat >> confdefs.h <<EOF
11559 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11565 ol_cv_func_gethostbyaddr_r_nargs=0
11568 if test "$ac_cv_func_ctime_r" = yes \
11569 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11570 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11571 -a "$ac_cv_func_gethostbyname_r" = yes \
11572 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11573 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11574 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11575 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11576 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11579 cat >> confdefs.h <<\EOF
11580 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11587 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11588 -o $ol_with_threads = nt ; then
11591 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11592 echo "configure:11593: checking for _beginthread" >&5
11593 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11594 echo $ac_n "(cached) $ac_c" 1>&6
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 /* System header to define __stub macros and hopefully few prototypes,
11600 which can conflict with char _beginthread(); below. */
11601 #include <assert.h>
11602 /* Override any gcc2 internal prototype to avoid an error. */
11603 /* We use char because int might match the return type of a gcc2
11604 builtin and then its argument prototype would still apply. */
11605 char _beginthread();
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11623 eval "ac_cv_func__beginthread=yes"
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11628 eval "ac_cv_func__beginthread=no"
11633 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11637 echo "$ac_t""no" 1>&6
11641 if test $ac_cv_func__beginthread = yes ; then
11642 cat >> confdefs.h <<\EOF
11643 #define HAVE_NT_THREADS 1
11646 ol_cv_nt_threads=yes
11650 if test "$ol_cv_nt_threads" = yes ; then
11652 ol_with_threads=found
11653 ol_with_yielding_select=yes
11655 cat >> confdefs.h <<\EOF
11656 #define HAVE_NT_SERVICE_MANAGER 1
11659 cat >> confdefs.h <<\EOF
11660 #define HAVE_NT_EVENT_LOG 1
11665 if test $ol_with_threads = nt ; then
11666 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11670 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11671 -o $ol_with_threads = posix ; then
11673 for ac_hdr in pthread.h
11675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11677 echo "configure:11678: checking for $ac_hdr" >&5
11678 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11681 cat > conftest.$ac_ext <<EOF
11682 #line 11683 "configure"
11683 #include "confdefs.h"
11686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11687 { (eval echo configure:11688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11689 if test -z "$ac_err"; then
11691 eval "ac_cv_header_$ac_safe=yes"
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11697 eval "ac_cv_header_$ac_safe=no"
11701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11702 echo "$ac_t""yes" 1>&6
11703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11704 cat >> confdefs.h <<EOF
11705 #define $ac_tr_hdr 1
11709 echo "$ac_t""no" 1>&6
11714 if test $ac_cv_header_pthread_h = yes ; then
11715 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11716 echo "configure:11717: checking POSIX thread version" >&5
11717 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11718 echo $ac_n "(cached) $ac_c" 1>&6
11721 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure"
11723 #include "confdefs.h"
11725 # include <pthread.h>
11726 /* this check could be improved */
11727 # ifdef PTHREAD_ONCE_INIT
11728 pthread_version_final;
11732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11733 egrep "pthread_version_final" >/dev/null 2>&1; then
11735 ol_pthread_final=yes
11738 ol_pthread_final=no
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11747 # include <pthread.h>
11748 /* this check could be improved */
11749 # ifdef pthread_once_init
11750 pthread_version_draft4;
11754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11755 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11757 ol_pthread_draft4=yes
11760 ol_pthread_draft4=no
11765 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11766 ol_cv_pthread_version=final
11767 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11768 ol_cv_pthread_version=draft4
11770 ol_cv_pthread_version=unknown
11775 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11778 if test $ol_cv_pthread_version = final ; then
11779 cat >> confdefs.h <<\EOF
11780 #define HAVE_PTHREADS_FINAL 1
11783 elif test $ol_cv_pthread_version = draft4 ; then
11784 cat >> confdefs.h <<\EOF
11785 #define HAVE_PTHREADS_D4 1
11789 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11792 # consider threads found
11793 ol_with_threads=found
11796 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11797 echo "configure:11798: checking for LinuxThreads pthread.h" >&5
11798 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11799 echo $ac_n "(cached) $ac_c" 1>&6
11801 cat > conftest.$ac_ext <<EOF
11802 #line 11803 "configure"
11803 #include "confdefs.h"
11804 #include <pthread.h>
11806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11807 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11809 ol_cv_header_linux_threads=yes
11812 ol_cv_header_linux_threads=no
11819 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11820 if test $ol_cv_header_linux_threads = yes; then
11821 cat >> confdefs.h <<\EOF
11822 #define HAVE_LINUX_THREADS 1
11828 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11829 echo "configure:11830: checking for GNU Pth pthread.h" >&5
11830 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11831 echo $ac_n "(cached) $ac_c" 1>&6
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 #include <pthread.h>
11837 #ifdef _POSIX_THREAD_IS_GNU_PTH
11842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11843 egrep "__gnu_pth__" >/dev/null 2>&1; then
11845 ol_cv_header_gnu_pth_pthread_h=yes
11848 ol_cv_header_gnu_pth_pthread_h=no
11855 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11858 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11859 for ac_hdr in sched.h
11861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11863 echo "configure:11864: checking for $ac_hdr" >&5
11864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11865 echo $ac_n "(cached) $ac_c" 1>&6
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11873 { (eval echo configure:11874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11875 if test -z "$ac_err"; then
11877 eval "ac_cv_header_$ac_safe=yes"
11880 echo "configure: failed program was:" >&5
11881 cat conftest.$ac_ext >&5
11883 eval "ac_cv_header_$ac_safe=no"
11887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11888 echo "$ac_t""yes" 1>&6
11889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11890 cat >> confdefs.h <<EOF
11891 #define $ac_tr_hdr 1
11895 echo "$ac_t""no" 1>&6
11902 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11903 echo "configure:11904: checking for pthread_create in default libraries" >&5
11904 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11905 echo $ac_n "(cached) $ac_c" 1>&6
11908 if test "$cross_compiling" = yes; then
11909 cat > conftest.$ac_ext <<EOF
11910 #line 11911 "configure"
11911 #include "confdefs.h"
11912 /* pthread test headers */
11913 #include <pthread.h>
11915 #define NULL (void*)0
11918 static void *task(p)
11921 return (void *) (p == NULL);
11926 /* pthread test function */
11931 #ifdef HAVE_PTHREADS_FINAL
11932 /* Final pthreads */
11933 pthread_attr_t attr;
11935 status = pthread_attr_init(&attr);
11936 if( status ) return status;
11938 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11940 #if defined( PTHREAD_CREATE_JOINABLE )
11941 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11943 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11946 #ifdef PTHREAD_CREATE_DETACHED
11948 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11951 if( status ) return status;
11954 status = pthread_create( &t, &attr, task, NULL );
11955 if( status ) return status;
11957 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11959 /* give thread a chance to complete */
11960 /* it should remain joinable and hence detachable */
11963 status = pthread_detach( t );
11964 if( status ) return status;
11969 /* Draft 4 pthreads */
11970 status = pthread_create( &t, pthread_attr_default, task, NULL );
11971 if( status ) return status;
11974 /* give thread a chance to complete */
11975 /* it should remain joinable and hence detachable */
11978 status = pthread_detach( &t );
11979 if( status ) return status;
11983 #ifdef HAVE_LINUX_THREADS
11984 pthread_kill_other_threads_np();
11991 if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11993 ol_cv_pthread_create=yes
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11998 ol_cv_pthread_create=no
12002 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12005 /* pthread test headers */
12006 #include <pthread.h>
12008 #define NULL (void*)0
12011 static void *task(p)
12014 return (void *) (p == NULL);
12018 int main(argc, argv)
12023 /* pthread test function */
12028 #ifdef HAVE_PTHREADS_FINAL
12029 /* Final pthreads */
12030 pthread_attr_t attr;
12032 status = pthread_attr_init(&attr);
12033 if( status ) return status;
12035 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12037 #if defined( PTHREAD_CREATE_JOINABLE )
12038 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12040 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12043 #ifdef PTHREAD_CREATE_DETACHED
12045 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12048 if( status ) return status;
12051 status = pthread_create( &t, &attr, task, NULL );
12052 if( status ) return status;
12054 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12056 /* give thread a chance to complete */
12057 /* it should remain joinable and hence detachable */
12060 status = pthread_detach( t );
12061 if( status ) return status;
12066 /* Draft 4 pthreads */
12067 status = pthread_create( &t, pthread_attr_default, task, NULL );
12068 if( status ) return status;
12071 /* give thread a chance to complete */
12072 /* it should remain joinable and hence detachable */
12075 status = pthread_detach( &t );
12076 if( status ) return status;
12080 #ifdef HAVE_LINUX_THREADS
12081 pthread_kill_other_threads_np();
12089 if { (eval echo configure:12090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12091 ol_cv_pthread_create=yes
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12096 ol_cv_pthread_create=no
12103 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12105 if test $ol_cv_pthread_create != no ; then
12106 ol_link_threads=posix
12107 ol_link_pthreads=""
12110 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12111 if test "$ol_link_threads" = no ; then
12113 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12114 echo "configure:12115: checking for pthread link with -kthread" >&5
12115 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12121 LIBS="-kthread $LIBS"
12123 if test "$cross_compiling" = yes; then
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 /* pthread test headers */
12128 #include <pthread.h>
12130 #define NULL (void*)0
12133 static void *task(p)
12136 return (void *) (p == NULL);
12141 /* pthread test function */
12146 #ifdef HAVE_PTHREADS_FINAL
12147 /* Final pthreads */
12148 pthread_attr_t attr;
12150 status = pthread_attr_init(&attr);
12151 if( status ) return status;
12153 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12155 #if defined( PTHREAD_CREATE_JOINABLE )
12156 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12158 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12161 #ifdef PTHREAD_CREATE_DETACHED
12163 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12166 if( status ) return status;
12169 status = pthread_create( &t, &attr, task, NULL );
12170 if( status ) return status;
12172 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12174 /* give thread a chance to complete */
12175 /* it should remain joinable and hence detachable */
12178 status = pthread_detach( t );
12179 if( status ) return status;
12184 /* Draft 4 pthreads */
12185 status = pthread_create( &t, pthread_attr_default, task, NULL );
12186 if( status ) return status;
12189 /* give thread a chance to complete */
12190 /* it should remain joinable and hence detachable */
12193 status = pthread_detach( &t );
12194 if( status ) return status;
12198 #ifdef HAVE_LINUX_THREADS
12199 pthread_kill_other_threads_np();
12206 if { (eval echo configure:12207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12208 ol_cv_pthread_kthread=yes
12210 echo "configure: failed program was:" >&5
12211 cat conftest.$ac_ext >&5
12213 ol_cv_pthread_kthread=no
12217 cat > conftest.$ac_ext <<EOF
12218 #line 12219 "configure"
12219 #include "confdefs.h"
12220 /* pthread test headers */
12221 #include <pthread.h>
12223 #define NULL (void*)0
12226 static void *task(p)
12229 return (void *) (p == NULL);
12233 int main(argc, argv)
12238 /* pthread test function */
12243 #ifdef HAVE_PTHREADS_FINAL
12244 /* Final pthreads */
12245 pthread_attr_t attr;
12247 status = pthread_attr_init(&attr);
12248 if( status ) return status;
12250 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12252 #if defined( PTHREAD_CREATE_JOINABLE )
12253 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12255 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12258 #ifdef PTHREAD_CREATE_DETACHED
12260 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12263 if( status ) return status;
12266 status = pthread_create( &t, &attr, task, NULL );
12267 if( status ) return status;
12269 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12271 /* give thread a chance to complete */
12272 /* it should remain joinable and hence detachable */
12275 status = pthread_detach( t );
12276 if( status ) return status;
12281 /* Draft 4 pthreads */
12282 status = pthread_create( &t, pthread_attr_default, task, NULL );
12283 if( status ) return status;
12286 /* give thread a chance to complete */
12287 /* it should remain joinable and hence detachable */
12290 status = pthread_detach( &t );
12291 if( status ) return status;
12295 #ifdef HAVE_LINUX_THREADS
12296 pthread_kill_other_threads_np();
12304 if { (eval echo configure:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12306 ol_cv_pthread_kthread=yes
12308 echo "configure: failed program was:" >&5
12309 cat conftest.$ac_ext >&5
12311 ol_cv_pthread_kthread=no
12322 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12324 if test $ol_cv_pthread_kthread = yes ; then
12325 ol_link_pthreads="-kthread"
12326 ol_link_threads=posix
12330 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12331 if test "$ol_link_threads" = no ; then
12333 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12334 echo "configure:12335: checking for pthread link with -pthread" >&5
12335 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12336 echo $ac_n "(cached) $ac_c" 1>&6
12341 LIBS="-pthread $LIBS"
12343 if test "$cross_compiling" = yes; then
12344 cat > conftest.$ac_ext <<EOF
12345 #line 12346 "configure"
12346 #include "confdefs.h"
12347 /* pthread test headers */
12348 #include <pthread.h>
12350 #define NULL (void*)0
12353 static void *task(p)
12356 return (void *) (p == NULL);
12361 /* pthread test function */
12366 #ifdef HAVE_PTHREADS_FINAL
12367 /* Final pthreads */
12368 pthread_attr_t attr;
12370 status = pthread_attr_init(&attr);
12371 if( status ) return status;
12373 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12375 #if defined( PTHREAD_CREATE_JOINABLE )
12376 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12378 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12381 #ifdef PTHREAD_CREATE_DETACHED
12383 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12386 if( status ) return status;
12389 status = pthread_create( &t, &attr, task, NULL );
12390 if( status ) return status;
12392 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12394 /* give thread a chance to complete */
12395 /* it should remain joinable and hence detachable */
12398 status = pthread_detach( t );
12399 if( status ) return status;
12404 /* Draft 4 pthreads */
12405 status = pthread_create( &t, pthread_attr_default, task, NULL );
12406 if( status ) return status;
12409 /* give thread a chance to complete */
12410 /* it should remain joinable and hence detachable */
12413 status = pthread_detach( &t );
12414 if( status ) return status;
12418 #ifdef HAVE_LINUX_THREADS
12419 pthread_kill_other_threads_np();
12426 if { (eval echo configure:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12428 ol_cv_pthread_pthread=yes
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12433 ol_cv_pthread_pthread=no
12437 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure"
12439 #include "confdefs.h"
12440 /* pthread test headers */
12441 #include <pthread.h>
12443 #define NULL (void*)0
12446 static void *task(p)
12449 return (void *) (p == NULL);
12453 int main(argc, argv)
12458 /* pthread test function */
12463 #ifdef HAVE_PTHREADS_FINAL
12464 /* Final pthreads */
12465 pthread_attr_t attr;
12467 status = pthread_attr_init(&attr);
12468 if( status ) return status;
12470 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12472 #if defined( PTHREAD_CREATE_JOINABLE )
12473 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12475 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12478 #ifdef PTHREAD_CREATE_DETACHED
12480 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12483 if( status ) return status;
12486 status = pthread_create( &t, &attr, task, NULL );
12487 if( status ) return status;
12489 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12491 /* give thread a chance to complete */
12492 /* it should remain joinable and hence detachable */
12495 status = pthread_detach( t );
12496 if( status ) return status;
12501 /* Draft 4 pthreads */
12502 status = pthread_create( &t, pthread_attr_default, task, NULL );
12503 if( status ) return status;
12506 /* give thread a chance to complete */
12507 /* it should remain joinable and hence detachable */
12510 status = pthread_detach( &t );
12511 if( status ) return status;
12515 #ifdef HAVE_LINUX_THREADS
12516 pthread_kill_other_threads_np();
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12526 ol_cv_pthread_pthread=yes
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12531 ol_cv_pthread_pthread=no
12542 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12544 if test $ol_cv_pthread_pthread = yes ; then
12545 ol_link_pthreads="-pthread"
12546 ol_link_threads=posix
12550 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12551 if test "$ol_link_threads" = no ; then
12553 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12554 echo "configure:12555: checking for pthread link with -pthreads" >&5
12555 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12556 echo $ac_n "(cached) $ac_c" 1>&6
12561 LIBS="-pthreads $LIBS"
12563 if test "$cross_compiling" = yes; then
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 /* pthread test headers */
12568 #include <pthread.h>
12570 #define NULL (void*)0
12573 static void *task(p)
12576 return (void *) (p == NULL);
12581 /* pthread test function */
12586 #ifdef HAVE_PTHREADS_FINAL
12587 /* Final pthreads */
12588 pthread_attr_t attr;
12590 status = pthread_attr_init(&attr);
12591 if( status ) return status;
12593 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12595 #if defined( PTHREAD_CREATE_JOINABLE )
12596 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12598 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12601 #ifdef PTHREAD_CREATE_DETACHED
12603 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12606 if( status ) return status;
12609 status = pthread_create( &t, &attr, task, NULL );
12610 if( status ) return status;
12612 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12614 /* give thread a chance to complete */
12615 /* it should remain joinable and hence detachable */
12618 status = pthread_detach( t );
12619 if( status ) return status;
12624 /* Draft 4 pthreads */
12625 status = pthread_create( &t, pthread_attr_default, task, NULL );
12626 if( status ) return status;
12629 /* give thread a chance to complete */
12630 /* it should remain joinable and hence detachable */
12633 status = pthread_detach( &t );
12634 if( status ) return status;
12638 #ifdef HAVE_LINUX_THREADS
12639 pthread_kill_other_threads_np();
12646 if { (eval echo configure:12647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12648 ol_cv_pthread_pthreads=yes
12650 echo "configure: failed program was:" >&5
12651 cat conftest.$ac_ext >&5
12653 ol_cv_pthread_pthreads=no
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure"
12659 #include "confdefs.h"
12660 /* pthread test headers */
12661 #include <pthread.h>
12663 #define NULL (void*)0
12666 static void *task(p)
12669 return (void *) (p == NULL);
12673 int main(argc, argv)
12678 /* pthread test function */
12683 #ifdef HAVE_PTHREADS_FINAL
12684 /* Final pthreads */
12685 pthread_attr_t attr;
12687 status = pthread_attr_init(&attr);
12688 if( status ) return status;
12690 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12692 #if defined( PTHREAD_CREATE_JOINABLE )
12693 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12695 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12698 #ifdef PTHREAD_CREATE_DETACHED
12700 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12703 if( status ) return status;
12706 status = pthread_create( &t, &attr, task, NULL );
12707 if( status ) return status;
12709 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12711 /* give thread a chance to complete */
12712 /* it should remain joinable and hence detachable */
12715 status = pthread_detach( t );
12716 if( status ) return status;
12721 /* Draft 4 pthreads */
12722 status = pthread_create( &t, pthread_attr_default, task, NULL );
12723 if( status ) return status;
12726 /* give thread a chance to complete */
12727 /* it should remain joinable and hence detachable */
12730 status = pthread_detach( &t );
12731 if( status ) return status;
12735 #ifdef HAVE_LINUX_THREADS
12736 pthread_kill_other_threads_np();
12744 if { (eval echo configure:12745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12746 ol_cv_pthread_pthreads=yes
12748 echo "configure: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12751 ol_cv_pthread_pthreads=no
12762 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12764 if test $ol_cv_pthread_pthreads = yes ; then
12765 ol_link_pthreads="-pthreads"
12766 ol_link_threads=posix
12770 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12771 if test "$ol_link_threads" = no ; then
12773 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12774 echo "configure:12775: checking for pthread link with -mthreads" >&5
12775 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12776 echo $ac_n "(cached) $ac_c" 1>&6
12781 LIBS="-mthreads $LIBS"
12783 if test "$cross_compiling" = yes; then
12784 cat > conftest.$ac_ext <<EOF
12785 #line 12786 "configure"
12786 #include "confdefs.h"
12787 /* pthread test headers */
12788 #include <pthread.h>
12790 #define NULL (void*)0
12793 static void *task(p)
12796 return (void *) (p == NULL);
12801 /* pthread test function */
12806 #ifdef HAVE_PTHREADS_FINAL
12807 /* Final pthreads */
12808 pthread_attr_t attr;
12810 status = pthread_attr_init(&attr);
12811 if( status ) return status;
12813 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12815 #if defined( PTHREAD_CREATE_JOINABLE )
12816 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12818 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12821 #ifdef PTHREAD_CREATE_DETACHED
12823 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12826 if( status ) return status;
12829 status = pthread_create( &t, &attr, task, NULL );
12830 if( status ) return status;
12832 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12834 /* give thread a chance to complete */
12835 /* it should remain joinable and hence detachable */
12838 status = pthread_detach( t );
12839 if( status ) return status;
12844 /* Draft 4 pthreads */
12845 status = pthread_create( &t, pthread_attr_default, task, NULL );
12846 if( status ) return status;
12849 /* give thread a chance to complete */
12850 /* it should remain joinable and hence detachable */
12853 status = pthread_detach( &t );
12854 if( status ) return status;
12858 #ifdef HAVE_LINUX_THREADS
12859 pthread_kill_other_threads_np();
12866 if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12868 ol_cv_pthread_mthreads=yes
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12873 ol_cv_pthread_mthreads=no
12877 cat > conftest.$ac_ext <<EOF
12878 #line 12879 "configure"
12879 #include "confdefs.h"
12880 /* pthread test headers */
12881 #include <pthread.h>
12883 #define NULL (void*)0
12886 static void *task(p)
12889 return (void *) (p == NULL);
12893 int main(argc, argv)
12898 /* pthread test function */
12903 #ifdef HAVE_PTHREADS_FINAL
12904 /* Final pthreads */
12905 pthread_attr_t attr;
12907 status = pthread_attr_init(&attr);
12908 if( status ) return status;
12910 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12912 #if defined( PTHREAD_CREATE_JOINABLE )
12913 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12915 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12918 #ifdef PTHREAD_CREATE_DETACHED
12920 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12923 if( status ) return status;
12926 status = pthread_create( &t, &attr, task, NULL );
12927 if( status ) return status;
12929 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12931 /* give thread a chance to complete */
12932 /* it should remain joinable and hence detachable */
12935 status = pthread_detach( t );
12936 if( status ) return status;
12941 /* Draft 4 pthreads */
12942 status = pthread_create( &t, pthread_attr_default, task, NULL );
12943 if( status ) return status;
12946 /* give thread a chance to complete */
12947 /* it should remain joinable and hence detachable */
12950 status = pthread_detach( &t );
12951 if( status ) return status;
12955 #ifdef HAVE_LINUX_THREADS
12956 pthread_kill_other_threads_np();
12964 if { (eval echo configure:12965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12966 ol_cv_pthread_mthreads=yes
12968 echo "configure: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12971 ol_cv_pthread_mthreads=no
12982 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12984 if test $ol_cv_pthread_mthreads = yes ; then
12985 ol_link_pthreads="-mthreads"
12986 ol_link_threads=posix
12990 # Pthread try link: -thread (ol_cv_pthread_thread)
12991 if test "$ol_link_threads" = no ; then
12993 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12994 echo "configure:12995: checking for pthread link with -thread" >&5
12995 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
13001 LIBS="-thread $LIBS"
13003 if test "$cross_compiling" = yes; then
13004 cat > conftest.$ac_ext <<EOF
13005 #line 13006 "configure"
13006 #include "confdefs.h"
13007 /* pthread test headers */
13008 #include <pthread.h>
13010 #define NULL (void*)0
13013 static void *task(p)
13016 return (void *) (p == NULL);
13021 /* pthread test function */
13026 #ifdef HAVE_PTHREADS_FINAL
13027 /* Final pthreads */
13028 pthread_attr_t attr;
13030 status = pthread_attr_init(&attr);
13031 if( status ) return status;
13033 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13035 #if defined( PTHREAD_CREATE_JOINABLE )
13036 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13038 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13041 #ifdef PTHREAD_CREATE_DETACHED
13043 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13046 if( status ) return status;
13049 status = pthread_create( &t, &attr, task, NULL );
13050 if( status ) return status;
13052 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13054 /* give thread a chance to complete */
13055 /* it should remain joinable and hence detachable */
13058 status = pthread_detach( t );
13059 if( status ) return status;
13064 /* Draft 4 pthreads */
13065 status = pthread_create( &t, pthread_attr_default, task, NULL );
13066 if( status ) return status;
13069 /* give thread a chance to complete */
13070 /* it should remain joinable and hence detachable */
13073 status = pthread_detach( &t );
13074 if( status ) return status;
13078 #ifdef HAVE_LINUX_THREADS
13079 pthread_kill_other_threads_np();
13086 if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13088 ol_cv_pthread_thread=yes
13090 echo "configure: failed program was:" >&5
13091 cat conftest.$ac_ext >&5
13093 ol_cv_pthread_thread=no
13097 cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure"
13099 #include "confdefs.h"
13100 /* pthread test headers */
13101 #include <pthread.h>
13103 #define NULL (void*)0
13106 static void *task(p)
13109 return (void *) (p == NULL);
13113 int main(argc, argv)
13118 /* pthread test function */
13123 #ifdef HAVE_PTHREADS_FINAL
13124 /* Final pthreads */
13125 pthread_attr_t attr;
13127 status = pthread_attr_init(&attr);
13128 if( status ) return status;
13130 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13132 #if defined( PTHREAD_CREATE_JOINABLE )
13133 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13135 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13138 #ifdef PTHREAD_CREATE_DETACHED
13140 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13143 if( status ) return status;
13146 status = pthread_create( &t, &attr, task, NULL );
13147 if( status ) return status;
13149 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13151 /* give thread a chance to complete */
13152 /* it should remain joinable and hence detachable */
13155 status = pthread_detach( t );
13156 if( status ) return status;
13161 /* Draft 4 pthreads */
13162 status = pthread_create( &t, pthread_attr_default, task, NULL );
13163 if( status ) return status;
13166 /* give thread a chance to complete */
13167 /* it should remain joinable and hence detachable */
13170 status = pthread_detach( &t );
13171 if( status ) return status;
13175 #ifdef HAVE_LINUX_THREADS
13176 pthread_kill_other_threads_np();
13184 if { (eval echo configure:13185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13186 ol_cv_pthread_thread=yes
13188 echo "configure: failed program was:" >&5
13189 cat conftest.$ac_ext >&5
13191 ol_cv_pthread_thread=no
13202 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13204 if test $ol_cv_pthread_thread = yes ; then
13205 ol_link_pthreads="-thread"
13206 ol_link_threads=posix
13211 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13212 if test "$ol_link_threads" = no ; then
13213 # try -lpthread -lmach -lexc -lc_r
13214 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13215 echo "configure:13216: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13216 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13217 echo $ac_n "(cached) $ac_c" 1>&6
13222 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13224 if test "$cross_compiling" = yes; then
13225 cat > conftest.$ac_ext <<EOF
13226 #line 13227 "configure"
13227 #include "confdefs.h"
13228 /* pthread test headers */
13229 #include <pthread.h>
13231 #define NULL (void*)0
13234 static void *task(p)
13237 return (void *) (p == NULL);
13242 /* pthread test function */
13247 #ifdef HAVE_PTHREADS_FINAL
13248 /* Final pthreads */
13249 pthread_attr_t attr;
13251 status = pthread_attr_init(&attr);
13252 if( status ) return status;
13254 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13256 #if defined( PTHREAD_CREATE_JOINABLE )
13257 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13259 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13262 #ifdef PTHREAD_CREATE_DETACHED
13264 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13267 if( status ) return status;
13270 status = pthread_create( &t, &attr, task, NULL );
13271 if( status ) return status;
13273 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13275 /* give thread a chance to complete */
13276 /* it should remain joinable and hence detachable */
13279 status = pthread_detach( t );
13280 if( status ) return status;
13285 /* Draft 4 pthreads */
13286 status = pthread_create( &t, pthread_attr_default, task, NULL );
13287 if( status ) return status;
13290 /* give thread a chance to complete */
13291 /* it should remain joinable and hence detachable */
13294 status = pthread_detach( &t );
13295 if( status ) return status;
13299 #ifdef HAVE_LINUX_THREADS
13300 pthread_kill_other_threads_np();
13307 if { (eval echo configure:13308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13309 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13311 echo "configure: failed program was:" >&5
13312 cat conftest.$ac_ext >&5
13314 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13318 cat > conftest.$ac_ext <<EOF
13319 #line 13320 "configure"
13320 #include "confdefs.h"
13321 /* pthread test headers */
13322 #include <pthread.h>
13324 #define NULL (void*)0
13327 static void *task(p)
13330 return (void *) (p == NULL);
13334 int main(argc, argv)
13339 /* pthread test function */
13344 #ifdef HAVE_PTHREADS_FINAL
13345 /* Final pthreads */
13346 pthread_attr_t attr;
13348 status = pthread_attr_init(&attr);
13349 if( status ) return status;
13351 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13353 #if defined( PTHREAD_CREATE_JOINABLE )
13354 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13356 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13359 #ifdef PTHREAD_CREATE_DETACHED
13361 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13364 if( status ) return status;
13367 status = pthread_create( &t, &attr, task, NULL );
13368 if( status ) return status;
13370 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13372 /* give thread a chance to complete */
13373 /* it should remain joinable and hence detachable */
13376 status = pthread_detach( t );
13377 if( status ) return status;
13382 /* Draft 4 pthreads */
13383 status = pthread_create( &t, pthread_attr_default, task, NULL );
13384 if( status ) return status;
13387 /* give thread a chance to complete */
13388 /* it should remain joinable and hence detachable */
13391 status = pthread_detach( &t );
13392 if( status ) return status;
13396 #ifdef HAVE_LINUX_THREADS
13397 pthread_kill_other_threads_np();
13405 if { (eval echo configure:13406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13407 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13409 echo "configure: failed program was:" >&5
13410 cat conftest.$ac_ext >&5
13412 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13423 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13425 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13426 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13427 ol_link_threads=posix
13431 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13432 if test "$ol_link_threads" = no ; then
13433 # try -lpthread -lmach -lexc
13434 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13435 echo "configure:13436: checking for pthread link with -lpthread -lmach -lexc" >&5
13436 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13437 echo $ac_n "(cached) $ac_c" 1>&6
13442 LIBS="-lpthread -lmach -lexc $LIBS"
13444 if test "$cross_compiling" = yes; then
13445 cat > conftest.$ac_ext <<EOF
13446 #line 13447 "configure"
13447 #include "confdefs.h"
13448 /* pthread test headers */
13449 #include <pthread.h>
13451 #define NULL (void*)0
13454 static void *task(p)
13457 return (void *) (p == NULL);
13462 /* pthread test function */
13467 #ifdef HAVE_PTHREADS_FINAL
13468 /* Final pthreads */
13469 pthread_attr_t attr;
13471 status = pthread_attr_init(&attr);
13472 if( status ) return status;
13474 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13476 #if defined( PTHREAD_CREATE_JOINABLE )
13477 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13479 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13482 #ifdef PTHREAD_CREATE_DETACHED
13484 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13487 if( status ) return status;
13490 status = pthread_create( &t, &attr, task, NULL );
13491 if( status ) return status;
13493 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13495 /* give thread a chance to complete */
13496 /* it should remain joinable and hence detachable */
13499 status = pthread_detach( t );
13500 if( status ) return status;
13505 /* Draft 4 pthreads */
13506 status = pthread_create( &t, pthread_attr_default, task, NULL );
13507 if( status ) return status;
13510 /* give thread a chance to complete */
13511 /* it should remain joinable and hence detachable */
13514 status = pthread_detach( &t );
13515 if( status ) return status;
13519 #ifdef HAVE_LINUX_THREADS
13520 pthread_kill_other_threads_np();
13527 if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13529 ol_cv_pthread_lpthread_lmach_lexc=yes
13531 echo "configure: failed program was:" >&5
13532 cat conftest.$ac_ext >&5
13534 ol_cv_pthread_lpthread_lmach_lexc=no
13538 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure"
13540 #include "confdefs.h"
13541 /* pthread test headers */
13542 #include <pthread.h>
13544 #define NULL (void*)0
13547 static void *task(p)
13550 return (void *) (p == NULL);
13554 int main(argc, argv)
13559 /* pthread test function */
13564 #ifdef HAVE_PTHREADS_FINAL
13565 /* Final pthreads */
13566 pthread_attr_t attr;
13568 status = pthread_attr_init(&attr);
13569 if( status ) return status;
13571 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13573 #if defined( PTHREAD_CREATE_JOINABLE )
13574 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13576 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13579 #ifdef PTHREAD_CREATE_DETACHED
13581 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13584 if( status ) return status;
13587 status = pthread_create( &t, &attr, task, NULL );
13588 if( status ) return status;
13590 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13592 /* give thread a chance to complete */
13593 /* it should remain joinable and hence detachable */
13596 status = pthread_detach( t );
13597 if( status ) return status;
13602 /* Draft 4 pthreads */
13603 status = pthread_create( &t, pthread_attr_default, task, NULL );
13604 if( status ) return status;
13607 /* give thread a chance to complete */
13608 /* it should remain joinable and hence detachable */
13611 status = pthread_detach( &t );
13612 if( status ) return status;
13616 #ifdef HAVE_LINUX_THREADS
13617 pthread_kill_other_threads_np();
13625 if { (eval echo configure:13626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13627 ol_cv_pthread_lpthread_lmach_lexc=yes
13629 echo "configure: failed program was:" >&5
13630 cat conftest.$ac_ext >&5
13632 ol_cv_pthread_lpthread_lmach_lexc=no
13643 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13645 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13646 ol_link_pthreads="-lpthread -lmach -lexc"
13647 ol_link_threads=posix
13652 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13653 if test "$ol_link_threads" = no ; then
13654 # try -lpthread -Wl,-woff,85
13655 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13656 echo "configure:13657: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13657 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13658 echo $ac_n "(cached) $ac_c" 1>&6
13663 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13665 if test "$cross_compiling" = yes; then
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 /* pthread test headers */
13670 #include <pthread.h>
13672 #define NULL (void*)0
13675 static void *task(p)
13678 return (void *) (p == NULL);
13683 /* pthread test function */
13688 #ifdef HAVE_PTHREADS_FINAL
13689 /* Final pthreads */
13690 pthread_attr_t attr;
13692 status = pthread_attr_init(&attr);
13693 if( status ) return status;
13695 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13697 #if defined( PTHREAD_CREATE_JOINABLE )
13698 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13700 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13703 #ifdef PTHREAD_CREATE_DETACHED
13705 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13708 if( status ) return status;
13711 status = pthread_create( &t, &attr, task, NULL );
13712 if( status ) return status;
13714 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13716 /* give thread a chance to complete */
13717 /* it should remain joinable and hence detachable */
13720 status = pthread_detach( t );
13721 if( status ) return status;
13726 /* Draft 4 pthreads */
13727 status = pthread_create( &t, pthread_attr_default, task, NULL );
13728 if( status ) return status;
13731 /* give thread a chance to complete */
13732 /* it should remain joinable and hence detachable */
13735 status = pthread_detach( &t );
13736 if( status ) return status;
13740 #ifdef HAVE_LINUX_THREADS
13741 pthread_kill_other_threads_np();
13748 if { (eval echo configure:13749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13750 ol_cv_pthread_lib_lpthread_woff=yes
13752 echo "configure: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13755 ol_cv_pthread_lib_lpthread_woff=no
13759 cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 /* pthread test headers */
13763 #include <pthread.h>
13765 #define NULL (void*)0
13768 static void *task(p)
13771 return (void *) (p == NULL);
13775 int main(argc, argv)
13780 /* pthread test function */
13785 #ifdef HAVE_PTHREADS_FINAL
13786 /* Final pthreads */
13787 pthread_attr_t attr;
13789 status = pthread_attr_init(&attr);
13790 if( status ) return status;
13792 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13794 #if defined( PTHREAD_CREATE_JOINABLE )
13795 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13797 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13800 #ifdef PTHREAD_CREATE_DETACHED
13802 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13805 if( status ) return status;
13808 status = pthread_create( &t, &attr, task, NULL );
13809 if( status ) return status;
13811 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13813 /* give thread a chance to complete */
13814 /* it should remain joinable and hence detachable */
13817 status = pthread_detach( t );
13818 if( status ) return status;
13823 /* Draft 4 pthreads */
13824 status = pthread_create( &t, pthread_attr_default, task, NULL );
13825 if( status ) return status;
13828 /* give thread a chance to complete */
13829 /* it should remain joinable and hence detachable */
13832 status = pthread_detach( &t );
13833 if( status ) return status;
13837 #ifdef HAVE_LINUX_THREADS
13838 pthread_kill_other_threads_np();
13846 if { (eval echo configure:13847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13848 ol_cv_pthread_lib_lpthread_woff=yes
13850 echo "configure: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13853 ol_cv_pthread_lib_lpthread_woff=no
13864 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13866 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13867 ol_link_pthreads="-lpthread -Wl,-woff,85"
13868 ol_link_threads=posix
13873 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13874 if test "$ol_link_threads" = no ; then
13876 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13877 echo "configure:13878: checking for pthread link with -lpthread" >&5
13878 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13879 echo $ac_n "(cached) $ac_c" 1>&6
13884 LIBS="-lpthread $LIBS"
13886 if test "$cross_compiling" = yes; then
13887 cat > conftest.$ac_ext <<EOF
13888 #line 13889 "configure"
13889 #include "confdefs.h"
13890 /* pthread test headers */
13891 #include <pthread.h>
13893 #define NULL (void*)0
13896 static void *task(p)
13899 return (void *) (p == NULL);
13904 /* pthread test function */
13909 #ifdef HAVE_PTHREADS_FINAL
13910 /* Final pthreads */
13911 pthread_attr_t attr;
13913 status = pthread_attr_init(&attr);
13914 if( status ) return status;
13916 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13918 #if defined( PTHREAD_CREATE_JOINABLE )
13919 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13921 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13924 #ifdef PTHREAD_CREATE_DETACHED
13926 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13929 if( status ) return status;
13932 status = pthread_create( &t, &attr, task, NULL );
13933 if( status ) return status;
13935 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13937 /* give thread a chance to complete */
13938 /* it should remain joinable and hence detachable */
13941 status = pthread_detach( t );
13942 if( status ) return status;
13947 /* Draft 4 pthreads */
13948 status = pthread_create( &t, pthread_attr_default, task, NULL );
13949 if( status ) return status;
13952 /* give thread a chance to complete */
13953 /* it should remain joinable and hence detachable */
13956 status = pthread_detach( &t );
13957 if( status ) return status;
13961 #ifdef HAVE_LINUX_THREADS
13962 pthread_kill_other_threads_np();
13969 if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13971 ol_cv_pthread_lpthread=yes
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13976 ol_cv_pthread_lpthread=no
13980 cat > conftest.$ac_ext <<EOF
13981 #line 13982 "configure"
13982 #include "confdefs.h"
13983 /* pthread test headers */
13984 #include <pthread.h>
13986 #define NULL (void*)0
13989 static void *task(p)
13992 return (void *) (p == NULL);
13996 int main(argc, argv)
14001 /* pthread test function */
14006 #ifdef HAVE_PTHREADS_FINAL
14007 /* Final pthreads */
14008 pthread_attr_t attr;
14010 status = pthread_attr_init(&attr);
14011 if( status ) return status;
14013 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14015 #if defined( PTHREAD_CREATE_JOINABLE )
14016 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14018 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14021 #ifdef PTHREAD_CREATE_DETACHED
14023 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14026 if( status ) return status;
14029 status = pthread_create( &t, &attr, task, NULL );
14030 if( status ) return status;
14032 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14034 /* give thread a chance to complete */
14035 /* it should remain joinable and hence detachable */
14038 status = pthread_detach( t );
14039 if( status ) return status;
14044 /* Draft 4 pthreads */
14045 status = pthread_create( &t, pthread_attr_default, task, NULL );
14046 if( status ) return status;
14049 /* give thread a chance to complete */
14050 /* it should remain joinable and hence detachable */
14053 status = pthread_detach( &t );
14054 if( status ) return status;
14058 #ifdef HAVE_LINUX_THREADS
14059 pthread_kill_other_threads_np();
14067 if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14069 ol_cv_pthread_lpthread=yes
14071 echo "configure: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14074 ol_cv_pthread_lpthread=no
14085 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
14087 if test $ol_cv_pthread_lpthread = yes ; then
14088 ol_link_pthreads="-lpthread"
14089 ol_link_threads=posix
14093 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
14094 if test "$ol_link_threads" = no ; then
14096 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
14097 echo "configure:14098: checking for pthread link with -lc_r" >&5
14098 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
14106 if test "$cross_compiling" = yes; then
14107 cat > conftest.$ac_ext <<EOF
14108 #line 14109 "configure"
14109 #include "confdefs.h"
14110 /* pthread test headers */
14111 #include <pthread.h>
14113 #define NULL (void*)0
14116 static void *task(p)
14119 return (void *) (p == NULL);
14124 /* pthread test function */
14129 #ifdef HAVE_PTHREADS_FINAL
14130 /* Final pthreads */
14131 pthread_attr_t attr;
14133 status = pthread_attr_init(&attr);
14134 if( status ) return status;
14136 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14138 #if defined( PTHREAD_CREATE_JOINABLE )
14139 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14141 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14144 #ifdef PTHREAD_CREATE_DETACHED
14146 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14149 if( status ) return status;
14152 status = pthread_create( &t, &attr, task, NULL );
14153 if( status ) return status;
14155 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14157 /* give thread a chance to complete */
14158 /* it should remain joinable and hence detachable */
14161 status = pthread_detach( t );
14162 if( status ) return status;
14167 /* Draft 4 pthreads */
14168 status = pthread_create( &t, pthread_attr_default, task, NULL );
14169 if( status ) return status;
14172 /* give thread a chance to complete */
14173 /* it should remain joinable and hence detachable */
14176 status = pthread_detach( &t );
14177 if( status ) return status;
14181 #ifdef HAVE_LINUX_THREADS
14182 pthread_kill_other_threads_np();
14189 if { (eval echo configure:14190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14191 ol_cv_pthread_lc_r=yes
14193 echo "configure: failed program was:" >&5
14194 cat conftest.$ac_ext >&5
14196 ol_cv_pthread_lc_r=no
14200 cat > conftest.$ac_ext <<EOF
14201 #line 14202 "configure"
14202 #include "confdefs.h"
14203 /* pthread test headers */
14204 #include <pthread.h>
14206 #define NULL (void*)0
14209 static void *task(p)
14212 return (void *) (p == NULL);
14216 int main(argc, argv)
14221 /* pthread test function */
14226 #ifdef HAVE_PTHREADS_FINAL
14227 /* Final pthreads */
14228 pthread_attr_t attr;
14230 status = pthread_attr_init(&attr);
14231 if( status ) return status;
14233 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14235 #if defined( PTHREAD_CREATE_JOINABLE )
14236 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14238 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14241 #ifdef PTHREAD_CREATE_DETACHED
14243 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14246 if( status ) return status;
14249 status = pthread_create( &t, &attr, task, NULL );
14250 if( status ) return status;
14252 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14254 /* give thread a chance to complete */
14255 /* it should remain joinable and hence detachable */
14258 status = pthread_detach( t );
14259 if( status ) return status;
14264 /* Draft 4 pthreads */
14265 status = pthread_create( &t, pthread_attr_default, task, NULL );
14266 if( status ) return status;
14269 /* give thread a chance to complete */
14270 /* it should remain joinable and hence detachable */
14273 status = pthread_detach( &t );
14274 if( status ) return status;
14278 #ifdef HAVE_LINUX_THREADS
14279 pthread_kill_other_threads_np();
14287 if { (eval echo configure:14288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14289 ol_cv_pthread_lc_r=yes
14291 echo "configure: failed program was:" >&5
14292 cat conftest.$ac_ext >&5
14294 ol_cv_pthread_lc_r=no
14305 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14307 if test $ol_cv_pthread_lc_r = yes ; then
14308 ol_link_pthreads="-lc_r"
14309 ol_link_threads=posix
14314 # Pthread try link: -threads (ol_cv_pthread_threads)
14315 if test "$ol_link_threads" = no ; then
14317 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14318 echo "configure:14319: checking for pthread link with -threads" >&5
14319 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14320 echo $ac_n "(cached) $ac_c" 1>&6
14325 LIBS="-threads $LIBS"
14327 if test "$cross_compiling" = yes; then
14328 cat > conftest.$ac_ext <<EOF
14329 #line 14330 "configure"
14330 #include "confdefs.h"
14331 /* pthread test headers */
14332 #include <pthread.h>
14334 #define NULL (void*)0
14337 static void *task(p)
14340 return (void *) (p == NULL);
14345 /* pthread test function */
14350 #ifdef HAVE_PTHREADS_FINAL
14351 /* Final pthreads */
14352 pthread_attr_t attr;
14354 status = pthread_attr_init(&attr);
14355 if( status ) return status;
14357 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14359 #if defined( PTHREAD_CREATE_JOINABLE )
14360 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14362 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14365 #ifdef PTHREAD_CREATE_DETACHED
14367 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14370 if( status ) return status;
14373 status = pthread_create( &t, &attr, task, NULL );
14374 if( status ) return status;
14376 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14378 /* give thread a chance to complete */
14379 /* it should remain joinable and hence detachable */
14382 status = pthread_detach( t );
14383 if( status ) return status;
14388 /* Draft 4 pthreads */
14389 status = pthread_create( &t, pthread_attr_default, task, NULL );
14390 if( status ) return status;
14393 /* give thread a chance to complete */
14394 /* it should remain joinable and hence detachable */
14397 status = pthread_detach( &t );
14398 if( status ) return status;
14402 #ifdef HAVE_LINUX_THREADS
14403 pthread_kill_other_threads_np();
14410 if { (eval echo configure:14411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14412 ol_cv_pthread_threads=yes
14414 echo "configure: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14417 ol_cv_pthread_threads=no
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* pthread test headers */
14425 #include <pthread.h>
14427 #define NULL (void*)0
14430 static void *task(p)
14433 return (void *) (p == NULL);
14437 int main(argc, argv)
14442 /* pthread test function */
14447 #ifdef HAVE_PTHREADS_FINAL
14448 /* Final pthreads */
14449 pthread_attr_t attr;
14451 status = pthread_attr_init(&attr);
14452 if( status ) return status;
14454 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14456 #if defined( PTHREAD_CREATE_JOINABLE )
14457 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14459 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14462 #ifdef PTHREAD_CREATE_DETACHED
14464 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14467 if( status ) return status;
14470 status = pthread_create( &t, &attr, task, NULL );
14471 if( status ) return status;
14473 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14475 /* give thread a chance to complete */
14476 /* it should remain joinable and hence detachable */
14479 status = pthread_detach( t );
14480 if( status ) return status;
14485 /* Draft 4 pthreads */
14486 status = pthread_create( &t, pthread_attr_default, task, NULL );
14487 if( status ) return status;
14490 /* give thread a chance to complete */
14491 /* it should remain joinable and hence detachable */
14494 status = pthread_detach( &t );
14495 if( status ) return status;
14499 #ifdef HAVE_LINUX_THREADS
14500 pthread_kill_other_threads_np();
14508 if { (eval echo configure:14509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14510 ol_cv_pthread_threads=yes
14512 echo "configure: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14515 ol_cv_pthread_threads=no
14526 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14528 if test $ol_cv_pthread_threads = yes ; then
14529 ol_link_pthreads="-threads"
14530 ol_link_threads=posix
14535 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14536 if test "$ol_link_threads" = no ; then
14537 # try -lpthreads -lmach -lexc -lc_r
14538 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14539 echo "configure:14540: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14540 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14541 echo $ac_n "(cached) $ac_c" 1>&6
14546 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14548 if test "$cross_compiling" = yes; then
14549 cat > conftest.$ac_ext <<EOF
14550 #line 14551 "configure"
14551 #include "confdefs.h"
14552 /* pthread test headers */
14553 #include <pthread.h>
14555 #define NULL (void*)0
14558 static void *task(p)
14561 return (void *) (p == NULL);
14566 /* pthread test function */
14571 #ifdef HAVE_PTHREADS_FINAL
14572 /* Final pthreads */
14573 pthread_attr_t attr;
14575 status = pthread_attr_init(&attr);
14576 if( status ) return status;
14578 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14580 #if defined( PTHREAD_CREATE_JOINABLE )
14581 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14583 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14586 #ifdef PTHREAD_CREATE_DETACHED
14588 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14591 if( status ) return status;
14594 status = pthread_create( &t, &attr, task, NULL );
14595 if( status ) return status;
14597 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14599 /* give thread a chance to complete */
14600 /* it should remain joinable and hence detachable */
14603 status = pthread_detach( t );
14604 if( status ) return status;
14609 /* Draft 4 pthreads */
14610 status = pthread_create( &t, pthread_attr_default, task, NULL );
14611 if( status ) return status;
14614 /* give thread a chance to complete */
14615 /* it should remain joinable and hence detachable */
14618 status = pthread_detach( &t );
14619 if( status ) return status;
14623 #ifdef HAVE_LINUX_THREADS
14624 pthread_kill_other_threads_np();
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14633 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14638 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14642 cat > conftest.$ac_ext <<EOF
14643 #line 14644 "configure"
14644 #include "confdefs.h"
14645 /* pthread test headers */
14646 #include <pthread.h>
14648 #define NULL (void*)0
14651 static void *task(p)
14654 return (void *) (p == NULL);
14658 int main(argc, argv)
14663 /* pthread test function */
14668 #ifdef HAVE_PTHREADS_FINAL
14669 /* Final pthreads */
14670 pthread_attr_t attr;
14672 status = pthread_attr_init(&attr);
14673 if( status ) return status;
14675 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14677 #if defined( PTHREAD_CREATE_JOINABLE )
14678 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14680 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14683 #ifdef PTHREAD_CREATE_DETACHED
14685 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14688 if( status ) return status;
14691 status = pthread_create( &t, &attr, task, NULL );
14692 if( status ) return status;
14694 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14696 /* give thread a chance to complete */
14697 /* it should remain joinable and hence detachable */
14700 status = pthread_detach( t );
14701 if( status ) return status;
14706 /* Draft 4 pthreads */
14707 status = pthread_create( &t, pthread_attr_default, task, NULL );
14708 if( status ) return status;
14711 /* give thread a chance to complete */
14712 /* it should remain joinable and hence detachable */
14715 status = pthread_detach( &t );
14716 if( status ) return status;
14720 #ifdef HAVE_LINUX_THREADS
14721 pthread_kill_other_threads_np();
14729 if { (eval echo configure:14730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14731 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14733 echo "configure: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14736 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14747 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14749 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14750 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14751 ol_link_threads=posix
14755 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14756 if test "$ol_link_threads" = no ; then
14757 # try -lpthreads -lmach -lexc
14758 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14759 echo "configure:14760: checking for pthread link with -lpthreads -lmach -lexc" >&5
14760 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14761 echo $ac_n "(cached) $ac_c" 1>&6
14766 LIBS="-lpthreads -lmach -lexc $LIBS"
14768 if test "$cross_compiling" = yes; then
14769 cat > conftest.$ac_ext <<EOF
14770 #line 14771 "configure"
14771 #include "confdefs.h"
14772 /* pthread test headers */
14773 #include <pthread.h>
14775 #define NULL (void*)0
14778 static void *task(p)
14781 return (void *) (p == NULL);
14786 /* pthread test function */
14791 #ifdef HAVE_PTHREADS_FINAL
14792 /* Final pthreads */
14793 pthread_attr_t attr;
14795 status = pthread_attr_init(&attr);
14796 if( status ) return status;
14798 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14800 #if defined( PTHREAD_CREATE_JOINABLE )
14801 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14803 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14806 #ifdef PTHREAD_CREATE_DETACHED
14808 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14811 if( status ) return status;
14814 status = pthread_create( &t, &attr, task, NULL );
14815 if( status ) return status;
14817 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14819 /* give thread a chance to complete */
14820 /* it should remain joinable and hence detachable */
14823 status = pthread_detach( t );
14824 if( status ) return status;
14829 /* Draft 4 pthreads */
14830 status = pthread_create( &t, pthread_attr_default, task, NULL );
14831 if( status ) return status;
14834 /* give thread a chance to complete */
14835 /* it should remain joinable and hence detachable */
14838 status = pthread_detach( &t );
14839 if( status ) return status;
14843 #ifdef HAVE_LINUX_THREADS
14844 pthread_kill_other_threads_np();
14851 if { (eval echo configure:14852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14853 ol_cv_pthread_lpthreads_lmach_lexc=yes
14855 echo "configure: failed program was:" >&5
14856 cat conftest.$ac_ext >&5
14858 ol_cv_pthread_lpthreads_lmach_lexc=no
14862 cat > conftest.$ac_ext <<EOF
14863 #line 14864 "configure"
14864 #include "confdefs.h"
14865 /* pthread test headers */
14866 #include <pthread.h>
14868 #define NULL (void*)0
14871 static void *task(p)
14874 return (void *) (p == NULL);
14878 int main(argc, argv)
14883 /* pthread test function */
14888 #ifdef HAVE_PTHREADS_FINAL
14889 /* Final pthreads */
14890 pthread_attr_t attr;
14892 status = pthread_attr_init(&attr);
14893 if( status ) return status;
14895 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14897 #if defined( PTHREAD_CREATE_JOINABLE )
14898 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14900 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14903 #ifdef PTHREAD_CREATE_DETACHED
14905 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14908 if( status ) return status;
14911 status = pthread_create( &t, &attr, task, NULL );
14912 if( status ) return status;
14914 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14916 /* give thread a chance to complete */
14917 /* it should remain joinable and hence detachable */
14920 status = pthread_detach( t );
14921 if( status ) return status;
14926 /* Draft 4 pthreads */
14927 status = pthread_create( &t, pthread_attr_default, task, NULL );
14928 if( status ) return status;
14931 /* give thread a chance to complete */
14932 /* it should remain joinable and hence detachable */
14935 status = pthread_detach( &t );
14936 if( status ) return status;
14940 #ifdef HAVE_LINUX_THREADS
14941 pthread_kill_other_threads_np();
14949 if { (eval echo configure:14950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14951 ol_cv_pthread_lpthreads_lmach_lexc=yes
14953 echo "configure: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14956 ol_cv_pthread_lpthreads_lmach_lexc=no
14967 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14969 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14970 ol_link_pthreads="-lpthreads -lmach -lexc"
14971 ol_link_threads=posix
14975 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14976 if test "$ol_link_threads" = no ; then
14977 # try -lpthreads -lexc
14978 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14979 echo "configure:14980: checking for pthread link with -lpthreads -lexc" >&5
14980 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
14986 LIBS="-lpthreads -lexc $LIBS"
14988 if test "$cross_compiling" = yes; then
14989 cat > conftest.$ac_ext <<EOF
14990 #line 14991 "configure"
14991 #include "confdefs.h"
14992 /* pthread test headers */
14993 #include <pthread.h>
14995 #define NULL (void*)0
14998 static void *task(p)
15001 return (void *) (p == NULL);
15006 /* pthread test function */
15011 #ifdef HAVE_PTHREADS_FINAL
15012 /* Final pthreads */
15013 pthread_attr_t attr;
15015 status = pthread_attr_init(&attr);
15016 if( status ) return status;
15018 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15020 #if defined( PTHREAD_CREATE_JOINABLE )
15021 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15023 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15026 #ifdef PTHREAD_CREATE_DETACHED
15028 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15031 if( status ) return status;
15034 status = pthread_create( &t, &attr, task, NULL );
15035 if( status ) return status;
15037 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15039 /* give thread a chance to complete */
15040 /* it should remain joinable and hence detachable */
15043 status = pthread_detach( t );
15044 if( status ) return status;
15049 /* Draft 4 pthreads */
15050 status = pthread_create( &t, pthread_attr_default, task, NULL );
15051 if( status ) return status;
15054 /* give thread a chance to complete */
15055 /* it should remain joinable and hence detachable */
15058 status = pthread_detach( &t );
15059 if( status ) return status;
15063 #ifdef HAVE_LINUX_THREADS
15064 pthread_kill_other_threads_np();
15071 if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15073 ol_cv_pthread_lpthreads_lexc=yes
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15078 ol_cv_pthread_lpthreads_lexc=no
15082 cat > conftest.$ac_ext <<EOF
15083 #line 15084 "configure"
15084 #include "confdefs.h"
15085 /* pthread test headers */
15086 #include <pthread.h>
15088 #define NULL (void*)0
15091 static void *task(p)
15094 return (void *) (p == NULL);
15098 int main(argc, argv)
15103 /* pthread test function */
15108 #ifdef HAVE_PTHREADS_FINAL
15109 /* Final pthreads */
15110 pthread_attr_t attr;
15112 status = pthread_attr_init(&attr);
15113 if( status ) return status;
15115 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15117 #if defined( PTHREAD_CREATE_JOINABLE )
15118 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15120 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15123 #ifdef PTHREAD_CREATE_DETACHED
15125 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15128 if( status ) return status;
15131 status = pthread_create( &t, &attr, task, NULL );
15132 if( status ) return status;
15134 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15136 /* give thread a chance to complete */
15137 /* it should remain joinable and hence detachable */
15140 status = pthread_detach( t );
15141 if( status ) return status;
15146 /* Draft 4 pthreads */
15147 status = pthread_create( &t, pthread_attr_default, task, NULL );
15148 if( status ) return status;
15151 /* give thread a chance to complete */
15152 /* it should remain joinable and hence detachable */
15155 status = pthread_detach( &t );
15156 if( status ) return status;
15160 #ifdef HAVE_LINUX_THREADS
15161 pthread_kill_other_threads_np();
15169 if { (eval echo configure:15170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15171 ol_cv_pthread_lpthreads_lexc=yes
15173 echo "configure: failed program was:" >&5
15174 cat conftest.$ac_ext >&5
15176 ol_cv_pthread_lpthreads_lexc=no
15187 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15189 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15190 ol_link_pthreads="-lpthreads -lexc"
15191 ol_link_threads=posix
15196 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15197 if test "$ol_link_threads" = no ; then
15199 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15200 echo "configure:15201: checking for pthread link with -lpthreads" >&5
15201 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15202 echo $ac_n "(cached) $ac_c" 1>&6
15207 LIBS="-lpthreads $LIBS"
15209 if test "$cross_compiling" = yes; then
15210 cat > conftest.$ac_ext <<EOF
15211 #line 15212 "configure"
15212 #include "confdefs.h"
15213 /* pthread test headers */
15214 #include <pthread.h>
15216 #define NULL (void*)0
15219 static void *task(p)
15222 return (void *) (p == NULL);
15227 /* pthread test function */
15232 #ifdef HAVE_PTHREADS_FINAL
15233 /* Final pthreads */
15234 pthread_attr_t attr;
15236 status = pthread_attr_init(&attr);
15237 if( status ) return status;
15239 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15241 #if defined( PTHREAD_CREATE_JOINABLE )
15242 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15244 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15247 #ifdef PTHREAD_CREATE_DETACHED
15249 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15252 if( status ) return status;
15255 status = pthread_create( &t, &attr, task, NULL );
15256 if( status ) return status;
15258 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15260 /* give thread a chance to complete */
15261 /* it should remain joinable and hence detachable */
15264 status = pthread_detach( t );
15265 if( status ) return status;
15270 /* Draft 4 pthreads */
15271 status = pthread_create( &t, pthread_attr_default, task, NULL );
15272 if( status ) return status;
15275 /* give thread a chance to complete */
15276 /* it should remain joinable and hence detachable */
15279 status = pthread_detach( &t );
15280 if( status ) return status;
15284 #ifdef HAVE_LINUX_THREADS
15285 pthread_kill_other_threads_np();
15292 if { (eval echo configure:15293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15294 ol_cv_pthread_lib_lpthreads=yes
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15299 ol_cv_pthread_lib_lpthreads=no
15303 cat > conftest.$ac_ext <<EOF
15304 #line 15305 "configure"
15305 #include "confdefs.h"
15306 /* pthread test headers */
15307 #include <pthread.h>
15309 #define NULL (void*)0
15312 static void *task(p)
15315 return (void *) (p == NULL);
15319 int main(argc, argv)
15324 /* pthread test function */
15329 #ifdef HAVE_PTHREADS_FINAL
15330 /* Final pthreads */
15331 pthread_attr_t attr;
15333 status = pthread_attr_init(&attr);
15334 if( status ) return status;
15336 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15338 #if defined( PTHREAD_CREATE_JOINABLE )
15339 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15341 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15344 #ifdef PTHREAD_CREATE_DETACHED
15346 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15349 if( status ) return status;
15352 status = pthread_create( &t, &attr, task, NULL );
15353 if( status ) return status;
15355 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15357 /* give thread a chance to complete */
15358 /* it should remain joinable and hence detachable */
15361 status = pthread_detach( t );
15362 if( status ) return status;
15367 /* Draft 4 pthreads */
15368 status = pthread_create( &t, pthread_attr_default, task, NULL );
15369 if( status ) return status;
15372 /* give thread a chance to complete */
15373 /* it should remain joinable and hence detachable */
15376 status = pthread_detach( &t );
15377 if( status ) return status;
15381 #ifdef HAVE_LINUX_THREADS
15382 pthread_kill_other_threads_np();
15390 if { (eval echo configure:15391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15392 ol_cv_pthread_lib_lpthreads=yes
15394 echo "configure: failed program was:" >&5
15395 cat conftest.$ac_ext >&5
15397 ol_cv_pthread_lib_lpthreads=no
15408 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15410 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15411 ol_link_pthreads="-lpthreads"
15412 ol_link_threads=posix
15417 if test $ol_link_threads != no ; then
15418 cat >> confdefs.h <<\EOF
15419 #define HAVE_PTHREADS 1
15423 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15425 save_CPPFLAGS="$CPPFLAGS"
15427 LIBS="$LTHREAD_LIBS $LIBS"
15429 for ac_func in sched_yield pthread_yield
15431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15432 echo "configure:15433: checking for $ac_func" >&5
15433 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15434 echo $ac_n "(cached) $ac_c" 1>&6
15436 cat > conftest.$ac_ext <<EOF
15437 #line 15438 "configure"
15438 #include "confdefs.h"
15439 /* System header to define __stub macros and hopefully few prototypes,
15440 which can conflict with char $ac_func(); below. */
15441 #include <assert.h>
15442 /* Override any gcc2 internal prototype to avoid an error. */
15443 /* We use char because int might match the return type of a gcc2
15444 builtin and then its argument prototype would still apply. */
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15461 if { (eval echo configure:15462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15463 eval "ac_cv_func_$ac_func=yes"
15465 echo "configure: failed program was:" >&5
15466 cat conftest.$ac_ext >&5
15468 eval "ac_cv_func_$ac_func=no"
15473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15474 echo "$ac_t""yes" 1>&6
15475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15476 cat >> confdefs.h <<EOF
15477 #define $ac_tr_func 1
15481 echo "$ac_t""no" 1>&6
15486 if test $ac_cv_func_sched_yield = no -a \
15487 $ac_cv_func_pthread_yield = no ; then
15488 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15489 echo "configure:15490: checking for sched_yield in -lrt" >&5
15490 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15491 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15492 echo $ac_n "(cached) $ac_c" 1>&6
15494 ac_save_LIBS="$LIBS"
15496 cat > conftest.$ac_ext <<EOF
15497 #line 15498 "configure"
15498 #include "confdefs.h"
15499 /* Override any gcc2 internal prototype to avoid an error. */
15500 /* We use char because int might match the return type of a gcc2
15501 builtin and then its argument prototype would still apply. */
15502 char sched_yield();
15508 if { (eval echo configure:15509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15510 eval "ac_cv_lib_$ac_lib_var=yes"
15512 echo "configure: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15515 eval "ac_cv_lib_$ac_lib_var=no"
15518 LIBS="$ac_save_LIBS"
15521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15522 echo "$ac_t""yes" 1>&6
15523 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15524 cat >> confdefs.h <<\EOF
15525 #define HAVE_SCHED_YIELD 1
15528 ac_cv_func_sched_yield=yes
15530 echo "$ac_t""no" 1>&6
15531 ac_cv_func_sched_yield=no
15535 if test $ac_cv_func_sched_yield = no -a \
15536 $ac_cv_func_pthread_yield = no ; then
15537 for ac_func in thr_yield
15539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15540 echo "configure:15541: checking for $ac_func" >&5
15541 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15542 echo $ac_n "(cached) $ac_c" 1>&6
15544 cat > conftest.$ac_ext <<EOF
15545 #line 15546 "configure"
15546 #include "confdefs.h"
15547 /* System header to define __stub macros and hopefully few prototypes,
15548 which can conflict with char $ac_func(); below. */
15549 #include <assert.h>
15550 /* Override any gcc2 internal prototype to avoid an error. */
15551 /* We use char because int might match the return type of a gcc2
15552 builtin and then its argument prototype would still apply. */
15558 /* The GNU C library defines this for functions which it implements
15559 to always fail with ENOSYS. Some functions are actually named
15560 something starting with __ and the normal name is an alias. */
15561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15569 if { (eval echo configure:15570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15571 eval "ac_cv_func_$ac_func=yes"
15573 echo "configure: failed program was:" >&5
15574 cat conftest.$ac_ext >&5
15576 eval "ac_cv_func_$ac_func=no"
15581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15582 echo "$ac_t""yes" 1>&6
15583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15584 cat >> confdefs.h <<EOF
15585 #define $ac_tr_func 1
15589 echo "$ac_t""no" 1>&6
15594 if test $ac_cv_func_sched_yield = no -a \
15595 $ac_cv_func_pthread_yield = no -a \
15596 "$ac_cv_func_thr_yield" = no ; then
15597 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15600 for ac_func in pthread_kill pthread_rwlock_destroy
15602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15603 echo "configure:15604: checking for $ac_func" >&5
15604 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15605 echo $ac_n "(cached) $ac_c" 1>&6
15607 cat > conftest.$ac_ext <<EOF
15608 #line 15609 "configure"
15609 #include "confdefs.h"
15610 /* System header to define __stub macros and hopefully few prototypes,
15611 which can conflict with char $ac_func(); below. */
15612 #include <assert.h>
15613 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15621 /* The GNU C library defines this for functions which it implements
15622 to always fail with ENOSYS. Some functions are actually named
15623 something starting with __ and the normal name is an alias. */
15624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15632 if { (eval echo configure:15633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15634 eval "ac_cv_func_$ac_func=yes"
15636 echo "configure: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15639 eval "ac_cv_func_$ac_func=no"
15644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15645 echo "$ac_t""yes" 1>&6
15646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15647 cat >> confdefs.h <<EOF
15648 #define $ac_tr_func 1
15652 echo "$ac_t""no" 1>&6
15657 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15658 echo "configure:15659: checking for pthread_detach with <pthread.h>" >&5
15659 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15660 echo $ac_n "(cached) $ac_c" 1>&6
15663 cat > conftest.$ac_ext <<EOF
15664 #line 15665 "configure"
15665 #include "confdefs.h"
15667 #include <pthread.h>
15669 #define NULL (void*)0
15673 pthread_detach(NULL);
15676 if { (eval echo configure:15677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15678 ol_cv_func_pthread_detach=yes
15680 echo "configure: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15683 ol_cv_func_pthread_detach=no
15689 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15691 if test $ol_cv_func_pthread_detach = no ; then
15692 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15695 cat >> confdefs.h <<\EOF
15696 #define HAVE_PTHREAD_DETACH 1
15701 pthread_setconcurrency \
15702 pthread_getconcurrency \
15703 thr_setconcurrency \
15704 thr_getconcurrency \
15707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15708 echo "configure:15709: checking for $ac_func" >&5
15709 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15710 echo $ac_n "(cached) $ac_c" 1>&6
15712 cat > conftest.$ac_ext <<EOF
15713 #line 15714 "configure"
15714 #include "confdefs.h"
15715 /* System header to define __stub macros and hopefully few prototypes,
15716 which can conflict with char $ac_func(); below. */
15717 #include <assert.h>
15718 /* Override any gcc2 internal prototype to avoid an error. */
15719 /* We use char because int might match the return type of a gcc2
15720 builtin and then its argument prototype would still apply. */
15726 /* The GNU C library defines this for functions which it implements
15727 to always fail with ENOSYS. Some functions are actually named
15728 something starting with __ and the normal name is an alias. */
15729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15737 if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15739 eval "ac_cv_func_$ac_func=yes"
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15744 eval "ac_cv_func_$ac_func=no"
15749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15750 echo "$ac_t""yes" 1>&6
15751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15752 cat >> confdefs.h <<EOF
15753 #define $ac_tr_func 1
15757 echo "$ac_t""no" 1>&6
15763 for ac_func in pthread_kill_other_threads_np
15765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15766 echo "configure:15767: checking for $ac_func" >&5
15767 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15768 echo $ac_n "(cached) $ac_c" 1>&6
15770 cat > conftest.$ac_ext <<EOF
15771 #line 15772 "configure"
15772 #include "confdefs.h"
15773 /* System header to define __stub macros and hopefully few prototypes,
15774 which can conflict with char $ac_func(); below. */
15775 #include <assert.h>
15776 /* Override any gcc2 internal prototype to avoid an error. */
15777 /* We use char because int might match the return type of a gcc2
15778 builtin and then its argument prototype would still apply. */
15784 /* The GNU C library defines this for functions which it implements
15785 to always fail with ENOSYS. Some functions are actually named
15786 something starting with __ and the normal name is an alias. */
15787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15795 if { (eval echo configure:15796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15797 eval "ac_cv_func_$ac_func=yes"
15799 echo "configure: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15802 eval "ac_cv_func_$ac_func=no"
15807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15808 echo "$ac_t""yes" 1>&6
15809 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15810 cat >> confdefs.h <<EOF
15811 #define $ac_tr_func 1
15815 echo "$ac_t""no" 1>&6
15819 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15820 echo "configure:15821: checking for LinuxThreads implementation" >&5
15821 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15822 echo $ac_n "(cached) $ac_c" 1>&6
15824 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15827 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15832 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15833 echo "configure:15834: checking for LinuxThreads consistency" >&5
15834 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15835 echo $ac_n "(cached) $ac_c" 1>&6
15838 if test $ol_cv_header_linux_threads = yes -a \
15839 $ol_cv_sys_linux_threads = yes; then
15840 ol_cv_linux_threads=yes
15841 elif test $ol_cv_header_linux_threads = no -a \
15842 $ol_cv_sys_linux_threads = no; then
15843 ol_cv_linux_threads=no
15845 ol_cv_linux_threads=error
15850 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15853 if test $ol_cv_linux_threads = error; then
15854 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15857 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15858 echo "configure:15859: checking if pthread_create() works" >&5
15859 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15860 echo $ac_n "(cached) $ac_c" 1>&6
15863 if test "$cross_compiling" = yes; then
15864 ol_cv_pthread_create_works=yes
15866 cat > conftest.$ac_ext <<EOF
15867 #line 15868 "configure"
15868 #include "confdefs.h"
15869 /* pthread test headers */
15870 #include <pthread.h>
15872 #define NULL (void*)0
15875 static void *task(p)
15878 return (void *) (p == NULL);
15882 int main(argc, argv)
15887 /* pthread test function */
15892 #ifdef HAVE_PTHREADS_FINAL
15893 /* Final pthreads */
15894 pthread_attr_t attr;
15896 status = pthread_attr_init(&attr);
15897 if( status ) return status;
15899 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15901 #if defined( PTHREAD_CREATE_JOINABLE )
15902 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15904 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15907 #ifdef PTHREAD_CREATE_DETACHED
15909 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15912 if( status ) return status;
15915 status = pthread_create( &t, &attr, task, NULL );
15916 if( status ) return status;
15918 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15920 /* give thread a chance to complete */
15921 /* it should remain joinable and hence detachable */
15924 status = pthread_detach( t );
15925 if( status ) return status;
15930 /* Draft 4 pthreads */
15931 status = pthread_create( &t, pthread_attr_default, task, NULL );
15932 if( status ) return status;
15935 /* give thread a chance to complete */
15936 /* it should remain joinable and hence detachable */
15939 status = pthread_detach( &t );
15940 if( status ) return status;
15944 #ifdef HAVE_LINUX_THREADS
15945 pthread_kill_other_threads_np();
15953 if { (eval echo configure:15954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15955 ol_cv_pthread_create_works=yes
15957 echo "configure: failed program was:" >&5
15958 cat conftest.$ac_ext >&5
15960 ol_cv_pthread_create_works=no
15967 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15969 if test $ol_cv_pthread_create_works = no ; then
15970 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15973 if test $ol_with_yielding_select = auto ; then
15974 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15975 echo "configure:15976: checking if select yields when using pthreads" >&5
15976 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15977 echo $ac_n "(cached) $ac_c" 1>&6
15980 if test "$cross_compiling" = yes; then
15981 ol_cv_pthread_select_yields=cross
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15987 #include <sys/types.h>
15988 #include <sys/time.h>
15989 #include <unistd.h>
15990 #include <pthread.h>
15992 #define NULL (void*) 0
15995 static int fildes[2];
15997 static void *task(p)
16009 FD_SET(fildes[0], &rfds);
16011 /* we're not interested in any fds */
16012 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
16019 exit(0); /* if we exit here, the select blocked the whole process */
16022 int main(argc, argv)
16028 /* create a pipe to select */
16029 if(pipe(&fildes[0])) {
16034 #ifdef HAVE_PTHREAD_SETCONCURRENCY
16035 (void) pthread_setconcurrency(2);
16037 #ifdef HAVE_THR_SETCONCURRENCY
16038 /* Set Solaris LWP concurrency to 2 */
16039 thr_setconcurrency(2);
16043 #if HAVE_PTHREADS_D4
16044 pthread_create(&t, pthread_attr_default, task, NULL);
16046 pthread_create(&t, NULL, task, NULL);
16049 #if HAVE_SCHED_YIELD
16050 sched_yield(); /* make sure task runs first */
16052 #ifdef HAVE_PTHREAD_YIELD
16053 pthread_yield(); /* make sure task runs first */
16060 if { (eval echo configure:16061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16062 ol_cv_pthread_select_yields=no
16064 echo "configure: failed program was:" >&5
16065 cat conftest.$ac_ext >&5
16067 ol_cv_pthread_select_yields=yes
16074 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
16076 if test $ol_cv_pthread_select_yields = cross ; then
16077 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
16080 if test $ol_cv_pthread_select_yields = yes ; then
16081 ol_with_yielding_select=yes
16085 CPPFLAGS="$save_CPPFLAGS"
16088 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
16092 if test $ol_with_threads = posix ; then
16093 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
16097 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16098 -o $ol_with_threads = mach ; then
16100 for ac_hdr in mach/cthreads.h cthreads.h
16102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16104 echo "configure:16105: checking for $ac_hdr" >&5
16105 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16108 cat > conftest.$ac_ext <<EOF
16109 #line 16110 "configure"
16110 #include "confdefs.h"
16113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16114 { (eval echo configure:16115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16116 if test -z "$ac_err"; then
16118 eval "ac_cv_header_$ac_safe=yes"
16121 echo "configure: failed program was:" >&5
16122 cat conftest.$ac_ext >&5
16124 eval "ac_cv_header_$ac_safe=no"
16128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16129 echo "$ac_t""yes" 1>&6
16130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16131 cat >> confdefs.h <<EOF
16132 #define $ac_tr_hdr 1
16136 echo "$ac_t""no" 1>&6
16140 if test $ac_cv_header_mach_cthreads_h = yes ; then
16141 ol_with_threads=found
16143 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16144 echo "configure:16145: checking for cthread_fork" >&5
16145 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16146 echo $ac_n "(cached) $ac_c" 1>&6
16148 cat > conftest.$ac_ext <<EOF
16149 #line 16150 "configure"
16150 #include "confdefs.h"
16151 /* System header to define __stub macros and hopefully few prototypes,
16152 which can conflict with char cthread_fork(); below. */
16153 #include <assert.h>
16154 /* Override any gcc2 internal prototype to avoid an error. */
16155 /* We use char because int might match the return type of a gcc2
16156 builtin and then its argument prototype would still apply. */
16157 char cthread_fork();
16162 /* The GNU C library defines this for functions which it implements
16163 to always fail with ENOSYS. Some functions are actually named
16164 something starting with __ and the normal name is an alias. */
16165 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16173 if { (eval echo configure:16174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16175 eval "ac_cv_func_cthread_fork=yes"
16177 echo "configure: failed program was:" >&5
16178 cat conftest.$ac_ext >&5
16180 eval "ac_cv_func_cthread_fork=no"
16185 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16186 echo "$ac_t""yes" 1>&6
16187 ol_link_threads=yes
16189 echo "$ac_t""no" 1>&6
16193 if test $ol_link_threads = no ; then
16194 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16195 echo "configure:16196: checking for cthread_fork with -all_load" >&5
16196 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16197 echo $ac_n "(cached) $ac_c" 1>&6
16201 LIBS="-all_load $LIBS"
16202 cat > conftest.$ac_ext <<EOF
16203 #line 16204 "configure"
16204 #include "confdefs.h"
16205 #include <mach/cthreads.h>
16208 cthread_fork((void *)0, (void *)0);
16212 if { (eval echo configure:16213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16214 ol_cv_cthread_all_load=yes
16216 echo "configure: failed program was:" >&5
16217 cat conftest.$ac_ext >&5
16219 ol_cv_cthread_all_load=no
16226 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16228 if test $ol_cv_cthread_all_load = yes ; then
16229 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16230 ol_link_threads=mach
16231 ol_with_threads=found
16235 elif test $ac_cv_header_cthreads_h = yes ; then
16237 ol_with_threads=found
16240 LIBS="$LIBS -lthreads"
16241 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16242 echo "configure:16243: checking for cthread_fork" >&5
16243 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16244 echo $ac_n "(cached) $ac_c" 1>&6
16246 cat > conftest.$ac_ext <<EOF
16247 #line 16248 "configure"
16248 #include "confdefs.h"
16249 /* System header to define __stub macros and hopefully few prototypes,
16250 which can conflict with char cthread_fork(); below. */
16251 #include <assert.h>
16252 /* Override any gcc2 internal prototype to avoid an error. */
16253 /* We use char because int might match the return type of a gcc2
16254 builtin and then its argument prototype would still apply. */
16255 char cthread_fork();
16260 /* The GNU C library defines this for functions which it implements
16261 to always fail with ENOSYS. Some functions are actually named
16262 something starting with __ and the normal name is an alias. */
16263 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16271 if { (eval echo configure:16272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16273 eval "ac_cv_func_cthread_fork=yes"
16275 echo "configure: failed program was:" >&5
16276 cat conftest.$ac_ext >&5
16278 eval "ac_cv_func_cthread_fork=no"
16283 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16284 echo "$ac_t""yes" 1>&6
16285 ol_link_threads=yes
16287 echo "$ac_t""no" 1>&6
16292 if test $ol_link_threads = yes ; then
16293 LTHREAD_LIBS="-lthreads"
16294 ol_link_threads=mach
16295 ol_with_threads=found
16297 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16300 elif test $ol_with_threads = mach ; then
16301 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16304 if test $ol_link_threads = mach ; then
16305 cat >> confdefs.h <<\EOF
16306 #define HAVE_MACH_CTHREADS 1
16309 elif test $ol_with_threads = found ; then
16310 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16314 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16315 -o $ol_with_threads = pth ; then
16317 for ac_hdr in pth.h
16319 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16320 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16321 echo "configure:16322: checking for $ac_hdr" >&5
16322 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16323 echo $ac_n "(cached) $ac_c" 1>&6
16325 cat > conftest.$ac_ext <<EOF
16326 #line 16327 "configure"
16327 #include "confdefs.h"
16330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16331 { (eval echo configure:16332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16333 if test -z "$ac_err"; then
16335 eval "ac_cv_header_$ac_safe=yes"
16338 echo "configure: failed program was:" >&5
16339 cat conftest.$ac_ext >&5
16341 eval "ac_cv_header_$ac_safe=no"
16345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16346 echo "$ac_t""yes" 1>&6
16347 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16348 cat >> confdefs.h <<EOF
16349 #define $ac_tr_hdr 1
16353 echo "$ac_t""no" 1>&6
16358 if test $ac_cv_header_pth_h = yes ; then
16359 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16360 echo "configure:16361: checking for pth_version in -lpth" >&5
16361 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16363 echo $ac_n "(cached) $ac_c" 1>&6
16365 ac_save_LIBS="$LIBS"
16367 cat > conftest.$ac_ext <<EOF
16368 #line 16369 "configure"
16369 #include "confdefs.h"
16370 /* Override any gcc2 internal prototype to avoid an error. */
16371 /* We use char because int might match the return type of a gcc2
16372 builtin and then its argument prototype would still apply. */
16373 char pth_version();
16379 if { (eval echo configure:16380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16381 eval "ac_cv_lib_$ac_lib_var=yes"
16383 echo "configure: failed program was:" >&5
16384 cat conftest.$ac_ext >&5
16386 eval "ac_cv_lib_$ac_lib_var=no"
16389 LIBS="$ac_save_LIBS"
16392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16393 echo "$ac_t""yes" 1>&6
16396 echo "$ac_t""no" 1>&6
16401 if test $have_pth = yes ; then
16402 cat >> confdefs.h <<\EOF
16403 #define HAVE_GNU_PTH 1
16406 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16407 ol_link_threads=pth
16408 ol_with_threads=found
16410 if test $ol_with_yielding_select = auto ; then
16411 ol_with_yielding_select=yes
16417 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16418 -o $ol_with_threads = lwp ; then
16420 for ac_hdr in thread.h synch.h
16422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16424 echo "configure:16425: checking for $ac_hdr" >&5
16425 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16426 echo $ac_n "(cached) $ac_c" 1>&6
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16434 { (eval echo configure:16435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16436 if test -z "$ac_err"; then
16438 eval "ac_cv_header_$ac_safe=yes"
16441 echo "configure: failed program was:" >&5
16442 cat conftest.$ac_ext >&5
16444 eval "ac_cv_header_$ac_safe=no"
16448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16449 echo "$ac_t""yes" 1>&6
16450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16451 cat >> confdefs.h <<EOF
16452 #define $ac_tr_hdr 1
16456 echo "$ac_t""no" 1>&6
16460 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16461 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16462 echo "configure:16463: checking for thr_create in -lthread" >&5
16463 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16465 echo $ac_n "(cached) $ac_c" 1>&6
16467 ac_save_LIBS="$LIBS"
16468 LIBS="-lthread $LIBS"
16469 cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472 /* Override any gcc2 internal prototype to avoid an error. */
16473 /* We use char because int might match the return type of a gcc2
16474 builtin and then its argument prototype would still apply. */
16481 if { (eval echo configure:16482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16483 eval "ac_cv_lib_$ac_lib_var=yes"
16485 echo "configure: failed program was:" >&5
16486 cat conftest.$ac_ext >&5
16488 eval "ac_cv_lib_$ac_lib_var=no"
16491 LIBS="$ac_save_LIBS"
16494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16495 echo "$ac_t""yes" 1>&6
16498 echo "$ac_t""no" 1>&6
16503 if test $have_thr = yes ; then
16504 cat >> confdefs.h <<\EOF
16508 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16509 ol_link_threads=thr
16511 if test $ol_with_yielding_select = auto ; then
16512 ol_with_yielding_select=yes
16516 thr_setconcurrency \
16517 thr_getconcurrency \
16520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16521 echo "configure:16522: checking for $ac_func" >&5
16522 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16523 echo $ac_n "(cached) $ac_c" 1>&6
16525 cat > conftest.$ac_ext <<EOF
16526 #line 16527 "configure"
16527 #include "confdefs.h"
16528 /* System header to define __stub macros and hopefully few prototypes,
16529 which can conflict with char $ac_func(); below. */
16530 #include <assert.h>
16531 /* Override any gcc2 internal prototype to avoid an error. */
16532 /* We use char because int might match the return type of a gcc2
16533 builtin and then its argument prototype would still apply. */
16539 /* The GNU C library defines this for functions which it implements
16540 to always fail with ENOSYS. Some functions are actually named
16541 something starting with __ and the normal name is an alias. */
16542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16550 if { (eval echo configure:16551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16552 eval "ac_cv_func_$ac_func=yes"
16554 echo "configure: failed program was:" >&5
16555 cat conftest.$ac_ext >&5
16557 eval "ac_cv_func_$ac_func=no"
16562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16563 echo "$ac_t""yes" 1>&6
16564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16565 cat >> confdefs.h <<EOF
16566 #define $ac_tr_func 1
16570 echo "$ac_t""no" 1>&6
16577 for ac_hdr in lwp/lwp.h
16579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16581 echo "configure:16582: checking for $ac_hdr" >&5
16582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16583 echo $ac_n "(cached) $ac_c" 1>&6
16585 cat > conftest.$ac_ext <<EOF
16586 #line 16587 "configure"
16587 #include "confdefs.h"
16590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16591 { (eval echo configure:16592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16593 if test -z "$ac_err"; then
16595 eval "ac_cv_header_$ac_safe=yes"
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16601 eval "ac_cv_header_$ac_safe=no"
16605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16606 echo "$ac_t""yes" 1>&6
16607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16608 cat >> confdefs.h <<EOF
16609 #define $ac_tr_hdr 1
16613 echo "$ac_t""no" 1>&6
16617 if test $ac_cv_header_lwp_lwp_h = yes ; then
16618 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16619 echo "configure:16620: checking for lwp_create in -llwp" >&5
16620 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16621 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16622 echo $ac_n "(cached) $ac_c" 1>&6
16624 ac_save_LIBS="$LIBS"
16626 cat > conftest.$ac_ext <<EOF
16627 #line 16628 "configure"
16628 #include "confdefs.h"
16629 /* Override any gcc2 internal prototype to avoid an error. */
16630 /* We use char because int might match the return type of a gcc2
16631 builtin and then its argument prototype would still apply. */
16638 if { (eval echo configure:16639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16640 eval "ac_cv_lib_$ac_lib_var=yes"
16642 echo "configure: failed program was:" >&5
16643 cat conftest.$ac_ext >&5
16645 eval "ac_cv_lib_$ac_lib_var=no"
16648 LIBS="$ac_save_LIBS"
16651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16652 echo "$ac_t""yes" 1>&6
16655 echo "$ac_t""no" 1>&6
16660 if test $have_lwp = yes ; then
16661 cat >> confdefs.h <<\EOF
16665 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16666 ol_link_threads=lwp
16668 if test $ol_with_yielding_select = auto ; then
16669 ol_with_yielding_select=no
16675 if test $ol_with_yielding_select = yes ; then
16676 cat >> confdefs.h <<\EOF
16677 #define HAVE_YIELDING_SELECT 1
16682 if test $ol_with_threads = manual ; then
16683 ol_link_threads=yes
16685 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16687 for ac_hdr in pthread.h sched.h
16689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16691 echo "configure:16692: checking for $ac_hdr" >&5
16692 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
16695 cat > conftest.$ac_ext <<EOF
16696 #line 16697 "configure"
16697 #include "confdefs.h"
16700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16701 { (eval echo configure:16702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16703 if test -z "$ac_err"; then
16705 eval "ac_cv_header_$ac_safe=yes"
16708 echo "configure: failed program was:" >&5
16709 cat conftest.$ac_ext >&5
16711 eval "ac_cv_header_$ac_safe=no"
16715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16716 echo "$ac_t""yes" 1>&6
16717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16718 cat >> confdefs.h <<EOF
16719 #define $ac_tr_hdr 1
16723 echo "$ac_t""no" 1>&6
16727 for ac_func in sched_yield pthread_yield
16729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16730 echo "configure:16731: checking for $ac_func" >&5
16731 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16732 echo $ac_n "(cached) $ac_c" 1>&6
16734 cat > conftest.$ac_ext <<EOF
16735 #line 16736 "configure"
16736 #include "confdefs.h"
16737 /* System header to define __stub macros and hopefully few prototypes,
16738 which can conflict with char $ac_func(); below. */
16739 #include <assert.h>
16740 /* Override any gcc2 internal prototype to avoid an error. */
16741 /* We use char because int might match the return type of a gcc2
16742 builtin and then its argument prototype would still apply. */
16748 /* The GNU C library defines this for functions which it implements
16749 to always fail with ENOSYS. Some functions are actually named
16750 something starting with __ and the normal name is an alias. */
16751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16759 if { (eval echo configure:16760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16761 eval "ac_cv_func_$ac_func=yes"
16763 echo "configure: failed program was:" >&5
16764 cat conftest.$ac_ext >&5
16766 eval "ac_cv_func_$ac_func=no"
16771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16772 echo "$ac_t""yes" 1>&6
16773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16774 cat >> confdefs.h <<EOF
16775 #define $ac_tr_func 1
16779 echo "$ac_t""no" 1>&6
16784 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16785 echo "configure:16786: checking for LinuxThreads pthread.h" >&5
16786 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16787 echo $ac_n "(cached) $ac_c" 1>&6
16789 cat > conftest.$ac_ext <<EOF
16790 #line 16791 "configure"
16791 #include "confdefs.h"
16792 #include <pthread.h>
16794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16795 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16797 ol_cv_header_linux_threads=yes
16800 ol_cv_header_linux_threads=no
16807 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16808 if test $ol_cv_header_linux_threads = yes; then
16809 cat >> confdefs.h <<\EOF
16810 #define HAVE_LINUX_THREADS 1
16816 for ac_hdr in mach/cthreads.h
16818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16820 echo "configure:16821: checking for $ac_hdr" >&5
16821 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16822 echo $ac_n "(cached) $ac_c" 1>&6
16824 cat > conftest.$ac_ext <<EOF
16825 #line 16826 "configure"
16826 #include "confdefs.h"
16829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16830 { (eval echo configure:16831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16832 if test -z "$ac_err"; then
16834 eval "ac_cv_header_$ac_safe=yes"
16837 echo "configure: failed program was:" >&5
16838 cat conftest.$ac_ext >&5
16840 eval "ac_cv_header_$ac_safe=no"
16844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16845 echo "$ac_t""yes" 1>&6
16846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16847 cat >> confdefs.h <<EOF
16848 #define $ac_tr_hdr 1
16852 echo "$ac_t""no" 1>&6
16856 for ac_hdr in lwp/lwp.h
16858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16860 echo "configure:16861: checking for $ac_hdr" >&5
16861 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16862 echo $ac_n "(cached) $ac_c" 1>&6
16864 cat > conftest.$ac_ext <<EOF
16865 #line 16866 "configure"
16866 #include "confdefs.h"
16869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16870 { (eval echo configure:16871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16872 if test -z "$ac_err"; then
16874 eval "ac_cv_header_$ac_safe=yes"
16877 echo "configure: failed program was:" >&5
16878 cat conftest.$ac_ext >&5
16880 eval "ac_cv_header_$ac_safe=no"
16884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16885 echo "$ac_t""yes" 1>&6
16886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16887 cat >> confdefs.h <<EOF
16888 #define $ac_tr_hdr 1
16892 echo "$ac_t""no" 1>&6
16896 for ac_hdr in thread.h synch.h
16898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16900 echo "configure:16901: checking for $ac_hdr" >&5
16901 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16902 echo $ac_n "(cached) $ac_c" 1>&6
16904 cat > conftest.$ac_ext <<EOF
16905 #line 16906 "configure"
16906 #include "confdefs.h"
16909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16910 { (eval echo configure:16911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16912 if test -z "$ac_err"; then
16914 eval "ac_cv_header_$ac_safe=yes"
16917 echo "configure: failed program was:" >&5
16918 cat conftest.$ac_ext >&5
16920 eval "ac_cv_header_$ac_safe=no"
16924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16925 echo "$ac_t""yes" 1>&6
16926 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16927 cat >> confdefs.h <<EOF
16928 #define $ac_tr_hdr 1
16932 echo "$ac_t""no" 1>&6
16938 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16939 cat >> confdefs.h <<\EOF
16940 #define REENTRANT 1
16943 cat >> confdefs.h <<\EOF
16944 #define _REENTRANT 1
16947 cat >> confdefs.h <<\EOF
16948 #define THREAD_SAFE 1
16951 cat >> confdefs.h <<\EOF
16952 #define _THREAD_SAFE 1
16955 cat >> confdefs.h <<\EOF
16956 #define THREADSAFE 1
16959 cat >> confdefs.h <<\EOF
16960 #define _THREADSAFE 1
16963 cat >> confdefs.h <<\EOF
16964 #define _SGI_MP_SOURCE 1
16968 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16969 echo "configure:16970: checking for thread specific errno" >&5
16970 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
16974 cat > conftest.$ac_ext <<EOF
16975 #line 16976 "configure"
16976 #include "confdefs.h"
16982 if { (eval echo configure:16983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16984 ol_cv_errno_thread_specific=yes
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16989 ol_cv_errno_thread_specific=no
16995 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16997 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16998 echo "configure:16999: checking for thread specific h_errno" >&5
16999 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
17000 echo $ac_n "(cached) $ac_c" 1>&6
17003 cat > conftest.$ac_ext <<EOF
17004 #line 17005 "configure"
17005 #include "confdefs.h"
17011 if { (eval echo configure:17012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17013 ol_cv_h_errno_thread_specific=yes
17015 echo "configure: failed program was:" >&5
17016 cat conftest.$ac_ext >&5
17018 ol_cv_h_errno_thread_specific=no
17024 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
17026 if test $ol_cv_errno_thread_specific != yes \
17027 -o $ol_cv_h_errno_thread_specific != yes ; then
17028 LIBS="$LTHREAD_LIBS $LIBS"
17034 if test $ol_link_threads = no ; then
17035 if test $ol_with_threads = yes ; then
17036 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
17039 if test $ol_with_threads = auto ; then
17040 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
17044 cat >> confdefs.h <<\EOF
17045 #define NO_THREADS 1
17051 if test $ol_link_threads != no ; then
17052 cat >> confdefs.h <<\EOF
17053 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
17060 if test $ol_with_ldbm_api = auto \
17061 -o $ol_with_ldbm_api = berkeley \
17062 -o $ol_with_ldbm_api = bcompat ; then
17064 if test $ol_with_ldbm_api = bcompat; then \
17065 for ac_hdr in db_185.h db.h
17067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17069 echo "configure:17070: checking for $ac_hdr" >&5
17070 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17071 echo $ac_n "(cached) $ac_c" 1>&6
17073 cat > conftest.$ac_ext <<EOF
17074 #line 17075 "configure"
17075 #include "confdefs.h"
17078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17079 { (eval echo configure:17080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17081 if test -z "$ac_err"; then
17083 eval "ac_cv_header_$ac_safe=yes"
17086 echo "configure: failed program was:" >&5
17087 cat conftest.$ac_ext >&5
17089 eval "ac_cv_header_$ac_safe=no"
17093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17094 echo "$ac_t""yes" 1>&6
17095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17096 cat >> confdefs.h <<EOF
17097 #define $ac_tr_hdr 1
17101 echo "$ac_t""no" 1>&6
17105 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17106 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17107 echo "configure:17108: checking if Berkeley DB header compatibility" >&5
17108 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17109 echo $ac_n "(cached) $ac_c" 1>&6
17112 cat > conftest.$ac_ext <<EOF
17113 #line 17114 "configure"
17114 #include "confdefs.h"
17117 # include <db_185.h>
17122 /* this check could be improved */
17123 #ifndef DB_VERSION_MAJOR
17124 # define DB_VERSION_MAJOR 1
17127 #if DB_VERSION_MAJOR == 1
17132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17133 egrep "__db_version_1" >/dev/null 2>&1; then
17135 ol_cv_header_db1=yes
17138 ol_cv_header_db1=no
17144 echo "$ac_t""$ol_cv_header_db1" 1>&6
17146 if test $ol_cv_header_db1 = yes ; then
17148 if test $ol_cv_lib_db = no ; then
17149 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17150 echo "configure:17151: checking for Berkeley DB link (default)" >&5
17151 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17152 echo $ac_n "(cached) $ac_c" 1>&6
17157 LIBS="$ol_DB_LIB $LIBS"
17159 cat > conftest.$ac_ext <<EOF
17160 #line 17161 "configure"
17161 #include "confdefs.h"
17163 #ifdef HAVE_DB_185_H
17164 # include <db_185.h>
17169 #ifndef DB_VERSION_MAJOR
17170 # define DB_VERSION_MAJOR 1
17174 #define NULL ((void*)0)
17179 #if DB_VERSION_MAJOR > 1
17182 int major, minor, patch;
17184 version = db_version( &major, &minor, &patch );
17186 if( major != DB_VERSION_MAJOR ||
17187 minor < DB_VERSION_MINOR )
17189 printf("Berkeley DB version mismatch\n"
17190 "\texpected: %s\n\tgot: %s\n",
17191 DB_VERSION_STRING, version);
17197 #if DB_VERSION_MAJOR > 2
17198 db_env_create( NULL, 0 );
17199 #elif DB_VERSION_MAJOR > 1
17200 db_appexit( NULL );
17202 (void) dbopen( NULL, 0, 0, 0, NULL);
17207 if { (eval echo configure:17208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17211 echo "configure: failed program was:" >&5
17212 cat conftest.$ac_ext >&5
17222 echo "$ac_t""$ol_cv_db_none" 1>&6
17224 if test $ol_cv_db_none = yes ; then
17229 if test $ol_cv_lib_db = no ; then
17230 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17231 echo "configure:17232: checking for Berkeley DB link (-ldb4)" >&5
17232 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17233 echo $ac_n "(cached) $ac_c" 1>&6
17238 LIBS="$ol_DB_LIB $LIBS"
17240 cat > conftest.$ac_ext <<EOF
17241 #line 17242 "configure"
17242 #include "confdefs.h"
17244 #ifdef HAVE_DB_185_H
17245 # include <db_185.h>
17250 #ifndef DB_VERSION_MAJOR
17251 # define DB_VERSION_MAJOR 1
17255 #define NULL ((void*)0)
17260 #if DB_VERSION_MAJOR > 1
17263 int major, minor, patch;
17265 version = db_version( &major, &minor, &patch );
17267 if( major != DB_VERSION_MAJOR ||
17268 minor < DB_VERSION_MINOR )
17270 printf("Berkeley DB version mismatch\n"
17271 "\texpected: %s\n\tgot: %s\n",
17272 DB_VERSION_STRING, version);
17278 #if DB_VERSION_MAJOR > 2
17279 db_env_create( NULL, 0 );
17280 #elif DB_VERSION_MAJOR > 1
17281 db_appexit( NULL );
17283 (void) dbopen( NULL, 0, 0, 0, NULL);
17288 if { (eval echo configure:17289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17292 echo "configure: failed program was:" >&5
17293 cat conftest.$ac_ext >&5
17303 echo "$ac_t""$ol_cv_db_db4" 1>&6
17305 if test $ol_cv_db_db4 = yes ; then
17310 if test $ol_cv_lib_db = no ; then
17311 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17312 echo "configure:17313: checking for Berkeley DB link (-ldb-4)" >&5
17313 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17314 echo $ac_n "(cached) $ac_c" 1>&6
17319 LIBS="$ol_DB_LIB $LIBS"
17321 cat > conftest.$ac_ext <<EOF
17322 #line 17323 "configure"
17323 #include "confdefs.h"
17325 #ifdef HAVE_DB_185_H
17326 # include <db_185.h>
17331 #ifndef DB_VERSION_MAJOR
17332 # define DB_VERSION_MAJOR 1
17336 #define NULL ((void*)0)
17341 #if DB_VERSION_MAJOR > 1
17344 int major, minor, patch;
17346 version = db_version( &major, &minor, &patch );
17348 if( major != DB_VERSION_MAJOR ||
17349 minor < DB_VERSION_MINOR )
17351 printf("Berkeley DB version mismatch\n"
17352 "\texpected: %s\n\tgot: %s\n",
17353 DB_VERSION_STRING, version);
17359 #if DB_VERSION_MAJOR > 2
17360 db_env_create( NULL, 0 );
17361 #elif DB_VERSION_MAJOR > 1
17362 db_appexit( NULL );
17364 (void) dbopen( NULL, 0, 0, 0, NULL);
17369 if { (eval echo configure:17370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17373 echo "configure: failed program was:" >&5
17374 cat conftest.$ac_ext >&5
17384 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17386 if test $ol_cv_db_db_4 = yes ; then
17387 ol_cv_lib_db=-ldb-4
17391 if test $ol_cv_lib_db = no ; then
17392 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17393 echo "configure:17394: checking for Berkeley DB link (-ldb)" >&5
17394 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17395 echo $ac_n "(cached) $ac_c" 1>&6
17400 LIBS="$ol_DB_LIB $LIBS"
17402 cat > conftest.$ac_ext <<EOF
17403 #line 17404 "configure"
17404 #include "confdefs.h"
17406 #ifdef HAVE_DB_185_H
17407 # include <db_185.h>
17412 #ifndef DB_VERSION_MAJOR
17413 # define DB_VERSION_MAJOR 1
17417 #define NULL ((void*)0)
17422 #if DB_VERSION_MAJOR > 1
17425 int major, minor, patch;
17427 version = db_version( &major, &minor, &patch );
17429 if( major != DB_VERSION_MAJOR ||
17430 minor < DB_VERSION_MINOR )
17432 printf("Berkeley DB version mismatch\n"
17433 "\texpected: %s\n\tgot: %s\n",
17434 DB_VERSION_STRING, version);
17440 #if DB_VERSION_MAJOR > 2
17441 db_env_create( NULL, 0 );
17442 #elif DB_VERSION_MAJOR > 1
17443 db_appexit( NULL );
17445 (void) dbopen( NULL, 0, 0, 0, NULL);
17450 if { (eval echo configure:17451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17454 echo "configure: failed program was:" >&5
17455 cat conftest.$ac_ext >&5
17465 echo "$ac_t""$ol_cv_db_db" 1>&6
17467 if test $ol_cv_db_db = yes ; then
17472 if test $ol_cv_lib_db = no ; then
17473 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17474 echo "configure:17475: checking for Berkeley DB link (-ldb3)" >&5
17475 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17476 echo $ac_n "(cached) $ac_c" 1>&6
17481 LIBS="$ol_DB_LIB $LIBS"
17483 cat > conftest.$ac_ext <<EOF
17484 #line 17485 "configure"
17485 #include "confdefs.h"
17487 #ifdef HAVE_DB_185_H
17488 # include <db_185.h>
17493 #ifndef DB_VERSION_MAJOR
17494 # define DB_VERSION_MAJOR 1
17498 #define NULL ((void*)0)
17503 #if DB_VERSION_MAJOR > 1
17506 int major, minor, patch;
17508 version = db_version( &major, &minor, &patch );
17510 if( major != DB_VERSION_MAJOR ||
17511 minor < DB_VERSION_MINOR )
17513 printf("Berkeley DB version mismatch\n"
17514 "\texpected: %s\n\tgot: %s\n",
17515 DB_VERSION_STRING, version);
17521 #if DB_VERSION_MAJOR > 2
17522 db_env_create( NULL, 0 );
17523 #elif DB_VERSION_MAJOR > 1
17524 db_appexit( NULL );
17526 (void) dbopen( NULL, 0, 0, 0, NULL);
17531 if { (eval echo configure:17532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17535 echo "configure: failed program was:" >&5
17536 cat conftest.$ac_ext >&5
17546 echo "$ac_t""$ol_cv_db_db3" 1>&6
17548 if test $ol_cv_db_db3 = yes ; then
17553 if test $ol_cv_lib_db = no ; then
17554 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17555 echo "configure:17556: checking for Berkeley DB link (-ldb-3)" >&5
17556 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17557 echo $ac_n "(cached) $ac_c" 1>&6
17562 LIBS="$ol_DB_LIB $LIBS"
17564 cat > conftest.$ac_ext <<EOF
17565 #line 17566 "configure"
17566 #include "confdefs.h"
17568 #ifdef HAVE_DB_185_H
17569 # include <db_185.h>
17574 #ifndef DB_VERSION_MAJOR
17575 # define DB_VERSION_MAJOR 1
17579 #define NULL ((void*)0)
17584 #if DB_VERSION_MAJOR > 1
17587 int major, minor, patch;
17589 version = db_version( &major, &minor, &patch );
17591 if( major != DB_VERSION_MAJOR ||
17592 minor < DB_VERSION_MINOR )
17594 printf("Berkeley DB version mismatch\n"
17595 "\texpected: %s\n\tgot: %s\n",
17596 DB_VERSION_STRING, version);
17602 #if DB_VERSION_MAJOR > 2
17603 db_env_create( NULL, 0 );
17604 #elif DB_VERSION_MAJOR > 1
17605 db_appexit( NULL );
17607 (void) dbopen( NULL, 0, 0, 0, NULL);
17612 if { (eval echo configure:17613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17616 echo "configure: failed program was:" >&5
17617 cat conftest.$ac_ext >&5
17627 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17629 if test $ol_cv_db_db_3 = yes ; then
17630 ol_cv_lib_db=-ldb-3
17634 if test $ol_cv_lib_db = no ; then
17635 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17636 echo "configure:17637: checking for Berkeley DB link (-ldb2)" >&5
17637 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17638 echo $ac_n "(cached) $ac_c" 1>&6
17643 LIBS="$ol_DB_LIB $LIBS"
17645 cat > conftest.$ac_ext <<EOF
17646 #line 17647 "configure"
17647 #include "confdefs.h"
17649 #ifdef HAVE_DB_185_H
17650 # include <db_185.h>
17655 #ifndef DB_VERSION_MAJOR
17656 # define DB_VERSION_MAJOR 1
17660 #define NULL ((void*)0)
17665 #if DB_VERSION_MAJOR > 1
17668 int major, minor, patch;
17670 version = db_version( &major, &minor, &patch );
17672 if( major != DB_VERSION_MAJOR ||
17673 minor < DB_VERSION_MINOR )
17675 printf("Berkeley DB version mismatch\n"
17676 "\texpected: %s\n\tgot: %s\n",
17677 DB_VERSION_STRING, version);
17683 #if DB_VERSION_MAJOR > 2
17684 db_env_create( NULL, 0 );
17685 #elif DB_VERSION_MAJOR > 1
17686 db_appexit( NULL );
17688 (void) dbopen( NULL, 0, 0, 0, NULL);
17693 if { (eval echo configure:17694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17697 echo "configure: failed program was:" >&5
17698 cat conftest.$ac_ext >&5
17708 echo "$ac_t""$ol_cv_db_db2" 1>&6
17710 if test $ol_cv_db_db2 = yes ; then
17715 if test $ol_cv_lib_db = no ; then
17716 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17717 echo "configure:17718: checking for Berkeley DB link (-ldb-2)" >&5
17718 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17719 echo $ac_n "(cached) $ac_c" 1>&6
17724 LIBS="$ol_DB_LIB $LIBS"
17726 cat > conftest.$ac_ext <<EOF
17727 #line 17728 "configure"
17728 #include "confdefs.h"
17730 #ifdef HAVE_DB_185_H
17731 # include <db_185.h>
17736 #ifndef DB_VERSION_MAJOR
17737 # define DB_VERSION_MAJOR 1
17741 #define NULL ((void*)0)
17746 #if DB_VERSION_MAJOR > 1
17749 int major, minor, patch;
17751 version = db_version( &major, &minor, &patch );
17753 if( major != DB_VERSION_MAJOR ||
17754 minor < DB_VERSION_MINOR )
17756 printf("Berkeley DB version mismatch\n"
17757 "\texpected: %s\n\tgot: %s\n",
17758 DB_VERSION_STRING, version);
17764 #if DB_VERSION_MAJOR > 2
17765 db_env_create( NULL, 0 );
17766 #elif DB_VERSION_MAJOR > 1
17767 db_appexit( NULL );
17769 (void) dbopen( NULL, 0, 0, 0, NULL);
17774 if { (eval echo configure:17775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17778 echo "configure: failed program was:" >&5
17779 cat conftest.$ac_ext >&5
17789 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17791 if test $ol_cv_db_db_2 = yes ; then
17792 ol_cv_lib_db=-ldb-2
17796 if test $ol_cv_lib_db = no ; then
17797 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17798 echo "configure:17799: checking for Berkeley DB link (-ldb1)" >&5
17799 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17800 echo $ac_n "(cached) $ac_c" 1>&6
17805 LIBS="$ol_DB_LIB $LIBS"
17807 cat > conftest.$ac_ext <<EOF
17808 #line 17809 "configure"
17809 #include "confdefs.h"
17811 #ifdef HAVE_DB_185_H
17812 # include <db_185.h>
17817 #ifndef DB_VERSION_MAJOR
17818 # define DB_VERSION_MAJOR 1
17822 #define NULL ((void*)0)
17827 #if DB_VERSION_MAJOR > 1
17830 int major, minor, patch;
17832 version = db_version( &major, &minor, &patch );
17834 if( major != DB_VERSION_MAJOR ||
17835 minor < DB_VERSION_MINOR )
17837 printf("Berkeley DB version mismatch\n"
17838 "\texpected: %s\n\tgot: %s\n",
17839 DB_VERSION_STRING, version);
17845 #if DB_VERSION_MAJOR > 2
17846 db_env_create( NULL, 0 );
17847 #elif DB_VERSION_MAJOR > 1
17848 db_appexit( NULL );
17850 (void) dbopen( NULL, 0, 0, 0, NULL);
17855 if { (eval echo configure:17856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17859 echo "configure: failed program was:" >&5
17860 cat conftest.$ac_ext >&5
17870 echo "$ac_t""$ol_cv_db_db1" 1>&6
17872 if test $ol_cv_db_db1 = yes ; then
17877 if test $ol_cv_lib_db = no ; then
17878 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17879 echo "configure:17880: checking for Berkeley DB link (-ldb-1)" >&5
17880 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17881 echo $ac_n "(cached) $ac_c" 1>&6
17886 LIBS="$ol_DB_LIB $LIBS"
17888 cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17892 #ifdef HAVE_DB_185_H
17893 # include <db_185.h>
17898 #ifndef DB_VERSION_MAJOR
17899 # define DB_VERSION_MAJOR 1
17903 #define NULL ((void*)0)
17908 #if DB_VERSION_MAJOR > 1
17911 int major, minor, patch;
17913 version = db_version( &major, &minor, &patch );
17915 if( major != DB_VERSION_MAJOR ||
17916 minor < DB_VERSION_MINOR )
17918 printf("Berkeley DB version mismatch\n"
17919 "\texpected: %s\n\tgot: %s\n",
17920 DB_VERSION_STRING, version);
17926 #if DB_VERSION_MAJOR > 2
17927 db_env_create( NULL, 0 );
17928 #elif DB_VERSION_MAJOR > 1
17929 db_appexit( NULL );
17931 (void) dbopen( NULL, 0, 0, 0, NULL);
17936 if { (eval echo configure:17937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17940 echo "configure: failed program was:" >&5
17941 cat conftest.$ac_ext >&5
17951 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17953 if test $ol_cv_db_db_1 = yes ; then
17954 ol_cv_lib_db=-ldb-1
17959 if test "$ol_cv_lib_db" != no ; then
17960 ol_cv_berkeley_db=yes
17966 ol_cv_berkeley_db=no
17969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17971 echo "configure:17972: checking for $ac_hdr" >&5
17972 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17973 echo $ac_n "(cached) $ac_c" 1>&6
17975 cat > conftest.$ac_ext <<EOF
17976 #line 17977 "configure"
17977 #include "confdefs.h"
17980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17981 { (eval echo configure:17982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17983 if test -z "$ac_err"; then
17985 eval "ac_cv_header_$ac_safe=yes"
17988 echo "configure: failed program was:" >&5
17989 cat conftest.$ac_ext >&5
17991 eval "ac_cv_header_$ac_safe=no"
17995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17996 echo "$ac_t""yes" 1>&6
17997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17998 cat >> confdefs.h <<EOF
17999 #define $ac_tr_hdr 1
18003 echo "$ac_t""no" 1>&6
18007 if test $ac_cv_header_db_h = yes; then
18009 if test $ol_cv_lib_db = no ; then
18010 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18011 echo "configure:18012: checking for Berkeley DB link (default)" >&5
18012 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18013 echo $ac_n "(cached) $ac_c" 1>&6
18018 LIBS="$ol_DB_LIB $LIBS"
18020 cat > conftest.$ac_ext <<EOF
18021 #line 18022 "configure"
18022 #include "confdefs.h"
18024 #ifdef HAVE_DB_185_H
18025 # include <db_185.h>
18030 #ifndef DB_VERSION_MAJOR
18031 # define DB_VERSION_MAJOR 1
18035 #define NULL ((void*)0)
18040 #if DB_VERSION_MAJOR > 1
18043 int major, minor, patch;
18045 version = db_version( &major, &minor, &patch );
18047 if( major != DB_VERSION_MAJOR ||
18048 minor < DB_VERSION_MINOR )
18050 printf("Berkeley DB version mismatch\n"
18051 "\texpected: %s\n\tgot: %s\n",
18052 DB_VERSION_STRING, version);
18058 #if DB_VERSION_MAJOR > 2
18059 db_env_create( NULL, 0 );
18060 #elif DB_VERSION_MAJOR > 1
18061 db_appexit( NULL );
18063 (void) dbopen( NULL, 0, 0, 0, NULL);
18068 if { (eval echo configure:18069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18072 echo "configure: failed program was:" >&5
18073 cat conftest.$ac_ext >&5
18083 echo "$ac_t""$ol_cv_db_none" 1>&6
18085 if test $ol_cv_db_none = yes ; then
18090 if test $ol_cv_lib_db = no ; then
18091 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18092 echo "configure:18093: checking for Berkeley DB link (-ldb4)" >&5
18093 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18094 echo $ac_n "(cached) $ac_c" 1>&6
18099 LIBS="$ol_DB_LIB $LIBS"
18101 cat > conftest.$ac_ext <<EOF
18102 #line 18103 "configure"
18103 #include "confdefs.h"
18105 #ifdef HAVE_DB_185_H
18106 # include <db_185.h>
18111 #ifndef DB_VERSION_MAJOR
18112 # define DB_VERSION_MAJOR 1
18116 #define NULL ((void*)0)
18121 #if DB_VERSION_MAJOR > 1
18124 int major, minor, patch;
18126 version = db_version( &major, &minor, &patch );
18128 if( major != DB_VERSION_MAJOR ||
18129 minor < DB_VERSION_MINOR )
18131 printf("Berkeley DB version mismatch\n"
18132 "\texpected: %s\n\tgot: %s\n",
18133 DB_VERSION_STRING, version);
18139 #if DB_VERSION_MAJOR > 2
18140 db_env_create( NULL, 0 );
18141 #elif DB_VERSION_MAJOR > 1
18142 db_appexit( NULL );
18144 (void) dbopen( NULL, 0, 0, 0, NULL);
18149 if { (eval echo configure:18150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18153 echo "configure: failed program was:" >&5
18154 cat conftest.$ac_ext >&5
18164 echo "$ac_t""$ol_cv_db_db4" 1>&6
18166 if test $ol_cv_db_db4 = yes ; then
18171 if test $ol_cv_lib_db = no ; then
18172 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18173 echo "configure:18174: checking for Berkeley DB link (-ldb-4)" >&5
18174 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18175 echo $ac_n "(cached) $ac_c" 1>&6
18180 LIBS="$ol_DB_LIB $LIBS"
18182 cat > conftest.$ac_ext <<EOF
18183 #line 18184 "configure"
18184 #include "confdefs.h"
18186 #ifdef HAVE_DB_185_H
18187 # include <db_185.h>
18192 #ifndef DB_VERSION_MAJOR
18193 # define DB_VERSION_MAJOR 1
18197 #define NULL ((void*)0)
18202 #if DB_VERSION_MAJOR > 1
18205 int major, minor, patch;
18207 version = db_version( &major, &minor, &patch );
18209 if( major != DB_VERSION_MAJOR ||
18210 minor < DB_VERSION_MINOR )
18212 printf("Berkeley DB version mismatch\n"
18213 "\texpected: %s\n\tgot: %s\n",
18214 DB_VERSION_STRING, version);
18220 #if DB_VERSION_MAJOR > 2
18221 db_env_create( NULL, 0 );
18222 #elif DB_VERSION_MAJOR > 1
18223 db_appexit( NULL );
18225 (void) dbopen( NULL, 0, 0, 0, NULL);
18230 if { (eval echo configure:18231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18234 echo "configure: failed program was:" >&5
18235 cat conftest.$ac_ext >&5
18245 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18247 if test $ol_cv_db_db_4 = yes ; then
18248 ol_cv_lib_db=-ldb-4
18252 if test $ol_cv_lib_db = no ; then
18253 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18254 echo "configure:18255: checking for Berkeley DB link (-ldb)" >&5
18255 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18256 echo $ac_n "(cached) $ac_c" 1>&6
18261 LIBS="$ol_DB_LIB $LIBS"
18263 cat > conftest.$ac_ext <<EOF
18264 #line 18265 "configure"
18265 #include "confdefs.h"
18267 #ifdef HAVE_DB_185_H
18268 # include <db_185.h>
18273 #ifndef DB_VERSION_MAJOR
18274 # define DB_VERSION_MAJOR 1
18278 #define NULL ((void*)0)
18283 #if DB_VERSION_MAJOR > 1
18286 int major, minor, patch;
18288 version = db_version( &major, &minor, &patch );
18290 if( major != DB_VERSION_MAJOR ||
18291 minor < DB_VERSION_MINOR )
18293 printf("Berkeley DB version mismatch\n"
18294 "\texpected: %s\n\tgot: %s\n",
18295 DB_VERSION_STRING, version);
18301 #if DB_VERSION_MAJOR > 2
18302 db_env_create( NULL, 0 );
18303 #elif DB_VERSION_MAJOR > 1
18304 db_appexit( NULL );
18306 (void) dbopen( NULL, 0, 0, 0, NULL);
18311 if { (eval echo configure:18312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18326 echo "$ac_t""$ol_cv_db_db" 1>&6
18328 if test $ol_cv_db_db = yes ; then
18333 if test $ol_cv_lib_db = no ; then
18334 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18335 echo "configure:18336: checking for Berkeley DB link (-ldb3)" >&5
18336 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18337 echo $ac_n "(cached) $ac_c" 1>&6
18342 LIBS="$ol_DB_LIB $LIBS"
18344 cat > conftest.$ac_ext <<EOF
18345 #line 18346 "configure"
18346 #include "confdefs.h"
18348 #ifdef HAVE_DB_185_H
18349 # include <db_185.h>
18354 #ifndef DB_VERSION_MAJOR
18355 # define DB_VERSION_MAJOR 1
18359 #define NULL ((void*)0)
18364 #if DB_VERSION_MAJOR > 1
18367 int major, minor, patch;
18369 version = db_version( &major, &minor, &patch );
18371 if( major != DB_VERSION_MAJOR ||
18372 minor < DB_VERSION_MINOR )
18374 printf("Berkeley DB version mismatch\n"
18375 "\texpected: %s\n\tgot: %s\n",
18376 DB_VERSION_STRING, version);
18382 #if DB_VERSION_MAJOR > 2
18383 db_env_create( NULL, 0 );
18384 #elif DB_VERSION_MAJOR > 1
18385 db_appexit( NULL );
18387 (void) dbopen( NULL, 0, 0, 0, NULL);
18392 if { (eval echo configure:18393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18396 echo "configure: failed program was:" >&5
18397 cat conftest.$ac_ext >&5
18407 echo "$ac_t""$ol_cv_db_db3" 1>&6
18409 if test $ol_cv_db_db3 = yes ; then
18414 if test $ol_cv_lib_db = no ; then
18415 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18416 echo "configure:18417: checking for Berkeley DB link (-ldb-3)" >&5
18417 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18418 echo $ac_n "(cached) $ac_c" 1>&6
18423 LIBS="$ol_DB_LIB $LIBS"
18425 cat > conftest.$ac_ext <<EOF
18426 #line 18427 "configure"
18427 #include "confdefs.h"
18429 #ifdef HAVE_DB_185_H
18430 # include <db_185.h>
18435 #ifndef DB_VERSION_MAJOR
18436 # define DB_VERSION_MAJOR 1
18440 #define NULL ((void*)0)
18445 #if DB_VERSION_MAJOR > 1
18448 int major, minor, patch;
18450 version = db_version( &major, &minor, &patch );
18452 if( major != DB_VERSION_MAJOR ||
18453 minor < DB_VERSION_MINOR )
18455 printf("Berkeley DB version mismatch\n"
18456 "\texpected: %s\n\tgot: %s\n",
18457 DB_VERSION_STRING, version);
18463 #if DB_VERSION_MAJOR > 2
18464 db_env_create( NULL, 0 );
18465 #elif DB_VERSION_MAJOR > 1
18466 db_appexit( NULL );
18468 (void) dbopen( NULL, 0, 0, 0, NULL);
18473 if { (eval echo configure:18474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18477 echo "configure: failed program was:" >&5
18478 cat conftest.$ac_ext >&5
18488 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18490 if test $ol_cv_db_db_3 = yes ; then
18491 ol_cv_lib_db=-ldb-3
18495 if test $ol_cv_lib_db = no ; then
18496 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18497 echo "configure:18498: checking for Berkeley DB link (-ldb2)" >&5
18498 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18499 echo $ac_n "(cached) $ac_c" 1>&6
18504 LIBS="$ol_DB_LIB $LIBS"
18506 cat > conftest.$ac_ext <<EOF
18507 #line 18508 "configure"
18508 #include "confdefs.h"
18510 #ifdef HAVE_DB_185_H
18511 # include <db_185.h>
18516 #ifndef DB_VERSION_MAJOR
18517 # define DB_VERSION_MAJOR 1
18521 #define NULL ((void*)0)
18526 #if DB_VERSION_MAJOR > 1
18529 int major, minor, patch;
18531 version = db_version( &major, &minor, &patch );
18533 if( major != DB_VERSION_MAJOR ||
18534 minor < DB_VERSION_MINOR )
18536 printf("Berkeley DB version mismatch\n"
18537 "\texpected: %s\n\tgot: %s\n",
18538 DB_VERSION_STRING, version);
18544 #if DB_VERSION_MAJOR > 2
18545 db_env_create( NULL, 0 );
18546 #elif DB_VERSION_MAJOR > 1
18547 db_appexit( NULL );
18549 (void) dbopen( NULL, 0, 0, 0, NULL);
18554 if { (eval echo configure:18555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18558 echo "configure: failed program was:" >&5
18559 cat conftest.$ac_ext >&5
18569 echo "$ac_t""$ol_cv_db_db2" 1>&6
18571 if test $ol_cv_db_db2 = yes ; then
18576 if test $ol_cv_lib_db = no ; then
18577 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18578 echo "configure:18579: checking for Berkeley DB link (-ldb-2)" >&5
18579 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18580 echo $ac_n "(cached) $ac_c" 1>&6
18585 LIBS="$ol_DB_LIB $LIBS"
18587 cat > conftest.$ac_ext <<EOF
18588 #line 18589 "configure"
18589 #include "confdefs.h"
18591 #ifdef HAVE_DB_185_H
18592 # include <db_185.h>
18597 #ifndef DB_VERSION_MAJOR
18598 # define DB_VERSION_MAJOR 1
18602 #define NULL ((void*)0)
18607 #if DB_VERSION_MAJOR > 1
18610 int major, minor, patch;
18612 version = db_version( &major, &minor, &patch );
18614 if( major != DB_VERSION_MAJOR ||
18615 minor < DB_VERSION_MINOR )
18617 printf("Berkeley DB version mismatch\n"
18618 "\texpected: %s\n\tgot: %s\n",
18619 DB_VERSION_STRING, version);
18625 #if DB_VERSION_MAJOR > 2
18626 db_env_create( NULL, 0 );
18627 #elif DB_VERSION_MAJOR > 1
18628 db_appexit( NULL );
18630 (void) dbopen( NULL, 0, 0, 0, NULL);
18635 if { (eval echo configure:18636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18639 echo "configure: failed program was:" >&5
18640 cat conftest.$ac_ext >&5
18650 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18652 if test $ol_cv_db_db_2 = yes ; then
18653 ol_cv_lib_db=-ldb-2
18657 if test $ol_cv_lib_db = no ; then
18658 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18659 echo "configure:18660: checking for Berkeley DB link (-ldb1)" >&5
18660 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18661 echo $ac_n "(cached) $ac_c" 1>&6
18666 LIBS="$ol_DB_LIB $LIBS"
18668 cat > conftest.$ac_ext <<EOF
18669 #line 18670 "configure"
18670 #include "confdefs.h"
18672 #ifdef HAVE_DB_185_H
18673 # include <db_185.h>
18678 #ifndef DB_VERSION_MAJOR
18679 # define DB_VERSION_MAJOR 1
18683 #define NULL ((void*)0)
18688 #if DB_VERSION_MAJOR > 1
18691 int major, minor, patch;
18693 version = db_version( &major, &minor, &patch );
18695 if( major != DB_VERSION_MAJOR ||
18696 minor < DB_VERSION_MINOR )
18698 printf("Berkeley DB version mismatch\n"
18699 "\texpected: %s\n\tgot: %s\n",
18700 DB_VERSION_STRING, version);
18706 #if DB_VERSION_MAJOR > 2
18707 db_env_create( NULL, 0 );
18708 #elif DB_VERSION_MAJOR > 1
18709 db_appexit( NULL );
18711 (void) dbopen( NULL, 0, 0, 0, NULL);
18716 if { (eval echo configure:18717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18720 echo "configure: failed program was:" >&5
18721 cat conftest.$ac_ext >&5
18731 echo "$ac_t""$ol_cv_db_db1" 1>&6
18733 if test $ol_cv_db_db1 = yes ; then
18738 if test $ol_cv_lib_db = no ; then
18739 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18740 echo "configure:18741: checking for Berkeley DB link (-ldb-1)" >&5
18741 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18742 echo $ac_n "(cached) $ac_c" 1>&6
18747 LIBS="$ol_DB_LIB $LIBS"
18749 cat > conftest.$ac_ext <<EOF
18750 #line 18751 "configure"
18751 #include "confdefs.h"
18753 #ifdef HAVE_DB_185_H
18754 # include <db_185.h>
18759 #ifndef DB_VERSION_MAJOR
18760 # define DB_VERSION_MAJOR 1
18764 #define NULL ((void*)0)
18769 #if DB_VERSION_MAJOR > 1
18772 int major, minor, patch;
18774 version = db_version( &major, &minor, &patch );
18776 if( major != DB_VERSION_MAJOR ||
18777 minor < DB_VERSION_MINOR )
18779 printf("Berkeley DB version mismatch\n"
18780 "\texpected: %s\n\tgot: %s\n",
18781 DB_VERSION_STRING, version);
18787 #if DB_VERSION_MAJOR > 2
18788 db_env_create( NULL, 0 );
18789 #elif DB_VERSION_MAJOR > 1
18790 db_appexit( NULL );
18792 (void) dbopen( NULL, 0, 0, 0, NULL);
18797 if { (eval echo configure:18798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18801 echo "configure: failed program was:" >&5
18802 cat conftest.$ac_ext >&5
18812 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18814 if test $ol_cv_db_db_1 = yes ; then
18815 ol_cv_lib_db=-ldb-1
18820 if test "$ol_cv_lib_db" != no ; then
18821 ol_cv_berkeley_db=yes
18822 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18823 echo "configure:18824: checking for Berkeley DB thread support" >&5
18824 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18825 echo $ac_n "(cached) $ac_c" 1>&6
18829 if test $ol_cv_lib_db != yes ; then
18830 LIBS="$ol_cv_lib_db"
18833 if test "$cross_compiling" = yes; then
18834 ol_cv_berkeley_db_thread=cross
18836 cat > conftest.$ac_ext <<EOF
18837 #line 18838 "configure"
18838 #include "confdefs.h"
18840 #ifdef HAVE_DB_185_H
18846 #define NULL ((void *)0)
18851 u_int32_t flags = DB_CREATE |
18857 #if DB_VERSION_MAJOR > 2
18858 DB_ENV *env = NULL;
18860 rc = db_env_create( &env, 0 );
18862 flags |= DB_INIT_MPOOL;
18863 #ifdef DB_MPOOL_PRIVATE
18864 flags |= DB_MPOOL_PRIVATE;
18868 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18872 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18873 rc = env->open( env, NULL, flags, 0 );
18875 rc = env->open( env, NULL, NULL, flags, 0 );
18879 rc = env->close( env, 0 );
18883 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18889 memset( &env, '\0', sizeof(env) );
18891 rc = db_appinit( NULL, NULL, &env, flags );
18894 db_appexit( &env );
18897 unlink("__db_mpool.share");
18898 unlink("__db_lock.share");
18904 if { (eval echo configure:18905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18906 ol_cv_berkeley_db_thread=yes
18908 echo "configure: failed program was:" >&5
18909 cat conftest.$ac_ext >&5
18911 ol_cv_berkeley_db_thread=no
18919 if test $ol_cv_berkeley_db_thread != no ; then
18920 cat >> confdefs.h <<\EOF
18921 #define HAVE_BERKELEY_DB_THREAD 1
18928 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18934 if test $ol_cv_berkeley_db != no ; then
18935 cat >> confdefs.h <<\EOF
18936 #define HAVE_BERKELEY_DB 1
18940 ol_link_ldbm=berkeley
18941 ol_with_ldbm_api=berkeley
18943 if test $ol_with_ldbm_type = hash ; then
18944 cat >> confdefs.h <<\EOF
18945 #define LDBM_USE_DBHASH 1
18949 cat >> confdefs.h <<\EOF
18950 #define LDBM_USE_DBBTREE 1
18955 if test $ol_cv_lib_db != yes ; then
18956 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18961 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18962 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18963 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18964 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18965 echo "configure:18966: checking Berkeley DB version for BDB backend" >&5
18966 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18967 echo $ac_n "(cached) $ac_c" 1>&6
18970 cat > conftest.$ac_ext <<EOF
18971 #line 18972 "configure"
18972 #include "confdefs.h"
18976 /* this check could be improved */
18977 #ifndef DB_VERSION_MAJOR
18978 # define DB_VERSION_MAJOR 1
18981 /* require 4.0 or later */
18982 #if DB_VERSION_MAJOR >= 4
18983 __db_version_compat
18987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18988 egrep "__db_version_compat" >/dev/null 2>&1; then
18990 ol_cv_bdb_compat=yes
18993 ol_cv_bdb_compat=no
18999 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19002 if test $ol_cv_bdb_compat = yes ; then
19004 elif test $ol_enable_bdb = yes ; then
19005 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19011 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19012 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19013 ol_with_ldbm_api=none
19016 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19017 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19018 echo "configure:19019: checking for MDBM library" >&5
19019 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19020 echo $ac_n "(cached) $ac_c" 1>&6
19023 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19024 echo "configure:19025: checking for mdbm_set_chain" >&5
19025 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19026 echo $ac_n "(cached) $ac_c" 1>&6
19028 cat > conftest.$ac_ext <<EOF
19029 #line 19030 "configure"
19030 #include "confdefs.h"
19031 /* System header to define __stub macros and hopefully few prototypes,
19032 which can conflict with char mdbm_set_chain(); below. */
19033 #include <assert.h>
19034 /* Override any gcc2 internal prototype to avoid an error. */
19035 /* We use char because int might match the return type of a gcc2
19036 builtin and then its argument prototype would still apply. */
19037 char mdbm_set_chain();
19042 /* The GNU C library defines this for functions which it implements
19043 to always fail with ENOSYS. Some functions are actually named
19044 something starting with __ and the normal name is an alias. */
19045 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19048 f = mdbm_set_chain;
19053 if { (eval echo configure:19054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19055 eval "ac_cv_func_mdbm_set_chain=yes"
19057 echo "configure: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19060 eval "ac_cv_func_mdbm_set_chain=no"
19065 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19066 echo "$ac_t""yes" 1>&6
19069 echo "$ac_t""no" 1>&6
19071 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19072 echo "configure:19073: checking for mdbm_set_chain in -lmdbm" >&5
19073 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19074 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19075 echo $ac_n "(cached) $ac_c" 1>&6
19077 ac_save_LIBS="$LIBS"
19078 LIBS="-lmdbm $LIBS"
19079 cat > conftest.$ac_ext <<EOF
19080 #line 19081 "configure"
19081 #include "confdefs.h"
19082 /* Override any gcc2 internal prototype to avoid an error. */
19083 /* We use char because int might match the return type of a gcc2
19084 builtin and then its argument prototype would still apply. */
19085 char mdbm_set_chain();
19091 if { (eval echo configure:19092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19093 eval "ac_cv_lib_$ac_lib_var=yes"
19095 echo "configure: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19098 eval "ac_cv_lib_$ac_lib_var=no"
19101 LIBS="$ac_save_LIBS"
19104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19105 echo "$ac_t""yes" 1>&6
19106 ol_cv_lib_mdbm=-lmdbm
19108 echo "$ac_t""no" 1>&6
19119 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19122 for ac_hdr in mdbm.h
19124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19126 echo "configure:19127: checking for $ac_hdr" >&5
19127 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19128 echo $ac_n "(cached) $ac_c" 1>&6
19130 cat > conftest.$ac_ext <<EOF
19131 #line 19132 "configure"
19132 #include "confdefs.h"
19135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19136 { (eval echo configure:19137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19138 if test -z "$ac_err"; then
19140 eval "ac_cv_header_$ac_safe=yes"
19143 echo "configure: failed program was:" >&5
19144 cat conftest.$ac_ext >&5
19146 eval "ac_cv_header_$ac_safe=no"
19150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19151 echo "$ac_t""yes" 1>&6
19152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19153 cat >> confdefs.h <<EOF
19154 #define $ac_tr_hdr 1
19158 echo "$ac_t""no" 1>&6
19162 echo $ac_n "checking for db""... $ac_c" 1>&6
19163 echo "configure:19164: checking for db" >&5
19164 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19165 echo $ac_n "(cached) $ac_c" 1>&6
19168 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19176 echo "$ac_t""$ol_cv_mdbm" 1>&6
19177 if test $ol_cv_mdbm = yes ; then
19178 cat >> confdefs.h <<\EOF
19179 #define HAVE_MDBM 1
19185 if test $ol_cv_mdbm = yes ; then
19187 ol_with_ldbm_api=mdbm
19188 if test $ol_cv_lib_mdbm != yes ; then
19189 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19194 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19195 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19196 echo "configure:19197: checking for GDBM library" >&5
19197 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19198 echo $ac_n "(cached) $ac_c" 1>&6
19201 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19202 echo "configure:19203: checking for gdbm_open" >&5
19203 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19206 cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19209 /* System header to define __stub macros and hopefully few prototypes,
19210 which can conflict with char gdbm_open(); below. */
19211 #include <assert.h>
19212 /* Override any gcc2 internal prototype to avoid an error. */
19213 /* We use char because int might match the return type of a gcc2
19214 builtin and then its argument prototype would still apply. */
19220 /* The GNU C library defines this for functions which it implements
19221 to always fail with ENOSYS. Some functions are actually named
19222 something starting with __ and the normal name is an alias. */
19223 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19231 if { (eval echo configure:19232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19233 eval "ac_cv_func_gdbm_open=yes"
19235 echo "configure: failed program was:" >&5
19236 cat conftest.$ac_ext >&5
19238 eval "ac_cv_func_gdbm_open=no"
19243 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19244 echo "$ac_t""yes" 1>&6
19247 echo "$ac_t""no" 1>&6
19249 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19250 echo "configure:19251: checking for gdbm_open in -lgdbm" >&5
19251 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19253 echo $ac_n "(cached) $ac_c" 1>&6
19255 ac_save_LIBS="$LIBS"
19256 LIBS="-lgdbm $LIBS"
19257 cat > conftest.$ac_ext <<EOF
19258 #line 19259 "configure"
19259 #include "confdefs.h"
19260 /* Override any gcc2 internal prototype to avoid an error. */
19261 /* We use char because int might match the return type of a gcc2
19262 builtin and then its argument prototype would still apply. */
19269 if { (eval echo configure:19270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19271 eval "ac_cv_lib_$ac_lib_var=yes"
19273 echo "configure: failed program was:" >&5
19274 cat conftest.$ac_ext >&5
19276 eval "ac_cv_lib_$ac_lib_var=no"
19279 LIBS="$ac_save_LIBS"
19282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19283 echo "$ac_t""yes" 1>&6
19284 ol_cv_lib_gdbm=-lgdbm
19286 echo "$ac_t""no" 1>&6
19297 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19300 for ac_hdr in gdbm.h
19302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19304 echo "configure:19305: checking for $ac_hdr" >&5
19305 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19306 echo $ac_n "(cached) $ac_c" 1>&6
19308 cat > conftest.$ac_ext <<EOF
19309 #line 19310 "configure"
19310 #include "confdefs.h"
19313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19314 { (eval echo configure:19315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19316 if test -z "$ac_err"; then
19318 eval "ac_cv_header_$ac_safe=yes"
19321 echo "configure: failed program was:" >&5
19322 cat conftest.$ac_ext >&5
19324 eval "ac_cv_header_$ac_safe=no"
19328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19329 echo "$ac_t""yes" 1>&6
19330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19331 cat >> confdefs.h <<EOF
19332 #define $ac_tr_hdr 1
19336 echo "$ac_t""no" 1>&6
19340 echo $ac_n "checking for db""... $ac_c" 1>&6
19341 echo "configure:19342: checking for db" >&5
19342 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19343 echo $ac_n "(cached) $ac_c" 1>&6
19346 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19354 echo "$ac_t""$ol_cv_gdbm" 1>&6
19355 if test $ol_cv_gdbm = yes ; then
19356 cat >> confdefs.h <<\EOF
19357 #define HAVE_GDBM 1
19363 if test $ol_cv_gdbm = yes ; then
19365 ol_with_ldbm_api=gdbm
19367 if test $ol_cv_lib_gdbm != yes ; then
19368 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19373 if test $ol_with_ldbm_api = ndbm ; then
19374 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19375 echo "configure:19376: checking for NDBM library" >&5
19376 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19377 echo $ac_n "(cached) $ac_c" 1>&6
19380 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19381 echo "configure:19382: checking for dbm_open" >&5
19382 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19383 echo $ac_n "(cached) $ac_c" 1>&6
19385 cat > conftest.$ac_ext <<EOF
19386 #line 19387 "configure"
19387 #include "confdefs.h"
19388 /* System header to define __stub macros and hopefully few prototypes,
19389 which can conflict with char dbm_open(); below. */
19390 #include <assert.h>
19391 /* Override any gcc2 internal prototype to avoid an error. */
19392 /* We use char because int might match the return type of a gcc2
19393 builtin and then its argument prototype would still apply. */
19399 /* The GNU C library defines this for functions which it implements
19400 to always fail with ENOSYS. Some functions are actually named
19401 something starting with __ and the normal name is an alias. */
19402 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19410 if { (eval echo configure:19411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412 eval "ac_cv_func_dbm_open=yes"
19414 echo "configure: failed program was:" >&5
19415 cat conftest.$ac_ext >&5
19417 eval "ac_cv_func_dbm_open=no"
19422 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19423 echo "$ac_t""yes" 1>&6
19426 echo "$ac_t""no" 1>&6
19428 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19429 echo "configure:19430: checking for dbm_open in -lndbm" >&5
19430 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19431 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19432 echo $ac_n "(cached) $ac_c" 1>&6
19434 ac_save_LIBS="$LIBS"
19435 LIBS="-lndbm $LIBS"
19436 cat > conftest.$ac_ext <<EOF
19437 #line 19438 "configure"
19438 #include "confdefs.h"
19439 /* Override any gcc2 internal prototype to avoid an error. */
19440 /* We use char because int might match the return type of a gcc2
19441 builtin and then its argument prototype would still apply. */
19448 if { (eval echo configure:19449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19450 eval "ac_cv_lib_$ac_lib_var=yes"
19452 echo "configure: failed program was:" >&5
19453 cat conftest.$ac_ext >&5
19455 eval "ac_cv_lib_$ac_lib_var=no"
19458 LIBS="$ac_save_LIBS"
19461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19462 echo "$ac_t""yes" 1>&6
19463 ol_cv_lib_ndbm=-lndbm
19465 echo "$ac_t""no" 1>&6
19467 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19468 echo "configure:19469: checking for dbm_open in -ldbm" >&5
19469 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19470 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19471 echo $ac_n "(cached) $ac_c" 1>&6
19473 ac_save_LIBS="$LIBS"
19475 cat > conftest.$ac_ext <<EOF
19476 #line 19477 "configure"
19477 #include "confdefs.h"
19478 /* Override any gcc2 internal prototype to avoid an error. */
19479 /* We use char because int might match the return type of a gcc2
19480 builtin and then its argument prototype would still apply. */
19487 if { (eval echo configure:19488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19489 eval "ac_cv_lib_$ac_lib_var=yes"
19491 echo "configure: failed program was:" >&5
19492 cat conftest.$ac_ext >&5
19494 eval "ac_cv_lib_$ac_lib_var=no"
19497 LIBS="$ac_save_LIBS"
19500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19501 echo "$ac_t""yes" 1>&6
19502 ol_cv_lib_ndbm=-ldbm
19504 echo "$ac_t""no" 1>&6
19517 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19520 for ac_hdr in ndbm.h
19522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19524 echo "configure:19525: checking for $ac_hdr" >&5
19525 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19526 echo $ac_n "(cached) $ac_c" 1>&6
19528 cat > conftest.$ac_ext <<EOF
19529 #line 19530 "configure"
19530 #include "confdefs.h"
19533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19534 { (eval echo configure:19535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19536 if test -z "$ac_err"; then
19538 eval "ac_cv_header_$ac_safe=yes"
19541 echo "configure: failed program was:" >&5
19542 cat conftest.$ac_ext >&5
19544 eval "ac_cv_header_$ac_safe=no"
19548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19549 echo "$ac_t""yes" 1>&6
19550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19551 cat >> confdefs.h <<EOF
19552 #define $ac_tr_hdr 1
19556 echo "$ac_t""no" 1>&6
19560 echo $ac_n "checking for db""... $ac_c" 1>&6
19561 echo "configure:19562: checking for db" >&5
19562 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19563 echo $ac_n "(cached) $ac_c" 1>&6
19566 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19574 echo "$ac_t""$ol_cv_ndbm" 1>&6
19575 if test $ol_cv_ndbm = yes ; then
19576 cat >> confdefs.h <<\EOF
19577 #define HAVE_NDBM 1
19583 if test $ol_cv_ndbm = yes ; then
19585 ol_with_ldbm_api=ndbm
19587 if test $ol_cv_lib_ndbm != yes ; then
19588 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19593 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19594 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19595 if test $ol_enable_ldbm = yes ; then
19596 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19599 echo "configure: warning: disabling LDBM" 1>&2
19603 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19604 BUILD_LIBS_DYNAMIC=shared
19605 cat >> confdefs.h <<\EOF
19606 #define LDAP_LIBS_DYNAMIC 1
19610 BUILD_LIBS_DYNAMIC=static
19613 if test $ol_enable_wrappers != no ; then
19614 for ac_hdr in tcpd.h
19616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19618 echo "configure:19619: checking for $ac_hdr" >&5
19619 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19620 echo $ac_n "(cached) $ac_c" 1>&6
19622 cat > conftest.$ac_ext <<EOF
19623 #line 19624 "configure"
19624 #include "confdefs.h"
19627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19628 { (eval echo configure:19629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19630 if test -z "$ac_err"; then
19632 eval "ac_cv_header_$ac_safe=yes"
19635 echo "configure: failed program was:" >&5
19636 cat conftest.$ac_ext >&5
19638 eval "ac_cv_header_$ac_safe=no"
19642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19643 echo "$ac_t""yes" 1>&6
19644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19645 cat >> confdefs.h <<EOF
19646 #define $ac_tr_hdr 1
19649 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19650 echo "configure:19651: checking for TCP wrappers library" >&5
19652 LIBS="$LIBS -lwrap"
19653 cat > conftest.$ac_ext <<EOF
19654 #line 19655 "configure"
19655 #include "confdefs.h"
19658 int allow_severity = 0;
19659 int deny_severity = 0;
19661 struct request_info *req;
19669 if { (eval echo configure:19670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19671 echo "$ac_t""-lwrap" 1>&6
19675 echo "configure: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19680 cat > conftest.$ac_ext <<EOF
19681 #line 19682 "configure"
19682 #include "confdefs.h"
19685 int allow_severity = 0;
19686 int deny_severity = 0;
19688 struct request_info *req;
19696 if { (eval echo configure:19697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19698 echo "$ac_t""-lwrap -lnsl" 1>&6
19700 LIBS="$save_LIBS -lnsl"
19702 echo "configure: failed program was:" >&5
19703 cat conftest.$ac_ext >&5
19706 echo "$ac_t""no" 1>&6
19714 echo "$ac_t""no" 1>&6
19720 if test $have_wrappers = yes ; then
19721 cat >> confdefs.h <<\EOF
19722 #define HAVE_TCPD 1
19726 elif test $ol_enable_wrappers = yes ; then
19727 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19729 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19734 if test $ol_enable_syslog != no ; then
19735 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19736 echo "configure:19737: checking for openlog" >&5
19737 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19738 echo $ac_n "(cached) $ac_c" 1>&6
19740 cat > conftest.$ac_ext <<EOF
19741 #line 19742 "configure"
19742 #include "confdefs.h"
19743 /* System header to define __stub macros and hopefully few prototypes,
19744 which can conflict with char openlog(); below. */
19745 #include <assert.h>
19746 /* Override any gcc2 internal prototype to avoid an error. */
19747 /* We use char because int might match the return type of a gcc2
19748 builtin and then its argument prototype would still apply. */
19754 /* The GNU C library defines this for functions which it implements
19755 to always fail with ENOSYS. Some functions are actually named
19756 something starting with __ and the normal name is an alias. */
19757 #if defined (__stub_openlog) || defined (__stub___openlog)
19765 if { (eval echo configure:19766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19767 eval "ac_cv_func_openlog=yes"
19769 echo "configure: failed program was:" >&5
19770 cat conftest.$ac_ext >&5
19772 eval "ac_cv_func_openlog=no"
19777 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19778 echo "$ac_t""yes" 1>&6
19781 echo "$ac_t""no" 1>&6
19784 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19785 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19787 ol_enable_syslog=$ac_cv_func_openlog
19792 if test $ol_enable_sql != no ; then
19793 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19794 echo "configure:19795: checking for SQLDriverConnect in -liodbc" >&5
19795 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19796 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19797 echo $ac_n "(cached) $ac_c" 1>&6
19799 ac_save_LIBS="$LIBS"
19800 LIBS="-liodbc $LIBS"
19801 cat > conftest.$ac_ext <<EOF
19802 #line 19803 "configure"
19803 #include "confdefs.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 SQLDriverConnect();
19813 if { (eval echo configure:19814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19815 eval "ac_cv_lib_$ac_lib_var=yes"
19817 echo "configure: failed program was:" >&5
19818 cat conftest.$ac_ext >&5
19820 eval "ac_cv_lib_$ac_lib_var=no"
19823 LIBS="$ac_save_LIBS"
19826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19827 echo "$ac_t""yes" 1>&6
19830 echo "$ac_t""no" 1>&6
19834 if test $have_iodbc = yes ; then
19835 ol_link_sql="-liodbc"
19837 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19838 echo "configure:19839: checking for SQLDriverConnect in -lodbc" >&5
19839 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19840 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19841 echo $ac_n "(cached) $ac_c" 1>&6
19843 ac_save_LIBS="$LIBS"
19844 LIBS="-lodbc $LIBS"
19845 cat > conftest.$ac_ext <<EOF
19846 #line 19847 "configure"
19847 #include "confdefs.h"
19848 /* Override any gcc2 internal prototype to avoid an error. */
19849 /* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19851 char SQLDriverConnect();
19857 if { (eval echo configure:19858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19859 eval "ac_cv_lib_$ac_lib_var=yes"
19861 echo "configure: failed program was:" >&5
19862 cat conftest.$ac_ext >&5
19864 eval "ac_cv_lib_$ac_lib_var=no"
19867 LIBS="$ac_save_LIBS"
19870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19871 echo "$ac_t""yes" 1>&6
19874 echo "$ac_t""no" 1>&6
19878 if test $have_odbc = yes ; then
19879 ol_link_sql="-lodbc"
19883 if test $ol_link_sql != no ; then
19884 SLAPD_SQL_LIBS="$ol_link_sql"
19886 elif test $ol_enable_sql != auto ; then
19887 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19891 if test $ol_enable_tcl != no ; then
19892 for ac_hdr in tcl.h
19894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19896 echo "configure:19897: checking for $ac_hdr" >&5
19897 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19898 echo $ac_n "(cached) $ac_c" 1>&6
19900 cat > conftest.$ac_ext <<EOF
19901 #line 19902 "configure"
19902 #include "confdefs.h"
19905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19906 { (eval echo configure:19907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19908 if test -z "$ac_err"; then
19910 eval "ac_cv_header_$ac_safe=yes"
19913 echo "configure: failed program was:" >&5
19914 cat conftest.$ac_ext >&5
19916 eval "ac_cv_header_$ac_safe=no"
19920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19921 echo "$ac_t""yes" 1>&6
19922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19923 cat >> confdefs.h <<EOF
19924 #define $ac_tr_hdr 1
19928 echo "$ac_t""no" 1>&6
19933 if test $ac_cv_header_tcl_h != yes ; then
19936 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19937 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19938 echo "configure:19939: checking for main in -l$lib" >&5
19939 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19941 echo $ac_n "(cached) $ac_c" 1>&6
19943 ac_save_LIBS="$LIBS"
19944 LIBS="-l$lib $LIBS"
19945 cat > conftest.$ac_ext <<EOF
19946 #line 19947 "configure"
19947 #include "confdefs.h"
19953 if { (eval echo configure:19954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19955 eval "ac_cv_lib_$ac_lib_var=yes"
19957 echo "configure: failed program was:" >&5
19958 cat conftest.$ac_ext >&5
19960 eval "ac_cv_lib_$ac_lib_var=no"
19963 LIBS="$ac_save_LIBS"
19966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19967 echo "$ac_t""yes" 1>&6
19969 if test x"$ol_with_tcl_module" = "xstatic" ; then
19970 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19972 MOD_TCL_LIB="-l${lib}"
19975 echo "$ac_t""no" 1>&6
19982 if test $have_tcl != yes ; then
19983 echo "configure: warning: could not find -ltcl" 1>&2
19984 if test $ol_enable_tcl = yes ; then
19985 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19993 for ac_hdr in termcap.h ncurses.h
19995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19997 echo "configure:19998: checking for $ac_hdr" >&5
19998 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19999 echo $ac_n "(cached) $ac_c" 1>&6
20001 cat > conftest.$ac_ext <<EOF
20002 #line 20003 "configure"
20003 #include "confdefs.h"
20006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20007 { (eval echo configure:20008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20009 if test -z "$ac_err"; then
20011 eval "ac_cv_header_$ac_safe=yes"
20014 echo "configure: failed program was:" >&5
20015 cat conftest.$ac_ext >&5
20017 eval "ac_cv_header_$ac_safe=no"
20021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20022 echo "$ac_t""yes" 1>&6
20023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20024 cat >> confdefs.h <<EOF
20025 #define $ac_tr_hdr 1
20029 echo "$ac_t""no" 1>&6
20034 if test $ol_link_termcap = no ; then
20035 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
20036 echo "configure:20037: checking for tputs in -ltermcap" >&5
20037 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
20038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20039 echo $ac_n "(cached) $ac_c" 1>&6
20041 ac_save_LIBS="$LIBS"
20042 LIBS="-ltermcap $LIBS"
20043 cat > conftest.$ac_ext <<EOF
20044 #line 20045 "configure"
20045 #include "confdefs.h"
20046 /* Override any gcc2 internal prototype to avoid an error. */
20047 /* We use char because int might match the return type of a gcc2
20048 builtin and then its argument prototype would still apply. */
20055 if { (eval echo configure:20056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20057 eval "ac_cv_lib_$ac_lib_var=yes"
20059 echo "configure: failed program was:" >&5
20060 cat conftest.$ac_ext >&5
20062 eval "ac_cv_lib_$ac_lib_var=no"
20065 LIBS="$ac_save_LIBS"
20068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20069 echo "$ac_t""yes" 1>&6
20072 echo "$ac_t""no" 1>&6
20076 if test $have_termcap = yes ; then
20077 cat >> confdefs.h <<\EOF
20078 #define HAVE_TERMCAP 1
20081 ol_link_termcap=yes
20082 TERMCAP_LIBS=-ltermcap
20086 if test $ol_link_termcap = no ; then
20087 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20088 echo "configure:20089: checking for initscr in -lncurses" >&5
20089 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20091 echo $ac_n "(cached) $ac_c" 1>&6
20093 ac_save_LIBS="$LIBS"
20094 LIBS="-lncurses $LIBS"
20095 cat > conftest.$ac_ext <<EOF
20096 #line 20097 "configure"
20097 #include "confdefs.h"
20098 /* Override any gcc2 internal prototype to avoid an error. */
20099 /* We use char because int might match the return type of a gcc2
20100 builtin and then its argument prototype would still apply. */
20107 if { (eval echo configure:20108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20109 eval "ac_cv_lib_$ac_lib_var=yes"
20111 echo "configure: failed program was:" >&5
20112 cat conftest.$ac_ext >&5
20114 eval "ac_cv_lib_$ac_lib_var=no"
20117 LIBS="$ac_save_LIBS"
20120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20121 echo "$ac_t""yes" 1>&6
20124 echo "$ac_t""no" 1>&6
20128 if test $have_ncurses = yes ; then
20129 cat >> confdefs.h <<\EOF
20130 #define HAVE_NCURSES 1
20133 ol_link_termcap=yes
20134 TERMCAP_LIBS=-lncurses
20138 if test $ol_link_termcap = no ; then
20139 cat >> confdefs.h <<\EOF
20140 #define NO_TERMCAP 1
20148 if test $ol_with_cyrus_sasl != no ; then
20149 for ac_hdr in sasl/sasl.h sasl.h
20151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20153 echo "configure:20154: checking for $ac_hdr" >&5
20154 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20155 echo $ac_n "(cached) $ac_c" 1>&6
20157 cat > conftest.$ac_ext <<EOF
20158 #line 20159 "configure"
20159 #include "confdefs.h"
20162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20163 { (eval echo configure:20164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20165 if test -z "$ac_err"; then
20167 eval "ac_cv_header_$ac_safe=yes"
20170 echo "configure: failed program was:" >&5
20171 cat conftest.$ac_ext >&5
20173 eval "ac_cv_header_$ac_safe=no"
20177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20178 echo "$ac_t""yes" 1>&6
20179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20180 cat >> confdefs.h <<EOF
20181 #define $ac_tr_hdr 1
20185 echo "$ac_t""no" 1>&6
20190 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20191 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20192 echo "configure:20193: checking for sasl_client_init in -lsasl2" >&5
20193 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20195 echo $ac_n "(cached) $ac_c" 1>&6
20197 ac_save_LIBS="$LIBS"
20198 LIBS="-lsasl2 $LIBS"
20199 cat > conftest.$ac_ext <<EOF
20200 #line 20201 "configure"
20201 #include "confdefs.h"
20202 /* Override any gcc2 internal prototype to avoid an error. */
20203 /* We use char because int might match the return type of a gcc2
20204 builtin and then its argument prototype would still apply. */
20205 char sasl_client_init();
20211 if { (eval echo configure:20212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20213 eval "ac_cv_lib_$ac_lib_var=yes"
20215 echo "configure: failed program was:" >&5
20216 cat conftest.$ac_ext >&5
20218 eval "ac_cv_lib_$ac_lib_var=no"
20221 LIBS="$ac_save_LIBS"
20224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20225 echo "$ac_t""yes" 1>&6
20226 ol_link_sasl="-lsasl2"
20228 echo "$ac_t""no" 1>&6
20229 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20230 echo "configure:20231: checking for sasl_client_init in -lsasl" >&5
20231 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20232 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20233 echo $ac_n "(cached) $ac_c" 1>&6
20235 ac_save_LIBS="$LIBS"
20236 LIBS="-lsasl $LIBS"
20237 cat > conftest.$ac_ext <<EOF
20238 #line 20239 "configure"
20239 #include "confdefs.h"
20240 /* Override any gcc2 internal prototype to avoid an error. */
20241 /* We use char because int might match the return type of a gcc2
20242 builtin and then its argument prototype would still apply. */
20243 char sasl_client_init();
20249 if { (eval echo configure:20250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20251 eval "ac_cv_lib_$ac_lib_var=yes"
20253 echo "configure: failed program was:" >&5
20254 cat conftest.$ac_ext >&5
20256 eval "ac_cv_lib_$ac_lib_var=no"
20259 LIBS="$ac_save_LIBS"
20262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20263 echo "$ac_t""yes" 1>&6
20264 ol_link_sasl="-lsasl"
20266 echo "$ac_t""no" 1>&6
20273 if test $ol_link_sasl = no ; then
20274 if test $ol_with_cyrus_sasl != auto ; then
20275 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20277 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20278 echo "configure: warning: SASL authentication not supported!" 1>&2
20279 if test $ol_link_tls = no ; then
20280 echo "configure: warning: Strong authentication not supported!" 1>&2
20284 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20285 echo "configure:20286: checking Cyrus SASL library version" >&5
20286 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20287 echo $ac_n "(cached) $ac_c" 1>&6
20290 cat > conftest.$ac_ext <<EOF
20291 #line 20292 "configure"
20292 #include "confdefs.h"
20294 #ifdef HAVE_SASL_SASL_H
20295 #include <sasl/sasl.h>
20300 /* require 2.1.3 or later */
20301 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20302 char *__sasl_compat = "1.5.x okay";
20303 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20304 __sasl_compat "2.2+ or better okay (we guess)";
20305 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20306 && SASL_VERSION_STEP >=3
20307 __sasl_compat = "2.1.3+ or better okay";
20311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20312 egrep "__sasl_compat" >/dev/null 2>&1; then
20314 ol_cv_sasl_compat=yes
20317 ol_cv_sasl_compat=no
20323 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20325 if test $ol_cv_sasl_compat = no ; then
20327 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20330 cat >> confdefs.h <<\EOF
20331 #define HAVE_CYRUS_SASL 1
20334 SASL_LIBS="$ol_link_sasl"
20335 if test $ol_enable_spasswd != no ; then
20336 ol_link_spasswd=yes
20339 ac_save_LIBS="$LIBS"
20340 LIBS="$LIBS $ol_link_sasl"
20341 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20342 echo "configure:20343: checking for sasl_version" >&5
20343 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20344 echo $ac_n "(cached) $ac_c" 1>&6
20346 cat > conftest.$ac_ext <<EOF
20347 #line 20348 "configure"
20348 #include "confdefs.h"
20349 /* System header to define __stub macros and hopefully few prototypes,
20350 which can conflict with char sasl_version(); below. */
20351 #include <assert.h>
20352 /* Override any gcc2 internal prototype to avoid an error. */
20353 /* We use char because int might match the return type of a gcc2
20354 builtin and then its argument prototype would still apply. */
20355 char sasl_version();
20360 /* The GNU C library defines this for functions which it implements
20361 to always fail with ENOSYS. Some functions are actually named
20362 something starting with __ and the normal name is an alias. */
20363 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20371 if { (eval echo configure:20372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20373 eval "ac_cv_func_sasl_version=yes"
20375 echo "configure: failed program was:" >&5
20376 cat conftest.$ac_ext >&5
20378 eval "ac_cv_func_sasl_version=no"
20383 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20384 echo "$ac_t""yes" 1>&6
20385 cat >> confdefs.h <<\EOF
20386 #define HAVE_SASL_VERSION 1
20390 echo "$ac_t""no" 1>&6
20393 LIBS="$ac_save_LIBS"
20397 echo "configure: warning: SASL authentication not supported!" 1>&2
20398 if test $ol_link_tls = no ; then
20399 echo "configure: warning: Strong authentication not supported!" 1>&2
20403 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20405 if test -r /dev/urandom ; then
20406 dev="/dev/urandom";
20407 elif test -r /idev/urandom ; then
20408 dev="/idev/urandom";
20409 elif test -r /dev/srandom ; then
20410 dev="/dev/srandom";
20411 elif test -r /dev/random ; then
20413 elif test -r /idev/random ; then
20414 dev="/idev/random";
20417 if test $dev != no ; then
20418 cat >> confdefs.h <<EOF
20419 #define URANDOM_DEVICE "$dev"
20426 if test $ol_with_fetch != no ; then
20428 LIBS="-lfetch -lcom_err $LIBS"
20429 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20430 echo "configure:20431: checking fetch(3) library" >&5
20431 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20432 echo $ac_n "(cached) $ac_c" 1>&6
20435 cat > conftest.$ac_ext <<EOF
20436 #line 20437 "configure"
20437 #include "confdefs.h"
20439 #include <sys/param.h>
20443 struct url *u = fetchParseURL("file:///");
20446 if { (eval echo configure:20447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20448 ol_cv_lib_fetch=yes
20450 echo "configure: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20458 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20460 if test $ol_cv_lib_fetch != no ; then
20461 ol_link_fetch="-lfetch -lcom_err"
20462 cat >> confdefs.h <<\EOF
20463 #define HAVE_FETCH 1
20469 if test $ol_cv_lib_fetch != no ; then
20470 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20471 ol_link_fetch=freebsd
20473 elif test $ol_with_fetch != auto ; then
20474 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20478 ol_link_readline=no
20479 if test $ol_with_readline != no ; then
20480 for ac_hdr in readline/readline.h readline/history.h
20482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20484 echo "configure:20485: checking for $ac_hdr" >&5
20485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20486 echo $ac_n "(cached) $ac_c" 1>&6
20488 cat > conftest.$ac_ext <<EOF
20489 #line 20490 "configure"
20490 #include "confdefs.h"
20493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20494 { (eval echo configure:20495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20496 if test -z "$ac_err"; then
20498 eval "ac_cv_header_$ac_safe=yes"
20501 echo "configure: failed program was:" >&5
20502 cat conftest.$ac_ext >&5
20504 eval "ac_cv_header_$ac_safe=no"
20508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20509 echo "$ac_t""yes" 1>&6
20510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20511 cat >> confdefs.h <<EOF
20512 #define $ac_tr_hdr 1
20516 echo "$ac_t""no" 1>&6
20521 if test $ac_cv_header_readline_readline_h = yes ; then
20523 LIBS="$TERMCAP_LIBS $LIBS"
20524 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
20525 echo "configure:20526: checking for readline in -lreadline" >&5
20526 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
20527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20528 echo $ac_n "(cached) $ac_c" 1>&6
20530 ac_save_LIBS="$LIBS"
20531 LIBS="-lreadline $LIBS"
20532 cat > conftest.$ac_ext <<EOF
20533 #line 20534 "configure"
20534 #include "confdefs.h"
20535 /* Override any gcc2 internal prototype to avoid an error. */
20536 /* We use char because int might match the return type of a gcc2
20537 builtin and then its argument prototype would still apply. */
20544 if { (eval echo configure:20545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20546 eval "ac_cv_lib_$ac_lib_var=yes"
20548 echo "configure: failed program was:" >&5
20549 cat conftest.$ac_ext >&5
20551 eval "ac_cv_lib_$ac_lib_var=no"
20554 LIBS="$ac_save_LIBS"
20557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20558 echo "$ac_t""yes" 1>&6
20561 echo "$ac_t""no" 1>&6
20567 if test $have_readline = yes ; then
20568 ol_with_readline=found
20569 ol_link_readline=yes
20571 READLINE_LIBS="-lreadline"
20576 if test $ol_link_readline = yes ; then
20577 cat >> confdefs.h <<\EOF
20578 #define HAVE_READLINE 1
20584 if test $ol_enable_crypt != no ; then
20585 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20586 echo "configure:20587: checking for crypt" >&5
20587 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20588 echo $ac_n "(cached) $ac_c" 1>&6
20590 cat > conftest.$ac_ext <<EOF
20591 #line 20592 "configure"
20592 #include "confdefs.h"
20593 /* System header to define __stub macros and hopefully few prototypes,
20594 which can conflict with char crypt(); below. */
20595 #include <assert.h>
20596 /* Override any gcc2 internal prototype to avoid an error. */
20597 /* We use char because int might match the return type of a gcc2
20598 builtin and then its argument prototype would still apply. */
20604 /* The GNU C library defines this for functions which it implements
20605 to always fail with ENOSYS. Some functions are actually named
20606 something starting with __ and the normal name is an alias. */
20607 #if defined (__stub_crypt) || defined (__stub___crypt)
20615 if { (eval echo configure:20616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20617 eval "ac_cv_func_crypt=yes"
20619 echo "configure: failed program was:" >&5
20620 cat conftest.$ac_ext >&5
20622 eval "ac_cv_func_crypt=no"
20627 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20628 echo "$ac_t""yes" 1>&6
20631 echo "$ac_t""no" 1>&6
20633 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20634 echo "configure:20635: checking for crypt in -lcrypt" >&5
20635 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20637 echo $ac_n "(cached) $ac_c" 1>&6
20639 ac_save_LIBS="$LIBS"
20640 LIBS="-lcrypt $LIBS"
20641 cat > conftest.$ac_ext <<EOF
20642 #line 20643 "configure"
20643 #include "confdefs.h"
20644 /* Override any gcc2 internal prototype to avoid an error. */
20645 /* We use char because int might match the return type of a gcc2
20646 builtin and then its argument prototype would still apply. */
20653 if { (eval echo configure:20654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20655 eval "ac_cv_lib_$ac_lib_var=yes"
20657 echo "configure: failed program was:" >&5
20658 cat conftest.$ac_ext >&5
20660 eval "ac_cv_lib_$ac_lib_var=no"
20663 LIBS="$ac_save_LIBS"
20666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20667 echo "$ac_t""yes" 1>&6
20668 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20671 echo "$ac_t""no" 1>&6
20678 if test $have_crypt = yes ; then
20679 cat >> confdefs.h <<\EOF
20680 #define HAVE_CRYPT 1
20684 echo "configure: warning: could not find crypt" 1>&2
20685 if test $ol_enable_crypt = yes ; then
20686 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20689 echo "configure: warning: disabling crypt support" 1>&2
20694 if test $ol_enable_proctitle != no ; then
20695 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20696 echo "configure:20697: checking for setproctitle" >&5
20697 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20698 echo $ac_n "(cached) $ac_c" 1>&6
20700 cat > conftest.$ac_ext <<EOF
20701 #line 20702 "configure"
20702 #include "confdefs.h"
20703 /* System header to define __stub macros and hopefully few prototypes,
20704 which can conflict with char setproctitle(); below. */
20705 #include <assert.h>
20706 /* Override any gcc2 internal prototype to avoid an error. */
20707 /* We use char because int might match the return type of a gcc2
20708 builtin and then its argument prototype would still apply. */
20709 char setproctitle();
20714 /* The GNU C library defines this for functions which it implements
20715 to always fail with ENOSYS. Some functions are actually named
20716 something starting with __ and the normal name is an alias. */
20717 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20725 if { (eval echo configure:20726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20727 eval "ac_cv_func_setproctitle=yes"
20729 echo "configure: failed program was:" >&5
20730 cat conftest.$ac_ext >&5
20732 eval "ac_cv_func_setproctitle=no"
20737 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20738 echo "$ac_t""yes" 1>&6
20739 have_setproctitle=yes
20741 echo "$ac_t""no" 1>&6
20743 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20744 echo "configure:20745: checking for setproctitle in -lutil" >&5
20745 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20747 echo $ac_n "(cached) $ac_c" 1>&6
20749 ac_save_LIBS="$LIBS"
20750 LIBS="-lutil $LIBS"
20751 cat > conftest.$ac_ext <<EOF
20752 #line 20753 "configure"
20753 #include "confdefs.h"
20754 /* Override any gcc2 internal prototype to avoid an error. */
20755 /* We use char because int might match the return type of a gcc2
20756 builtin and then its argument prototype would still apply. */
20757 char setproctitle();
20763 if { (eval echo configure:20764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20765 eval "ac_cv_lib_$ac_lib_var=yes"
20767 echo "configure: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20770 eval "ac_cv_lib_$ac_lib_var=no"
20773 LIBS="$ac_save_LIBS"
20776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20777 echo "$ac_t""yes" 1>&6
20778 have_setproctitle=yes
20779 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20781 echo "$ac_t""no" 1>&6
20782 have_setproctitle=no
20783 LIBOBJS="$LIBOBJS setproctitle.o"
20784 LIBSRCS="$LIBSRCS setproctitle.c"
20790 if test $have_setproctitle = yes ; then
20791 cat >> confdefs.h <<\EOF
20792 #define HAVE_SETPROCTITLE 1
20798 if test $ol_enable_slp != no ; then
20799 for ac_hdr in slp.h
20801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20803 echo "configure:20804: checking for $ac_hdr" >&5
20804 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20805 echo $ac_n "(cached) $ac_c" 1>&6
20807 cat > conftest.$ac_ext <<EOF
20808 #line 20809 "configure"
20809 #include "confdefs.h"
20812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20813 { (eval echo configure:20814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20815 if test -z "$ac_err"; then
20817 eval "ac_cv_header_$ac_safe=yes"
20820 echo "configure: failed program was:" >&5
20821 cat conftest.$ac_ext >&5
20823 eval "ac_cv_header_$ac_safe=no"
20827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20828 echo "$ac_t""yes" 1>&6
20829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20830 cat >> confdefs.h <<EOF
20831 #define $ac_tr_hdr 1
20835 echo "$ac_t""no" 1>&6
20840 if test $ac_cv_header_slp_h = yes ; then
20841 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20842 echo "configure:20843: checking for SLPOpen in -lslp" >&5
20843 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20844 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20845 echo $ac_n "(cached) $ac_c" 1>&6
20847 ac_save_LIBS="$LIBS"
20849 cat > conftest.$ac_ext <<EOF
20850 #line 20851 "configure"
20851 #include "confdefs.h"
20852 /* Override any gcc2 internal prototype to avoid an error. */
20853 /* We use char because int might match the return type of a gcc2
20854 builtin and then its argument prototype would still apply. */
20861 if { (eval echo configure:20862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20863 eval "ac_cv_lib_$ac_lib_var=yes"
20865 echo "configure: failed program was:" >&5
20866 cat conftest.$ac_ext >&5
20868 eval "ac_cv_lib_$ac_lib_var=no"
20871 LIBS="$ac_save_LIBS"
20874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20875 echo "$ac_t""yes" 1>&6
20878 echo "$ac_t""no" 1>&6
20882 if test $have_slp = yes ; then
20883 cat >> confdefs.h <<\EOF
20887 SLAPD_SLP_LIBS=-lslp
20890 elif test $ol_enable_slp = yes ; then
20891 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20895 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20896 echo "configure:20897: checking for ANSI C header files" >&5
20897 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20898 echo $ac_n "(cached) $ac_c" 1>&6
20900 cat > conftest.$ac_ext <<EOF
20901 #line 20902 "configure"
20902 #include "confdefs.h"
20903 #include <stdlib.h>
20904 #include <stdarg.h>
20905 #include <string.h>
20908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20909 { (eval echo configure:20910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20911 if test -z "$ac_err"; then
20913 ac_cv_header_stdc=yes
20916 echo "configure: failed program was:" >&5
20917 cat conftest.$ac_ext >&5
20919 ac_cv_header_stdc=no
20923 if test $ac_cv_header_stdc = yes; then
20924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20925 cat > conftest.$ac_ext <<EOF
20926 #line 20927 "configure"
20927 #include "confdefs.h"
20928 #include <string.h>
20930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20931 egrep "memchr" >/dev/null 2>&1; then
20935 ac_cv_header_stdc=no
20941 if test $ac_cv_header_stdc = yes; then
20942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20943 cat > conftest.$ac_ext <<EOF
20944 #line 20945 "configure"
20945 #include "confdefs.h"
20946 #include <stdlib.h>
20948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20949 egrep "free" >/dev/null 2>&1; then
20953 ac_cv_header_stdc=no
20959 if test $ac_cv_header_stdc = yes; then
20960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20961 if test "$cross_compiling" = yes; then
20964 cat > conftest.$ac_ext <<EOF
20965 #line 20966 "configure"
20966 #include "confdefs.h"
20968 #if ((' ' & 0x0FF) == 0x020)
20969 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20970 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20972 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20973 || ('j' <= (c) && (c) <= 'r') \
20974 || ('s' <= (c) && (c) <= 'z'))
20975 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20978 int main () { int i; for (i = 0; i < 256; i++)
20979 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20983 if { (eval echo configure:20984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20987 echo "configure: failed program was:" >&5
20988 cat conftest.$ac_ext >&5
20990 ac_cv_header_stdc=no
20998 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20999 if test $ac_cv_header_stdc = yes; then
21000 cat >> confdefs.h <<\EOF
21001 #define STDC_HEADERS 1
21006 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21007 echo "configure:21008: checking for mode_t" >&5
21008 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21009 echo $ac_n "(cached) $ac_c" 1>&6
21011 cat > conftest.$ac_ext <<EOF
21012 #line 21013 "configure"
21013 #include "confdefs.h"
21014 #include <sys/types.h>
21016 #include <stdlib.h>
21017 #include <stddef.h>
21021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21022 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21024 eval "ac_cv_type_mode_t=yes"
21027 eval "ac_cv_type_mode_t=no"
21032 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21033 echo "$ac_t""yes" 1>&6
21035 echo "$ac_t""no" 1>&6
21036 cat >> confdefs.h <<EOF
21042 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21043 echo "configure:21044: checking for off_t" >&5
21044 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21045 echo $ac_n "(cached) $ac_c" 1>&6
21047 cat > conftest.$ac_ext <<EOF
21048 #line 21049 "configure"
21049 #include "confdefs.h"
21050 #include <sys/types.h>
21052 #include <stdlib.h>
21053 #include <stddef.h>
21057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21058 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21060 eval "ac_cv_type_off_t=yes"
21063 eval "ac_cv_type_off_t=no"
21068 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21069 echo "$ac_t""yes" 1>&6
21071 echo "$ac_t""no" 1>&6
21072 cat >> confdefs.h <<EOF
21078 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21079 echo "configure:21080: checking for pid_t" >&5
21080 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21081 echo $ac_n "(cached) $ac_c" 1>&6
21083 cat > conftest.$ac_ext <<EOF
21084 #line 21085 "configure"
21085 #include "confdefs.h"
21086 #include <sys/types.h>
21088 #include <stdlib.h>
21089 #include <stddef.h>
21093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21094 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21096 eval "ac_cv_type_pid_t=yes"
21099 eval "ac_cv_type_pid_t=no"
21104 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21105 echo "$ac_t""yes" 1>&6
21107 echo "$ac_t""no" 1>&6
21108 cat >> confdefs.h <<EOF
21114 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21115 echo "configure:21116: checking for ptrdiff_t" >&5
21116 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21117 echo $ac_n "(cached) $ac_c" 1>&6
21119 cat > conftest.$ac_ext <<EOF
21120 #line 21121 "configure"
21121 #include "confdefs.h"
21122 #include <stddef.h>
21127 if { (eval echo configure:21128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21129 am_cv_type_ptrdiff_t=yes
21131 echo "configure: failed program was:" >&5
21132 cat conftest.$ac_ext >&5
21134 am_cv_type_ptrdiff_t=no
21139 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21140 if test $am_cv_type_ptrdiff_t = yes; then
21141 cat >> confdefs.h <<\EOF
21142 #define HAVE_PTRDIFF_T 1
21147 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21148 echo "configure:21149: checking return type of signal handlers" >&5
21149 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21150 echo $ac_n "(cached) $ac_c" 1>&6
21152 cat > conftest.$ac_ext <<EOF
21153 #line 21154 "configure"
21154 #include "confdefs.h"
21155 #include <sys/types.h>
21156 #include <signal.h>
21161 extern "C" void (*signal (int, void (*)(int)))(int);
21163 void (*signal ()) ();
21170 if { (eval echo configure:21171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21172 ac_cv_type_signal=void
21174 echo "configure: failed program was:" >&5
21175 cat conftest.$ac_ext >&5
21177 ac_cv_type_signal=int
21182 echo "$ac_t""$ac_cv_type_signal" 1>&6
21183 cat >> confdefs.h <<EOF
21184 #define RETSIGTYPE $ac_cv_type_signal
21188 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21189 echo "configure:21190: checking for size_t" >&5
21190 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21191 echo $ac_n "(cached) $ac_c" 1>&6
21193 cat > conftest.$ac_ext <<EOF
21194 #line 21195 "configure"
21195 #include "confdefs.h"
21196 #include <sys/types.h>
21198 #include <stdlib.h>
21199 #include <stddef.h>
21203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21204 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21206 eval "ac_cv_type_size_t=yes"
21209 eval "ac_cv_type_size_t=no"
21214 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21215 echo "$ac_t""yes" 1>&6
21217 echo "$ac_t""no" 1>&6
21218 cat >> confdefs.h <<EOF
21219 #define size_t unsigned
21225 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21226 echo "configure:21227: checking for ssize_t" >&5
21227 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21228 echo $ac_n "(cached) $ac_c" 1>&6
21230 cat > conftest.$ac_ext <<EOF
21231 #line 21232 "configure"
21232 #include "confdefs.h"
21233 #include <sys/types.h>
21235 #include <stdlib.h>
21236 #include <stddef.h>
21240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21241 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21243 eval "ac_cv_type_ssize_t=yes"
21246 eval "ac_cv_type_ssize_t=no"
21251 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21252 echo "$ac_t""yes" 1>&6
21254 echo "$ac_t""no" 1>&6
21255 cat >> confdefs.h <<EOF
21256 #define ssize_t signed int
21261 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21262 echo "configure:21263: checking for caddr_t" >&5
21263 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21264 echo $ac_n "(cached) $ac_c" 1>&6
21266 cat > conftest.$ac_ext <<EOF
21267 #line 21268 "configure"
21268 #include "confdefs.h"
21269 #include <sys/types.h>
21271 #include <stdlib.h>
21272 #include <stddef.h>
21276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21277 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21279 eval "ac_cv_type_caddr_t=yes"
21282 eval "ac_cv_type_caddr_t=no"
21287 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21288 echo "$ac_t""yes" 1>&6
21290 echo "$ac_t""no" 1>&6
21291 cat >> confdefs.h <<EOF
21292 #define caddr_t char *
21298 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21299 echo "configure:21300: checking for socklen_t" >&5
21300 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21301 echo $ac_n "(cached) $ac_c" 1>&6
21303 cat > conftest.$ac_ext <<EOF
21304 #line 21305 "configure"
21305 #include "confdefs.h"
21307 #ifdef HAVE_SYS_TYPES_H
21308 #include <sys/types.h>
21310 #ifdef HAVE_SYS_SOCKET_H
21311 #include <sys/socket.h>
21318 if { (eval echo configure:21319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21320 ol_cv_type_socklen_t=yes
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21325 ol_cv_type_socklen_t=no
21330 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21331 if test $ol_cv_type_socklen_t = no; then
21332 cat >> confdefs.h <<\EOF
21333 #define socklen_t int
21338 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21339 echo "configure:21340: checking for member st_blksize in aggregate type struct stat" >&5
21340 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21341 echo $ac_n "(cached) $ac_c" 1>&6
21343 cat > conftest.$ac_ext <<EOF
21344 #line 21345 "configure"
21345 #include "confdefs.h"
21346 #include <sys/types.h>
21347 #include <sys/stat.h>
21349 struct stat foo; foo.st_blksize;
21352 if { (eval echo configure:21353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21354 ac_cv_c_struct_member_st_blksize=yes
21356 echo "configure: failed program was:" >&5
21357 cat conftest.$ac_ext >&5
21359 ac_cv_c_struct_member_st_blksize=no
21364 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21365 st_blksize="$ac_cv_c_struct_member_st_blksize"
21366 if test $ac_cv_c_struct_member_st_blksize = yes; then
21367 cat >> confdefs.h <<\EOF
21368 #define HAVE_ST_BLKSIZE 1
21373 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21374 echo "configure:21375: checking whether time.h and sys/time.h may both be included" >&5
21375 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21376 echo $ac_n "(cached) $ac_c" 1>&6
21378 cat > conftest.$ac_ext <<EOF
21379 #line 21380 "configure"
21380 #include "confdefs.h"
21381 #include <sys/types.h>
21382 #include <sys/time.h>
21388 if { (eval echo configure:21389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21390 ac_cv_header_time=yes
21392 echo "configure: failed program was:" >&5
21393 cat conftest.$ac_ext >&5
21395 ac_cv_header_time=no
21400 echo "$ac_t""$ac_cv_header_time" 1>&6
21401 if test $ac_cv_header_time = yes; then
21402 cat >> confdefs.h <<\EOF
21403 #define TIME_WITH_SYS_TIME 1
21408 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21409 echo "configure:21410: checking whether struct tm is in sys/time.h or time.h" >&5
21410 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21411 echo $ac_n "(cached) $ac_c" 1>&6
21413 cat > conftest.$ac_ext <<EOF
21414 #line 21415 "configure"
21415 #include "confdefs.h"
21416 #include <sys/types.h>
21419 struct tm *tp; tp->tm_sec;
21422 if { (eval echo configure:21423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21424 ac_cv_struct_tm=time.h
21426 echo "configure: failed program was:" >&5
21427 cat conftest.$ac_ext >&5
21429 ac_cv_struct_tm=sys/time.h
21434 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21435 if test $ac_cv_struct_tm = sys/time.h; then
21436 cat >> confdefs.h <<\EOF
21437 #define TM_IN_SYS_TIME 1
21442 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21443 echo "configure:21444: checking for uid_t in sys/types.h" >&5
21444 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21445 echo $ac_n "(cached) $ac_c" 1>&6
21447 cat > conftest.$ac_ext <<EOF
21448 #line 21449 "configure"
21449 #include "confdefs.h"
21450 #include <sys/types.h>
21452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21453 egrep "uid_t" >/dev/null 2>&1; then
21455 ac_cv_type_uid_t=yes
21458 ac_cv_type_uid_t=no
21464 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21465 if test $ac_cv_type_uid_t = no; then
21466 cat >> confdefs.h <<\EOF
21470 cat >> confdefs.h <<\EOF
21476 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21477 echo "configure:21478: checking for sig_atomic_t" >&5
21478 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21479 echo $ac_n "(cached) $ac_c" 1>&6
21481 cat > conftest.$ac_ext <<EOF
21482 #line 21483 "configure"
21483 #include "confdefs.h"
21484 #include <signal.h>
21486 sig_atomic_t atomic;
21489 if { (eval echo configure:21490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21491 ol_cv_type_sig_atomic_t=yes
21493 echo "configure: failed program was:" >&5
21494 cat conftest.$ac_ext >&5
21496 ol_cv_type_sig_atomic_t=no
21501 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21502 if test $ol_cv_type_sig_atomic_t = no; then
21503 cat >> confdefs.h <<\EOF
21504 #define sig_atomic_t int
21511 # test for pw_gecos in struct passwd
21512 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21513 echo "configure:21514: checking struct passwd for pw_gecos" >&5
21514 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21515 echo $ac_n "(cached) $ac_c" 1>&6
21518 cat > conftest.$ac_ext <<EOF
21519 #line 21520 "configure"
21520 #include "confdefs.h"
21525 pwd.pw_gecos = pwd.pw_name;
21529 if { (eval echo configure:21530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21531 ol_cv_struct_passwd_pw_gecos=yes
21533 echo "configure: failed program was:" >&5
21534 cat conftest.$ac_ext >&5
21536 ol_cv_struct_passwd_pw_gecos=no
21541 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21542 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21543 cat >> confdefs.h <<\EOF
21544 #define HAVE_PW_GECOS 1
21549 # test for pw_passwd in struct passwd
21550 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21551 echo "configure:21552: checking struct passwd for pw_passwd" >&5
21552 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21553 echo $ac_n "(cached) $ac_c" 1>&6
21556 cat > conftest.$ac_ext <<EOF
21557 #line 21558 "configure"
21558 #include "confdefs.h"
21563 pwd.pw_passwd = pwd.pw_name;
21567 if { (eval echo configure:21568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21569 ol_cv_struct_passwd_pw_passwd=yes
21571 echo "configure: failed program was:" >&5
21572 cat conftest.$ac_ext >&5
21574 ol_cv_struct_passwd_pw_passwd=no
21579 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21580 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21581 cat >> confdefs.h <<\EOF
21582 #define HAVE_PW_PASSWD 1
21588 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21589 echo "configure:21590: checking if toupper() requires islower()" >&5
21590 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21591 echo $ac_n "(cached) $ac_c" 1>&6
21594 if test "$cross_compiling" = yes; then
21595 ol_cv_c_upper_lower=safe
21597 cat > conftest.$ac_ext <<EOF
21598 #line 21599 "configure"
21599 #include "confdefs.h"
21604 if ('C' == toupper('C'))
21610 if { (eval echo configure:21611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21612 ol_cv_c_upper_lower=no
21614 echo "configure: failed program was:" >&5
21615 cat conftest.$ac_ext >&5
21617 ol_cv_c_upper_lower=yes
21624 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21625 if test $ol_cv_c_upper_lower != no ; then
21626 cat >> confdefs.h <<\EOF
21627 #define C_UPPER_LOWER 1
21632 echo $ac_n "checking for working const""... $ac_c" 1>&6
21633 echo "configure:21634: checking for working const" >&5
21634 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21635 echo $ac_n "(cached) $ac_c" 1>&6
21637 cat > conftest.$ac_ext <<EOF
21638 #line 21639 "configure"
21639 #include "confdefs.h"
21643 /* Ultrix mips cc rejects this. */
21644 typedef int charset[2]; const charset x;
21645 /* SunOS 4.1.1 cc rejects this. */
21646 char const *const *ccp;
21648 /* NEC SVR4.0.2 mips cc rejects this. */
21649 struct point {int x, y;};
21650 static struct point const zero = {0,0};
21651 /* AIX XL C 1.02.0.0 rejects this.
21652 It does not let you subtract one const X* pointer from another in an arm
21653 of an if-expression whose if-part is not a constant expression */
21654 const char *g = "string";
21655 ccp = &g + (g ? g-g : 0);
21656 /* HPUX 7.0 cc rejects these. */
21659 ccp = (char const *const *) p;
21660 { /* SCO 3.2v4 cc rejects this. */
21662 char const *s = 0 ? (char *) 0 : (char const *) 0;
21666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21667 int x[] = {25, 17};
21668 const int *foo = &x[0];
21671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21672 typedef const int *iptr;
21676 { /* AIX XL C 1.02.0.0 rejects this saying
21677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21678 struct s { int j; const int *ap[3]; };
21679 struct s *b; b->j = 5;
21681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21682 const int foo = 10;
21687 if { (eval echo configure:21688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21691 echo "configure: failed program was:" >&5
21692 cat conftest.$ac_ext >&5
21699 echo "$ac_t""$ac_cv_c_const" 1>&6
21700 if test $ac_cv_c_const = no; then
21701 cat >> confdefs.h <<\EOF
21707 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21708 echo "configure:21709: checking if compiler understands volatile" >&5
21709 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21710 echo $ac_n "(cached) $ac_c" 1>&6
21712 cat > conftest.$ac_ext <<EOF
21713 #line 21714 "configure"
21714 #include "confdefs.h"
21717 volatile int a; int * volatile b = x ? &y : &z;
21718 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21722 if { (eval echo configure:21723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21724 ol_cv_c_volatile=yes
21726 echo "configure: failed program was:" >&5
21727 cat conftest.$ac_ext >&5
21729 ol_cv_c_volatile=no
21734 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21735 if test $ol_cv_c_volatile = yes; then
21738 cat >> confdefs.h <<\EOF
21745 if test $cross_compiling = yes ; then
21746 cat >> confdefs.h <<\EOF
21747 #define CROSS_COMPILING 1
21751 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21752 echo "configure:21753: checking whether byte ordering is bigendian" >&5
21753 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21754 echo $ac_n "(cached) $ac_c" 1>&6
21756 ac_cv_c_bigendian=unknown
21757 # See if sys/param.h defines the BYTE_ORDER macro.
21758 cat > conftest.$ac_ext <<EOF
21759 #line 21760 "configure"
21760 #include "confdefs.h"
21761 #include <sys/types.h>
21762 #include <sys/param.h>
21765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21766 bogus endian macros
21770 if { (eval echo configure:21771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21772 # It does; now see whether it defined to BIG_ENDIAN or not.
21773 cat > conftest.$ac_ext <<EOF
21774 #line 21775 "configure"
21775 #include "confdefs.h"
21776 #include <sys/types.h>
21777 #include <sys/param.h>
21780 #if BYTE_ORDER != BIG_ENDIAN
21785 if { (eval echo configure:21786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21787 ac_cv_c_bigendian=yes
21789 echo "configure: failed program was:" >&5
21790 cat conftest.$ac_ext >&5
21792 ac_cv_c_bigendian=no
21796 echo "configure: failed program was:" >&5
21797 cat conftest.$ac_ext >&5
21800 if test $ac_cv_c_bigendian = unknown; then
21801 if test "$cross_compiling" = yes; then
21802 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21804 cat > conftest.$ac_ext <<EOF
21805 #line 21806 "configure"
21806 #include "confdefs.h"
21808 /* Are we little or big endian? From Harbison&Steele. */
21812 char c[sizeof (long)];
21815 exit (u.c[sizeof (long) - 1] == 1);
21818 if { (eval echo configure:21819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21820 ac_cv_c_bigendian=no
21822 echo "configure: failed program was:" >&5
21823 cat conftest.$ac_ext >&5
21825 ac_cv_c_bigendian=yes
21833 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21834 if test $ac_cv_c_bigendian = yes; then
21835 cat >> confdefs.h <<\EOF
21836 #define WORDS_BIGENDIAN 1
21843 echo $ac_n "checking size of short""... $ac_c" 1>&6
21844 echo "configure:21845: checking size of short" >&5
21845 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21846 echo $ac_n "(cached) $ac_c" 1>&6
21848 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21849 cat > conftest.$ac_ext <<EOF
21850 #line 21851 "configure"
21851 #include "confdefs.h"
21852 #include "confdefs.h"
21853 #include <sys/types.h>
21857 switch (0) case 0: case (sizeof (short) == $ac_size):;
21860 if { (eval echo configure:21861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21862 ac_cv_sizeof_short=$ac_size
21864 echo "configure: failed program was:" >&5
21865 cat conftest.$ac_ext >&5
21868 if test x$ac_cv_sizeof_short != x ; then break; fi
21873 if test x$ac_cv_sizeof_short = x ; then
21874 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21876 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21877 cat >> confdefs.h <<EOF
21878 #define SIZEOF_SHORT $ac_cv_sizeof_short
21882 echo $ac_n "checking size of int""... $ac_c" 1>&6
21883 echo "configure:21884: checking size of int" >&5
21884 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21885 echo $ac_n "(cached) $ac_c" 1>&6
21887 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21888 cat > conftest.$ac_ext <<EOF
21889 #line 21890 "configure"
21890 #include "confdefs.h"
21891 #include "confdefs.h"
21892 #include <sys/types.h>
21896 switch (0) case 0: case (sizeof (int) == $ac_size):;
21899 if { (eval echo configure:21900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21901 ac_cv_sizeof_int=$ac_size
21903 echo "configure: failed program was:" >&5
21904 cat conftest.$ac_ext >&5
21907 if test x$ac_cv_sizeof_int != x ; then break; fi
21912 if test x$ac_cv_sizeof_int = x ; then
21913 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21915 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21916 cat >> confdefs.h <<EOF
21917 #define SIZEOF_INT $ac_cv_sizeof_int
21921 echo $ac_n "checking size of long""... $ac_c" 1>&6
21922 echo "configure:21923: checking size of long" >&5
21923 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21924 echo $ac_n "(cached) $ac_c" 1>&6
21926 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21927 cat > conftest.$ac_ext <<EOF
21928 #line 21929 "configure"
21929 #include "confdefs.h"
21930 #include "confdefs.h"
21931 #include <sys/types.h>
21935 switch (0) case 0: case (sizeof (long) == $ac_size):;
21938 if { (eval echo configure:21939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21940 ac_cv_sizeof_long=$ac_size
21942 echo "configure: failed program was:" >&5
21943 cat conftest.$ac_ext >&5
21946 if test x$ac_cv_sizeof_long != x ; then break; fi
21951 if test x$ac_cv_sizeof_long = x ; then
21952 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21954 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21955 cat >> confdefs.h <<EOF
21956 #define SIZEOF_LONG $ac_cv_sizeof_long
21961 if test "$ac_cv_sizeof_int" -lt 4 ; then
21962 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21964 cat >> confdefs.h <<\EOF
21965 #define LBER_INT_T long
21969 cat >> confdefs.h <<\EOF
21970 #define LBER_INT_T int
21975 cat >> confdefs.h <<\EOF
21976 #define LBER_LEN_T long
21979 cat >> confdefs.h <<\EOF
21980 #define LBER_SOCKET_T int
21983 cat >> confdefs.h <<\EOF
21984 #define LBER_TAG_T long
21988 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21989 echo "configure:21990: checking for 8-bit clean memcmp" >&5
21990 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21991 echo $ac_n "(cached) $ac_c" 1>&6
21993 if test "$cross_compiling" = yes; then
21994 ac_cv_func_memcmp_clean=no
21996 cat > conftest.$ac_ext <<EOF
21997 #line 21998 "configure"
21998 #include "confdefs.h"
22002 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22003 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22007 if { (eval echo configure:22008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22009 ac_cv_func_memcmp_clean=yes
22011 echo "configure: failed program was:" >&5
22012 cat conftest.$ac_ext >&5
22014 ac_cv_func_memcmp_clean=no
22021 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22022 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22024 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22025 echo "configure:22026: checking for strftime" >&5
22026 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22027 echo $ac_n "(cached) $ac_c" 1>&6
22029 cat > conftest.$ac_ext <<EOF
22030 #line 22031 "configure"
22031 #include "confdefs.h"
22032 /* System header to define __stub macros and hopefully few prototypes,
22033 which can conflict with char strftime(); below. */
22034 #include <assert.h>
22035 /* Override any gcc2 internal prototype to avoid an error. */
22036 /* We use char because int might match the return type of a gcc2
22037 builtin and then its argument prototype would still apply. */
22043 /* The GNU C library defines this for functions which it implements
22044 to always fail with ENOSYS. Some functions are actually named
22045 something starting with __ and the normal name is an alias. */
22046 #if defined (__stub_strftime) || defined (__stub___strftime)
22054 if { (eval echo configure:22055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22056 eval "ac_cv_func_strftime=yes"
22058 echo "configure: failed program was:" >&5
22059 cat conftest.$ac_ext >&5
22061 eval "ac_cv_func_strftime=no"
22066 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22067 echo "$ac_t""yes" 1>&6
22068 cat >> confdefs.h <<\EOF
22069 #define HAVE_STRFTIME 1
22073 echo "$ac_t""no" 1>&6
22074 # strftime is in -lintl on SCO UNIX.
22075 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22076 echo "configure:22077: checking for strftime in -lintl" >&5
22077 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22078 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22079 echo $ac_n "(cached) $ac_c" 1>&6
22081 ac_save_LIBS="$LIBS"
22082 LIBS="-lintl $LIBS"
22083 cat > conftest.$ac_ext <<EOF
22084 #line 22085 "configure"
22085 #include "confdefs.h"
22086 /* Override any gcc2 internal prototype to avoid an error. */
22087 /* We use char because int might match the return type of a gcc2
22088 builtin and then its argument prototype would still apply. */
22095 if { (eval echo configure:22096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22097 eval "ac_cv_lib_$ac_lib_var=yes"
22099 echo "configure: failed program was:" >&5
22100 cat conftest.$ac_ext >&5
22102 eval "ac_cv_lib_$ac_lib_var=no"
22105 LIBS="$ac_save_LIBS"
22108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22109 echo "$ac_t""yes" 1>&6
22110 cat >> confdefs.h <<\EOF
22111 #define HAVE_STRFTIME 1
22114 LIBS="-lintl $LIBS"
22116 echo "$ac_t""no" 1>&6
22122 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22123 echo "configure:22124: checking for inet_aton()" >&5
22124 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22125 echo $ac_n "(cached) $ac_c" 1>&6
22127 cat > conftest.$ac_ext <<EOF
22128 #line 22129 "configure"
22129 #include "confdefs.h"
22131 #ifdef HAVE_SYS_TYPES_H
22132 # include <sys/types.h>
22134 #ifdef HAVE_SYS_SOCKET_H
22135 # include <sys/socket.h>
22136 # ifdef HAVE_SYS_SELECT_H
22137 # include <sys/select.h>
22139 # include <netinet/in.h>
22140 # ifdef HAVE_ARPA_INET_H
22141 # include <arpa/inet.h>
22147 int rc = inet_aton( "255.255.255.255", &in );
22150 if { (eval echo configure:22151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22152 ol_cv_func_inet_aton=yes
22154 echo "configure: failed program was:" >&5
22155 cat conftest.$ac_ext >&5
22157 ol_cv_func_inet_aton=no
22162 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22163 if test $ol_cv_func_inet_aton != no; then
22164 cat >> confdefs.h <<\EOF
22165 #define HAVE_INET_ATON 1
22171 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22172 echo "configure:22173: checking for _spawnlp" >&5
22173 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22174 echo $ac_n "(cached) $ac_c" 1>&6
22176 cat > conftest.$ac_ext <<EOF
22177 #line 22178 "configure"
22178 #include "confdefs.h"
22179 /* System header to define __stub macros and hopefully few prototypes,
22180 which can conflict with char _spawnlp(); below. */
22181 #include <assert.h>
22182 /* Override any gcc2 internal prototype to avoid an error. */
22183 /* We use char because int might match the return type of a gcc2
22184 builtin and then its argument prototype would still apply. */
22190 /* The GNU C library defines this for functions which it implements
22191 to always fail with ENOSYS. Some functions are actually named
22192 something starting with __ and the normal name is an alias. */
22193 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22201 if { (eval echo configure:22202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22203 eval "ac_cv_func__spawnlp=yes"
22205 echo "configure: failed program was:" >&5
22206 cat conftest.$ac_ext >&5
22208 eval "ac_cv_func__spawnlp=no"
22213 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22214 echo "$ac_t""yes" 1>&6
22215 cat >> confdefs.h <<\EOF
22216 #define HAVE_SPAWNLP 1
22220 echo "$ac_t""no" 1>&6
22224 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22225 echo "configure:22226: checking for _snprintf" >&5
22226 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22227 echo $ac_n "(cached) $ac_c" 1>&6
22229 cat > conftest.$ac_ext <<EOF
22230 #line 22231 "configure"
22231 #include "confdefs.h"
22232 /* System header to define __stub macros and hopefully few prototypes,
22233 which can conflict with char _snprintf(); below. */
22234 #include <assert.h>
22235 /* Override any gcc2 internal prototype to avoid an error. */
22236 /* We use char because int might match the return type of a gcc2
22237 builtin and then its argument prototype would still apply. */
22243 /* The GNU C library defines this for functions which it implements
22244 to always fail with ENOSYS. Some functions are actually named
22245 something starting with __ and the normal name is an alias. */
22246 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22254 if { (eval echo configure:22255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22256 eval "ac_cv_func__snprintf=yes"
22258 echo "configure: failed program was:" >&5
22259 cat conftest.$ac_ext >&5
22261 eval "ac_cv_func__snprintf=no"
22266 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22267 echo "$ac_t""yes" 1>&6
22268 ac_cv_func_snprintf=yes
22269 cat >> confdefs.h <<\EOF
22270 #define snprintf _snprintf
22275 echo "$ac_t""no" 1>&6
22279 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22280 echo "configure:22281: checking for _vsnprintf" >&5
22281 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22282 echo $ac_n "(cached) $ac_c" 1>&6
22284 cat > conftest.$ac_ext <<EOF
22285 #line 22286 "configure"
22286 #include "confdefs.h"
22287 /* System header to define __stub macros and hopefully few prototypes,
22288 which can conflict with char _vsnprintf(); below. */
22289 #include <assert.h>
22290 /* Override any gcc2 internal prototype to avoid an error. */
22291 /* We use char because int might match the return type of a gcc2
22292 builtin and then its argument prototype would still apply. */
22298 /* The GNU C library defines this for functions which it implements
22299 to always fail with ENOSYS. Some functions are actually named
22300 something starting with __ and the normal name is an alias. */
22301 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22309 if { (eval echo configure:22310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22311 eval "ac_cv_func__vsnprintf=yes"
22313 echo "configure: failed program was:" >&5
22314 cat conftest.$ac_ext >&5
22316 eval "ac_cv_func__vsnprintf=no"
22321 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22322 echo "$ac_t""yes" 1>&6
22323 ac_cv_func_vsnprintf=yes
22324 cat >> confdefs.h <<\EOF
22325 #define vsnprintf _vsnprintf
22330 echo "$ac_t""no" 1>&6
22334 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22335 echo "configure:22336: checking for vprintf" >&5
22336 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22337 echo $ac_n "(cached) $ac_c" 1>&6
22339 cat > conftest.$ac_ext <<EOF
22340 #line 22341 "configure"
22341 #include "confdefs.h"
22342 /* System header to define __stub macros and hopefully few prototypes,
22343 which can conflict with char vprintf(); below. */
22344 #include <assert.h>
22345 /* Override any gcc2 internal prototype to avoid an error. */
22346 /* We use char because int might match the return type of a gcc2
22347 builtin and then its argument prototype would still apply. */
22353 /* The GNU C library defines this for functions which it implements
22354 to always fail with ENOSYS. Some functions are actually named
22355 something starting with __ and the normal name is an alias. */
22356 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22364 if { (eval echo configure:22365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22366 eval "ac_cv_func_vprintf=yes"
22368 echo "configure: failed program was:" >&5
22369 cat conftest.$ac_ext >&5
22371 eval "ac_cv_func_vprintf=no"
22376 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22377 echo "$ac_t""yes" 1>&6
22378 cat >> confdefs.h <<\EOF
22379 #define HAVE_VPRINTF 1
22383 echo "$ac_t""no" 1>&6
22386 if test "$ac_cv_func_vprintf" != yes; then
22387 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22388 echo "configure:22389: checking for _doprnt" >&5
22389 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22390 echo $ac_n "(cached) $ac_c" 1>&6
22392 cat > conftest.$ac_ext <<EOF
22393 #line 22394 "configure"
22394 #include "confdefs.h"
22395 /* System header to define __stub macros and hopefully few prototypes,
22396 which can conflict with char _doprnt(); below. */
22397 #include <assert.h>
22398 /* Override any gcc2 internal prototype to avoid an error. */
22399 /* We use char because int might match the return type of a gcc2
22400 builtin and then its argument prototype would still apply. */
22406 /* The GNU C library defines this for functions which it implements
22407 to always fail with ENOSYS. Some functions are actually named
22408 something starting with __ and the normal name is an alias. */
22409 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22417 if { (eval echo configure:22418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22419 eval "ac_cv_func__doprnt=yes"
22421 echo "configure: failed program was:" >&5
22422 cat conftest.$ac_ext >&5
22424 eval "ac_cv_func__doprnt=no"
22429 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22430 echo "$ac_t""yes" 1>&6
22431 cat >> confdefs.h <<\EOF
22432 #define HAVE_DOPRNT 1
22436 echo "$ac_t""no" 1>&6
22442 if test $ac_cv_func_vprintf = yes ; then
22443 for ac_func in vsnprintf vsprintf
22445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22446 echo "configure:22447: checking for $ac_func" >&5
22447 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22448 echo $ac_n "(cached) $ac_c" 1>&6
22450 cat > conftest.$ac_ext <<EOF
22451 #line 22452 "configure"
22452 #include "confdefs.h"
22453 /* System header to define __stub macros and hopefully few prototypes,
22454 which can conflict with char $ac_func(); below. */
22455 #include <assert.h>
22456 /* Override any gcc2 internal prototype to avoid an error. */
22457 /* We use char because int might match the return type of a gcc2
22458 builtin and then its argument prototype would still apply. */
22464 /* The GNU C library defines this for functions which it implements
22465 to always fail with ENOSYS. Some functions are actually named
22466 something starting with __ and the normal name is an alias. */
22467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22475 if { (eval echo configure:22476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22477 eval "ac_cv_func_$ac_func=yes"
22479 echo "configure: failed program was:" >&5
22480 cat conftest.$ac_ext >&5
22482 eval "ac_cv_func_$ac_func=no"
22487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22488 echo "$ac_t""yes" 1>&6
22489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22490 cat >> confdefs.h <<EOF
22491 #define $ac_tr_func 1
22495 echo "$ac_t""no" 1>&6
22557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22558 echo "configure:22559: checking for $ac_func" >&5
22559 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22560 echo $ac_n "(cached) $ac_c" 1>&6
22562 cat > conftest.$ac_ext <<EOF
22563 #line 22564 "configure"
22564 #include "confdefs.h"
22565 /* System header to define __stub macros and hopefully few prototypes,
22566 which can conflict with char $ac_func(); below. */
22567 #include <assert.h>
22568 /* Override any gcc2 internal prototype to avoid an error. */
22569 /* We use char because int might match the return type of a gcc2
22570 builtin and then its argument prototype would still apply. */
22576 /* The GNU C library defines this for functions which it implements
22577 to always fail with ENOSYS. Some functions are actually named
22578 something starting with __ and the normal name is an alias. */
22579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22587 if { (eval echo configure:22588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22589 eval "ac_cv_func_$ac_func=yes"
22591 echo "configure: failed program was:" >&5
22592 cat conftest.$ac_ext >&5
22594 eval "ac_cv_func_$ac_func=no"
22599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22600 echo "$ac_t""yes" 1>&6
22601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22602 cat >> confdefs.h <<EOF
22603 #define $ac_tr_func 1
22607 echo "$ac_t""no" 1>&6
22612 for ac_func in getopt
22614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22615 echo "configure:22616: checking for $ac_func" >&5
22616 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22617 echo $ac_n "(cached) $ac_c" 1>&6
22619 cat > conftest.$ac_ext <<EOF
22620 #line 22621 "configure"
22621 #include "confdefs.h"
22622 /* System header to define __stub macros and hopefully few prototypes,
22623 which can conflict with char $ac_func(); below. */
22624 #include <assert.h>
22625 /* Override any gcc2 internal prototype to avoid an error. */
22626 /* We use char because int might match the return type of a gcc2
22627 builtin and then its argument prototype would still apply. */
22633 /* The GNU C library defines this for functions which it implements
22634 to always fail with ENOSYS. Some functions are actually named
22635 something starting with __ and the normal name is an alias. */
22636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22644 if { (eval echo configure:22645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22646 eval "ac_cv_func_$ac_func=yes"
22648 echo "configure: failed program was:" >&5
22649 cat conftest.$ac_ext >&5
22651 eval "ac_cv_func_$ac_func=no"
22656 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22657 echo "$ac_t""yes" 1>&6
22658 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22659 cat >> confdefs.h <<EOF
22660 #define $ac_tr_func 1
22664 echo "$ac_t""no" 1>&6
22665 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22671 if test "$ac_cv_func_getopt" != yes; then
22672 LIBSRCS="$LIBSRCS getopt.c"
22675 # Check Configuration
22676 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22677 echo "configure:22678: checking declaration of sys_errlist" >&5
22678 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22679 echo $ac_n "(cached) $ac_c" 1>&6
22682 cat > conftest.$ac_ext <<EOF
22683 #line 22684 "configure"
22684 #include "confdefs.h"
22687 #include <sys/types.h>
22690 #include <stdlib.h>
22693 char *c = (char *) *sys_errlist
22696 if { (eval echo configure:22697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22698 ol_cv_dcl_sys_errlist=yes
22699 ol_cv_have_sys_errlist=yes
22701 echo "configure: failed program was:" >&5
22702 cat conftest.$ac_ext >&5
22704 ol_cv_dcl_sys_errlist=no
22709 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22711 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22712 if test $ol_cv_dcl_sys_errlist = no ; then
22713 cat >> confdefs.h <<\EOF
22714 #define DECL_SYS_ERRLIST 1
22718 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22719 echo "configure:22720: checking existence of sys_errlist" >&5
22720 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22721 echo $ac_n "(cached) $ac_c" 1>&6
22724 cat > conftest.$ac_ext <<EOF
22725 #line 22726 "configure"
22726 #include "confdefs.h"
22729 char *c = (char *) *sys_errlist
22732 if { (eval echo configure:22733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22734 ol_cv_have_sys_errlist=yes
22736 echo "configure: failed program was:" >&5
22737 cat conftest.$ac_ext >&5
22739 ol_cv_have_sys_errlist=no
22744 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22746 if test $ol_cv_have_sys_errlist = yes ; then
22747 cat >> confdefs.h <<\EOF
22748 #define HAVE_SYS_ERRLIST 1
22755 if test "$ol_enable_debug" != no ; then
22756 cat >> confdefs.h <<\EOF
22757 #define LDAP_DEBUG 1
22761 if test "$ol_enable_syslog" = yes ; then
22762 cat >> confdefs.h <<\EOF
22763 #define LDAP_SYSLOG 1
22767 if test "$ol_enable_cache" = no ; then
22768 cat >> confdefs.h <<\EOF
22769 #define LDAP_NOCACHE 1
22773 if test "$ol_link_kbind" != no ; then
22774 cat >> confdefs.h <<\EOF
22775 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
22779 if test "$ol_enable_proctitle" != no ; then
22780 cat >> confdefs.h <<\EOF
22781 #define LDAP_PROCTITLE 1
22785 if test "$ol_enable_referrals" != no ; then
22786 cat >> confdefs.h <<\EOF
22787 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
22791 if test "$ol_enable_local" != no; then
22792 cat >> confdefs.h <<\EOF
22793 #define LDAP_PF_LOCAL 1
22797 if test "$ol_link_ipv6" != no; then
22798 cat >> confdefs.h <<\EOF
22799 #define LDAP_PF_INET6 1
22803 if test "$ol_enable_cleartext" != no ; then
22804 cat >> confdefs.h <<\EOF
22805 #define SLAPD_CLEARTEXT 1
22809 if test "$ol_enable_crypt" != no ; then
22810 cat >> confdefs.h <<\EOF
22811 #define SLAPD_CRYPT 1
22815 if test "$ol_link_kpasswd" != no ; then
22816 cat >> confdefs.h <<\EOF
22817 #define SLAPD_KPASSWD 1
22821 if test "$ol_link_spasswd" != no ; then
22822 cat >> confdefs.h <<\EOF
22823 #define SLAPD_SPASSWD 1
22827 if test "$ol_enable_multimaster" != no ; then
22828 cat >> confdefs.h <<\EOF
22829 #define SLAPD_MULTIMASTER 1
22833 if test "$ol_enable_phonetic" != no ; then
22834 cat >> confdefs.h <<\EOF
22835 #define SLAPD_PHONETIC 1
22839 if test "$ol_enable_rlookups" != no ; then
22840 cat >> confdefs.h <<\EOF
22841 #define SLAPD_RLOOKUPS 1
22845 if test "$ol_enable_aci" != no ; then
22846 cat >> confdefs.h <<\EOF
22847 #define SLAPD_ACI_ENABLED 1
22852 if test "$ol_link_modules" != no ; then
22853 cat >> confdefs.h <<\EOF
22854 #define SLAPD_MODULES 1
22858 SLAPD_MODULES_LDFLAGS="-dlopen self"
22861 if test "$ol_enable_bdb" != no ; then
22862 cat >> confdefs.h <<\EOF
22863 #define SLAPD_BDB 1
22868 if test "$ol_with_bdb_module" != static ; then
22869 cat >> confdefs.h <<\EOF
22870 #define SLAPD_BDB_DYNAMIC 1
22874 BUILD_BDB_DYNAMIC=shared
22875 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22877 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22881 if test "$ol_link_dnssrv" != no ; then
22882 cat >> confdefs.h <<\EOF
22883 #define SLAPD_DNSSRV 1
22888 if test "$ol_with_dnssrv_module" != static ; then
22889 cat >> confdefs.h <<\EOF
22890 #define SLAPD_DNSSRV_DYNAMIC 1
22894 BUILD_DNSSRV_DYNAMIC=shared
22895 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22897 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22901 if test "$ol_enable_ldap" != no ; then
22902 cat >> confdefs.h <<\EOF
22903 #define SLAPD_LDAP 1
22908 if test "$ol_with_ldap_module" != static ; then
22909 cat >> confdefs.h <<\EOF
22910 #define SLAPD_LDAP_DYNAMIC 1
22914 BUILD_LDAP_DYNAMIC=shared
22915 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22917 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22921 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22922 cat >> confdefs.h <<\EOF
22923 #define SLAPD_LDBM 1
22928 if test "$ol_with_ldbm_module" != static ; then
22929 cat >> confdefs.h <<\EOF
22930 #define SLAPD_LDBM_DYNAMIC 1
22934 BUILD_LDBM_DYNAMIC=shared
22935 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22937 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22941 if test "$ol_enable_meta" != no ; then
22942 if test "$ol_enable_ldap" = no ; then
22943 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22945 if test "$ol_enable_rewrite" = no ; then
22946 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22948 cat >> confdefs.h <<\EOF
22949 #define SLAPD_META 1
22956 if test "$ol_with_meta_module" != static ; then
22957 cat >> confdefs.h <<\EOF
22958 #define SLAPD_META_DYNAMIC 1
22962 BUILD_META_DYNAMIC=shared
22963 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22965 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22969 if test "$ol_enable_monitor" != no ; then
22970 cat >> confdefs.h <<\EOF
22971 #define SLAPD_MONITOR 1
22976 if test "$ol_with_monitor_module" != static ; then
22977 cat >> confdefs.h <<\EOF
22978 #define SLAPD_MONITOR_DYNAMIC 1
22982 BUILD_MONITOR_DYNAMIC=shared
22983 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22985 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22989 if test "$ol_enable_null" != no ; then
22990 cat >> confdefs.h <<\EOF
22991 #define SLAPD_NULL 1
22996 if test "$ol_with_null_module" != static ; then
22997 cat >> confdefs.h <<\EOF
22998 #define SLAPD_NULL_DYNAMIC 1
23002 BUILD_NULL_DYNAMIC=shared
23003 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23005 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23009 if test "$ol_enable_passwd" != no ; then
23010 cat >> confdefs.h <<\EOF
23011 #define SLAPD_PASSWD 1
23016 if test "$ol_with_passwd_module" != static ; then
23017 cat >> confdefs.h <<\EOF
23018 #define SLAPD_PASSWD_DYNAMIC 1
23022 BUILD_PASSWD_DYNAMIC=shared
23023 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23025 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23029 if test "$ol_link_perl" != no ; then
23030 cat >> confdefs.h <<\EOF
23031 #define SLAPD_PERL 1
23036 if test "$ol_with_perl_module" != static ; then
23037 cat >> confdefs.h <<\EOF
23038 #define SLAPD_PERL_DYNAMIC 1
23042 BUILD_PERL_DYNAMIC=shared
23043 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23045 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23049 if test "$ol_enable_shell" != no ; then
23050 cat >> confdefs.h <<\EOF
23051 #define SLAPD_SHELL 1
23056 if test "$ol_with_shell_module" != static ; then
23057 cat >> confdefs.h <<\EOF
23058 #define SLAPD_SHELL_DYNAMIC 1
23062 BUILD_SHELL_DYNAMIC=shared
23063 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23065 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23069 if test "$ol_enable_tcl" != no ; then
23070 cat >> confdefs.h <<\EOF
23071 #define SLAPD_TCL 1
23076 if test "$ol_with_tcl_module" != static; then
23077 cat >> confdefs.h <<\EOF
23078 #define SLAPD_TCL_DYNAMIC 1
23082 BUILD_TCL_DYNAMIC=shared
23083 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
23085 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
23089 if test "$ol_link_sql" != no ; then
23090 cat >> confdefs.h <<\EOF
23091 #define SLAPD_SQL 1
23096 if test "$ol_with_sql_module" != static; then
23097 cat >> confdefs.h <<\EOF
23098 #define SLAPD_SQL_DYNAMIC 1
23102 BUILD_SQL_DYNAMIC=shared
23103 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23105 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23109 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23110 $BUILD_SLAPD = yes ; then
23114 if test "$ol_enable_rewrite" != no ; then
23115 cat >> confdefs.h <<\EOF
23116 #define ENABLE_REWRITE 1
23124 if test "$ac_cv_mingw32" = yes ; then
23126 SLAPD_MODULES_LDFLAGS=
23197 # Check whether --with-xxinstall or --without-xxinstall was given.
23198 if test "${with_xxinstall+set}" = set; then
23199 withval="$with_xxinstall"
23207 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23210 # Let make expand exec_prefix.
23211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23213 # Any assignment to VPATH causes Sun make to only execute
23214 # the first set of double-colon rules, so remove it if not needed.
23215 # If there is a colon in the path, we need to keep it.
23216 if test "x$srcdir" = x.; then
23217 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23220 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23222 DEFS=-DHAVE_CONFIG_H
23224 # Without the "./", some shells look in PATH for config.status.
23225 : ${CONFIG_STATUS=./config.status}
23227 echo creating $CONFIG_STATUS
23228 rm -f $CONFIG_STATUS
23229 cat > $CONFIG_STATUS <<EOF
23231 # Generated automatically by configure.
23232 # Run this file to recreate the current configuration.
23233 # This directory was configured as follows,
23234 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23236 # $0 $ac_configure_args
23238 # Compiler output produced by configure, useful for debugging
23239 # configure, is in ./config.log if it exists.
23241 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23244 case "\$ac_option" in
23245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23246 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23247 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23248 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23249 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23251 -help | --help | --hel | --he | --h)
23252 echo "\$ac_cs_usage"; exit 0 ;;
23253 *) echo "\$ac_cs_usage"; exit 1 ;;
23257 ac_given_srcdir=$srcdir
23258 ac_given_INSTALL="$INSTALL"
23260 trap 'rm -fr `echo "\
23261 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23262 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23263 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23264 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23265 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23266 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23267 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23268 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23269 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23270 include/Makefile:build/top.mk:include/Makefile.in \
23271 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23272 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23273 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23274 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23275 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23276 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23277 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23278 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23279 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23280 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23281 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23282 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23283 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23284 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23285 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23286 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23287 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23288 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23289 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23290 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23291 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23292 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23293 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23294 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23295 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23296 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23297 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23298 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23299 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23300 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23302 cat >> $CONFIG_STATUS <<EOF
23304 # Protect against being on the right side of a sed subst in config.status.
23305 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23306 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23310 s%@CFLAGS@%$CFLAGS%g
23311 s%@CPPFLAGS@%$CPPFLAGS%g
23312 s%@CXXFLAGS@%$CXXFLAGS%g
23313 s%@FFLAGS@%$FFLAGS%g
23315 s%@LDFLAGS@%$LDFLAGS%g
23317 s%@exec_prefix@%$exec_prefix%g
23318 s%@prefix@%$prefix%g
23319 s%@program_transform_name@%$program_transform_name%g
23320 s%@bindir@%$bindir%g
23321 s%@sbindir@%$sbindir%g
23322 s%@libexecdir@%$libexecdir%g
23323 s%@datadir@%$datadir%g
23324 s%@sysconfdir@%$sysconfdir%g
23325 s%@sharedstatedir@%$sharedstatedir%g
23326 s%@localstatedir@%$localstatedir%g
23327 s%@libdir@%$libdir%g
23328 s%@includedir@%$includedir%g
23329 s%@oldincludedir@%$oldincludedir%g
23330 s%@infodir@%$infodir%g
23331 s%@mandir@%$mandir%g
23333 s%@host_alias@%$host_alias%g
23334 s%@host_cpu@%$host_cpu%g
23335 s%@host_vendor@%$host_vendor%g
23336 s%@host_os@%$host_os%g
23337 s%@target@%$target%g
23338 s%@target_alias@%$target_alias%g
23339 s%@target_cpu@%$target_cpu%g
23340 s%@target_vendor@%$target_vendor%g
23341 s%@target_os@%$target_os%g
23343 s%@build_alias@%$build_alias%g
23344 s%@build_cpu@%$build_cpu%g
23345 s%@build_vendor@%$build_vendor%g
23346 s%@build_os@%$build_os%g
23347 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23348 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23349 s%@INSTALL_DATA@%$INSTALL_DATA%g
23350 s%@PACKAGE@%$PACKAGE%g
23351 s%@VERSION@%$VERSION%g
23352 s%@ACLOCAL@%$ACLOCAL%g
23353 s%@AUTOCONF@%$AUTOCONF%g
23354 s%@AUTOMAKE@%$AUTOMAKE%g
23355 s%@AUTOHEADER@%$AUTOHEADER%g
23356 s%@MAKEINFO@%$MAKEINFO%g
23357 s%@install_sh@%$install_sh%g
23360 s%@AMTARFLAGS@%$AMTARFLAGS%g
23361 s%@SET_MAKE@%$SET_MAKE%g
23362 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23363 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23364 s%@top_builddir@%$top_builddir%g
23365 s%@ldap_subdir@%$ldap_subdir%g
23369 s%@OBJEXT@%$OBJEXT%g
23370 s%@EXEEXT@%$EXEEXT%g
23372 s%@RANLIB@%$RANLIB%g
23374 s%@DLLTOOL@%$DLLTOOL%g
23376 s%@OBJDUMP@%$OBJDUMP%g
23378 s%@LIBTOOL@%$LIBTOOL%g
23380 s%@SENDMAIL@%$SENDMAIL%g
23381 s%@EDITOR@%$EDITOR%g
23382 s%@PERLBIN@%$PERLBIN%g
23383 s%@OL_MKDEP@%$OL_MKDEP%g
23384 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23385 s%@LIBOBJS@%$LIBOBJS%g
23386 s%@LIBSRCS@%$LIBSRCS%g
23388 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23389 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23390 s%@BUILD_BDB@%$BUILD_BDB%g
23391 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23392 s%@BUILD_LDAP@%$BUILD_LDAP%g
23393 s%@BUILD_LDBM@%$BUILD_LDBM%g
23394 s%@BUILD_META@%$BUILD_META%g
23395 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23396 s%@BUILD_NULL@%$BUILD_NULL%g
23397 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23398 s%@BUILD_PERL@%$BUILD_PERL%g
23399 s%@BUILD_SHELL@%$BUILD_SHELL%g
23400 s%@BUILD_SQL@%$BUILD_SQL%g
23401 s%@BUILD_TCL@%$BUILD_TCL%g
23402 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23403 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23404 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23405 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23406 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23407 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23408 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23409 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23410 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23411 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23412 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23413 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23414 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23415 s%@LDAP_LIBS@%$LDAP_LIBS%g
23416 s%@LDIF_LIBS@%$LDIF_LIBS%g
23417 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23418 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23419 s%@LDBM_LIBS@%$LDBM_LIBS%g
23420 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23421 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23422 s%@WRAP_LIBS@%$WRAP_LIBS%g
23423 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23424 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23425 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23426 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23427 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23428 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23429 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23430 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23431 s%@KRB4_LIBS@%$KRB4_LIBS%g
23432 s%@KRB5_LIBS@%$KRB5_LIBS%g
23433 s%@READLINE_LIBS@%$READLINE_LIBS%g
23434 s%@SASL_LIBS@%$SASL_LIBS%g
23435 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23436 s%@TLS_LIBS@%$TLS_LIBS%g
23437 s%@MODULES_LIBS@%$MODULES_LIBS%g
23438 s%@AUTH_LIBS@%$AUTH_LIBS%g
23439 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23440 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23441 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23442 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23447 cat >> $CONFIG_STATUS <<\EOF
23449 # Split the substitutions into bite-sized pieces for seds with
23450 # small command number limits, like on Digital OSF/1 and HP-UX.
23451 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23452 ac_file=1 # Number of current file.
23453 ac_beg=1 # First line for current file.
23454 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23457 while $ac_more_lines; do
23458 if test $ac_beg -gt 1; then
23459 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23461 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23463 if test ! -s conftest.s$ac_file; then
23464 ac_more_lines=false
23465 rm -f conftest.s$ac_file
23467 if test -z "$ac_sed_cmds"; then
23468 ac_sed_cmds="sed -f conftest.s$ac_file"
23470 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23472 ac_file=`expr $ac_file + 1`
23474 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23477 if test -z "$ac_sed_cmds"; then
23482 cat >> $CONFIG_STATUS <<EOF
23484 CONFIG_FILES=\${CONFIG_FILES-"\
23485 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23486 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23487 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23488 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23489 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23490 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23491 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23492 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23493 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23494 include/Makefile:build/top.mk:include/Makefile.in \
23495 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23496 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23497 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23498 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23499 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23500 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23501 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23502 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23503 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23504 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23505 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23506 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23507 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23508 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23509 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23510 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23511 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23512 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23513 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23514 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23515 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23516 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23517 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23518 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23519 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23520 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23521 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23522 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23523 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23526 cat >> $CONFIG_STATUS <<\EOF
23527 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23530 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23531 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23532 *) ac_file_in="${ac_file}.in" ;;
23535 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23537 # Remove last slash and all that follows it. Not all systems have dirname.
23538 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23539 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23540 # The file is in a subdirectory.
23541 test ! -d "$ac_dir" && mkdir "$ac_dir"
23542 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23543 # A "../" for each directory in $ac_dir_suffix.
23544 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23546 ac_dir_suffix= ac_dots=
23549 case "$ac_given_srcdir" in
23551 if test -z "$ac_dots"; then top_srcdir=.
23552 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23553 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23554 *) # Relative path.
23555 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23556 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23559 case "$ac_given_INSTALL" in
23560 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23561 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23564 echo creating "$ac_file"
23566 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23568 *[Mm]akefile*) ac_comsub="1i\\
23569 # $configure_input" ;;
23573 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23575 s%@configure_input@%$configure_input%g
23576 s%@srcdir@%$srcdir%g
23577 s%@top_srcdir@%$top_srcdir%g
23578 s%@INSTALL@%$INSTALL%g
23579 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23583 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23584 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23586 # ac_d sets the value in "#define NAME VALUE" lines.
23587 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23588 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23591 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23592 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23593 ac_uB='\([ ]\)%\1#\2define\3'
23596 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23597 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23598 ac_eB='$%\1#\2define\3'
23602 if test "${CONFIG_HEADERS+set}" != set; then
23604 cat >> $CONFIG_STATUS <<EOF
23605 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23607 cat >> $CONFIG_STATUS <<\EOF
23609 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23612 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23613 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23614 *) ac_file_in="${ac_file}.in" ;;
23617 echo creating $ac_file
23619 rm -f conftest.frag conftest.in conftest.out
23620 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23621 cat $ac_file_inputs > conftest.in
23625 # Transform confdefs.h into a sed script conftest.vals that substitutes
23626 # the proper values into config.h.in to produce config.h. And first:
23627 # Protect against being on the right side of a sed subst in config.status.
23628 # Protect against being in an unquoted here document in config.status.
23629 rm -f conftest.vals
23630 cat > conftest.hdr <<\EOF
23633 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23637 sed -n -f conftest.hdr confdefs.h > conftest.vals
23640 # This sed command replaces #undef with comments. This is necessary, for
23641 # example, in the case of _POSIX_SOURCE, which is predefined and required
23642 # on some systems where configure will not decide to define it.
23643 cat >> conftest.vals <<\EOF
23644 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23647 # Break up conftest.vals because some shells have a limit on
23648 # the size of here documents, and old seds have small limits too.
23650 rm -f conftest.tail
23653 ac_lines=`grep -c . conftest.vals`
23654 # grep -c gives empty output for an empty file on some AIX systems.
23655 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23656 # Write a limited-size here document to conftest.frag.
23657 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23658 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23660 sed -f conftest.frag conftest.in > conftest.out
23662 mv conftest.out conftest.in
23663 ' >> $CONFIG_STATUS
23664 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23665 rm -f conftest.vals
23666 mv conftest.tail conftest.vals
23668 rm -f conftest.vals
23670 cat >> $CONFIG_STATUS <<\EOF
23671 rm -f conftest.frag conftest.h
23672 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23673 cat conftest.in >> conftest.h
23675 if cmp -s $ac_file conftest.h 2>/dev/null; then
23676 echo "$ac_file is unchanged"
23679 # Remove last slash and all that follows it. Not all systems have dirname.
23680 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23681 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23682 # The file is in a subdirectory.
23683 test ! -d "$ac_dir" && mkdir "$ac_dir"
23686 mv conftest.h $ac_file
23691 cat >> $CONFIG_STATUS <<EOF
23694 cat >> $CONFIG_STATUS <<\EOF
23697 echo Please run \"make depend\" to build dependencies
23701 chmod +x $CONFIG_STATUS
23702 rm -fr confdefs* $ac_clean_files
23703 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1