3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local
16 --enable-debug enable debugging (yes)"
18 --enable-proctitle enable proctitle support (yes)"
20 --enable-libui enable library user interface (yes)"
22 --enable-cache enable caching (yes)"
24 --enable-dns enable dns support (no)"
26 --enable-referrals enable referrals (yes)"
28 --enable-cldap enable connectionless ldap (no)"
30 --enable-x-compile enable cross compiling (no)"
32 --with-kerberos use Kerberos (auto)"
34 --with-threads use threads (auto)"
36 --with-preemptive thread implementation is preemptive (auto)"
38 --enable-ldapd enable building ldapd (no)"
40 --enable-slapd enable building slapd (yes)"
42 --enable-aclgroups enable ACL group support (auto)"
44 --enable-crypt enable crypt(3) passwords (auto)"
46 --enable-md5 enable MD5 passwords (auto)"
48 --enable-sha1 enable SHA1 passwords (auto)"
50 --enable-wrappers enable tcp wrapper support (no)"
52 --enable-phonetic enable phonetic/soundex (no)"
54 --enable-rlookups enable reverse lookups (auto)"
56 --enable-ldbm enable ldbm backend (yes)"
58 --with-ldbm-api use LDBM API (auto)"
60 --with-ldbm-type use LDBM type (auto)"
62 --enable-passwd enable passwd backend (no)"
64 --enable-shell enable shell backend (no)"
66 --enable-slurpd enable building slurpd (auto)"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.12"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=include/ldap.h
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
575 for ac_dir in build $srcdir/build; do
576 if test -f $ac_dir/install-sh; then
578 ac_install_sh="$ac_aux_dir/install-sh -c"
580 elif test -f $ac_dir/install.sh; then
582 ac_install_sh="$ac_aux_dir/install.sh -c"
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
593 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
594 echo "configure:595: checking configure arguments" >&5
597 # OpenLDAP --enable-debug
598 # Check whether --enable-debug or --disable-debug was given.
599 if test "${enable_debug+set}" = set; then
600 enableval="$enable_debug"
603 for ol_val in auto yes no ; do
604 if test "$enableval" = "$ol_val" ; then
608 if test "$ol_arg" = "invalid" ; then
609 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
611 ol_enable_debug="$ol_arg"
614 ol_enable_debug="yes"
617 # OpenLDAP --enable-proctitle
618 # Check whether --enable-proctitle or --disable-proctitle was given.
619 if test "${enable_proctitle+set}" = set; then
620 enableval="$enable_proctitle"
623 for ol_val in auto yes no ; do
624 if test "$enableval" = "$ol_val" ; then
628 if test "$ol_arg" = "invalid" ; then
629 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
631 ol_enable_proctitle="$ol_arg"
634 ol_enable_proctitle="yes"
636 # end --enable-proctitle
637 # OpenLDAP --enable-libui
638 # Check whether --enable-libui or --disable-libui was given.
639 if test "${enable_libui+set}" = set; then
640 enableval="$enable_libui"
643 for ol_val in auto yes no ; do
644 if test "$enableval" = "$ol_val" ; then
648 if test "$ol_arg" = "invalid" ; then
649 { echo "configure: error: bad value $enableval for --enable-libui" 1>&2; exit 1; }
651 ol_enable_libui="$ol_arg"
654 ol_enable_libui="yes"
657 # OpenLDAP --enable-cache
658 # Check whether --enable-cache or --disable-cache was given.
659 if test "${enable_cache+set}" = set; then
660 enableval="$enable_cache"
663 for ol_val in auto yes no ; do
664 if test "$enableval" = "$ol_val" ; then
668 if test "$ol_arg" = "invalid" ; then
669 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
671 ol_enable_cache="$ol_arg"
674 ol_enable_cache="yes"
677 # OpenLDAP --enable-dns
678 # Check whether --enable-dns or --disable-dns was given.
679 if test "${enable_dns+set}" = set; then
680 enableval="$enable_dns"
683 for ol_val in auto yes no ; do
684 if test "$enableval" = "$ol_val" ; then
688 if test "$ol_arg" = "invalid" ; then
689 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
691 ol_enable_dns="$ol_arg"
697 # OpenLDAP --enable-referrals
698 # Check whether --enable-referrals or --disable-referrals was given.
699 if test "${enable_referrals+set}" = set; then
700 enableval="$enable_referrals"
703 for ol_val in auto yes no ; do
704 if test "$enableval" = "$ol_val" ; then
708 if test "$ol_arg" = "invalid" ; then
709 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
711 ol_enable_referrals="$ol_arg"
714 ol_enable_referrals="yes"
716 # end --enable-referrals
717 # OpenLDAP --enable-cldap
718 # Check whether --enable-cldap or --disable-cldap was given.
719 if test "${enable_cldap+set}" = set; then
720 enableval="$enable_cldap"
723 for ol_val in auto yes no ; do
724 if test "$enableval" = "$ol_val" ; then
728 if test "$ol_arg" = "invalid" ; then
729 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
731 ol_enable_cldap="$ol_arg"
737 # OpenLDAP --enable-x_compile
738 # Check whether --enable-x_compile or --disable-x_compile was given.
739 if test "${enable_x_compile+set}" = set; then
740 enableval="$enable_x_compile"
743 for ol_val in yes no ; do
744 if test "$enableval" = "$ol_val" ; then
748 if test "$ol_arg" = "invalid" ; then
749 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
751 ol_enable_x_compile="$ol_arg"
754 ol_enable_x_compile="no"
756 # end --enable-x_compile
758 # OpenLDAP --with-kerberos
759 # Check whether --with-kerberos or --without-kerberos was given.
760 if test "${with_kerberos+set}" = set; then
761 withval="$with_kerberos"
764 for ol_val in auto k5 k4 afs yes no ; do
765 if test "$withval" = "$ol_val" ; then
769 if test "$ol_arg" = "invalid" ; then
770 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
772 ol_with_kerberos="$ol_arg"
775 ol_with_kerberos="auto"
777 # end --with-kerberos
779 # OpenLDAP --with-threads
780 # Check whether --with-threads or --without-threads was given.
781 if test "${with_threads+set}" = set; then
782 withval="$with_threads"
785 for ol_val in auto posix mach lwp yes no manual ; do
786 if test "$withval" = "$ol_val" ; then
790 if test "$ol_arg" = "invalid" ; then
791 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
793 ol_with_threads="$ol_arg"
796 ol_with_threads="auto"
800 # OpenLDAP --with-preemptive
801 # Check whether --with-preemptive or --without-preemptive was given.
802 if test "${with_preemptive+set}" = set; then
803 withval="$with_preemptive"
806 for ol_val in auto yes no manual ; do
807 if test "$withval" = "$ol_val" ; then
811 if test "$ol_arg" = "invalid" ; then
812 { echo "configure: error: bad value $withval for --with-preemptive" 1>&2; exit 1; }
814 ol_with_preemptive="$ol_arg"
817 ol_with_preemptive="auto"
819 # end --with-preemptive
823 # OpenLDAP --enable-ldapd
824 # Check whether --enable-ldapd or --disable-ldapd was given.
825 if test "${enable_ldapd+set}" = set; then
826 enableval="$enable_ldapd"
829 for ol_val in auto yes no ; do
830 if test "$enableval" = "$ol_val" ; then
834 if test "$ol_arg" = "invalid" ; then
835 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
837 ol_enable_ldapd="$ol_arg"
844 # OpenLDAP --enable-slapd
845 # Check whether --enable-slapd or --disable-slapd was given.
846 if test "${enable_slapd+set}" = set; then
847 enableval="$enable_slapd"
850 for ol_val in auto yes no ; do
851 if test "$enableval" = "$ol_val" ; then
855 if test "$ol_arg" = "invalid" ; then
856 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
858 ol_enable_slapd="$ol_arg"
861 ol_enable_slapd="yes"
864 # OpenLDAP --enable-aclgroups
865 # Check whether --enable-aclgroups or --disable-aclgroups was given.
866 if test "${enable_aclgroups+set}" = set; then
867 enableval="$enable_aclgroups"
870 for ol_val in auto yes no ; do
871 if test "$enableval" = "$ol_val" ; then
875 if test "$ol_arg" = "invalid" ; then
876 { echo "configure: error: bad value $enableval for --enable-aclgroups" 1>&2; exit 1; }
878 ol_enable_aclgroups="$ol_arg"
881 ol_enable_aclgroups="auto"
883 # end --enable-aclgroups
884 # OpenLDAP --enable-crypt
885 # Check whether --enable-crypt or --disable-crypt was given.
886 if test "${enable_crypt+set}" = set; then
887 enableval="$enable_crypt"
890 for ol_val in auto yes no ; do
891 if test "$enableval" = "$ol_val" ; then
895 if test "$ol_arg" = "invalid" ; then
896 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
898 ol_enable_crypt="$ol_arg"
901 ol_enable_crypt="auto"
904 # OpenLDAP --enable-md5
905 # Check whether --enable-md5 or --disable-md5 was given.
906 if test "${enable_md5+set}" = set; then
907 enableval="$enable_md5"
910 for ol_val in auto yes no ; do
911 if test "$enableval" = "$ol_val" ; then
915 if test "$ol_arg" = "invalid" ; then
916 { echo "configure: error: bad value $enableval for --enable-md5" 1>&2; exit 1; }
918 ol_enable_md5="$ol_arg"
924 # OpenLDAP --enable-sha1
925 # Check whether --enable-sha1 or --disable-sha1 was given.
926 if test "${enable_sha1+set}" = set; then
927 enableval="$enable_sha1"
930 for ol_val in auto yes no ; do
931 if test "$enableval" = "$ol_val" ; then
935 if test "$ol_arg" = "invalid" ; then
936 { echo "configure: error: bad value $enableval for --enable-sha1" 1>&2; exit 1; }
938 ol_enable_sha1="$ol_arg"
941 ol_enable_sha1="auto"
944 # OpenLDAP --enable-wrappers
945 # Check whether --enable-wrappers or --disable-wrappers was given.
946 if test "${enable_wrappers+set}" = set; then
947 enableval="$enable_wrappers"
950 for ol_val in auto yes no ; do
951 if test "$enableval" = "$ol_val" ; then
955 if test "$ol_arg" = "invalid" ; then
956 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
958 ol_enable_wrappers="$ol_arg"
961 ol_enable_wrappers="no"
963 # end --enable-wrappers
964 # OpenLDAP --enable-phonetic
965 # Check whether --enable-phonetic or --disable-phonetic was given.
966 if test "${enable_phonetic+set}" = set; then
967 enableval="$enable_phonetic"
970 for ol_val in auto yes no ; do
971 if test "$enableval" = "$ol_val" ; then
975 if test "$ol_arg" = "invalid" ; then
976 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
978 ol_enable_phonetic="$ol_arg"
981 ol_enable_phonetic="no"
983 # end --enable-phonetic
984 # OpenLDAP --enable-rlookups
985 # Check whether --enable-rlookups or --disable-rlookups was given.
986 if test "${enable_rlookups+set}" = set; then
987 enableval="$enable_rlookups"
990 for ol_val in auto yes no ; do
991 if test "$enableval" = "$ol_val" ; then
995 if test "$ol_arg" = "invalid" ; then
996 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
998 ol_enable_rlookups="$ol_arg"
1001 ol_enable_rlookups="auto"
1003 # end --enable-rlookups
1005 # OpenLDAP --enable-ldbm
1006 # Check whether --enable-ldbm or --disable-ldbm was given.
1007 if test "${enable_ldbm+set}" = set; then
1008 enableval="$enable_ldbm"
1011 for ol_val in auto yes no ; do
1012 if test "$enableval" = "$ol_val" ; then
1016 if test "$ol_arg" = "invalid" ; then
1017 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1019 ol_enable_ldbm="$ol_arg"
1022 ol_enable_ldbm="yes"
1025 # OpenLDAP --with-ldbm_api
1026 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1027 if test "${with_ldbm_api+set}" = set; then
1028 withval="$with_ldbm_api"
1031 for ol_val in auto db2 db gdbm ndbm manual ; do
1032 if test "$withval" = "$ol_val" ; then
1036 if test "$ol_arg" = "invalid" ; then
1037 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1039 ol_with_ldbm_api="$ol_arg"
1042 ol_with_ldbm_api="auto"
1044 # end --with-ldbm_api
1046 # OpenLDAP --with-ldbm_type
1047 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1048 if test "${with_ldbm_type+set}" = set; then
1049 withval="$with_ldbm_type"
1052 for ol_val in auto btree hash ; do
1053 if test "$withval" = "$ol_val" ; then
1057 if test "$ol_arg" = "invalid" ; then
1058 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1060 ol_with_ldbm_type="$ol_arg"
1063 ol_with_ldbm_type="auto"
1065 # end --with-ldbm_type
1068 # OpenLDAP --enable-passwd
1069 # Check whether --enable-passwd or --disable-passwd was given.
1070 if test "${enable_passwd+set}" = set; then
1071 enableval="$enable_passwd"
1074 for ol_val in auto yes no ; do
1075 if test "$enableval" = "$ol_val" ; then
1079 if test "$ol_arg" = "invalid" ; then
1080 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1082 ol_enable_passwd="$ol_arg"
1085 ol_enable_passwd="no"
1087 # end --enable-passwd
1088 # OpenLDAP --enable-shell
1089 # Check whether --enable-shell or --disable-shell was given.
1090 if test "${enable_shell+set}" = set; then
1091 enableval="$enable_shell"
1094 for ol_val in auto yes no ; do
1095 if test "$enableval" = "$ol_val" ; then
1099 if test "$ol_arg" = "invalid" ; then
1100 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1102 ol_enable_shell="$ol_arg"
1105 ol_enable_shell="no"
1107 # end --enable-shell
1109 # OpenLDAP --enable-slurpd
1110 # Check whether --enable-slurpd or --disable-slurpd was given.
1111 if test "${enable_slurpd+set}" = set; then
1112 enableval="$enable_slurpd"
1115 for ol_val in auto yes no ; do
1116 if test "$enableval" = "$ol_val" ; then
1120 if test "$ol_arg" = "invalid" ; then
1121 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
1123 ol_enable_slurpd="$ol_arg"
1126 ol_enable_slurpd="auto"
1128 # end --enable-slurpd
1131 if test $ol_enable_referrals = no ; then
1132 if test $ol_enable_dns = yes ; then
1133 echo "configure: warning: dns disabled, ignoring --enable-dns argument" 1>&2
1138 if test $ol_enable_slapd = no ; then
1139 if test $ol_enable_ldbm = yes ; then
1140 echo "configure: warning: slapd disabled, ignoring --enable_ldbm argument" 1>&2
1142 if test $ol_enable_passwd = yes ; then
1143 echo "configure: warning: slapd disabled, ignoring --enable_passwd argument" 1>&2
1145 if test $ol_enable_shell = yes ; then
1146 echo "configure: warning: slapd disabled, ignoring --enable_shell argument" 1>&2
1148 if test $ol_enable_aclgroups = yes ; then
1149 echo "configure: warning: slapd disabled, ignoring --enable_aclgroups argument" 1>&2
1151 if test $ol_enable_crypt = yes ; then
1152 echo "configure: warning: slapd disabled, ignoring --enable_crypt argument" 1>&2
1154 if test $ol_enable_md5 = yes ; then
1155 echo "configure: warning: slapd disabled, ignoring --enable_md5 argument" 1>&2
1157 if test $ol_enable_sha1 = yes ; then
1158 echo "configure: warning: slapd disabled, ignoring --enable_sha1 argument" 1>&2
1160 if test $ol_enable_wrappers = yes ; then
1161 echo "configure: warning: slapd disabled, ignoring --enable_wrappers argument" 1>&2
1163 if test $ol_enable_phonetic = yes ; then
1164 echo "configure: warning: slapd disabled, ignoring --enable_phonetic argument" 1>&2
1166 if test $ol_enable_rlookups = yes ; then
1167 echo "configure: warning: slapd disabled, ignoring --enable_rlookups argument" 1>&2
1169 if test $ol_with_ldbm_api != auto ; then
1170 echo "configure: warning: slapd disabled, ignoring --with_ldbm_api argument" 1>&2
1172 if test $ol_with_ldbm_type != auto ; then
1173 echo "configure: warning: slapd disabled, ignoring --with_ldbm_type argument" 1>&2
1175 if test $ol_enable_slurpd = yes ; then
1176 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
1179 # force settings to no
1183 ol_enable_aclgroups=no
1187 ol_enable_wrappers=no
1188 ol_enable_phonetic=no
1189 ol_enable_rlookups=no
1191 ol_with_ldbm_type=no
1194 elif test $ol_enable_ldbm = no ; then
1196 if test $ol_with_ldbm_api != auto ; then
1197 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_api argument" 1>&2
1200 if test $ol_with_ldbm_type != auto ; then
1201 echo "configure: warning: LDBM disabled, ignoring --with_ldbm_type argument" 1>&2
1204 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
1205 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
1209 ol_with_ldbm_type=no
1213 if test $ol_with_ldbm_api = gdbm -a \
1214 $ol_with_ldbm_type = btree ; then
1215 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
1217 if test $ol_with_ldbm_api = ndbm -a \
1218 $ol_with_ldbm_type = btree ; then
1219 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
1223 if test $ol_enable_slurpd = yes ; then
1224 if test $ol_with_threads = no ; then
1225 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
1229 echo "$ac_t""done" 1>&6
1254 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ln -s works" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1260 if ln -s X conftestdata 2>/dev/null
1263 ac_cv_prog_LN_S="ln -s"
1268 LN_S="$ac_cv_prog_LN_S"
1269 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1270 echo "$ac_t""yes" 1>&6
1272 echo "$ac_t""no" 1>&6
1275 # Find a good install program. We prefer a C program (faster),
1276 # so one script is as good as another. But avoid the broken or
1277 # incompatible versions:
1278 # SysV /etc/install, /usr/sbin/install
1279 # SunOS /usr/etc/install
1280 # IRIX /sbin/install
1282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1284 # ./install, which can be erroneously created by make from ./install.sh.
1285 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1286 echo "configure:1287: checking for a BSD compatible install" >&5
1287 if test -z "$INSTALL"; then
1288 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1292 for ac_dir in $PATH; do
1293 # Account for people who put trailing slashes in PATH elements.
1295 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1297 # OSF1 and SCO ODT 3.0 have their own names for install.
1298 for ac_prog in ginstall installbsd scoinst install; do
1299 if test -f $ac_dir/$ac_prog; then
1300 if test $ac_prog = install &&
1301 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1302 # AIX install. It has an incompatible calling convention.
1303 # OSF/1 installbsd also uses dspmsg, but is usable.
1306 ac_cv_path_install="$ac_dir/$ac_prog -c"
1317 if test "${ac_cv_path_install+set}" = set; then
1318 INSTALL="$ac_cv_path_install"
1320 # As a last resort, use the slow shell script. We don't cache a
1321 # path for INSTALL within a source directory, because that will
1322 # break other packages using the cache if that directory is
1323 # removed, or if the path is relative.
1324 INSTALL="$ac_install_sh"
1327 echo "$ac_t""$INSTALL" 1>&6
1329 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1330 # It thinks the first close brace ends the variable substitution.
1331 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1335 # Extract the first word of "ranlib", so it can be a program name with args.
1336 set dummy ranlib; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$RANLIB"; then
1343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1346 for ac_dir in $PATH; do
1347 test -z "$ac_dir" && ac_dir=.
1348 if test -f $ac_dir/$ac_word; then
1349 ac_cv_prog_RANLIB="ranlib"
1354 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1357 RANLIB="$ac_cv_prog_RANLIB"
1358 if test -n "$RANLIB"; then
1359 echo "$ac_t""$RANLIB" 1>&6
1361 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1365 echo "configure:1366: checking whether ${MAKE-make} sets \${MAKE}" >&5
1366 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 cat > conftestmake <<\EOF
1372 @echo 'ac_maketemp="${MAKE}"'
1374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1375 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1376 if test -n "$ac_maketemp"; then
1377 eval ac_cv_prog_make_${ac_make}_set=yes
1379 eval ac_cv_prog_make_${ac_make}_set=no
1383 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1384 echo "$ac_t""yes" 1>&6
1387 echo "$ac_t""no" 1>&6
1388 SET_MAKE="MAKE=${MAKE-make}"
1392 # Extract the first word of "sendmail", so it can be a program name with args.
1393 set dummy sendmail; ac_word=$2
1394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_word" >&5
1396 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1401 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
1404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1405 for ac_dir in $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc$ac_dummy; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
1413 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
1417 SENDMAIL="$ac_cv_path_SENDMAIL"
1418 if test -n "$SENDMAIL"; then
1419 echo "$ac_t""$SENDMAIL" 1>&6
1421 echo "$ac_t""no" 1>&6
1424 # Extract the first word of "vi", so it can be a program name with args.
1425 set dummy vi; ac_word=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_path_EDITOR'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
1436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1437 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/$ac_word; then
1440 ac_cv_path_EDITOR="$ac_dir/$ac_word"
1445 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
1449 EDITOR="$ac_cv_path_EDITOR"
1450 if test -n "$EDITOR"; then
1451 echo "$ac_t""$EDITOR" 1>&6
1453 echo "$ac_t""no" 1>&6
1456 # Extract the first word of "finger", so it can be a program name with args.
1457 set dummy finger; ac_word=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_path_FINGER'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1465 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
1468 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1469 for ac_dir in $PATH:/usr/ucb$ac_dummy; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1472 ac_cv_path_FINGER="$ac_dir/$ac_word"
1477 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
1481 FINGER="$ac_cv_path_FINGER"
1482 if test -n "$FINGER"; then
1483 echo "$ac_t""$FINGER" 1>&6
1485 echo "$ac_t""no" 1>&6
1489 # Extract the first word of "gcc", so it can be a program name with args.
1490 set dummy gcc; ac_word=$2
1491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492 echo "configure:1493: checking for $ac_word" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 if test -n "$CC"; then
1497 ac_cv_prog_CC="$CC" # Let the user override the test.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1500 for ac_dir in $PATH; do
1501 test -z "$ac_dir" && ac_dir=.
1502 if test -f $ac_dir/$ac_word; then
1511 if test -n "$CC"; then
1512 echo "$ac_t""$CC" 1>&6
1514 echo "$ac_t""no" 1>&6
1517 if test -z "$CC"; then
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_word" >&5
1522 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1530 for ac_dir in $PATH; do
1531 test -z "$ac_dir" && ac_dir=.
1532 if test -f $ac_dir/$ac_word; then
1533 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1534 ac_prog_rejected=yes
1542 if test $ac_prog_rejected = yes; then
1543 # We found a bogon in the path, so make sure we never use it.
1544 set dummy $ac_cv_prog_CC
1546 if test $# -gt 0; then
1547 # We chose a different compiler from the bogus one.
1548 # However, it has the same basename, so the bogon will be chosen
1549 # first if we set CC to just the basename; use the full file name.
1551 set dummy "$ac_dir/$ac_word" "$@"
1559 if test -n "$CC"; then
1560 echo "$ac_t""$CC" 1>&6
1562 echo "$ac_t""no" 1>&6
1565 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1568 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1573 ac_cpp='$CPP $CPPFLAGS'
1574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1575 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1576 cross_compiling=$ac_cv_prog_cc_cross
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1583 if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1584 ac_cv_prog_cc_works=yes
1585 # If we can't run a trivial program, we are probably using a cross compiler.
1586 if (./conftest; exit) 2>/dev/null; then
1587 ac_cv_prog_cc_cross=no
1589 ac_cv_prog_cc_cross=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1594 ac_cv_prog_cc_works=no
1598 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1599 if test $ac_cv_prog_cc_works = no; then
1600 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1602 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1603 echo "configure:1604: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1604 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1605 cross_compiling=$ac_cv_prog_cc_cross
1607 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether we are using GNU C" >&5
1609 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.c <<EOF
1617 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1624 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1626 if test $ac_cv_prog_gcc = yes; then
1628 ac_test_CFLAGS="${CFLAGS+set}"
1629 ac_save_CFLAGS="$CFLAGS"
1631 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether ${CC-cc} accepts -g" >&5
1633 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1636 echo 'void f(){}' > conftest.c
1637 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1646 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1647 if test "$ac_test_CFLAGS" = set; then
1648 CFLAGS="$ac_save_CFLAGS"
1649 elif test $ac_cv_prog_cc_g = yes; then
1656 test "${CFLAGS+set}" = set || CFLAGS="-g"
1660 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
1661 echo "configure: warning: cross compiling.... go for it" 1>&2
1663 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
1664 echo "configure: warning: programs compiled here do run here..." 1>&2
1665 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
1667 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
1668 echo "configure: warning: programs compiled here do not run here..." 1>&2
1669 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
1672 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1673 echo "configure:1674: checking how to run the C preprocessor" >&5
1674 # On Suns, sometimes $CPP names a directory.
1675 if test -n "$CPP" && test -d "$CPP"; then
1678 if test -z "$CPP"; then
1679 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 # This must be in double quotes, not single quotes, because CPP may get
1683 # substituted into the Makefile and "${CC-cc}" will confuse make.
1685 # On the NeXT, cc -E runs the code through the compiler's parser,
1686 # not just through cpp.
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err=`grep -v '^ *+' conftest.out`
1696 if test -z "$ac_err"; then
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 CPP="${CC-cc} -E -traditional-cpp"
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err=`grep -v '^ *+' conftest.out`
1713 if test -z "$ac_err"; then
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1725 ac_cv_prog_CPP="$CPP"
1727 CPP="$ac_cv_prog_CPP"
1729 ac_cv_prog_CPP="$CPP"
1731 echo "$ac_t""$CPP" 1>&6
1735 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1736 echo "configure:1737: checking for AIX" >&5
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1746 egrep "yes" >/dev/null 2>&1; then
1748 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1749 #define _ALL_SOURCE 1
1754 echo "$ac_t""no" 1>&6
1759 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1760 echo "configure:1761: checking for POSIXized ISC" >&5
1761 if test -d /etc/conf/kconfig.d &&
1762 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1764 echo "$ac_t""yes" 1>&6
1765 ISC=yes # If later tests want to check for ISC.
1766 cat >> confdefs.h <<\EOF
1767 #define _POSIX_SOURCE 1
1770 if test "$GCC" = yes; then
1776 echo "$ac_t""no" 1>&6
1780 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1781 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1782 echo "configure:1783: checking for minix/config.h" >&5
1783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 #include <minix/config.h>
1791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1792 { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1793 ac_err=`grep -v '^ *+' conftest.out`
1794 if test -z "$ac_err"; then
1796 eval "ac_cv_header_$ac_safe=yes"
1799 echo "configure: failed program was:" >&5
1800 cat conftest.$ac_ext >&5
1802 eval "ac_cv_header_$ac_safe=no"
1806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1807 echo "$ac_t""yes" 1>&6
1810 echo "$ac_t""no" 1>&6
1814 if test "$MINIX" = yes; then
1815 cat >> confdefs.h <<\EOF
1816 #define _POSIX_SOURCE 1
1819 cat >> confdefs.h <<\EOF
1820 #define _POSIX_1_SOURCE 2
1823 cat >> confdefs.h <<\EOF
1832 echo $ac_n "checking for socket""... $ac_c" 1>&6
1833 echo "configure:1834: checking for socket" >&5
1834 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 /* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char socket(); below. */
1843 /* Override any gcc2 internal prototype to avoid an error. */
1844 /* We use char because int might match the return type of a gcc2
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined (__stub_socket) || defined (__stub___socket)
1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1863 eval "ac_cv_func_socket=yes"
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 eval "ac_cv_func_socket=no"
1873 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1874 echo "$ac_t""yes" 1>&6
1877 echo "$ac_t""no" 1>&6
1879 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1880 echo "configure:1881: checking for main in -lsocket" >&5
1881 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 ac_save_LIBS="$LIBS"
1886 LIBS="-lsocket $LIBS"
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1897 eval "ac_cv_lib_$ac_lib_var=yes"
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1902 eval "ac_cv_lib_$ac_lib_var=no"
1905 LIBS="$ac_save_LIBS"
1908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1909 echo "$ac_t""yes" 1>&6
1910 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1912 cat >> confdefs.h <<EOF
1913 #define $ac_tr_lib 1
1916 LIBS="-lsocket $LIBS"
1919 echo "$ac_t""no" 1>&6
1922 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
1923 echo "configure:1924: checking for main in -lnet" >&5
1924 ac_lib_var=`echo net'_'main | sed 'y%./+-%__p_%'`
1925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 ac_save_LIBS="$LIBS"
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1940 eval "ac_cv_lib_$ac_lib_var=yes"
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1945 eval "ac_cv_lib_$ac_lib_var=no"
1948 LIBS="$ac_save_LIBS"
1951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1952 echo "$ac_t""yes" 1>&6
1953 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1954 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1955 cat >> confdefs.h <<EOF
1956 #define $ac_tr_lib 1
1962 echo "$ac_t""no" 1>&6
1965 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
1966 echo "configure:1967: checking for main in -lnsl_s" >&5
1967 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'`
1968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 ac_save_LIBS="$LIBS"
1972 LIBS="-lnsl_s $LIBS"
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1983 eval "ac_cv_lib_$ac_lib_var=yes"
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 eval "ac_cv_lib_$ac_lib_var=no"
1991 LIBS="$ac_save_LIBS"
1994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1995 echo "$ac_t""yes" 1>&6
1996 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1997 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1998 cat >> confdefs.h <<EOF
1999 #define $ac_tr_lib 1
2002 LIBS="-lnsl_s $LIBS"
2005 echo "$ac_t""no" 1>&6
2008 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2009 echo "configure:2010: checking for main in -lnsl" >&5
2010 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 ac_save_LIBS="$LIBS"
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2024 if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2026 eval "ac_cv_lib_$ac_lib_var=yes"
2028 echo "configure: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2031 eval "ac_cv_lib_$ac_lib_var=no"
2034 LIBS="$ac_save_LIBS"
2037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2038 echo "$ac_t""yes" 1>&6
2039 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2041 cat >> confdefs.h <<EOF
2042 #define $ac_tr_lib 1
2048 echo "$ac_t""no" 1>&6
2051 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
2052 echo "configure:2053: checking for socket in -linet" >&5
2053 ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
2054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2055 echo $ac_n "(cached) $ac_c" 1>&6
2057 ac_save_LIBS="$LIBS"
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062 /* Override any gcc2 internal prototype to avoid an error. */
2063 /* We use char because int might match the return type of a gcc2
2064 builtin and then its argument prototype would still apply. */
2071 if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2073 eval "ac_cv_lib_$ac_lib_var=yes"
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2078 eval "ac_cv_lib_$ac_lib_var=no"
2081 LIBS="$ac_save_LIBS"
2084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2085 echo "$ac_t""yes" 1>&6
2086 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2088 cat >> confdefs.h <<EOF
2089 #define $ac_tr_lib 1
2095 echo "$ac_t""no" 1>&6
2098 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2099 echo "configure:2100: checking for main in -lgen" >&5
2100 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 ac_save_LIBS="$LIBS"
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2116 eval "ac_cv_lib_$ac_lib_var=yes"
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2121 eval "ac_cv_lib_$ac_lib_var=no"
2124 LIBS="$ac_save_LIBS"
2127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2131 cat >> confdefs.h <<EOF
2132 #define $ac_tr_lib 1
2138 echo "$ac_t""no" 1>&6
2145 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
2146 echo "configure:2147: checking for res_search in -lresolv" >&5
2147 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
2148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 ac_save_LIBS="$LIBS"
2152 LIBS="-lresolv $LIBS"
2153 cat > conftest.$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 /* Override any gcc2 internal prototype to avoid an error. */
2157 /* We use char because int might match the return type of a gcc2
2158 builtin and then its argument prototype would still apply. */
2165 if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2167 eval "ac_cv_lib_$ac_lib_var=yes"
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2172 eval "ac_cv_lib_$ac_lib_var=no"
2175 LIBS="$ac_save_LIBS"
2178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2179 echo "$ac_t""yes" 1>&6
2180 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2181 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2182 cat >> confdefs.h <<EOF
2183 #define $ac_tr_lib 1
2186 LIBS="-lresolv $LIBS"
2189 echo "$ac_t""no" 1>&6
2193 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
2194 echo "configure:2195: checking for sigset in -lV3" >&5
2195 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-%__p_%'`
2196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 ac_save_LIBS="$LIBS"
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 /* Override any gcc2 internal prototype to avoid an error. */
2205 /* We use char because int might match the return type of a gcc2
2206 builtin and then its argument prototype would still apply. */
2213 if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2215 eval "ac_cv_lib_$ac_lib_var=yes"
2217 echo "configure: failed program was:" >&5
2218 cat conftest.$ac_ext >&5
2220 eval "ac_cv_lib_$ac_lib_var=no"
2223 LIBS="$ac_save_LIBS"
2226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2230 cat >> confdefs.h <<EOF
2231 #define $ac_tr_lib 1
2237 echo "$ac_t""no" 1>&6
2243 if test $ol_enable_ldapd != no ; then
2244 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
2245 echo "configure:2246: checking for main in -lxtpp" >&5
2246 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-%__p_%'`
2247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 ac_save_LIBS="$LIBS"
2251 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2260 if { (eval echo configure:2261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2262 eval "ac_cv_lib_$ac_lib_var=yes"
2264 echo "configure: failed program was:" >&5
2265 cat conftest.$ac_ext >&5
2267 eval "ac_cv_lib_$ac_lib_var=no"
2270 LIBS="$ac_save_LIBS"
2273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2277 cat >> confdefs.h <<\EOF
2281 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
2284 echo "$ac_t""no" 1>&6
2288 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
2289 echo "configure:2290: checking for main in -ldsap" >&5
2290 ac_lib_var=`echo dsap'_'main | sed 'y%./+-%__p_%'`
2291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 ac_save_LIBS="$LIBS"
2295 LIBS="-ldsap -lisode $LIBS"
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2304 if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2306 eval "ac_cv_lib_$ac_lib_var=yes"
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2311 eval "ac_cv_lib_$ac_lib_var=no"
2314 LIBS="$ac_save_LIBS"
2317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2318 echo "$ac_t""yes" 1>&6
2321 cat >> confdefs.h <<\EOF
2325 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
2328 echo "$ac_t""no" 1>&6
2332 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
2333 echo "configure:2334: checking for main in -lisode" >&5
2334 ac_lib_var=`echo isode'_'main | sed 'y%./+-%__p_%'`
2335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 ac_save_LIBS="$LIBS"
2339 LIBS="-lisode $LIBS"
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2350 eval "ac_cv_lib_$ac_lib_var=yes"
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 eval "ac_cv_lib_$ac_lib_var=no"
2358 LIBS="$ac_save_LIBS"
2361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2365 cat >> confdefs.h <<\EOF
2366 #define HAVE_ISODE 1
2369 LDAPD_LIBS="$LDAPD_LIBS -lisode"
2372 echo "$ac_t""no" 1>&6
2378 if test $ol_link_isode != no; then
2379 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
2380 echo "configure:2381: checking for main in -lpp" >&5
2381 ac_lib_var=`echo pp'_'main | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2397 eval "ac_cv_lib_$ac_lib_var=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2402 eval "ac_cv_lib_$ac_lib_var=no"
2405 LIBS="$ac_save_LIBS"
2408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2411 cat >> confdefs.h <<\EOF
2415 LDAPD_LIBS="-lpp $LDAPD_LIBS"
2418 echo "$ac_t""no" 1>&6
2423 # Extract the first word of "pepsy", so it can be a program name with args.
2424 set dummy pepsy; ac_word=$2
2425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_word" >&5
2427 if eval "test \"`echo '$''{'ac_cv_path_PEPSY'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2432 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
2435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2436 for ac_dir in $PATH; do
2437 test -z "$ac_dir" && ac_dir=.
2438 if test -f $ac_dir/$ac_word; then
2439 ac_cv_path_PEPSY="$ac_dir/$ac_word"
2447 PEPSY="$ac_cv_path_PEPSY"
2448 if test -n "$PEPSY"; then
2449 echo "$ac_t""$PEPSY" 1>&6
2451 echo "$ac_t""no" 1>&6
2456 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
2457 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
2459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err=`grep -v '^ *+' conftest.out`
2473 if test -z "$ac_err"; then
2475 eval "ac_cv_header_$ac_safe=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 eval "ac_cv_header_$ac_safe=no"
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_hdr 1
2493 echo "$ac_t""no" 1>&6
2498 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
2499 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
2500 echo "configure:2501: checking for main in -lkrb4" >&5
2501 ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'`
2502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 ac_save_LIBS="$LIBS"
2506 LIBS="-lkrb4 -lkrb5 -ldes425 $LIBS"
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2517 eval "ac_cv_lib_$ac_lib_var=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_lib_$ac_lib_var=no"
2525 LIBS="$ac_save_LIBS"
2528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2532 echo "$ac_t""no" 1>&6
2537 if test $have_k5 = yes ; then
2538 ol_with_kerberos=found
2539 ol_link_kerberos=yes
2541 cat >> confdefs.h <<\EOF
2542 #define HAVE_KERBEROS 1
2546 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
2550 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
2551 for ac_hdr in krb.h des.h
2553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2555 echo "configure:2556: checking for $ac_hdr" >&5
2556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2557 echo $ac_n "(cached) $ac_c" 1>&6
2559 cat > conftest.$ac_ext <<EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2565 { (eval echo configure:2566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2566 ac_err=`grep -v '^ *+' conftest.out`
2567 if test -z "$ac_err"; then
2569 eval "ac_cv_header_$ac_safe=yes"
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2575 eval "ac_cv_header_$ac_safe=no"
2579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2580 echo "$ac_t""yes" 1>&6
2581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2582 cat >> confdefs.h <<EOF
2583 #define $ac_tr_hdr 1
2587 echo "$ac_t""no" 1>&6
2592 if test $ac_cv_header_krb_h = yes ; then
2593 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
2594 echo "configure:2595: checking for main in -lkrb" >&5
2595 ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'`
2596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2599 ac_save_LIBS="$LIBS"
2600 LIBS="-lkrb -ldes $LIBS"
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2611 eval "ac_cv_lib_$ac_lib_var=yes"
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2616 eval "ac_cv_lib_$ac_lib_var=no"
2619 LIBS="$ac_save_LIBS"
2622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2626 echo "$ac_t""no" 1>&6
2631 if test $have_k4 = yes ; then
2632 ol_with_kerberos=found
2633 ol_link_kerberos=yes
2635 cat >> confdefs.h <<\EOF
2636 #define HAVE_KERBEROS 1
2640 KRB_LIBS="-lkrb -ldes"
2647 if test $ol_with_threads = auto -o $ol_with_threads = posix ; then
2648 for ac_hdr in pthread.h sched.h
2650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_hdr" >&5
2653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 cat > conftest.$ac_ext <<EOF
2657 #line 2658 "configure"
2658 #include "confdefs.h"
2661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2662 { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2663 ac_err=`grep -v '^ *+' conftest.out`
2664 if test -z "$ac_err"; then
2666 eval "ac_cv_header_$ac_safe=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_header_$ac_safe=no"
2676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2677 echo "$ac_t""yes" 1>&6
2678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2679 cat >> confdefs.h <<EOF
2680 #define $ac_tr_hdr 1
2684 echo "$ac_t""no" 1>&6
2689 if test $ac_cv_header_pthread_h = yes ; then
2690 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
2691 echo "configure:2692: checking POSIX thread version" >&5
2692 if eval "test \"`echo '$''{'ol_cv_pthread_version'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2700 # include <pthread.h>
2701 /* this check could be improved */
2702 # ifdef PTHREAD_ONCE_INIT
2707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2708 egrep "final" >/dev/null 2>&1; then
2710 ol_pthread_final=yes
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2722 # include <pthread.h>
2723 /* this check could be improved */
2724 # ifdef pthread_once_init
2729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2730 egrep "draft4" >/dev/null 2>&1; then
2732 ol_pthread_draft4=yes
2735 ol_pthread_draft4=no
2740 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
2741 ol_cv_pthread_version=final
2742 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
2743 ol_cv_pthread_version=draft4
2745 ol_cv_pthread_version=unknown
2750 echo "$ac_t""$ol_cv_pthread_version" 1>&6
2753 if test $ol_cv_pthread_version = final ; then
2754 cat >> confdefs.h <<\EOF
2755 #define HAVE_PTHREADS_FINAL 1
2758 elif test $ol_cv_pthread_version = draft4 ; then
2759 cat >> confdefs.h <<\EOF
2760 #define HAVE_PTHREADS_D4 1
2764 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
2767 # consider threads found
2768 ol_with_threads=found
2771 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
2772 echo "configure:2773: checking for LinuxThreads" >&5
2773 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
2774 echo $ac_n "(cached) $ac_c" 1>&6
2777 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
2778 if test "$res" -gt 0 ; then
2779 ol_cv_linux_threads=yes
2781 ol_cv_linux_threads=no
2786 echo "$ac_t""$ol_cv_linux_threads" 1>&6
2789 if test $ol_cv_linux_threads = yes ; then
2790 cat >> confdefs.h <<\EOF
2791 #define HAVE_LINUX_THREADS 1
2797 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
2798 echo "configure:2799: checking for pthread_create" >&5
2799 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2805 /* System header to define __stub macros and hopefully few prototypes,
2806 which can conflict with char pthread_create(); below. */
2808 /* Override any gcc2 internal prototype to avoid an error. */
2809 /* We use char because int might match the return type of a gcc2
2810 builtin and then its argument prototype would still apply. */
2811 char pthread_create();
2815 /* The GNU C library defines this for functions which it implements
2816 to always fail with ENOSYS. Some functions are actually named
2817 something starting with __ and the normal name is an alias. */
2818 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
2826 if { (eval echo configure:2827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2828 eval "ac_cv_func_pthread_create=yes"
2830 echo "configure: failed program was:" >&5
2831 cat conftest.$ac_ext >&5
2833 eval "ac_cv_func_pthread_create=no"
2838 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2842 echo "$ac_t""no" 1>&6
2846 if test $ol_link_threads = no ; then
2847 echo $ac_n "checking for pthread_create with -pthread""... $ac_c" 1>&6
2848 echo "configure:2849: checking for pthread_create with -pthread" >&5
2849 if eval "test \"`echo '$''{'ol_cv_pthread_flag'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2854 LIBS="-pthread $LIBS"
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2865 if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2867 ol_cv_pthread_flag=yes
2869 echo "configure: failed program was:" >&5
2870 cat conftest.$ac_ext >&5
2872 ol_cv_pthread_flag=no
2879 echo "$ac_t""$ol_cv_pthread_flag" 1>&6
2881 if test $ol_cv_pthread_flag = yes ; then
2882 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
2883 ol_link_threads=posix
2887 if test $ol_link_threads = no ; then
2888 echo $ac_n "checking for pthread_create with -thread""... $ac_c" 1>&6
2889 echo "configure:2890: checking for pthread_create with -thread" >&5
2890 if eval "test \"`echo '$''{'ol_cv_thread_flag'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2895 LIBS="-thread $LIBS"
2896 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2906 if { (eval echo configure:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2908 ol_cv_thread_flag=yes
2910 echo "configure: failed program was:" >&5
2911 cat conftest.$ac_ext >&5
2913 ol_cv_thread_flag=no
2920 echo "$ac_t""$ol_cv_thread_flag" 1>&6
2922 if test $ol_cv_thread_flag = yes ; then
2923 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
2924 ol_link_threads=posix
2928 if test $ol_link_threads = no ; then
2930 echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2931 echo "configure:2932: checking for pthread_join in -lpthread" >&5
2932 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 ac_save_LIBS="$LIBS"
2937 LIBS="-lpthread -lexc $LIBS"
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* Override any gcc2 internal prototype to avoid an error. */
2942 /* We use char because int might match the return type of a gcc2
2943 builtin and then its argument prototype would still apply. */
2944 char pthread_join();
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2952 eval "ac_cv_lib_$ac_lib_var=yes"
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 eval "ac_cv_lib_$ac_lib_var=no"
2960 LIBS="$ac_save_LIBS"
2963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2966 ol_link_threads=posix
2967 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
2968 if test $ol_with_preemptive = auto ; then
2969 ol_with_preemptive=yes
2973 echo "$ac_t""no" 1>&6
2979 if test $ol_link_threads = no ; then
2981 echo $ac_n "checking for pthread_join in -lpthreads""... $ac_c" 1>&6
2982 echo "configure:2983: checking for pthread_join in -lpthreads" >&5
2983 ac_lib_var=`echo pthreads'_'pthread_join | sed 'y%./+-%__p_%'`
2984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 ac_save_LIBS="$LIBS"
2988 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* Override any gcc2 internal prototype to avoid an error. */
2993 /* We use char because int might match the return type of a gcc2
2994 builtin and then its argument prototype would still apply. */
2995 char pthread_join();
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3003 eval "ac_cv_lib_$ac_lib_var=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 eval "ac_cv_lib_$ac_lib_var=no"
3011 LIBS="$ac_save_LIBS"
3014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3015 echo "$ac_t""yes" 1>&6
3017 ol_link_threads=posix
3018 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
3019 if test $ol_with_preemptive = auto ; then
3020 ol_with_preemptive=yes
3024 echo "$ac_t""no" 1>&6
3030 if test $ol_link_threads = no ; then
3032 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3033 echo "configure:3034: checking for pthread_create in -lpthread" >&5
3034 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 ac_save_LIBS="$LIBS"
3039 LIBS="-lpthread $LIBS"
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3046 char pthread_create();
3052 if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3054 eval "ac_cv_lib_$ac_lib_var=yes"
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3059 eval "ac_cv_lib_$ac_lib_var=no"
3062 LIBS="$ac_save_LIBS"
3065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3068 ol_link_threads=posix
3069 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
3071 echo "$ac_t""no" 1>&6
3077 if test $ol_link_threads = no ; then
3079 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3080 echo "configure:3081: checking for pthread_create in -lc_r" >&5
3081 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 ac_save_LIBS="$LIBS"
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 /* Override any gcc2 internal prototype to avoid an error. */
3091 /* We use char because int might match the return type of a gcc2
3092 builtin and then its argument prototype would still apply. */
3093 char pthread_create();
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3101 eval "ac_cv_lib_$ac_lib_var=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 eval "ac_cv_lib_$ac_lib_var=no"
3109 LIBS="$ac_save_LIBS"
3112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3115 ol_link_threads=posix
3116 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"
3118 echo "$ac_t""no" 1>&6
3124 if test $ol_link_threads != no ; then
3125 cat >> confdefs.h <<\EOF
3126 #define HAVE_PTHREADS 1
3130 save_CPPFLAGS="$CPPFLAGS"
3132 LIBS="$LTHREAD_LIBS $LIBS"
3134 for ac_func in sched_yield pthread_yield
3136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3137 echo "configure:3138: checking for $ac_func" >&5
3138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 /* System header to define __stub macros and hopefully few prototypes,
3145 which can conflict with char $ac_func(); below. */
3147 /* Override any gcc2 internal prototype to avoid an error. */
3148 /* We use char because int might match the return type of a gcc2
3149 builtin and then its argument prototype would still apply. */
3154 /* The GNU C library defines this for functions which it implements
3155 to always fail with ENOSYS. Some functions are actually named
3156 something starting with __ and the normal name is an alias. */
3157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3165 if { (eval echo configure:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3167 eval "ac_cv_func_$ac_func=yes"
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 eval "ac_cv_func_$ac_func=no"
3177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3180 cat >> confdefs.h <<EOF
3181 #define $ac_tr_func 1
3185 echo "$ac_t""no" 1>&6
3190 if test $ac_cv_func_sched_yield = no -a \
3191 $ac_cv_func_pthread_yield = no ; then
3192 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3193 echo "configure:3194: checking for sched_yield in -lrt" >&5
3194 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 ac_save_LIBS="$LIBS"
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* Override any gcc2 internal prototype to avoid an error. */
3204 /* We use char because int might match the return type of a gcc2
3205 builtin and then its argument prototype would still apply. */
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3214 eval "ac_cv_lib_$ac_lib_var=yes"
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 eval "ac_cv_lib_$ac_lib_var=no"
3222 LIBS="$ac_save_LIBS"
3225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
3228 cat >> confdefs.h <<\EOF
3229 #define HAVE_SCHED_YIELD 1
3232 ac_cv_func_sched_yield=yes
3234 echo "$ac_t""no" 1>&6
3235 ac_cv_func_sched_yield=no
3239 if test $ac_cv_func_sched_yield = no -a \
3240 $ac_cv_func_pthread_yield = no ; then
3241 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3242 echo "configure:3243: checking for sched_yield in -lposix4" >&5
3243 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 ac_save_LIBS="$LIBS"
3248 LIBS="-lposix4 $LIBS"
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3252 /* Override any gcc2 internal prototype to avoid an error. */
3253 /* We use char because int might match the return type of a gcc2
3254 builtin and then its argument prototype would still apply. */
3261 if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3263 eval "ac_cv_lib_$ac_lib_var=yes"
3265 echo "configure: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3268 eval "ac_cv_lib_$ac_lib_var=no"
3271 LIBS="$ac_save_LIBS"
3274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 LTHREAD_LIBS="$LTHREAD_LIBS -lposix4"
3277 cat >> confdefs.h <<\EOF
3278 #define HAVE_SCHED_YIELD 1
3281 ac_cv_func_sched_yield=yes
3283 echo "$ac_t""no" 1>&6
3284 ac_cv_func_sched_yield=no
3288 if test $ac_cv_func_sched_yield = no -a \
3289 $ac_cv_func_pthread_yield = no ; then
3290 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
3291 { echo "configure: error: POSIX Threads are not usable" 1>&2; exit 1; }
3294 for ac_func in pthread_kill
3296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_func" >&5
3298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 /* System header to define __stub macros and hopefully few prototypes,
3305 which can conflict with char $ac_func(); below. */
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3314 /* The GNU C library defines this for functions which it implements
3315 to always fail with ENOSYS. Some functions are actually named
3316 something starting with __ and the normal name is an alias. */
3317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3327 eval "ac_cv_func_$ac_func=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3332 eval "ac_cv_func_$ac_func=no"
3337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_func 1
3345 echo "$ac_t""no" 1>&6
3350 pthread_attr_create pthread_attr_init \
3351 pthread_attr_destroy pthread_attr_delete \
3352 pthread_attr_setdetachstate pthread_attr_setdetach_np \
3355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3356 echo "configure:3357: checking for $ac_func" >&5
3357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 /* System header to define __stub macros and hopefully few prototypes,
3364 which can conflict with char $ac_func(); below. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3373 /* The GNU C library defines this for functions which it implements
3374 to always fail with ENOSYS. Some functions are actually named
3375 something starting with __ and the normal name is an alias. */
3376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3384 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3386 eval "ac_cv_func_$ac_func=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.$ac_ext >&5
3391 eval "ac_cv_func_$ac_func=no"
3396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3399 cat >> confdefs.h <<EOF
3400 #define $ac_tr_func 1
3404 echo "$ac_t""no" 1>&6
3410 pthread_setconcurrency \
3411 thr_setconcurrency \
3414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3415 echo "configure:3416: checking for $ac_func" >&5
3416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 /* System header to define __stub macros and hopefully few prototypes,
3423 which can conflict with char $ac_func(); below. */
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 /* We use char because int might match the return type of a gcc2
3427 builtin and then its argument prototype would still apply. */
3432 /* The GNU C library defines this for functions which it implements
3433 to always fail with ENOSYS. Some functions are actually named
3434 something starting with __ and the normal name is an alias. */
3435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3445 eval "ac_cv_func_$ac_func=yes"
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3450 eval "ac_cv_func_$ac_func=no"
3455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3456 echo "$ac_t""yes" 1>&6
3457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3458 cat >> confdefs.h <<EOF
3459 #define $ac_tr_func 1
3463 echo "$ac_t""no" 1>&6
3468 if test $ol_with_preemptive = auto ; then
3469 echo $ac_n "checking for preemptive Pthread implementation""... $ac_c" 1>&6
3470 echo "configure:3471: checking for preemptive Pthread implementation" >&5
3471 if test "$cross_compiling" = yes; then
3473 { echo "configure: error: crossing compiling: use --with-preemptive=yes|no|manual" 1>&2; exit 1; }
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3479 #include <sys/types.h>
3480 #include <sys/time.h>
3482 #include <pthread.h>
3496 /* we're not interested in any fds */
3497 i = select(FD_SETSIZE, NULL, NULL, NULL, &tv);
3503 exit(1); /* if we exit here, the select blocked the whole process */
3507 int argc; char **argv;
3511 #ifdef HAVE_PTHREAD_SETCONCURRENCY
3512 (void) pthread_setconcurrency(2);
3514 #ifdef HAVE_THR_SETCONCURRENCY
3515 /* Set Solaris LWP concurrency to 2 */
3516 thr_setconcurrency(2);
3520 pthread_create(&t, NULL, (void *) task, NULL);
3522 #if HAVE_SCHED_YIELD
3523 sched_yield(); /* make sure task runs first */
3525 #ifdef HAVE_PTHREAD_YIELD
3526 pthread_yield(); /* make sure task runs first */
3533 if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3535 ol_pthread_preemptive=yes
3537 echo "configure: failed program was:" >&5
3538 cat conftest.$ac_ext >&5
3540 ol_pthread_preemptive=no
3545 echo "$ac_t""$ol_pthread_preemptive" 1>&6
3547 if test $ol_pthread_preemptive = yes ; then
3548 cat >> confdefs.h <<\EOF
3549 #define HAVE_PREEMPTIVE_PTHREADS 1
3552 ol_with_preemptive=yes
3557 CPPFLAGS="$save_CPPFLAGS"
3560 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
3564 if test $ol_with_threads = posix ; then
3565 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
3569 if test $ol_with_threads = auto -o $ol_with_threads = mach ; then
3570 for ac_hdr in mach/cthreads.h
3572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3574 echo "configure:3575: checking for $ac_hdr" >&5
3575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 cat > conftest.$ac_ext <<EOF
3579 #line 3580 "configure"
3580 #include "confdefs.h"
3583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3584 { (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3585 ac_err=`grep -v '^ *+' conftest.out`
3586 if test -z "$ac_err"; then
3588 eval "ac_cv_header_$ac_safe=yes"
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3594 eval "ac_cv_header_$ac_safe=no"
3598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3601 cat >> confdefs.h <<EOF
3602 #define $ac_tr_hdr 1
3606 echo "$ac_t""no" 1>&6
3610 if test $ac_cv_header_mach_cthreads_h = yes ; then
3611 ol_with_threads=found
3613 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
3614 echo "configure:3615: checking for cthread_fork" >&5
3615 if eval "test \"`echo '$''{'ac_cv_func_cthread_fork'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* System header to define __stub macros and hopefully few prototypes,
3622 which can conflict with char cthread_fork(); below. */
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627 char cthread_fork();
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3644 eval "ac_cv_func_cthread_fork=yes"
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 eval "ac_cv_func_cthread_fork=no"
3654 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3658 echo "$ac_t""no" 1>&6
3662 if test $ol_link_threads = no ; then
3663 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
3664 echo "configure:3665: checking for cthread_fork with -all_load" >&5
3665 if eval "test \"`echo '$''{'ol_cv_cthread_all_load'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3670 LIBS="-all_load $LIBS"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <mach/cthreads.h>
3677 cthread_fork((void *)0, (void *)0);
3681 if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3683 ol_cv_cthread_all_load=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 ol_cv_cthread_all_load=no
3695 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
3697 if test $ol_cv_cthread_all_load = yes ; then
3698 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
3699 ol_link_threads=mach
3703 if test $ol_link_threads != no ; then
3704 : check for cthread specific functionality here
3705 cat >> confdefs.h <<\EOF
3706 #define HAVE_MACH_CTHREADS 1
3710 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
3714 if test $ol_with_threads = mach ; then
3715 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
3719 if test $ol_with_threads = auto -o $ol_with_threads = lwp ; then
3720 for ac_hdr in thread.h synch.h
3722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_hdr" >&5
3725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3734 { (eval echo configure:3735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3735 ac_err=`grep -v '^ *+' conftest.out`
3736 if test -z "$ac_err"; then
3738 eval "ac_cv_header_$ac_safe=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 eval "ac_cv_header_$ac_safe=no"
3748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3749 echo "$ac_t""yes" 1>&6
3750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3751 cat >> confdefs.h <<EOF
3752 #define $ac_tr_hdr 1
3756 echo "$ac_t""no" 1>&6
3760 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
3761 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3762 echo "configure:3763: checking for thr_create in -lthread" >&5
3763 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 ac_save_LIBS="$LIBS"
3768 LIBS="-lthread $LIBS"
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3772 /* Override any gcc2 internal prototype to avoid an error. */
3773 /* We use char because int might match the return type of a gcc2
3774 builtin and then its argument prototype would still apply. */
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3783 eval "ac_cv_lib_$ac_lib_var=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_lib_$ac_lib_var=no"
3791 LIBS="$ac_save_LIBS"
3794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3798 echo "$ac_t""no" 1>&6
3803 if test $have_lwp = yes ; then
3804 cat >> confdefs.h <<\EOF
3808 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3810 if test $ol_with_preemptive = auto ; then
3811 ol_with_preemptive=yes
3816 for ac_hdr in lwp/lwp.h
3818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3820 echo "configure:3821: checking for $ac_hdr" >&5
3821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3830 { (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3831 ac_err=`grep -v '^ *+' conftest.out`
3832 if test -z "$ac_err"; then
3834 eval "ac_cv_header_$ac_safe=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 eval "ac_cv_header_$ac_safe=no"
3844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3847 cat >> confdefs.h <<EOF
3848 #define $ac_tr_hdr 1
3852 echo "$ac_t""no" 1>&6
3856 if test $ac_cv_header_lwp_lwp_h = yes ; then
3857 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
3858 echo "configure:3859: checking for lwp_create in -llwp" >&5
3859 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-%__p_%'`
3860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 ac_save_LIBS="$LIBS"
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 /* Override any gcc2 internal prototype to avoid an error. */
3869 /* We use char because int might match the return type of a gcc2
3870 builtin and then its argument prototype would still apply. */
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3879 eval "ac_cv_lib_$ac_lib_var=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 eval "ac_cv_lib_$ac_lib_var=no"
3887 LIBS="$ac_save_LIBS"
3890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3891 echo "$ac_t""yes" 1>&6
3894 echo "$ac_t""no" 1>&6
3899 if test $have_lwp = yes ; then
3900 cat >> confdefs.h <<\EOF
3904 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
3906 if test $ol_with_preemptive = auto ; then
3907 ol_with_preemptive=no
3913 if test $ol_with_preemptive = yes ; then
3914 cat >> confdefs.h <<\EOF
3915 #define PREEMPTIVE_THREADS 1
3920 if test $ol_with_threads = manual ; then
3923 echo "configure: warning: thread defines and link options must be set manually" 1>&2
3925 for ac_hdr in pthread.h sched.h
3927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3929 echo "configure:3930: checking for $ac_hdr" >&5
3930 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 cat > conftest.$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3939 { (eval echo configure:3940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3940 ac_err=`grep -v '^ *+' conftest.out`
3941 if test -z "$ac_err"; then
3943 eval "ac_cv_header_$ac_safe=yes"
3946 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3949 eval "ac_cv_header_$ac_safe=no"
3953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
3955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3956 cat >> confdefs.h <<EOF
3957 #define $ac_tr_hdr 1
3961 echo "$ac_t""no" 1>&6
3965 for ac_func in sched_yield pthread_yield
3967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3968 echo "configure:3969: checking for $ac_func" >&5
3969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* System header to define __stub macros and hopefully few prototypes,
3976 which can conflict with char $ac_func(); below. */
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3985 /* The GNU C library defines this for functions which it implements
3986 to always fail with ENOSYS. Some functions are actually named
3987 something starting with __ and the normal name is an alias. */
3988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3996 if { (eval echo configure:3997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3998 eval "ac_cv_func_$ac_func=yes"
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 eval "ac_cv_func_$ac_func=no"
4008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4009 echo "$ac_t""yes" 1>&6
4010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4011 cat >> confdefs.h <<EOF
4012 #define $ac_tr_func 1
4016 echo "$ac_t""no" 1>&6
4021 echo $ac_n "checking for LinuxThreads""... $ac_c" 1>&6
4022 echo "configure:4023: checking for LinuxThreads" >&5
4023 if eval "test \"`echo '$''{'ol_cv_linux_threads'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4027 res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
4028 if test "$res" -gt 0 ; then
4029 ol_cv_linux_threads=yes
4031 ol_cv_linux_threads=no
4036 echo "$ac_t""$ol_cv_linux_threads" 1>&6
4039 for ac_hdr in mach/cthreads.h
4041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4043 echo "configure:4044: checking for $ac_hdr" >&5
4044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4053 { (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4054 ac_err=`grep -v '^ *+' conftest.out`
4055 if test -z "$ac_err"; then
4057 eval "ac_cv_header_$ac_safe=yes"
4060 echo "configure: failed program was:" >&5
4061 cat conftest.$ac_ext >&5
4063 eval "ac_cv_header_$ac_safe=no"
4067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4070 cat >> confdefs.h <<EOF
4071 #define $ac_tr_hdr 1
4075 echo "$ac_t""no" 1>&6
4079 for ac_hdr in lwp/lwp.h
4081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4083 echo "configure:4084: checking for $ac_hdr" >&5
4084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4093 { (eval echo configure:4094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4094 ac_err=`grep -v '^ *+' conftest.out`
4095 if test -z "$ac_err"; then
4097 eval "ac_cv_header_$ac_safe=yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 eval "ac_cv_header_$ac_safe=no"
4107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4110 cat >> confdefs.h <<EOF
4111 #define $ac_tr_hdr 1
4115 echo "$ac_t""no" 1>&6
4119 for ac_hdr in thread.h synch.h
4121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4123 echo "configure:4124: checking for $ac_hdr" >&5
4124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4133 { (eval echo configure:4134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4134 ac_err=`grep -v '^ *+' conftest.out`
4135 if test -z "$ac_err"; then
4137 eval "ac_cv_header_$ac_safe=yes"
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 eval "ac_cv_header_$ac_safe=no"
4147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4150 cat >> confdefs.h <<EOF
4151 #define $ac_tr_hdr 1
4155 echo "$ac_t""no" 1>&6
4161 if test $ol_with_threads != no ; then
4162 cat >> confdefs.h <<\EOF
4163 #define _REENTRANT 1
4166 cat >> confdefs.h <<\EOF
4167 #define _THREAD_SAFE 1
4170 cat >> confdefs.h <<\EOF
4171 #define _THREADSAFE 1
4175 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
4176 echo "configure:4177: checking for thread specific errno" >&5
4177 if eval "test \"`echo '$''{'ol_cv_errno_thread_specific'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4195 ol_cv_errno_thread_specific=yes
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 ol_cv_errno_thread_specific=no
4206 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
4208 if test $ol_cv_errno_thread_specific != yes ; then
4209 LIBS="$LTHREAD_LIBS $LIBS"
4215 if test $ol_link_threads = no ; then
4216 if test $ol_with_threads = yes ; then
4217 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
4220 if test $ol_with_threads = auto ; then
4221 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
4225 cat >> confdefs.h <<\EOF
4226 #define NO_THREADS 1
4229 cat >> confdefs.h <<\EOF
4230 #define PREEMPTIVE_THREADS 1
4237 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
4238 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
4239 echo "configure:4240: checking for DB2 library" >&5
4240 if eval "test \"`echo '$''{'ol_cv_lib_db2'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4244 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6
4245 echo "configure:4246: checking for db_open in -ldb" >&5
4246 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'`
4247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 ac_save_LIBS="$LIBS"
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4264 if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4266 eval "ac_cv_lib_$ac_lib_var=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4271 eval "ac_cv_lib_$ac_lib_var=no"
4274 LIBS="$ac_save_LIBS"
4277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4278 echo "$ac_t""yes" 1>&6
4281 echo "$ac_t""no" 1>&6
4289 echo "$ac_t""$ol_cv_lib_db2" 1>&6
4293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4295 echo "configure:4296: checking for $ac_hdr" >&5
4296 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4299 cat > conftest.$ac_ext <<EOF
4300 #line 4301 "configure"
4301 #include "confdefs.h"
4304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4305 { (eval echo configure:4306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4306 ac_err=`grep -v '^ *+' conftest.out`
4307 if test -z "$ac_err"; then
4309 eval "ac_cv_header_$ac_safe=yes"
4312 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4315 eval "ac_cv_header_$ac_safe=no"
4319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_hdr 1
4327 echo "$ac_t""no" 1>&6
4331 if test $ac_cv_header_db_h = yes ; then
4332 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
4333 echo "configure:4334: checking if db.h is DB2" >&5
4334 if eval "test \"`echo '$''{'ol_cv_header_db2'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 /* this check could be improved */
4344 # ifdef DB_VERSION_MAJOR
4345 # if DB_VERSION_MAJOR == 2
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 egrep "__db_version_2" >/dev/null 2>&1; then
4354 ol_cv_header_db2=yes
4363 echo "$ac_t""$ol_cv_header_db2" 1>&6
4370 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
4371 echo "configure:4372: checking for Berkeley DB2" >&5
4372 if eval "test \"`echo '$''{'ol_cv_berkeley_db2'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4376 if test $ol_cv_lib_db2 = no -o $ol_cv_header_db2 = no ; then
4377 ol_cv_berkeley_db2=no
4379 ol_cv_berkeley_db2=yes
4384 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
4385 if test $ol_cv_berkeley_db2 = yes ; then
4386 cat >> confdefs.h <<\EOF
4387 #define HAVE_BERKELEY_DB2 1
4393 if test $ol_cv_berkeley_db2 = yes ; then
4395 ol_with_ldbm_api=db2
4397 if test $ol_with_ldbm_type = hash ; then
4398 cat >> confdefs.h <<\EOF
4399 #define LDBM_USE_DBHASH 1
4403 cat >> confdefs.h <<\EOF
4404 #define LDBM_USE_DBBTREE 1
4409 if test $ol_cv_lib_db2 != yes ; then
4410 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
4415 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
4416 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
4417 echo "configure:4418: checking for Berkeley DB library" >&5
4418 if eval "test \"`echo '$''{'ol_cv_lib_db'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4422 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
4423 echo "configure:4424: checking for dbopen" >&5
4424 if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 /* System header to define __stub macros and hopefully few prototypes,
4431 which can conflict with char dbopen(); below. */
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4440 /* The GNU C library defines this for functions which it implements
4441 to always fail with ENOSYS. Some functions are actually named
4442 something starting with __ and the normal name is an alias. */
4443 #if defined (__stub_dbopen) || defined (__stub___dbopen)
4451 if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4453 eval "ac_cv_func_dbopen=yes"
4455 echo "configure: failed program was:" >&5
4456 cat conftest.$ac_ext >&5
4458 eval "ac_cv_func_dbopen=no"
4463 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4467 echo "$ac_t""no" 1>&6
4469 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
4470 echo "configure:4471: checking for dbopen in -ldb" >&5
4471 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
4472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 ac_save_LIBS="$LIBS"
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 eval "ac_cv_lib_$ac_lib_var=no"
4499 LIBS="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4506 echo "$ac_t""no" 1>&6
4517 echo "$ac_t""$ol_cv_lib_db" 1>&6
4520 for ac_hdr in db_185.h
4522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4524 echo "configure:4525: checking for $ac_hdr" >&5
4525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4534 { (eval echo configure:4535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4535 ac_err=`grep -v '^ *+' conftest.out`
4536 if test -z "$ac_err"; then
4538 eval "ac_cv_header_$ac_safe=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_header_$ac_safe=no"
4548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4551 cat >> confdefs.h <<EOF
4552 #define $ac_tr_hdr 1
4556 echo "$ac_t""no" 1>&6
4560 if test $ol_cv_header_db2 = yes ; then
4562 ol_cv_header_db=$ac_cv_header_db_185_h
4564 ol_cv_header_db=$ac_cv_header_db_h
4569 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
4570 echo "configure:4571: checking for Berkeley DB" >&5
4571 if eval "test \"`echo '$''{'ol_cv_berkeley_db'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4575 if test $ol_cv_lib_db = no -o $ol_cv_header_db = no ; then
4576 ol_cv_berkeley_db=no
4578 ol_cv_berkeley_db=yes
4583 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
4584 if test $ol_cv_berkeley_db = yes ; then
4585 cat >> confdefs.h <<\EOF
4586 #define HAVE_BERKELEY_DB 1
4592 if test $ol_cv_berkeley_db = yes ; then
4596 if test $ol_with_ldbm_type = hash ; then
4597 cat >> confdefs.h <<\EOF
4598 #define LDBM_USE_DBHASH 1
4602 cat >> confdefs.h <<\EOF
4603 #define LDBM_USE_DBBTREE 1
4608 if test $ol_cv_lib_db != yes ; then
4609 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
4614 if test $ol_with_ldbm_api = manual ; then
4617 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
4619 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
4621 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_hdr" >&5
4624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4633 { (eval echo configure:4634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4634 ac_err=`grep -v '^ *+' conftest.out`
4635 if test -z "$ac_err"; then
4637 eval "ac_cv_header_$ac_safe=yes"
4640 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5
4643 eval "ac_cv_header_$ac_safe=no"
4647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4648 echo "$ac_t""yes" 1>&6
4649 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4650 cat >> confdefs.h <<EOF
4651 #define $ac_tr_hdr 1
4655 echo "$ac_t""no" 1>&6
4661 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
4662 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
4663 ol_with_ldbm_api=none
4666 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
4667 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
4668 echo "configure:4669: checking for GDBM library" >&5
4669 if eval "test \"`echo '$''{'ol_cv_lib_gdbm'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4673 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
4674 echo "configure:4675: checking for gdbm_open" >&5
4675 if eval "test \"`echo '$''{'ac_cv_func_gdbm_open'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char gdbm_open(); below. */
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4704 eval "ac_cv_func_gdbm_open=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_func_gdbm_open=no"
4714 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4718 echo "$ac_t""no" 1>&6
4720 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
4721 echo "configure:4722: checking for gdbm_open in -lgdbm" >&5
4722 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
4723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4724 echo $ac_n "(cached) $ac_c" 1>&6
4726 ac_save_LIBS="$LIBS"
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* Override any gcc2 internal prototype to avoid an error. */
4732 /* We use char because int might match the return type of a gcc2
4733 builtin and then its argument prototype would still apply. */
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4742 eval "ac_cv_lib_$ac_lib_var=yes"
4744 echo "configure: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4747 eval "ac_cv_lib_$ac_lib_var=no"
4750 LIBS="$ac_save_LIBS"
4753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4755 ol_cv_lib_gdbm=-lgdbm
4757 echo "$ac_t""no" 1>&6
4768 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
4771 for ac_hdr in gdbm.h
4773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4775 echo "configure:4776: checking for $ac_hdr" >&5
4776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4785 { (eval echo configure:4786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4786 ac_err=`grep -v '^ *+' conftest.out`
4787 if test -z "$ac_err"; then
4789 eval "ac_cv_header_$ac_safe=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_header_$ac_safe=no"
4799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4800 echo "$ac_t""yes" 1>&6
4801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4802 cat >> confdefs.h <<EOF
4803 #define $ac_tr_hdr 1
4807 echo "$ac_t""no" 1>&6
4811 echo $ac_n "checking for db""... $ac_c" 1>&6
4812 echo "configure:4813: checking for db" >&5
4813 if eval "test \"`echo '$''{'ol_cv_gdbm'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4817 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
4825 echo "$ac_t""$ol_cv_gdbm" 1>&6
4826 if test $ol_cv_gdbm = yes ; then
4827 cat >> confdefs.h <<\EOF
4834 if test $ol_cv_gdbm = yes ; then
4836 ol_with_ldbm_api=gdbm
4838 if test $ol_cv_lib_gdbm != yes ; then
4839 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
4844 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = ndbm ; then
4845 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
4846 echo "configure:4847: checking for NDBM library" >&5
4847 if eval "test \"`echo '$''{'ol_cv_lib_ndbm'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4851 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
4852 echo "configure:4853: checking for dbm_open" >&5
4853 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4859 /* System header to define __stub macros and hopefully few prototypes,
4860 which can conflict with char dbm_open(); below. */
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4869 /* The GNU C library defines this for functions which it implements
4870 to always fail with ENOSYS. Some functions are actually named
4871 something starting with __ and the normal name is an alias. */
4872 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4882 eval "ac_cv_func_dbm_open=yes"
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4887 eval "ac_cv_func_dbm_open=no"
4892 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4896 echo "$ac_t""no" 1>&6
4898 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
4899 echo "configure:4900: checking for dbm_open in -lndbm" >&5
4900 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
4901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 ac_save_LIBS="$LIBS"
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4920 eval "ac_cv_lib_$ac_lib_var=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.$ac_ext >&5
4925 eval "ac_cv_lib_$ac_lib_var=no"
4928 LIBS="$ac_save_LIBS"
4931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4932 echo "$ac_t""yes" 1>&6
4933 ol_cv_lib_ndbm=-lndbm
4935 echo "$ac_t""no" 1>&6
4937 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
4938 echo "configure:4939: checking for dbm_open in -ldbm" >&5
4939 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
4940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS="$LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4948 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4959 eval "ac_cv_lib_$ac_lib_var=yes"
4961 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_lib_$ac_lib_var=no"
4967 LIBS="$ac_save_LIBS"
4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 ol_cv_lib_ndbm=-ldbm
4974 echo "$ac_t""no" 1>&6
4987 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
4990 for ac_hdr in ndbm.h
4992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_hdr" >&5
4995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5004 { (eval echo configure:5005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5005 ac_err=`grep -v '^ *+' conftest.out`
5006 if test -z "$ac_err"; then
5008 eval "ac_cv_header_$ac_safe=yes"
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 eval "ac_cv_header_$ac_safe=no"
5018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5019 echo "$ac_t""yes" 1>&6
5020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5021 cat >> confdefs.h <<EOF
5022 #define $ac_tr_hdr 1
5026 echo "$ac_t""no" 1>&6
5030 echo $ac_n "checking for db""... $ac_c" 1>&6
5031 echo "configure:5032: checking for db" >&5
5032 if eval "test \"`echo '$''{'ol_cv_ndbm'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5036 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
5044 echo "$ac_t""$ol_cv_ndbm" 1>&6
5045 if test $ol_cv_ndbm = yes ; then
5046 cat >> confdefs.h <<\EOF
5053 if test $ol_cv_ndbm = yes ; then
5055 ol_with_ldbm_api=ndbm
5057 if test $ol_with_ldbm_api = ndbm ; then
5058 echo "configure: warning: Attempting to use NDBM. Functionality will be limited." 1>&2
5061 if test $ol_cv_lib_ndbm != yes ; then
5062 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
5067 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
5068 echo "configure: warning: could not find suitable LDBM backend" 1>&2
5069 if test $ol_enable_ldbm = yes ; then
5070 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
5073 echo "configure: warning: disabling LDBM" 1>&2
5077 if test $ol_enable_wrappers = yes ; then
5078 echo $ac_n "checking for hosts_access in -lwrap""... $ac_c" 1>&6
5079 echo "configure:5080: checking for hosts_access in -lwrap" >&5
5080 ac_lib_var=`echo wrap'_'hosts_access | sed 'y%./+-%__p_%'`
5081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 ac_save_LIBS="$LIBS"
5086 cat > conftest.$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5089 /* Override any gcc2 internal prototype to avoid an error. */
5090 /* We use char because int might match the return type of a gcc2
5091 builtin and then its argument prototype would still apply. */
5092 char hosts_access();
5098 if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5100 eval "ac_cv_lib_$ac_lib_var=yes"
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 eval "ac_cv_lib_$ac_lib_var=no"
5108 LIBS="$ac_save_LIBS"
5111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5115 echo "$ac_t""no" 1>&6
5120 if test $have_wrappers = yes ; then
5121 cat >> confdefs.h <<\EOF
5125 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
5127 echo "configure: warning: could not find -lwrap" 1>&2
5128 if test $ol_enable_wrappers = yes ; then
5129 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
5132 echo "configure: warning: disabling wrappers support" 1>&2
5133 ol_enable_wrappers=no
5138 # ud needs termcap (should insert check here)
5140 for ac_hdr in termcap.h ncurses.h
5142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5144 echo "configure:5145: checking for $ac_hdr" >&5
5145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5154 { (eval echo configure:5155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5155 ac_err=`grep -v '^ *+' conftest.out`
5156 if test -z "$ac_err"; then
5158 eval "ac_cv_header_$ac_safe=yes"
5161 echo "configure: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5164 eval "ac_cv_header_$ac_safe=no"
5168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5169 echo "$ac_t""yes" 1>&6
5170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_hdr 1
5176 echo "$ac_t""no" 1>&6
5181 if test $ol_link_termcap = no ; then
5182 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
5183 echo "configure:5184: checking for tputs in -ltermcap" >&5
5184 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-%__p_%'`
5185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 ac_save_LIBS="$LIBS"
5189 LIBS="-ltermcap $LIBS"
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5204 eval "ac_cv_lib_$ac_lib_var=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 eval "ac_cv_lib_$ac_lib_var=no"
5212 LIBS="$ac_save_LIBS"
5215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5216 echo "$ac_t""yes" 1>&6
5219 echo "$ac_t""no" 1>&6
5223 if test $have_termcap = yes ; then
5224 cat >> confdefs.h <<\EOF
5225 #define HAVE_TERMCAP 1
5229 TERMCAP_LIBS=-ltermcap
5233 if test $ol_link_termcap = no ; then
5234 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5235 echo "configure:5236: checking for initscr in -lncurses" >&5
5236 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_save_LIBS="$LIBS"
5241 LIBS="-lncurses $LIBS"
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* Override any gcc2 internal prototype to avoid an error. */
5246 /* We use char because int might match the return type of a gcc2
5247 builtin and then its argument prototype would still apply. */
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5256 eval "ac_cv_lib_$ac_lib_var=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_lib_$ac_lib_var=no"
5264 LIBS="$ac_save_LIBS"
5267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5271 echo "$ac_t""no" 1>&6
5275 if test $have_ncurses = yes ; then
5276 cat >> confdefs.h <<\EOF
5277 #define HAVE_NCURSES 1
5281 TERMCAP_LIBS=-lncurses
5285 if test $ol_link_termcap = no ; then
5286 cat >> confdefs.h <<\EOF
5287 #define NO_TERMCAP 1
5293 # FreeBSD (and others) have crypt(3) in -lcrypt
5294 if test $ol_enable_crypt != no ; then
5295 echo $ac_n "checking for crypt""... $ac_c" 1>&6
5296 echo "configure:5297: checking for crypt" >&5
5297 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5303 /* System header to define __stub macros and hopefully few prototypes,
5304 which can conflict with char crypt(); below. */
5306 /* Override any gcc2 internal prototype to avoid an error. */
5307 /* We use char because int might match the return type of a gcc2
5308 builtin and then its argument prototype would still apply. */
5313 /* The GNU C library defines this for functions which it implements
5314 to always fail with ENOSYS. Some functions are actually named
5315 something starting with __ and the normal name is an alias. */
5316 #if defined (__stub_crypt) || defined (__stub___crypt)
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5326 eval "ac_cv_func_crypt=yes"
5328 echo "configure: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5331 eval "ac_cv_func_crypt=no"
5336 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
5337 echo "$ac_t""yes" 1>&6
5340 echo "$ac_t""no" 1>&6
5342 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5343 echo "configure:5344: checking for crypt in -lcrypt" >&5
5344 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 ac_save_LIBS="$LIBS"
5349 LIBS="-lcrypt $LIBS"
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 /* We use char because int might match the return type of a gcc2
5355 builtin and then its argument prototype would still apply. */
5362 if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5364 eval "ac_cv_lib_$ac_lib_var=yes"
5366 echo "configure: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5369 eval "ac_cv_lib_$ac_lib_var=no"
5372 LIBS="$ac_save_LIBS"
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5376 echo "$ac_t""yes" 1>&6
5377 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
5380 echo "$ac_t""no" 1>&6
5387 if test $have_crypt = yes ; then
5388 cat >> confdefs.h <<\EOF
5389 #define HAVE_CRYPT 1
5393 echo "configure: warning: could not find crypt" 1>&2
5394 if test $ol_enable_crypt = yes ; then
5395 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
5398 echo "configure: warning: disabling crypt support" 1>&2
5403 # FreeBSD (and others) have setproctitle(3) in -lutil
5404 if test $ol_enable_proctitle != no ; then
5405 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
5406 echo "configure:5407: checking for setproctitle" >&5
5407 if eval "test \"`echo '$''{'ac_cv_func_setproctitle'+set}'`\" = set"; then
5408 echo $ac_n "(cached) $ac_c" 1>&6
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* System header to define __stub macros and hopefully few prototypes,
5414 which can conflict with char setproctitle(); below. */
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5419 char setproctitle();
5423 /* The GNU C library defines this for functions which it implements
5424 to always fail with ENOSYS. Some functions are actually named
5425 something starting with __ and the normal name is an alias. */
5426 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5436 eval "ac_cv_func_setproctitle=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5441 eval "ac_cv_func_setproctitle=no"
5446 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
5447 echo "$ac_t""yes" 1>&6
5448 have_setproctitle=yes
5450 echo "$ac_t""no" 1>&6
5452 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
5453 echo "configure:5454: checking for setproctitle in -lutil" >&5
5454 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 ac_save_LIBS="$LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5466 char setproctitle();
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5474 eval "ac_cv_lib_$ac_lib_var=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 eval "ac_cv_lib_$ac_lib_var=no"
5482 LIBS="$ac_save_LIBS"
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 have_setproctitle=yes
5488 LUTIL_LIBS="$LUTIL_LIBS -lutil"
5490 echo "$ac_t""no" 1>&6
5491 have_setproctitle=no
5492 LIBOBJS="$LIBOBJS setproctitle.o"
5498 if test $have_setproctitle = yes ; then
5499 cat >> confdefs.h <<\EOF
5500 #define HAVE_SETPROCTITLE 1
5506 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5507 echo "configure:5508: checking for ANSI C header files" >&5
5508 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5520 { (eval echo configure:5521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5521 ac_err=`grep -v '^ *+' conftest.out`
5522 if test -z "$ac_err"; then
5524 ac_cv_header_stdc=yes
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 ac_cv_header_stdc=no
5534 if test $ac_cv_header_stdc = yes; then
5535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542 egrep "memchr" >/dev/null 2>&1; then
5546 ac_cv_header_stdc=no
5552 if test $ac_cv_header_stdc = yes; then
5553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5560 egrep "free" >/dev/null 2>&1; then
5564 ac_cv_header_stdc=no
5570 if test $ac_cv_header_stdc = yes; then
5571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5572 if test "$cross_compiling" = yes; then
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5579 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5580 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5582 int main () { int i; for (i = 0; i < 256; i++)
5583 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5587 if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 ac_cv_header_stdc=no
5602 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5603 if test $ac_cv_header_stdc = yes; then
5604 cat >> confdefs.h <<\EOF
5605 #define STDC_HEADERS 1
5611 if test $ac_cv_header_stdc != yes; then
5612 echo "configure: warning: could not locate Standard C headers" 1>&2
5616 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5619 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_hdr that defines DIR" >&5
5621 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 #include <sys/types.h>
5633 if { (eval echo configure:5634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5635 eval "ac_cv_header_dirent_$ac_safe=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5640 eval "ac_cv_header_dirent_$ac_safe=no"
5644 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5645 echo "$ac_t""yes" 1>&6
5646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5647 cat >> confdefs.h <<EOF
5648 #define $ac_tr_hdr 1
5650 ac_header_dirent=$ac_hdr; break
5652 echo "$ac_t""no" 1>&6
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5658 echo "configure:5659: checking for opendir in -ldir" >&5
5659 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 ac_save_LIBS="$LIBS"
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5679 eval "ac_cv_lib_$ac_lib_var=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_lib_$ac_lib_var=no"
5687 LIBS="$ac_save_LIBS"
5690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5694 echo "$ac_t""no" 1>&6
5698 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5699 echo "configure:5700: checking for opendir in -lx" >&5
5700 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 ac_save_LIBS="$LIBS"
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5718 if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5720 eval "ac_cv_lib_$ac_lib_var=yes"
5722 echo "configure: failed program was:" >&5
5723 cat conftest.$ac_ext >&5
5725 eval "ac_cv_lib_$ac_lib_var=no"
5728 LIBS="$ac_save_LIBS"
5731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5732 echo "$ac_t""yes" 1>&6
5735 echo "$ac_t""no" 1>&6
5740 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5741 echo "configure:5742: checking for sys/wait.h that is POSIX.1 compatible" >&5
5742 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5748 #include <sys/types.h>
5749 #include <sys/wait.h>
5751 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5754 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5759 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5762 if { (eval echo configure:5763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5764 ac_cv_header_sys_wait_h=yes
5766 echo "configure: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5769 ac_cv_header_sys_wait_h=no
5774 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5775 if test $ac_cv_header_sys_wait_h = yes; then
5776 cat >> confdefs.h <<\EOF
5777 #define HAVE_SYS_WAIT_H 1
5812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5814 echo "configure:5815: checking for $ac_hdr" >&5
5815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5816 echo $ac_n "(cached) $ac_c" 1>&6
5818 cat > conftest.$ac_ext <<EOF
5819 #line 5820 "configure"
5820 #include "confdefs.h"
5823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5824 { (eval echo configure:5825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5825 ac_err=`grep -v '^ *+' conftest.out`
5826 if test -z "$ac_err"; then
5828 eval "ac_cv_header_$ac_safe=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_header_$ac_safe=no"
5838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5839 echo "$ac_t""yes" 1>&6
5840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5841 cat >> confdefs.h <<EOF
5842 #define $ac_tr_hdr 1
5846 echo "$ac_t""no" 1>&6
5851 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5852 echo "configure:5853: checking for uid_t in sys/types.h" >&5
5853 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5859 #include <sys/types.h>
5861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5862 egrep "uid_t" >/dev/null 2>&1; then
5864 ac_cv_type_uid_t=yes
5873 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5874 if test $ac_cv_type_uid_t = no; then
5875 cat >> confdefs.h <<\EOF
5879 cat >> confdefs.h <<\EOF
5885 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
5886 echo "configure:5887: checking type of array argument to getgroups" >&5
5887 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 if test "$cross_compiling" = yes; then
5891 ac_cv_type_getgroups=cross
5893 cat > conftest.$ac_ext <<EOF
5894 #line 5895 "configure"
5895 #include "confdefs.h"
5897 /* Thanks to Mike Rendell for this test. */
5898 #include <sys/types.h>
5901 #define MAX(x, y) ((x) > (y) ? (x) : (y))
5906 union { gid_t gval; long lval; } val;
5909 for (i = 0; i < NGID; i++)
5910 gidset[i] = val.gval;
5911 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
5913 /* Exit non-zero if getgroups seems to require an array of ints. This
5914 happens when gid_t is short but getgroups modifies an array of ints. */
5915 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
5919 if { (eval echo configure:5920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5921 ac_cv_type_getgroups=gid_t
5923 echo "configure: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5926 ac_cv_type_getgroups=int
5931 if test $ac_cv_type_getgroups = cross; then
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5938 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
5940 ac_cv_type_getgroups=gid_t
5943 ac_cv_type_getgroups=int
5950 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
5951 cat >> confdefs.h <<EOF
5952 #define GETGROUPS_T $ac_cv_type_getgroups
5956 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5957 echo "configure:5958: checking for mode_t" >&5
5958 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5959 echo $ac_n "(cached) $ac_c" 1>&6
5961 cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 #include <sys/types.h>
5970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5971 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5973 ac_cv_type_mode_t=yes
5976 ac_cv_type_mode_t=no
5981 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5982 if test $ac_cv_type_mode_t = no; then
5983 cat >> confdefs.h <<\EOF
5989 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5990 echo "configure:5991: checking for off_t" >&5
5991 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 #include <sys/types.h>
6003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6006 ac_cv_type_off_t=yes
6014 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6015 if test $ac_cv_type_off_t = no; then
6016 cat >> confdefs.h <<\EOF
6022 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6023 echo "configure:6024: checking for pid_t" >&5
6024 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 #include <sys/types.h>
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6039 ac_cv_type_pid_t=yes
6047 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6048 if test $ac_cv_type_pid_t = no; then
6049 cat >> confdefs.h <<\EOF
6055 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6056 echo "configure:6057: checking return type of signal handlers" >&5
6057 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 cat > conftest.$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6063 #include <sys/types.h>
6069 extern "C" void (*signal (int, void (*)(int)))(int);
6071 void (*signal ()) ();
6078 if { (eval echo configure:6079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6080 ac_cv_type_signal=void
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6085 ac_cv_type_signal=int
6090 echo "$ac_t""$ac_cv_type_signal" 1>&6
6091 cat >> confdefs.h <<EOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6096 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6097 echo "configure:6098: checking for size_t" >&5
6098 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6104 #include <sys/types.h>
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6113 ac_cv_type_size_t=yes
6116 ac_cv_type_size_t=no
6121 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6122 if test $ac_cv_type_size_t = no; then
6123 cat >> confdefs.h <<\EOF
6124 #define size_t unsigned
6129 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
6130 echo "configure:6131: checking for uid_t in sys/types.h" >&5
6131 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 #include <sys/types.h>
6139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6140 egrep "uid_t" >/dev/null 2>&1; then
6142 ac_cv_type_uid_t=yes
6151 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
6152 if test $ac_cv_type_uid_t = no; then
6153 cat >> confdefs.h <<\EOF
6157 cat >> confdefs.h <<\EOF
6163 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
6164 echo "configure:6165: checking for st_blksize in struct stat" >&5
6165 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 #include <sys/types.h>
6172 #include <sys/stat.h>
6174 struct stat s; s.st_blksize;
6177 if { (eval echo configure:6178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6179 ac_cv_struct_st_blksize=yes
6181 echo "configure: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 ac_cv_struct_st_blksize=no
6189 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
6190 if test $ac_cv_struct_st_blksize = yes; then
6191 cat >> confdefs.h <<\EOF
6192 #define HAVE_ST_BLKSIZE 1
6197 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
6198 echo "configure:6199: checking whether time.h and sys/time.h may both be included" >&5
6199 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
6200 echo $ac_n "(cached) $ac_c" 1>&6
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6205 #include <sys/types.h>
6206 #include <sys/time.h>
6212 if { (eval echo configure:6213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6214 ac_cv_header_time=yes
6216 echo "configure: failed program was:" >&5
6217 cat conftest.$ac_ext >&5
6219 ac_cv_header_time=no
6224 echo "$ac_t""$ac_cv_header_time" 1>&6
6225 if test $ac_cv_header_time = yes; then
6226 cat >> confdefs.h <<\EOF
6227 #define TIME_WITH_SYS_TIME 1
6232 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
6233 echo "configure:6234: checking whether struct tm is in sys/time.h or time.h" >&5
6234 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 #include <sys/types.h>
6243 struct tm *tp; tp->tm_sec;
6246 if { (eval echo configure:6247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6248 ac_cv_struct_tm=time.h
6250 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6253 ac_cv_struct_tm=sys/time.h
6258 echo "$ac_t""$ac_cv_struct_tm" 1>&6
6259 if test $ac_cv_struct_tm = sys/time.h; then
6260 cat >> confdefs.h <<\EOF
6261 #define TM_IN_SYS_TIME 1
6268 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
6269 echo "configure:6270: checking if toupper() requires islower()" >&5
6270 if eval "test \"`echo '$''{'ol_cv_c_upper_lower'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6274 if test "$cross_compiling" = yes; then
6275 ol_cv_c_upper_lower=safe
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6284 if ('C' == toupper('C'))
6290 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6292 ol_cv_c_upper_lower=no
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6297 ol_cv_c_upper_lower=yes
6304 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
6305 if test $ol_cv_c_upper_lower != no ; then
6306 cat >> confdefs.h <<\EOF
6307 #define C_UPPER_LOWER 1
6312 echo $ac_n "checking for working const""... $ac_c" 1>&6
6313 echo "configure:6314: checking for working const" >&5
6314 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6315 echo $ac_n "(cached) $ac_c" 1>&6
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6323 /* Ultrix mips cc rejects this. */
6324 typedef int charset[2]; const charset x;
6325 /* SunOS 4.1.1 cc rejects this. */
6326 char const *const *ccp;
6328 /* NEC SVR4.0.2 mips cc rejects this. */
6329 struct point {int x, y;};
6330 static struct point const zero = {0,0};
6331 /* AIX XL C 1.02.0.0 rejects this.
6332 It does not let you subtract one const X* pointer from another in an arm
6333 of an if-expression whose if-part is not a constant expression */
6334 const char *g = "string";
6335 ccp = &g + (g ? g-g : 0);
6336 /* HPUX 7.0 cc rejects these. */
6339 ccp = (char const *const *) p;
6340 { /* SCO 3.2v4 cc rejects this. */
6342 char const *s = 0 ? (char *) 0 : (char const *) 0;
6346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6348 const int *foo = &x[0];
6351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6352 typedef const int *iptr;
6356 { /* AIX XL C 1.02.0.0 rejects this saying
6357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6358 struct s { int j; const int *ap[3]; };
6359 struct s *b; b->j = 5;
6361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6367 if { (eval echo configure:6368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6379 echo "$ac_t""$ac_cv_c_const" 1>&6
6380 if test $ac_cv_c_const = no; then
6381 cat >> confdefs.h <<\EOF
6389 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6390 echo "configure:6391: checking for 8-bit clean memcmp" >&5
6391 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6394 if test "$cross_compiling" = yes; then
6395 ac_cv_func_memcmp_clean=no
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6403 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6404 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6410 ac_cv_func_memcmp_clean=yes
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6415 ac_cv_func_memcmp_clean=no
6422 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
6423 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
6425 echo $ac_n "checking for strftime""... $ac_c" 1>&6
6426 echo "configure:6427: checking for strftime" >&5
6427 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char strftime(); below. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6443 /* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446 #if defined (__stub_strftime) || defined (__stub___strftime)
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6456 eval "ac_cv_func_strftime=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 eval "ac_cv_func_strftime=no"
6466 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_STRFTIME 1
6473 echo "$ac_t""no" 1>&6
6474 # strftime is in -lintl on SCO UNIX.
6475 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
6476 echo "configure:6477: checking for strftime in -lintl" >&5
6477 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
6478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6479 echo $ac_n "(cached) $ac_c" 1>&6
6481 ac_save_LIBS="$LIBS"
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6495 if { (eval echo configure:6496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6497 eval "ac_cv_lib_$ac_lib_var=yes"
6499 echo "configure: failed program was:" >&5
6500 cat conftest.$ac_ext >&5
6502 eval "ac_cv_lib_$ac_lib_var=no"
6505 LIBS="$ac_save_LIBS"
6508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6510 cat >> confdefs.h <<\EOF
6511 #define HAVE_STRFTIME 1
6516 echo "$ac_t""no" 1>&6
6521 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6522 echo "configure:6523: checking for vprintf" >&5
6523 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 /* System header to define __stub macros and hopefully few prototypes,
6530 which can conflict with char vprintf(); below. */
6532 /* Override any gcc2 internal prototype to avoid an error. */
6533 /* We use char because int might match the return type of a gcc2
6534 builtin and then its argument prototype would still apply. */
6539 /* The GNU C library defines this for functions which it implements
6540 to always fail with ENOSYS. Some functions are actually named
6541 something starting with __ and the normal name is an alias. */
6542 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6550 if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6552 eval "ac_cv_func_vprintf=yes"
6554 echo "configure: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6557 eval "ac_cv_func_vprintf=no"
6562 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6563 echo "$ac_t""yes" 1>&6
6564 cat >> confdefs.h <<\EOF
6565 #define HAVE_VPRINTF 1
6569 echo "$ac_t""no" 1>&6
6572 if test "$ac_cv_func_vprintf" != yes; then
6573 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6574 echo "configure:6575: checking for _doprnt" >&5
6575 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 /* System header to define __stub macros and hopefully few prototypes,
6582 which can conflict with char _doprnt(); below. */
6584 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6591 /* The GNU C library defines this for functions which it implements
6592 to always fail with ENOSYS. Some functions are actually named
6593 something starting with __ and the normal name is an alias. */
6594 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6604 eval "ac_cv_func__doprnt=yes"
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 eval "ac_cv_func__doprnt=no"
6614 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6615 echo "$ac_t""yes" 1>&6
6616 cat >> confdefs.h <<\EOF
6617 #define HAVE_DOPRNT 1
6621 echo "$ac_t""no" 1>&6
6627 if test $ac_cv_func_vprintf = yes ; then
6628 for ac_func in vsnprintf
6630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6631 echo "configure:6632: checking for $ac_func" >&5
6632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 /* System header to define __stub macros and hopefully few prototypes,
6639 which can conflict with char $ac_func(); below. */
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6648 /* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
6651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6661 eval "ac_cv_func_$ac_func=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_func_$ac_func=no"
6671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6674 cat >> confdefs.h <<EOF
6675 #define $ac_tr_func 1
6679 echo "$ac_t""no" 1>&6
6685 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
6686 echo "configure:6687: checking for wait3 that fills in rusage" >&5
6687 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 if test "$cross_compiling" = yes; then
6691 ac_cv_func_wait3_rusage=no
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 #include <sys/types.h>
6697 #include <sys/time.h>
6698 #include <sys/resource.h>
6700 /* HP-UX has wait3 but does not fill in rusage at all. */
6704 /* Use a field that we can force nonzero --
6705 voluntary context switches.
6706 For systems like NeXT and OSF/1 that don't set it,
6707 also use the system CPU time. And page faults (I/O) for Linux. */
6709 r.ru_stime.tv_sec = 0;
6710 r.ru_stime.tv_usec = 0;
6711 r.ru_majflt = r.ru_minflt = 0;
6713 case 0: /* Child. */
6714 sleep(1); /* Give up the CPU. */
6716 case -1: _exit(0); /* What can we do? */
6717 default: /* Parent. */
6719 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
6720 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
6721 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6727 ac_cv_func_wait3_rusage=yes
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 ac_cv_func_wait3_rusage=no
6739 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
6740 if test $ac_cv_func_wait3_rusage = yes; then
6741 cat >> confdefs.h <<\EOF
6742 #define HAVE_WAIT3 1
6781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_func" >&5
6783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char $ac_func(); below. */
6792 /* Override any gcc2 internal prototype to avoid an error. */
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6799 /* The GNU C library defines this for functions which it implements
6800 to always fail with ENOSYS. Some functions are actually named
6801 something starting with __ and the normal name is an alias. */
6802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6812 eval "ac_cv_func_$ac_func=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 eval "ac_cv_func_$ac_func=no"
6822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6825 cat >> confdefs.h <<EOF
6826 #define $ac_tr_func 1
6830 echo "$ac_t""no" 1>&6
6835 for ac_func in getopt strdup tempnam
6837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6838 echo "configure:6839: checking for $ac_func" >&5
6839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6842 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure"
6844 #include "confdefs.h"
6845 /* System header to define __stub macros and hopefully few prototypes,
6846 which can conflict with char $ac_func(); below. */
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6855 /* The GNU C library defines this for functions which it implements
6856 to always fail with ENOSYS. Some functions are actually named
6857 something starting with __ and the normal name is an alias. */
6858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6868 eval "ac_cv_func_$ac_func=yes"
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6873 eval "ac_cv_func_$ac_func=no"
6878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6879 echo "$ac_t""yes" 1>&6
6880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6881 cat >> confdefs.h <<EOF
6882 #define $ac_tr_func 1
6886 echo "$ac_t""no" 1>&6
6887 LIBOBJS="$LIBOBJS ${ac_func}.o"
6893 # Check Configuration
6895 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
6896 echo "configure:6897: checking declaration of sys_errlist" >&5
6897 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6901 cat > conftest.$ac_ext <<EOF
6902 #line 6903 "configure"
6903 #include "confdefs.h"
6906 #include <sys/types.h>
6909 char *c = (char *) *sys_errlist
6912 if { (eval echo configure:6913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6914 ol_cv_dcl_sys_errlist=yes
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 ol_cv_dcl_sys_errlist=no
6924 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
6926 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
6927 if test $ol_cv_dcl_sys_errlist = no ; then
6928 cat >> confdefs.h <<\EOF
6929 #define DECL_SYS_ERRLIST 1
6932 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
6933 echo "configure:6934: checking existence of sys_errlist" >&5
6934 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
6935 echo $ac_n "(cached) $ac_c" 1>&6
6938 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure"
6940 #include "confdefs.h"
6943 char *c = (char *) *sys_errlist
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6948 ol_cv_have_sys_errlist=yes
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 ol_cv_have_sys_errlist=no
6958 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
6963 if test $ol_enable_debug != no ; then
6964 cat >> confdefs.h <<\EOF
6965 #define LDAP_DEBUG 1
6969 if test $ol_enable_libui = yes ; then
6970 cat >> confdefs.h <<\EOF
6971 #define LDAP_LIBUI 1
6975 if test $ol_enable_cache = no ; then
6976 cat >> confdefs.h <<\EOF
6977 #define LDAP_NOCACHE 1
6981 if test $ol_enable_dns != no ; then
6982 cat >> confdefs.h <<\EOF
6987 if test $ol_enable_proctitle != no ; then
6988 cat >> confdefs.h <<\EOF
6989 #define LDAP_PROCTITLE 1
6993 if test $ol_enable_referrals != no ; then
6994 cat >> confdefs.h <<\EOF
6995 #define LDAP_REFERRALS 1
6999 if test $ol_enable_cldap != no ; then
7000 cat >> confdefs.h <<\EOF
7001 #define LDAP_CONNECTIONLESS 1
7006 if test $ol_enable_aclgroups != no ; then
7007 cat >> confdefs.h <<\EOF
7008 #define SLAPD_ACLGROUPS 1
7012 if test $ol_enable_crypt != no ; then
7013 cat >> confdefs.h <<\EOF
7014 #define SLAPD_CRYPT 1
7018 if test $ol_enable_md5 != no ; then
7019 cat >> confdefs.h <<\EOF
7024 if test $ol_enable_sha1 != no ; then
7025 cat >> confdefs.h <<\EOF
7026 #define SLAPD_SHA1 1
7030 if test $ol_enable_phonetic != no ; then
7031 cat >> confdefs.h <<\EOF
7032 #define SLAPD_PHONETIC 1
7036 if test $ol_enable_rlookups != no ; then
7037 cat >> confdefs.h <<\EOF
7038 #define SLAPD_RLOOKUPS 1
7043 if test $ol_link_ldbm != no ; then
7044 cat >> confdefs.h <<\EOF
7045 #define SLAPD_LDBM 1
7052 if test $ol_enable_passwd != no ; then
7053 cat >> confdefs.h <<\EOF
7054 #define SLAPD_PASSWD 1
7061 if test $ol_enable_shell != no ; then
7062 cat >> confdefs.h <<\EOF
7063 #define SLAPD_SHELL 1
7070 if test $ol_enable_slurpd != no -a $ol_link_threads != no -a \
7071 $BUILD_SLAPD = yes ; then
7075 if test $ol_link_isode != no ; then
7101 cat > confcache <<\EOF
7102 # This file is a shell script that caches the results of configure
7103 # tests run on this system so they can be shared between configure
7104 # scripts and configure runs. It is not useful on other systems.
7105 # If it contains results you don't want to keep, you may remove or edit it.
7107 # By default, configure uses ./config.cache as the cache file,
7108 # creating it if it does not exist already. You can give configure
7109 # the --cache-file=FILE option to use a different cache file; that is
7110 # what configure does when it calls configure scripts in
7111 # subdirectories, so they share the cache.
7112 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7113 # config.status only pays attention to the cache file if you give it the
7114 # --recheck option to rerun configure.
7117 # The following way of writing the cache mishandles newlines in values,
7118 # but we know of no workaround that is simple, portable, and efficient.
7119 # So, don't put newlines in cache variables' values.
7120 # Ultrix sh set writes to stderr and can't be redirected directly,
7121 # and sets the high bit in the cache file unless we assign to the vars.
7123 case `(ac_space=' '; set) 2>&1` in
7125 # `set' does not quote correctly, so add quotes (double-quote substitution
7126 # turns \\\\ into \\, and sed turns \\ into \).
7128 -e "s/'/'\\\\''/g" \
7129 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7132 # `set' quotes correctly as required by POSIX, so do not add quotes.
7133 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7136 if cmp -s $cache_file confcache; then
7139 if test -w $cache_file; then
7140 echo "updating cache $cache_file"
7141 cat confcache > $cache_file
7143 echo "not updating unwritable cache $cache_file"
7148 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7151 # Let make expand exec_prefix.
7152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7154 # Any assignment to VPATH causes Sun make to only execute
7155 # the first set of double-colon rules, so remove it if not needed.
7156 # If there is a colon in the path, we need to keep it.
7157 if test "x$srcdir" = x.; then
7158 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7161 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7163 DEFS=-DHAVE_CONFIG_H
7165 # Without the "./", some shells look in PATH for config.status.
7166 : ${CONFIG_STATUS=./config.status}
7168 echo creating $CONFIG_STATUS
7169 rm -f $CONFIG_STATUS
7170 cat > $CONFIG_STATUS <<EOF
7172 # Generated automatically by configure.
7173 # Run this file to recreate the current configuration.
7174 # This directory was configured as follows,
7175 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7177 # $0 $ac_configure_args
7179 # Compiler output produced by configure, useful for debugging
7180 # configure, is in ./config.log if it exists.
7182 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7185 case "\$ac_option" in
7186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7187 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7188 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7189 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7190 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7192 -help | --help | --hel | --he | --h)
7193 echo "\$ac_cs_usage"; exit 0 ;;
7194 *) echo "\$ac_cs_usage"; exit 1 ;;
7198 ac_given_srcdir=$srcdir
7199 ac_given_INSTALL="$INSTALL"
7201 trap 'rm -fr `echo "\
7202 Makefile:build/top.mk:Makefile.in:build/dir.mk \
7203 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
7204 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
7205 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
7206 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
7207 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
7208 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
7209 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
7210 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
7211 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
7212 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
7213 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
7214 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
7215 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
7216 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
7217 include/Makefile:build/top.mk:include/Makefile.in \
7218 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
7219 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
7220 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
7221 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
7222 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
7223 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
7224 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
7225 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
7226 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
7227 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
7228 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
7229 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
7230 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
7231 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
7232 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
7233 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
7234 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
7235 tests/Makefile:build/top.mk:tests/Makefile.in \
7236 include/portable.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7238 cat >> $CONFIG_STATUS <<EOF
7240 # Protect against being on the right side of a sed subst in config.status.
7241 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7245 s%@CFLAGS@%$CFLAGS%g
7246 s%@CPPFLAGS@%$CPPFLAGS%g
7247 s%@CXXFLAGS@%$CXXFLAGS%g
7249 s%@LDFLAGS@%$LDFLAGS%g
7251 s%@exec_prefix@%$exec_prefix%g
7252 s%@prefix@%$prefix%g
7253 s%@program_transform_name@%$program_transform_name%g
7254 s%@bindir@%$bindir%g
7255 s%@sbindir@%$sbindir%g
7256 s%@libexecdir@%$libexecdir%g
7257 s%@datadir@%$datadir%g
7258 s%@sysconfdir@%$sysconfdir%g
7259 s%@sharedstatedir@%$sharedstatedir%g
7260 s%@localstatedir@%$localstatedir%g
7261 s%@libdir@%$libdir%g
7262 s%@includedir@%$includedir%g
7263 s%@oldincludedir@%$oldincludedir%g
7264 s%@infodir@%$infodir%g
7265 s%@mandir@%$mandir%g
7267 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7268 s%@INSTALL_DATA@%$INSTALL_DATA%g
7269 s%@RANLIB@%$RANLIB%g
7270 s%@SET_MAKE@%$SET_MAKE%g
7271 s%@SENDMAIL@%$SENDMAIL%g
7272 s%@EDITOR@%$EDITOR%g
7273 s%@FINGER@%$FINGER%g
7277 s%@LIBOBJS@%$LIBOBJS%g
7278 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
7279 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
7280 s%@BUILD_LDBM@%$BUILD_LDBM%g
7281 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
7282 s%@BUILD_SHELL@%$BUILD_SHELL%g
7283 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
7284 s%@LDAP_LIBS@%$LDAP_LIBS%g
7285 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
7286 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
7287 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
7288 s%@LDBM_LIBS@%$LDBM_LIBS%g
7289 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
7290 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
7291 s%@KRB_LIBS@%$KRB_LIBS%g
7292 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
7297 cat >> $CONFIG_STATUS <<\EOF
7299 # Split the substitutions into bite-sized pieces for seds with
7300 # small command number limits, like on Digital OSF/1 and HP-UX.
7301 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7302 ac_file=1 # Number of current file.
7303 ac_beg=1 # First line for current file.
7304 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7307 while $ac_more_lines; do
7308 if test $ac_beg -gt 1; then
7309 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7311 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7313 if test ! -s conftest.s$ac_file; then
7315 rm -f conftest.s$ac_file
7317 if test -z "$ac_sed_cmds"; then
7318 ac_sed_cmds="sed -f conftest.s$ac_file"
7320 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7322 ac_file=`expr $ac_file + 1`
7324 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7327 if test -z "$ac_sed_cmds"; then
7332 cat >> $CONFIG_STATUS <<EOF
7334 CONFIG_FILES=\${CONFIG_FILES-"\
7335 Makefile:build/top.mk:Makefile.in:build/dir.mk \
7336 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
7337 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
7338 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
7339 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
7340 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
7341 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
7342 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
7343 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
7344 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
7345 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
7346 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
7347 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
7348 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
7349 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
7350 include/Makefile:build/top.mk:include/Makefile.in \
7351 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
7352 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk \
7353 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk \
7354 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk \
7355 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk \
7356 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk \
7357 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk \
7358 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk \
7359 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
7360 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
7361 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
7362 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
7363 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
7364 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
7365 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
7366 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
7367 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
7368 tests/Makefile:build/top.mk:tests/Makefile.in \
7371 cat >> $CONFIG_STATUS <<\EOF
7372 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7375 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7376 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7377 *) ac_file_in="${ac_file}.in" ;;
7380 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7382 # Remove last slash and all that follows it. Not all systems have dirname.
7383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7385 # The file is in a subdirectory.
7386 test ! -d "$ac_dir" && mkdir "$ac_dir"
7387 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7388 # A "../" for each directory in $ac_dir_suffix.
7389 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7391 ac_dir_suffix= ac_dots=
7394 case "$ac_given_srcdir" in
7396 if test -z "$ac_dots"; then top_srcdir=.
7397 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7398 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7400 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7401 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7404 case "$ac_given_INSTALL" in
7405 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7406 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7409 echo creating "$ac_file"
7411 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7413 *Makefile*) ac_comsub="1i\\
7414 # $configure_input" ;;
7418 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7420 s%@configure_input@%$configure_input%g
7421 s%@srcdir@%$srcdir%g
7422 s%@top_srcdir@%$top_srcdir%g
7423 s%@INSTALL@%$INSTALL%g
7424 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7428 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7429 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7431 # ac_d sets the value in "#define NAME VALUE" lines.
7432 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7433 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7436 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7437 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7438 ac_uB='\([ ]\)%\1#\2define\3'
7441 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7442 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7443 ac_eB='$%\1#\2define\3'
7447 if test "${CONFIG_HEADERS+set}" != set; then
7449 cat >> $CONFIG_STATUS <<EOF
7450 CONFIG_HEADERS="include/portable.h"
7452 cat >> $CONFIG_STATUS <<\EOF
7454 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7457 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7458 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7459 *) ac_file_in="${ac_file}.in" ;;
7462 echo creating $ac_file
7464 rm -f conftest.frag conftest.in conftest.out
7465 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7466 cat $ac_file_inputs > conftest.in
7470 # Transform confdefs.h into a sed script conftest.vals that substitutes
7471 # the proper values into config.h.in to produce config.h. And first:
7472 # Protect against being on the right side of a sed subst in config.status.
7473 # Protect against being in an unquoted here document in config.status.
7475 cat > conftest.hdr <<\EOF
7478 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7482 sed -n -f conftest.hdr confdefs.h > conftest.vals
7485 # This sed command replaces #undef with comments. This is necessary, for
7486 # example, in the case of _POSIX_SOURCE, which is predefined and required
7487 # on some systems where configure will not decide to define it.
7488 cat >> conftest.vals <<\EOF
7489 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7492 # Break up conftest.vals because some shells have a limit on
7493 # the size of here documents, and old seds have small limits too.
7498 ac_lines=`grep -c . conftest.vals`
7499 # grep -c gives empty output for an empty file on some AIX systems.
7500 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7501 # Write a limited-size here document to conftest.frag.
7502 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7503 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7505 sed -f conftest.frag conftest.in > conftest.out
7507 mv conftest.out conftest.in
7509 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7511 mv conftest.tail conftest.vals
7515 cat >> $CONFIG_STATUS <<\EOF
7516 rm -f conftest.frag conftest.h
7517 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7518 cat conftest.in >> conftest.h
7520 if cmp -s $ac_file conftest.h 2>/dev/null; then
7521 echo "$ac_file is unchanged"
7524 # Remove last slash and all that follows it. Not all systems have dirname.
7525 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7526 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7527 # The file is in a subdirectory.
7528 test ! -d "$ac_dir" && mkdir "$ac_dir"
7531 mv conftest.h $ac_file
7536 cat >> $CONFIG_STATUS <<EOF
7539 cat >> $CONFIG_STATUS <<\EOF
7542 echo Please \"make depend\" to build dependencies
7546 chmod +x $CONFIG_STATUS
7547 rm -fr confdefs* $ac_clean_files
7548 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1