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:
15 --enable-maintainer-mode enable some make rules for maintainers"
17 --with-afs Include AFS support
18 --without-afs Don't include AFS support (default)"
20 --with-dfs Include DFS support
21 --without-dfs Don't include DFS support (default)"
23 --with-krb4=base-dir Include Kerberos IV support
24 --whithout-krb4 Don't include Kerbers IV support (default)"
26 --with-automount Include AUTOMOUNT support
27 --without-automount Don't include AUTOMOUNT support (default)"
29 --with-smbmount Include SMBMOUNT (Linux only) support
30 --without-smbmount Don't include SMBMOUNT support (default)"
32 --with-ldap Include LDAP support
33 --without-ldap Don't include LDAP support (default)"
35 --with-nisplus Include NISPLUS password database support
36 --without-nisplus Don't include NISPLUS password database support (default)"
38 --with-nisplus-home Include NISPLUS_HOME support
39 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
41 --with-ssl Include SSL support
42 --without-ssl Don't include SSL support (default)"
44 --with-mmap Include experimental MMAP support
45 --without-mmap Don't include MMAP support (default)"
47 --with-syslog Include experimental SYSLOG support
48 --without-syslog Don't include SYSLOG support (default)"
50 --with-netatalk Include experimental Netatalk support
51 --without-netatalk Don't include experimental Netatalk support (default)"
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
57 cache_file=./config.cache
66 program_transform_name=s,x,x,
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
87 # Initialize some other variables.
90 # Maximum number of lines to put in a shell here document.
97 # If the previous option needs an argument, assign it.
98 if test -n "$ac_prev"; then
99 eval "$ac_prev=\$ac_option"
105 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109 # Accept the important Cygnus configure options, so we can diagnose typos.
113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116 bindir="$ac_optarg" ;;
118 -build | --build | --buil | --bui | --bu)
120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121 build="$ac_optarg" ;;
123 -cache-file | --cache-file | --cache-fil | --cache-fi \
124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125 ac_prev=cache_file ;;
126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128 cache_file="$ac_optarg" ;;
130 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134 datadir="$ac_optarg" ;;
136 -disable-* | --disable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}=no" ;;
145 -enable-* | --enable-*)
146 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147 # Reject names that are not valid shell variable names.
148 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156 eval "enable_${ac_feature}='$ac_optarg'" ;;
158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160 | --exec | --exe | --ex)
161 ac_prev=exec_prefix ;;
162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164 | --exec=* | --exe=* | --ex=*)
165 exec_prefix="$ac_optarg" ;;
167 -gas | --gas | --ga | --g)
168 # Obsolete; use --with-gas.
171 -help | --help | --hel | --he)
172 # Omit some internal or obsolete options to make the list less imposing.
173 # This message is too long to be a string in the A/UX 3.1 sh.
175 Usage: configure [options] [host]
176 Options: [defaults in brackets after descriptions]
178 --cache-file=FILE cache test results in FILE
179 --help print this message
180 --no-create do not create output files
181 --quiet, --silent do not print \`checking...' messages
182 --version print the version of autoconf that created configure
183 Directory and file names:
184 --prefix=PREFIX install architecture-independent files in PREFIX
186 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
188 --bindir=DIR user executables in DIR [EPREFIX/bin]
189 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
190 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
191 --datadir=DIR read-only architecture-independent data in DIR
193 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
194 --sharedstatedir=DIR modifiable architecture-independent data in DIR
196 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
197 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
198 --includedir=DIR C header files in DIR [PREFIX/include]
199 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
200 --infodir=DIR info documentation in DIR [PREFIX/info]
201 --mandir=DIR man documentation in DIR [PREFIX/man]
202 --srcdir=DIR find the sources in DIR [configure dir or ..]
203 --program-prefix=PREFIX prepend PREFIX to installed program names
204 --program-suffix=SUFFIX append SUFFIX to installed program names
205 --program-transform-name=PROGRAM
206 run sed PROGRAM on installed program names
210 --build=BUILD configure for building on BUILD [BUILD=HOST]
211 --host=HOST configure for HOST [guessed]
212 --target=TARGET configure for TARGET [TARGET=HOST]
213 Features and packages:
214 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
215 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
216 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
217 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
218 --x-includes=DIR X include files are in DIR
219 --x-libraries=DIR X library files are in DIR
221 if test -n "$ac_help"; then
222 echo "--enable and --with options recognized:$ac_help"
226 -host | --host | --hos | --ho)
228 -host=* | --host=* | --hos=* | --ho=*)
231 -includedir | --includedir | --includedi | --included | --include \
232 | --includ | --inclu | --incl | --inc)
233 ac_prev=includedir ;;
234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
235 | --includ=* | --inclu=* | --incl=* | --inc=*)
236 includedir="$ac_optarg" ;;
238 -infodir | --infodir | --infodi | --infod | --info | --inf)
240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241 infodir="$ac_optarg" ;;
243 -libdir | --libdir | --libdi | --libd)
245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
246 libdir="$ac_optarg" ;;
248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
249 | --libexe | --libex | --libe)
250 ac_prev=libexecdir ;;
251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
252 | --libexe=* | --libex=* | --libe=*)
253 libexecdir="$ac_optarg" ;;
255 -localstatedir | --localstatedir | --localstatedi | --localstated \
256 | --localstate | --localstat | --localsta | --localst \
257 | --locals | --local | --loca | --loc | --lo)
258 ac_prev=localstatedir ;;
259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
260 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
261 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
262 localstatedir="$ac_optarg" ;;
264 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267 mandir="$ac_optarg" ;;
270 # Obsolete; use --without-fp.
273 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
278 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
281 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
282 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
283 | --oldin | --oldi | --old | --ol | --o)
284 ac_prev=oldincludedir ;;
285 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
286 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
287 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
288 oldincludedir="$ac_optarg" ;;
290 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293 prefix="$ac_optarg" ;;
295 -program-prefix | --program-prefix | --program-prefi | --program-pref \
296 | --program-pre | --program-pr | --program-p)
297 ac_prev=program_prefix ;;
298 -program-prefix=* | --program-prefix=* | --program-prefi=* \
299 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
300 program_prefix="$ac_optarg" ;;
302 -program-suffix | --program-suffix | --program-suffi | --program-suff \
303 | --program-suf | --program-su | --program-s)
304 ac_prev=program_suffix ;;
305 -program-suffix=* | --program-suffix=* | --program-suffi=* \
306 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
307 program_suffix="$ac_optarg" ;;
309 -program-transform-name | --program-transform-name \
310 | --program-transform-nam | --program-transform-na \
311 | --program-transform-n | --program-transform- \
312 | --program-transform | --program-transfor \
313 | --program-transfo | --program-transf \
314 | --program-trans | --program-tran \
315 | --progr-tra | --program-tr | --program-t)
316 ac_prev=program_transform_name ;;
317 -program-transform-name=* | --program-transform-name=* \
318 | --program-transform-nam=* | --program-transform-na=* \
319 | --program-transform-n=* | --program-transform-=* \
320 | --program-transform=* | --program-transfor=* \
321 | --program-transfo=* | --program-transf=* \
322 | --program-trans=* | --program-tran=* \
323 | --progr-tra=* | --program-tr=* | --program-t=*)
324 program_transform_name="$ac_optarg" ;;
326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327 | -silent | --silent | --silen | --sile | --sil)
330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334 sbindir="$ac_optarg" ;;
336 -sharedstatedir | --sharedstatedir | --sharedstatedi \
337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
338 | --sharedst | --shareds | --shared | --share | --shar \
340 ac_prev=sharedstatedir ;;
341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345 sharedstatedir="$ac_optarg" ;;
347 -site | --site | --sit)
349 -site=* | --site=* | --sit=*)
352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355 srcdir="$ac_optarg" ;;
357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
358 | --syscon | --sysco | --sysc | --sys | --sy)
359 ac_prev=sysconfdir ;;
360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
362 sysconfdir="$ac_optarg" ;;
364 -target | --target | --targe | --targ | --tar | --ta | --t)
366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367 target="$ac_optarg" ;;
369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
372 -version | --version | --versio | --versi | --vers)
373 echo "configure generated by autoconf version 2.12"
377 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}='$ac_optarg'" ;;
389 -without-* | --without-*)
390 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
399 # Obsolete; use --with-x.
402 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
403 | --x-incl | --x-inc | --x-in | --x-i)
404 ac_prev=x_includes ;;
405 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
406 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
407 x_includes="$ac_optarg" ;;
409 -x-libraries | --x-libraries | --x-librarie | --x-librari \
410 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
411 ac_prev=x_libraries ;;
412 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
413 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
414 x_libraries="$ac_optarg" ;;
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 if test "x$nonopt" != xNONE; then
424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438 # File descriptor usage:
441 # 2 errors and warnings
442 # 3 some systems may open it to /dev/tty
443 # 4 used on the Kubota Titan
444 # 6 checking for... messages and results
445 # 5 compiler messages saved in config.log
446 if test "$silent" = yes; then
454 This file contains any messages produced by compilers while
455 running configure, to aid debugging if configure makes a mistake.
458 # Strip out --no-create and --no-recursion so they do not pile up.
459 # Also quote any args containing shell metacharacters.
464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465 | --no-cr | --no-c) ;;
466 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
470 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
475 # Only set these to C if already set. These must not be set unconditionally
476 # because not all systems understand e.g. LANG=C (notably SCO).
477 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478 # Non-C LC_CTYPE values break the ctype check.
479 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
480 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
485 rm -rf conftest* confdefs.h
486 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
489 # A filename unique to this package, relative to the directory that
490 # configure is in, which we can look for to find out if srcdir is correct.
491 ac_unique_file=include/includes.h
493 # Find the source files, if location was not specified.
494 if test -z "$srcdir"; then
495 ac_srcdir_defaulted=yes
496 # Try the directory containing this script, then its parent.
498 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501 if test ! -r $srcdir/$ac_unique_file; then
505 ac_srcdir_defaulted=no
507 if test ! -r $srcdir/$ac_unique_file; then
508 if test "$ac_srcdir_defaulted" = yes; then
509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
514 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516 # Prefer explicitly selected file to automatically selected ones.
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE; then
519 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
524 for ac_site_file in $CONFIG_SITE; do
525 if test -r "$ac_site_file"; then
526 echo "loading site script $ac_site_file"
531 if test -r "$cache_file"; then
532 echo "loading cache $cache_file"
535 echo "creating cache $cache_file"
540 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541 ac_cpp='$CPP $CPPFLAGS'
542 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544 cross_compiling=$ac_cv_prog_cc_cross
546 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
555 ac_n= ac_c='\c' ac_t=
561 # Extract the first word of "gcc", so it can be a program name with args.
562 set dummy gcc; ac_word=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
564 echo "configure:565: checking for $ac_word" >&5
565 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 if test -n "$CC"; then
569 ac_cv_prog_CC="$CC" # Let the user override the test.
571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
572 for ac_dir in $PATH; do
573 test -z "$ac_dir" && ac_dir=.
574 if test -f $ac_dir/$ac_word; then
583 if test -n "$CC"; then
584 echo "$ac_t""$CC" 1>&6
586 echo "$ac_t""no" 1>&6
589 if test -z "$CC"; then
590 # Extract the first word of "cc", so it can be a program name with args.
591 set dummy cc; ac_word=$2
592 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
593 echo "configure:594: checking for $ac_word" >&5
594 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 if test -n "$CC"; then
598 ac_cv_prog_CC="$CC" # Let the user override the test.
600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
602 for ac_dir in $PATH; do
603 test -z "$ac_dir" && ac_dir=.
604 if test -f $ac_dir/$ac_word; then
605 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
614 if test $ac_prog_rejected = yes; then
615 # We found a bogon in the path, so make sure we never use it.
616 set dummy $ac_cv_prog_CC
618 if test $# -gt 0; then
619 # We chose a different compiler from the bogus one.
620 # However, it has the same basename, so the bogon will be chosen
621 # first if we set CC to just the basename; use the full file name.
623 set dummy "$ac_dir/$ac_word" "$@"
631 if test -n "$CC"; then
632 echo "$ac_t""$CC" 1>&6
634 echo "$ac_t""no" 1>&6
637 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
640 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
641 echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
644 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 ac_cpp='$CPP $CPPFLAGS'
646 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 cross_compiling=$ac_cv_prog_cc_cross
650 cat > conftest.$ac_ext <<EOF
651 #line 652 "configure"
652 #include "confdefs.h"
655 if { (eval echo configure:656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
656 ac_cv_prog_cc_works=yes
657 # If we can't run a trivial program, we are probably using a cross compiler.
658 if (./conftest; exit) 2>/dev/null; then
659 ac_cv_prog_cc_cross=no
661 ac_cv_prog_cc_cross=yes
664 echo "configure: failed program was:" >&5
665 cat conftest.$ac_ext >&5
666 ac_cv_prog_cc_works=no
670 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
671 if test $ac_cv_prog_cc_works = no; then
672 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
674 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
675 echo "configure:676: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
676 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
677 cross_compiling=$ac_cv_prog_cc_cross
679 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
680 echo "configure:681: checking whether we are using GNU C" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 cat > conftest.c <<EOF
689 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
696 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
698 if test $ac_cv_prog_gcc = yes; then
700 ac_test_CFLAGS="${CFLAGS+set}"
701 ac_save_CFLAGS="$CFLAGS"
703 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
704 echo "configure:705: checking whether ${CC-cc} accepts -g" >&5
705 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
706 echo $ac_n "(cached) $ac_c" 1>&6
708 echo 'void f(){}' > conftest.c
709 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
718 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
719 if test "$ac_test_CFLAGS" = set; then
720 CFLAGS="$ac_save_CFLAGS"
721 elif test $ac_cv_prog_cc_g = yes; then
728 test "${CFLAGS+set}" = set || CFLAGS="-g"
732 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
733 if test -f $ac_dir/install-sh; then
735 ac_install_sh="$ac_aux_dir/install-sh -c"
737 elif test -f $ac_dir/install.sh; then
739 ac_install_sh="$ac_aux_dir/install.sh -c"
743 if test -z "$ac_aux_dir"; then
744 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
746 ac_config_guess=$ac_aux_dir/config.guess
747 ac_config_sub=$ac_aux_dir/config.sub
748 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
750 # Find a good install program. We prefer a C program (faster),
751 # so one script is as good as another. But avoid the broken or
752 # incompatible versions:
753 # SysV /etc/install, /usr/sbin/install
754 # SunOS /usr/etc/install
757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
759 # ./install, which can be erroneously created by make from ./install.sh.
760 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
761 echo "configure:762: checking for a BSD compatible install" >&5
762 if test -z "$INSTALL"; then
763 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
766 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
767 for ac_dir in $PATH; do
768 # Account for people who put trailing slashes in PATH elements.
770 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
772 # OSF1 and SCO ODT 3.0 have their own names for install.
773 for ac_prog in ginstall installbsd scoinst install; do
774 if test -f $ac_dir/$ac_prog; then
775 if test $ac_prog = install &&
776 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
777 # AIX install. It has an incompatible calling convention.
778 # OSF/1 installbsd also uses dspmsg, but is usable.
781 ac_cv_path_install="$ac_dir/$ac_prog -c"
792 if test "${ac_cv_path_install+set}" = set; then
793 INSTALL="$ac_cv_path_install"
795 # As a last resort, use the slow shell script. We don't cache a
796 # path for INSTALL within a source directory, because that will
797 # break other packages using the cache if that directory is
798 # removed, or if the path is relative.
799 INSTALL="$ac_install_sh"
802 echo "$ac_t""$INSTALL" 1>&6
804 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
805 # It thinks the first close brace ends the variable substitution.
806 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
808 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
812 for ac_prog in mawk gawk nawk awk
814 # Extract the first word of "$ac_prog", so it can be a program name with args.
815 set dummy $ac_prog; ac_word=$2
816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817 echo "configure:818: checking for $ac_word" >&5
818 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
819 echo $ac_n "(cached) $ac_c" 1>&6
821 if test -n "$AWK"; then
822 ac_cv_prog_AWK="$AWK" # Let the user override the test.
824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
825 for ac_dir in $PATH; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word; then
828 ac_cv_prog_AWK="$ac_prog"
835 AWK="$ac_cv_prog_AWK"
836 if test -n "$AWK"; then
837 echo "$ac_t""$AWK" 1>&6
839 echo "$ac_t""no" 1>&6
842 test -n "$AWK" && break
847 # Do some error checking and defaulting for the host and target type.
849 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
852 # 1. You are not allowed to specify --host, --target, and nonopt at the
854 # 2. Host defaults to nonopt.
855 # 3. If nonopt is not specified, then host defaults to the current host,
856 # as determined by config.guess.
857 # 4. Target and build default to nonopt.
858 # 5. If nonopt is not specified, then target and build default to host.
860 # The aliases save the names the user supplied, while $host etc.
861 # will get canonicalized.
862 case $host---$target---$nonopt in
863 NONE---*---* | *---NONE---* | *---*---NONE) ;;
864 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
868 # Make sure we can run config.sub.
869 if $ac_config_sub sun4 >/dev/null 2>&1; then :
870 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
873 echo $ac_n "checking host system type""... $ac_c" 1>&6
874 echo "configure:875: checking host system type" >&5
877 case "$host_alias" in
881 if host_alias=`$ac_config_guess`; then :
882 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
884 *) host_alias=$nonopt ;;
888 host=`$ac_config_sub $host_alias`
889 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
890 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
891 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
892 echo "$ac_t""$host" 1>&6
894 echo $ac_n "checking target system type""... $ac_c" 1>&6
895 echo "configure:896: checking target system type" >&5
898 case "$target_alias" in
901 NONE) target_alias=$host_alias ;;
902 *) target_alias=$nonopt ;;
906 target=`$ac_config_sub $target_alias`
907 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
908 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
909 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
910 echo "$ac_t""$target" 1>&6
912 echo $ac_n "checking build system type""... $ac_c" 1>&6
913 echo "configure:914: checking build system type" >&5
916 case "$build_alias" in
919 NONE) build_alias=$host_alias ;;
920 *) build_alias=$nonopt ;;
924 build=`$ac_config_sub $build_alias`
925 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
926 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
927 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
928 echo "$ac_t""$build" 1>&6
930 test "$host_alias" != "$target_alias" &&
931 test "$program_prefix$program_suffix$program_transform_name" = \
933 program_prefix=${target_alias}-
936 *linux*) cat >> confdefs.h <<\EOF
940 *solaris*) cat >> confdefs.h <<\EOF
944 *sunos*) cat >> confdefs.h <<\EOF
948 *irix*) cat >> confdefs.h <<\EOF
952 *aix*) cat >> confdefs.h <<\EOF
956 *hpux*) cat >> confdefs.h <<\EOF
960 *qnx*) cat >> confdefs.h <<\EOF
964 *osf1*) cat >> confdefs.h <<\EOF
968 *sco*) cat >> confdefs.h <<\EOF
972 *next2*) cat >> confdefs.h <<\EOF
980 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
981 echo "configure:982: checking config.cache system type" >&5
982 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
983 test x"$ac_cv_host_system_type" != x"$host"; } ||
984 { test x"${ac_cv_build_system_type+set}" = x"set" &&
985 test x"$ac_cv_build_system_type" != x"$build"; } ||
986 { test x"${ac_cv_target_system_type+set}" = x"set" &&
987 test x"$ac_cv_target_system_type" != x"$target"; }; then
988 echo "$ac_t""different" 1>&6
989 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
991 echo "$ac_t""same" 1>&6
993 ac_cv_host_system_type="$host"
994 ac_cv_build_system_type="$build"
995 ac_cv_target_system_type="$target"
998 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
999 if test "${enable_maintainer_mode+set}" = set; then
1000 enableval="$enable_maintainer_mode"
1001 maint_mode=$enableval
1006 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1008 # Extract the first word of "autoconf", so it can be a program name with args.
1009 set dummy autoconf; ac_word=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1017 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1021 for ac_dir in $PATH; do
1022 test -z "$ac_dir" && ac_dir=.
1023 if test -f $ac_dir/$ac_word; then
1024 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1029 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1033 AUTOCONF="$ac_cv_path_AUTOCONF"
1034 if test -n "$AUTOCONF"; then
1035 echo "$ac_t""$AUTOCONF" 1>&6
1037 echo "$ac_t""no" 1>&6
1041 # Extract the first word of "autoheader", so it can be a program name with args.
1042 set dummy autoheader; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1048 case "$AUTOHEADER" in
1050 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1062 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1066 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1067 if test -n "$AUTOHEADER"; then
1068 echo "$ac_t""$AUTOHEADER" 1>&6
1070 echo "$ac_t""no" 1>&6
1076 echo $ac_n "checking for inline""... $ac_c" 1>&6
1077 echo "configure:1078: checking for inline" >&5
1078 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1082 for ac_kw in inline __inline__ __inline; do
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1091 if { (eval echo configure:1092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1093 ac_cv_c_inline=$ac_kw; break
1095 echo "configure: failed program was:" >&5
1096 cat conftest.$ac_ext >&5
1103 echo "$ac_t""$ac_cv_c_inline" 1>&6
1104 case "$ac_cv_c_inline" in
1106 no) cat >> confdefs.h <<\EOF
1110 *) cat >> confdefs.h <<EOF
1111 #define inline $ac_cv_c_inline
1116 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1117 echo "configure:1118: checking how to run the C preprocessor" >&5
1118 # On Suns, sometimes $CPP names a directory.
1119 if test -n "$CPP" && test -d "$CPP"; then
1122 if test -z "$CPP"; then
1123 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 # This must be in double quotes, not single quotes, because CPP may get
1127 # substituted into the Makefile and "${CC-cc}" will confuse make.
1129 # On the NeXT, cc -E runs the code through the compiler's parser,
1130 # not just through cpp.
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1138 { (eval echo configure:1139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1139 ac_err=`grep -v '^ *+' conftest.out`
1140 if test -z "$ac_err"; then
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1147 CPP="${CC-cc} -E -traditional-cpp"
1148 cat > conftest.$ac_ext <<EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1155 { (eval echo configure:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1156 ac_err=`grep -v '^ *+' conftest.out`
1157 if test -z "$ac_err"; then
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1169 ac_cv_prog_CPP="$CPP"
1171 CPP="$ac_cv_prog_CPP"
1173 ac_cv_prog_CPP="$CPP"
1175 echo "$ac_t""$CPP" 1>&6
1177 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1178 echo "configure:1179: checking for ANSI C header files" >&5
1179 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 cat > conftest.$ac_ext <<EOF
1183 #line 1184 "configure"
1184 #include "confdefs.h"
1190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1191 { (eval echo configure:1192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1192 ac_err=`grep -v '^ *+' conftest.out`
1193 if test -z "$ac_err"; then
1195 ac_cv_header_stdc=yes
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1201 ac_cv_header_stdc=no
1205 if test $ac_cv_header_stdc = yes; then
1206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1207 cat > conftest.$ac_ext <<EOF
1208 #line 1209 "configure"
1209 #include "confdefs.h"
1212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1213 egrep "memchr" >/dev/null 2>&1; then
1217 ac_cv_header_stdc=no
1223 if test $ac_cv_header_stdc = yes; then
1224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1231 egrep "free" >/dev/null 2>&1; then
1235 ac_cv_header_stdc=no
1241 if test $ac_cv_header_stdc = yes; then
1242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1243 if test "$cross_compiling" = yes; then
1246 cat > conftest.$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1250 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1251 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1253 int main () { int i; for (i = 0; i < 256; i++)
1254 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1258 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1262 echo "configure: failed program was:" >&5
1263 cat conftest.$ac_ext >&5
1265 ac_cv_header_stdc=no
1273 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1274 if test $ac_cv_header_stdc = yes; then
1275 cat >> confdefs.h <<\EOF
1276 #define STDC_HEADERS 1
1282 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1285 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_hdr that defines DIR" >&5
1287 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1292 "configure"
1292 #include "confdefs.h"
1293 #include <sys/types.h>
1299 if { (eval echo configure:1300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1301 eval "ac_cv_header_dirent_$ac_safe=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_header_dirent_$ac_safe=no"
1310 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1313 cat >> confdefs.h <<EOF
1314 #define $ac_tr_hdr 1
1316 ac_header_dirent=$ac_hdr; break
1318 echo "$ac_t""no" 1>&6
1321 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1322 if test $ac_header_dirent = dirent.h; then
1323 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1324 echo "configure:1325: checking for opendir in -ldir" >&5
1325 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 ac_save_LIBS="$LIBS"
1331 cat > conftest.$ac_ext <<EOF
1332 #line 1333 "configure"
1333 #include "confdefs.h"
1334 /* Override any gcc2 internal prototype to avoid an error. */
1335 /* We use char because int might match the return type of a gcc2
1336 builtin and then its argument prototype would still apply. */
1343 if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1345 eval "ac_cv_lib_$ac_lib_var=yes"
1347 echo "configure: failed program was:" >&5
1348 cat conftest.$ac_ext >&5
1350 eval "ac_cv_lib_$ac_lib_var=no"
1353 LIBS="$ac_save_LIBS"
1356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
1360 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1365 echo "configure:1366: checking for opendir in -lx" >&5
1366 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 ac_save_LIBS="$LIBS"
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 eval "ac_cv_lib_$ac_lib_var=no"
1394 LIBS="$ac_save_LIBS"
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1401 echo "$ac_t""no" 1>&6
1406 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether time.h and sys/time.h may both be included" >&5
1408 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1414 #include <sys/types.h>
1415 #include <sys/time.h>
1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1423 ac_cv_header_time=yes
1425 echo "configure: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1428 ac_cv_header_time=no
1433 echo "$ac_t""$ac_cv_header_time" 1>&6
1434 if test $ac_cv_header_time = yes; then
1435 cat >> confdefs.h <<\EOF
1436 #define TIME_WITH_SYS_TIME 1
1441 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1442 echo "configure:1443: checking for sys/wait.h that is POSIX.1 compatible" >&5
1443 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <sys/types.h>
1450 #include <sys/wait.h>
1452 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1455 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1460 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1463 if { (eval echo configure:1464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1465 ac_cv_header_sys_wait_h=yes
1467 echo "configure: failed program was:" >&5
1468 cat conftest.$ac_ext >&5
1470 ac_cv_header_sys_wait_h=no
1475 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1476 if test $ac_cv_header_sys_wait_h = yes; then
1477 cat >> confdefs.h <<\EOF
1478 #define HAVE_SYS_WAIT_H 1
1483 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_hdr" >&5
1488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 cat > conftest.$ac_ext <<EOF
1492 #line 1493 "configure"
1493 #include "confdefs.h"
1496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1497 { (eval echo configure:1498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1498 ac_err=`grep -v '^ *+' conftest.out`
1499 if test -z "$ac_err"; then
1501 eval "ac_cv_header_$ac_safe=yes"
1504 echo "configure: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1507 eval "ac_cv_header_$ac_safe=no"
1511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1512 echo "$ac_t""yes" 1>&6
1513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1514 cat >> confdefs.h <<EOF
1515 #define $ac_tr_hdr 1
1519 echo "$ac_t""no" 1>&6
1523 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_hdr" >&5
1528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1537 { (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1538 ac_err=`grep -v '^ *+' conftest.out`
1539 if test -z "$ac_err"; then
1541 eval "ac_cv_header_$ac_safe=yes"
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1547 eval "ac_cv_header_$ac_safe=no"
1551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1552 echo "$ac_t""yes" 1>&6
1553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1554 cat >> confdefs.h <<EOF
1555 #define $ac_tr_hdr 1
1559 echo "$ac_t""no" 1>&6
1563 for ac_hdr in compat.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1567 echo "configure:1568: checking for $ac_hdr" >&5
1568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out`
1579 if test -z "$ac_err"; then
1581 eval "ac_cv_header_$ac_safe=yes"
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1587 eval "ac_cv_header_$ac_safe=no"
1591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1592 echo "$ac_t""yes" 1>&6
1593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1594 cat >> confdefs.h <<EOF
1595 #define $ac_tr_hdr 1
1599 echo "$ac_t""no" 1>&6
1603 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_hdr" >&5
1608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1617 { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1618 ac_err=`grep -v '^ *+' conftest.out`
1619 if test -z "$ac_err"; then
1621 eval "ac_cv_header_$ac_safe=yes"
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1627 eval "ac_cv_header_$ac_safe=no"
1631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1632 echo "$ac_t""yes" 1>&6
1633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1634 cat >> confdefs.h <<EOF
1635 #define $ac_tr_hdr 1
1639 echo "$ac_t""no" 1>&6
1643 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1647 echo "configure:1648: checking for $ac_hdr" >&5
1648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1657 { (eval echo configure:1658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1658 ac_err=`grep -v '^ *+' conftest.out`
1659 if test -z "$ac_err"; then
1661 eval "ac_cv_header_$ac_safe=yes"
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1667 eval "ac_cv_header_$ac_safe=no"
1671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1672 echo "$ac_t""yes" 1>&6
1673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1674 cat >> confdefs.h <<EOF
1675 #define $ac_tr_hdr 1
1679 echo "$ac_t""no" 1>&6
1683 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_hdr" >&5
1688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err=`grep -v '^ *+' conftest.out`
1699 if test -z "$ac_err"; then
1701 eval "ac_cv_header_$ac_safe=yes"
1704 echo "configure: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1707 eval "ac_cv_header_$ac_safe=no"
1711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1712 echo "$ac_t""yes" 1>&6
1713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1714 cat >> confdefs.h <<EOF
1715 #define $ac_tr_hdr 1
1719 echo "$ac_t""no" 1>&6
1723 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1727 echo "configure:1728: checking for $ac_hdr" >&5
1728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 cat > conftest.$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1737 { (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1738 ac_err=`grep -v '^ *+' conftest.out`
1739 if test -z "$ac_err"; then
1741 eval "ac_cv_header_$ac_safe=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 eval "ac_cv_header_$ac_safe=no"
1751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1754 cat >> confdefs.h <<EOF
1755 #define $ac_tr_hdr 1
1759 echo "$ac_t""no" 1>&6
1763 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1767 echo "configure:1768: checking for $ac_hdr" >&5
1768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1777 { (eval echo configure:1778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1778 ac_err=`grep -v '^ *+' conftest.out`
1779 if test -z "$ac_err"; then
1781 eval "ac_cv_header_$ac_safe=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 eval "ac_cv_header_$ac_safe=no"
1791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1794 cat >> confdefs.h <<EOF
1795 #define $ac_tr_hdr 1
1799 echo "$ac_t""no" 1>&6
1803 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_hdr" >&5
1808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1817 { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1818 ac_err=`grep -v '^ *+' conftest.out`
1819 if test -z "$ac_err"; then
1821 eval "ac_cv_header_$ac_safe=yes"
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1827 eval "ac_cv_header_$ac_safe=no"
1831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1834 cat >> confdefs.h <<EOF
1835 #define $ac_tr_hdr 1
1839 echo "$ac_t""no" 1>&6
1843 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_hdr" >&5
1848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1857 { (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1858 ac_err=`grep -v '^ *+' conftest.out`
1859 if test -z "$ac_err"; then
1861 eval "ac_cv_header_$ac_safe=yes"
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1867 eval "ac_cv_header_$ac_safe=no"
1871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1872 echo "$ac_t""yes" 1>&6
1873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1874 cat >> confdefs.h <<EOF
1875 #define $ac_tr_hdr 1
1879 echo "$ac_t""no" 1>&6
1883 for ac_hdr in readline/history.h sys/capability.h sysacll.h sys/syscall.h
1885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_hdr" >&5
1888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1897 { (eval echo configure:1898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1898 ac_err=`grep -v '^ *+' conftest.out`
1899 if test -z "$ac_err"; then
1901 eval "ac_cv_header_$ac_safe=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_header_$ac_safe=no"
1911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1912 echo "$ac_t""yes" 1>&6
1913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1914 cat >> confdefs.h <<EOF
1915 #define $ac_tr_hdr 1
1919 echo "$ac_t""no" 1>&6
1924 echo $ac_n "checking size of int""... $ac_c" 1>&6
1925 echo "configure:1926: checking size of int" >&5
1926 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 if test "$cross_compiling" = yes; then
1930 ac_cv_sizeof_int=cross
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1934 "configure"
1934 #include "confdefs.h"
1938 FILE *f=fopen("conftestval", "w");
1940 fprintf(f, "%d\n", sizeof(int));
1944 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1946 ac_cv_sizeof_int=`cat conftestval`
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1957 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1958 cat >> confdefs.h <<EOF
1959 #define SIZEOF_INT $ac_cv_sizeof_int
1963 echo $ac_n "checking size of long""... $ac_c" 1>&6
1964 echo "configure:1965: checking size of long" >&5
1965 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 if test "$cross_compiling" = yes; then
1969 ac_cv_sizeof_long=cross
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1977 FILE *f=fopen("conftestval", "w");
1979 fprintf(f, "%d\n", sizeof(long));
1983 if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1985 ac_cv_sizeof_long=`cat conftestval`
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1996 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1997 cat >> confdefs.h <<EOF
1998 #define SIZEOF_LONG $ac_cv_sizeof_long
2002 echo $ac_n "checking size of short""... $ac_c" 1>&6
2003 echo "configure:2004: checking size of short" >&5
2004 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 if test "$cross_compiling" = yes; then
2008 ac_cv_sizeof_short=cross
2010 cat > conftest.$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2016 FILE *f=fopen("conftestval", "w");
2018 fprintf(f, "%d\n", sizeof(short));
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2024 ac_cv_sizeof_short=`cat conftestval`
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 ac_cv_sizeof_short=0
2035 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2036 cat >> confdefs.h <<EOF
2037 #define SIZEOF_SHORT $ac_cv_sizeof_short
2042 echo $ac_n "checking for working const""... $ac_c" 1>&6
2043 echo "configure:2044: checking for working const" >&5
2044 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2053 /* Ultrix mips cc rejects this. */
2054 typedef int charset[2]; const charset x;
2055 /* SunOS 4.1.1 cc rejects this. */
2056 char const *const *ccp;
2058 /* NEC SVR4.0.2 mips cc rejects this. */
2059 struct point {int x, y;};
2060 static struct point const zero = {0,0};
2061 /* AIX XL C 1.02.0.0 rejects this.
2062 It does not let you subtract one const X* pointer from another in an arm
2063 of an if-expression whose if-part is not a constant expression */
2064 const char *g = "string";
2065 ccp = &g + (g ? g-g : 0);
2066 /* HPUX 7.0 cc rejects these. */
2069 ccp = (char const *const *) p;
2070 { /* SCO 3.2v4 cc rejects this. */
2072 char const *s = 0 ? (char *) 0 : (char const *) 0;
2076 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2078 const int *foo = &x[0];
2081 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2082 typedef const int *iptr;
2086 { /* AIX XL C 1.02.0.0 rejects this saying
2087 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2088 struct s { int j; const int *ap[3]; };
2089 struct s *b; b->j = 5;
2091 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2097 if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2109 echo "$ac_t""$ac_cv_c_const" 1>&6
2110 if test $ac_cv_c_const = no; then
2111 cat >> confdefs.h <<\EOF
2117 echo $ac_n "checking for inline""... $ac_c" 1>&6
2118 echo "configure:2119: checking for inline" >&5
2119 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2123 for ac_kw in inline __inline__ __inline; do
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2132 if { (eval echo configure:2133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2134 ac_cv_c_inline=$ac_kw; break
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2144 echo "$ac_t""$ac_cv_c_inline" 1>&6
2145 case "$ac_cv_c_inline" in
2147 no) cat >> confdefs.h <<\EOF
2151 *) cat >> confdefs.h <<EOF
2152 #define inline $ac_cv_c_inline
2157 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2158 echo "configure:2159: checking whether byte ordering is bigendian" >&5
2159 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 ac_cv_c_bigendian=unknown
2163 # See if sys/param.h defines the BYTE_ORDER macro.
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 #include <sys/types.h>
2168 #include <sys/param.h>
2171 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2176 if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2178 # It does; now see whether it defined to BIG_ENDIAN or not.
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <sys/types.h>
2183 #include <sys/param.h>
2186 #if BYTE_ORDER != BIG_ENDIAN
2191 if { (eval echo configure:2192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2193 ac_cv_c_bigendian=yes
2195 echo "configure: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2198 ac_cv_c_bigendian=no
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2206 if test $ac_cv_c_bigendian = unknown; then
2207 if test "$cross_compiling" = yes; then
2208 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2214 /* Are we little or big endian? From Harbison&Steele. */
2218 char c[sizeof (long)];
2221 exit (u.c[sizeof (long) - 1] == 1);
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2226 ac_cv_c_bigendian=no
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2231 ac_cv_c_bigendian=yes
2239 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2240 if test $ac_cv_c_bigendian = yes; then
2241 cat >> confdefs.h <<\EOF
2242 #define WORDS_BIGENDIAN 1
2247 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2248 echo "configure:2249: checking whether char is unsigned" >&5
2249 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 if test "$GCC" = yes; then
2253 # GCC predefines this symbol on systems where it applies.
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 #ifdef __CHAR_UNSIGNED__
2262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2263 egrep "yes" >/dev/null 2>&1; then
2265 ac_cv_c_char_unsigned=yes
2268 ac_cv_c_char_unsigned=no
2273 if test "$cross_compiling" = yes; then
2274 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2280 #if !defined(__STDC__) || __STDC__ != 1
2284 volatile char c = 255; exit(c < 0);
2287 if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2289 ac_cv_c_char_unsigned=yes
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 ac_cv_c_char_unsigned=no
2302 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2303 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2304 cat >> confdefs.h <<\EOF
2305 #define __CHAR_UNSIGNED__ 1
2311 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2312 echo "configure:2313: checking return type of signal handlers" >&5
2313 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 cat > conftest.$ac_ext <<EOF
2317 #line 2318 "configure"
2318 #include "confdefs.h"
2319 #include <sys/types.h>
2325 extern "C" void (*signal (int, void (*)(int)))(int);
2327 void (*signal ()) ();
2334 if { (eval echo configure:2335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2336 ac_cv_type_signal=void
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 ac_cv_type_signal=int
2346 echo "$ac_t""$ac_cv_type_signal" 1>&6
2347 cat >> confdefs.h <<EOF
2348 #define RETSIGTYPE $ac_cv_type_signal
2352 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2353 echo "configure:2354: checking for uid_t in sys/types.h" >&5
2354 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 #include <sys/types.h>
2362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2363 egrep "uid_t" >/dev/null 2>&1; then
2365 ac_cv_type_uid_t=yes
2374 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2375 if test $ac_cv_type_uid_t = no; then
2376 cat >> confdefs.h <<\EOF
2380 cat >> confdefs.h <<\EOF
2386 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2387 echo "configure:2388: checking for mode_t" >&5
2388 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2394 #include <sys/types.h>
2400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2401 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2403 ac_cv_type_mode_t=yes
2406 ac_cv_type_mode_t=no
2411 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2412 if test $ac_cv_type_mode_t = no; then
2413 cat >> confdefs.h <<\EOF
2419 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2420 echo "configure:2421: checking for off_t" >&5
2421 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <sys/types.h>
2433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2434 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2436 ac_cv_type_off_t=yes
2444 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2445 if test $ac_cv_type_off_t = no; then
2446 cat >> confdefs.h <<\EOF
2452 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2453 echo "configure:2454: checking for size_t" >&5
2454 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 #include <sys/types.h>
2466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2467 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2469 ac_cv_type_size_t=yes
2472 ac_cv_type_size_t=no
2477 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2478 if test $ac_cv_type_size_t = no; then
2479 cat >> confdefs.h <<\EOF
2480 #define size_t unsigned
2485 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2486 echo "configure:2487: checking for pid_t" >&5
2487 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #include <sys/types.h>
2499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2500 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2502 ac_cv_type_pid_t=yes
2510 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2511 if test $ac_cv_type_pid_t = no; then
2512 cat >> confdefs.h <<\EOF
2518 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2519 echo "configure:2520: checking for st_rdev in struct stat" >&5
2520 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2526 #include <sys/types.h>
2527 #include <sys/stat.h>
2529 struct stat s; s.st_rdev;
2532 if { (eval echo configure:2533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2534 ac_cv_struct_st_rdev=yes
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2539 ac_cv_struct_st_rdev=no
2544 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2545 if test $ac_cv_struct_st_rdev = yes; then
2546 cat >> confdefs.h <<\EOF
2547 #define HAVE_ST_RDEV 1
2552 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2553 echo "configure:2554: checking for ino_t" >&5
2554 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #include <sys/types.h>
2566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2567 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2569 ac_cv_type_ino_t=yes
2577 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2578 if test $ac_cv_type_ino_t = no; then
2579 cat >> confdefs.h <<\EOF
2580 #define ino_t unsigned
2585 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2586 echo "configure:2587: checking for ssize_t" >&5
2587 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2600 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2602 ac_cv_type_ssize_t=yes
2605 ac_cv_type_ssize_t=no
2610 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2611 if test $ac_cv_type_ssize_t = no; then
2612 cat >> confdefs.h <<\EOF
2619 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2620 echo "configure:2621: checking for errno in errno.h" >&5
2621 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2633 if { (eval echo configure:2634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 samba_cv_have_errno_decl=no
2645 echo "$ac_t""$samba_cv_errno" 1>&6
2646 if test x"$samba_cv_errno" = x"yes"; then
2647 cat >> confdefs.h <<\EOF
2648 #define HAVE_ERRNO_DECL 1
2653 # stupid glibc has the functions but no declaration. grrrr.
2654 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2655 echo "configure:2656: checking for setresuid declaration" >&5
2656 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2668 if { (eval echo configure:2669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2670 samba_cv_have_setresuid_decl=yes
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2675 samba_cv_have_setresuid_decl=no
2680 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2681 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2682 cat >> confdefs.h <<\EOF
2683 #define HAVE_SETRESUID_DECL 1
2688 # and glibc has setresuid under linux but the function does
2689 # nothing until kernel 2.1.44! very dumb.
2690 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2691 echo "configure:2692: checking for real setresuid" >&5
2692 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2696 if test "$cross_compiling" = yes; then
2697 samba_cv_have_setresuid=cross
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2703 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2707 samba_cv_have_setresuid=yes
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 samba_cv_have_setresuid=no
2719 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2720 if test x"$samba_cv_have_setresuid" = x"yes"; then
2721 cat >> confdefs.h <<\EOF
2722 #define HAVE_SETRESUID 1
2727 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2728 echo "configure:2729: checking for 8-bit clean memcmp" >&5
2729 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 if test "$cross_compiling" = yes; then
2733 ac_cv_func_memcmp_clean=no
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2741 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2742 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2748 ac_cv_func_memcmp_clean=yes
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2753 ac_cv_func_memcmp_clean=no
2760 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2761 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2764 ###############################################
2765 # test for where we get crypt() from
2766 for ac_func in crypt
2768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_func" >&5
2770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $ac_func(); below. */
2779 /* Override any gcc2 internal prototype to avoid an error. */
2780 /* We use char because int might match the return type of a gcc2
2781 builtin and then its argument prototype would still apply. */
2786 /* The GNU C library defines this for functions which it implements
2787 to always fail with ENOSYS. Some functions are actually named
2788 something starting with __ and the normal name is an alias. */
2789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2799 eval "ac_cv_func_$ac_func=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_func_$ac_func=no"
2809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2812 cat >> confdefs.h <<EOF
2813 #define $ac_tr_func 1
2817 echo "$ac_t""no" 1>&6
2821 if test x"$ac_cv_func_crypt" = x"no"; then
2822 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2823 echo "configure:2824: checking for crypt in -lcrypt" >&5
2824 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 ac_save_LIBS="$LIBS"
2829 LIBS="-lcrypt $LIBS"
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2833 /* Override any gcc2 internal prototype to avoid an error. */
2834 /* We use char because int might match the return type of a gcc2
2835 builtin and then its argument prototype would still apply. */
2842 if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2844 eval "ac_cv_lib_$ac_lib_var=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_lib_$ac_lib_var=no"
2852 LIBS="$ac_save_LIBS"
2855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2856 echo "$ac_t""yes" 1>&6
2857 LIBS="$LIBS -lcrypt";
2858 cat >> confdefs.h <<\EOF
2859 #define HAVE_CRYPT 1
2863 echo "$ac_t""no" 1>&6
2869 ###############################################
2870 # test for where we get pam_authenticate() from
2871 # might need libdl for this to work
2872 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2873 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
2874 echo "configure:2875: checking for main in -ldl" >&5
2875 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
2876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 ac_save_LIBS="$LIBS"
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2889 if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2891 eval "ac_cv_lib_$ac_lib_var=yes"
2893 echo "configure: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2896 eval "ac_cv_lib_$ac_lib_var=no"
2899 LIBS="$ac_save_LIBS"
2902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2906 cat >> confdefs.h <<EOF
2907 #define $ac_tr_lib 1
2913 echo "$ac_t""no" 1>&6
2917 for ac_func in pam_authenticate
2919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2920 echo "configure:2921: checking for $ac_func" >&5
2921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char $ac_func(); below. */
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2937 /* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2950 eval "ac_cv_func_$ac_func=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2955 eval "ac_cv_func_$ac_func=no"
2960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_func 1
2968 echo "$ac_t""no" 1>&6
2972 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
2973 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2974 echo "configure:2975: checking for pam_authenticate in -lpam" >&5
2975 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 ac_save_LIBS="$LIBS"
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2987 char pam_authenticate();
2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2995 eval "ac_cv_lib_$ac_lib_var=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_lib_$ac_lib_var=no"
3003 LIBS="$ac_save_LIBS"
3006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3009 cat >> confdefs.h <<\EOF
3010 #define HAVE_PAM_AUTHENTICATE 1
3014 echo "$ac_t""no" 1>&6
3020 ###############################################
3021 # test for where we get readline() from
3022 if test "$ac_cv_header_readline_h" = "yes" ||
3023 test "$ac_cv_header_readline_readline_h" = "yes"; then
3024 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3025 echo "configure:3026: checking for readline in -lreadline" >&5
3026 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 ac_save_LIBS="$LIBS"
3031 LIBS="-lreadline $LIBS"
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3044 if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3046 eval "ac_cv_lib_$ac_lib_var=yes"
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3051 eval "ac_cv_lib_$ac_lib_var=no"
3054 LIBS="$ac_save_LIBS"
3057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3060 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3061 cat >> confdefs.h <<EOF
3062 #define $ac_tr_lib 1
3065 LIBS="-lreadline $LIBS"
3068 echo "$ac_t""no" 1>&6
3074 # The following test taken from the cvs sources
3075 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3076 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3077 # libsocket.so which has a bad implementation of gethostbyname (it
3078 # only looks in /etc/hosts), so we only look for -lsocket if we need
3080 for ac_func in connect
3082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3083 echo "configure:3084: checking for $ac_func" >&5
3084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 /* System header to define __stub macros and hopefully few prototypes,
3091 which can conflict with char $ac_func(); below. */
3093 /* Override any gcc2 internal prototype to avoid an error. */
3094 /* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3100 /* The GNU C library defines this for functions which it implements
3101 to always fail with ENOSYS. Some functions are actually named
3102 something starting with __ and the normal name is an alias. */
3103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3113 eval "ac_cv_func_$ac_func=yes"
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3118 eval "ac_cv_func_$ac_func=no"
3123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3126 cat >> confdefs.h <<EOF
3127 #define $ac_tr_func 1
3131 echo "$ac_t""no" 1>&6
3135 if test x"$ac_cv_func_connect" = x"no"; then
3138 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3139 echo "configure:3140: checking for printf in -lnsl_s" >&5
3140 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 ac_save_LIBS="$LIBS"
3145 LIBS="-lnsl_s $LIBS"
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 /* We use char because int might match the return type of a gcc2
3151 builtin and then its argument prototype would still apply. */
3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3160 eval "ac_cv_lib_$ac_lib_var=yes"
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3165 eval "ac_cv_lib_$ac_lib_var=no"
3168 LIBS="$ac_save_LIBS"
3171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3174 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3175 cat >> confdefs.h <<EOF
3176 #define $ac_tr_lib 1
3179 LIBS="-lnsl_s $LIBS"
3182 echo "$ac_t""no" 1>&6
3188 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3189 echo "configure:3190: checking for printf in -lnsl" >&5
3190 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 ac_save_LIBS="$LIBS"
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 /* Override any gcc2 internal prototype to avoid an error. */
3200 /* We use char because int might match the return type of a gcc2
3201 builtin and then its argument prototype would still apply. */
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3210 eval "ac_cv_lib_$ac_lib_var=yes"
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 eval "ac_cv_lib_$ac_lib_var=no"
3218 LIBS="$ac_save_LIBS"
3221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3222 echo "$ac_t""yes" 1>&6
3223 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3225 cat >> confdefs.h <<EOF
3226 #define $ac_tr_lib 1
3232 echo "$ac_t""no" 1>&6
3238 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3239 echo "configure:3240: checking for connect in -lsocket" >&5
3240 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 ac_save_LIBS="$LIBS"
3245 LIBS="-lsocket $LIBS"
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3260 eval "ac_cv_lib_$ac_lib_var=yes"
3262 echo "configure: failed program was:" >&5
3263 cat conftest.$ac_ext >&5
3265 eval "ac_cv_lib_$ac_lib_var=no"
3268 LIBS="$ac_save_LIBS"
3271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3273 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3275 cat >> confdefs.h <<EOF
3276 #define $ac_tr_lib 1
3279 LIBS="-lsocket $LIBS"
3282 echo "$ac_t""no" 1>&6
3288 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3289 echo "configure:3290: checking for connect in -linet" >&5
3290 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 ac_save_LIBS="$LIBS"
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* Override any gcc2 internal prototype to avoid an error. */
3300 /* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3310 eval "ac_cv_lib_$ac_lib_var=yes"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 eval "ac_cv_lib_$ac_lib_var=no"
3318 LIBS="$ac_save_LIBS"
3321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3322 echo "$ac_t""yes" 1>&6
3323 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_lib 1
3332 echo "$ac_t""no" 1>&6
3336 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3337 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3338 # ac_cv_func_connect=yes
3339 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3340 cat >> confdefs.h <<\EOF
3341 #define HAVE_CONNECT 1
3348 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3381 eval "ac_cv_func_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_$ac_func=no"
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3399 echo "$ac_t""no" 1>&6
3403 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_func" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3436 eval "ac_cv_func_$ac_func=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 eval "ac_cv_func_$ac_func=no"
3446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_func 1
3454 echo "$ac_t""no" 1>&6
3458 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461 echo "configure:3462: checking for $ac_func" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char $ac_func(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3491 eval "ac_cv_func_$ac_func=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_func_$ac_func=no"
3501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504 cat >> confdefs.h <<EOF
3505 #define $ac_tr_func 1
3509 echo "$ac_t""no" 1>&6
3513 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3516 echo "configure:3517: checking for $ac_func" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char $ac_func(); below. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3546 eval "ac_cv_func_$ac_func=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_func_$ac_func=no"
3556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3559 cat >> confdefs.h <<EOF
3560 #define $ac_tr_func 1
3564 echo "$ac_t""no" 1>&6
3568 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_func" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3601 eval "ac_cv_func_$ac_func=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_func_$ac_func=no"
3611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614 cat >> confdefs.h <<EOF
3615 #define $ac_tr_func 1
3619 echo "$ac_t""no" 1>&6
3623 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_func" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char $ac_func(); below. */
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3656 eval "ac_cv_func_$ac_func=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_func_$ac_func=no"
3666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_func 1
3674 echo "$ac_t""no" 1>&6
3678 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $ac_func" >&5
3682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 /* System header to define __stub macros and hopefully few prototypes,
3689 which can conflict with char $ac_func(); below. */
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3698 /* The GNU C library defines this for functions which it implements
3699 to always fail with ENOSYS. Some functions are actually named
3700 something starting with __ and the normal name is an alias. */
3701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3711 eval "ac_cv_func_$ac_func=yes"
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3716 eval "ac_cv_func_$ac_func=no"
3721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3724 cat >> confdefs.h <<EOF
3725 #define $ac_tr_func 1
3729 echo "$ac_t""no" 1>&6
3733 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3736 echo "configure:3737: checking for $ac_func" >&5
3737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* System header to define __stub macros and hopefully few prototypes,
3744 which can conflict with char $ac_func(); below. */
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3753 /* The GNU C library defines this for functions which it implements
3754 to always fail with ENOSYS. Some functions are actually named
3755 something starting with __ and the normal name is an alias. */
3756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3766 eval "ac_cv_func_$ac_func=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_func_$ac_func=no"
3776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3779 cat >> confdefs.h <<EOF
3780 #define $ac_tr_func 1
3784 echo "$ac_t""no" 1>&6
3788 for ac_func in srandom random srand rand
3790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3791 echo "configure:3792: checking for $ac_func" >&5
3792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* System header to define __stub macros and hopefully few prototypes,
3799 which can conflict with char $ac_func(); below. */
3801 /* Override any gcc2 internal prototype to avoid an error. */
3802 /* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3808 /* The GNU C library defines this for functions which it implements
3809 to always fail with ENOSYS. Some functions are actually named
3810 something starting with __ and the normal name is an alias. */
3811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3819 if { (eval echo configure:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3821 eval "ac_cv_func_$ac_func=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3826 eval "ac_cv_func_$ac_func=no"
3831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3834 cat >> confdefs.h <<EOF
3835 #define $ac_tr_func 1
3839 echo "$ac_t""no" 1>&6
3844 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
3846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3847 echo "configure:3848: checking for $ac_func" >&5
3848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 /* System header to define __stub macros and hopefully few prototypes,
3855 which can conflict with char $ac_func(); below. */
3857 /* Override any gcc2 internal prototype to avoid an error. */
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3864 /* The GNU C library defines this for functions which it implements
3865 to always fail with ENOSYS. Some functions are actually named
3866 something starting with __ and the normal name is an alias. */
3867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3877 eval "ac_cv_func_$ac_func=yes"
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3882 eval "ac_cv_func_$ac_func=no"
3887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3890 cat >> confdefs.h <<EOF
3891 #define $ac_tr_func 1
3895 echo "$ac_t""no" 1>&6
3899 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
3901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3902 echo "configure:3903: checking for $ac_func" >&5
3903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* System header to define __stub macros and hopefully few prototypes,
3910 which can conflict with char $ac_func(); below. */
3912 /* Override any gcc2 internal prototype to avoid an error. */
3913 /* We use char because int might match the return type of a gcc2
3914 builtin and then its argument prototype would still apply. */
3919 /* The GNU C library defines this for functions which it implements
3920 to always fail with ENOSYS. Some functions are actually named
3921 something starting with __ and the normal name is an alias. */
3922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3932 eval "ac_cv_func_$ac_func=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 eval "ac_cv_func_$ac_func=no"
3942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3945 cat >> confdefs.h <<EOF
3946 #define $ac_tr_func 1
3950 echo "$ac_t""no" 1>&6
3954 for ac_func in __getcwd _getcwd
3956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3957 echo "configure:3958: checking for $ac_func" >&5
3958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure"
3963 #include "confdefs.h"
3964 /* System header to define __stub macros and hopefully few prototypes,
3965 which can conflict with char $ac_func(); below. */
3967 /* Override any gcc2 internal prototype to avoid an error. */
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3974 /* The GNU C library defines this for functions which it implements
3975 to always fail with ENOSYS. Some functions are actually named
3976 something starting with __ and the normal name is an alias. */
3977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3987 eval "ac_cv_func_$ac_func=yes"
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3992 eval "ac_cv_func_$ac_func=no"
3997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
3999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4000 cat >> confdefs.h <<EOF
4001 #define $ac_tr_func 1
4005 echo "$ac_t""no" 1>&6
4009 for ac_func in __xstat __fxstat __lxstat
4011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_func" >&5
4013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 /* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char $ac_func(); below. */
4022 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4029 /* The GNU C library defines this for functions which it implements
4030 to always fail with ENOSYS. Some functions are actually named
4031 something starting with __ and the normal name is an alias. */
4032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4040 if { (eval echo configure:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4042 eval "ac_cv_func_$ac_func=yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 eval "ac_cv_func_$ac_func=no"
4052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4055 cat >> confdefs.h <<EOF
4056 #define $ac_tr_func 1
4060 echo "$ac_t""no" 1>&6
4064 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4067 echo "configure:4068: checking for $ac_func" >&5
4068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4074 /* System header to define __stub macros and hopefully few prototypes,
4075 which can conflict with char $ac_func(); below. */
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4084 /* The GNU C library defines this for functions which it implements
4085 to always fail with ENOSYS. Some functions are actually named
4086 something starting with __ and the normal name is an alias. */
4087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4097 eval "ac_cv_func_$ac_func=yes"
4099 echo "configure: failed program was:" >&5
4100 cat conftest.$ac_ext >&5
4102 eval "ac_cv_func_$ac_func=no"
4107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4110 cat >> confdefs.h <<EOF
4111 #define $ac_tr_func 1
4115 echo "$ac_t""no" 1>&6
4120 echo $ac_n "checking for long long""... $ac_c" 1>&6
4121 echo "configure:4122: checking for long long" >&5
4122 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4126 if test "$cross_compiling" = yes; then
4127 samba_cv_have_longlong=cross
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4133 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
4135 if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4137 samba_cv_have_longlong=yes
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4142 samba_cv_have_longlong=no
4149 echo "$ac_t""$samba_cv_have_longlong" 1>&6
4150 if test x"$samba_cv_have_longlong" = x"yes"; then
4151 cat >> confdefs.h <<\EOF
4152 #define HAVE_LONGLONG 1
4157 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
4158 echo "configure:4159: checking for 64 bit off_t" >&5
4159 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4163 if test "$cross_compiling" = yes; then
4164 samba_cv_SIZEOF_OFF_T=cross
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4170 #include <sys/stat.h>
4171 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4175 samba_cv_SIZEOF_OFF_T=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 samba_cv_SIZEOF_OFF_T=no
4187 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
4188 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
4189 cat >> confdefs.h <<\EOF
4190 #define SIZEOF_OFF_T 8
4195 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
4196 echo "configure:4197: checking for off64_t" >&5
4197 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4201 if test "$cross_compiling" = yes; then
4202 samba_cv_HAVE_OFF64_T=cross
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4208 #include <sys/stat.h>
4209 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4213 samba_cv_HAVE_OFF64_T=yes
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 samba_cv_HAVE_OFF64_T=no
4225 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
4226 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
4227 cat >> confdefs.h <<\EOF
4228 #define HAVE_OFF64_T 1
4233 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
4234 echo "configure:4235: checking for 64 bit ino_t" >&5
4235 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4239 if test "$cross_compiling" = yes; then
4240 samba_cv_SIZEOF_INO_T=cross
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4246 #include <sys/stat.h>
4247 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4251 samba_cv_SIZEOF_INO_T=yes
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 samba_cv_SIZEOF_INO_T=no
4263 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
4264 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
4265 cat >> confdefs.h <<\EOF
4266 #define SIZEOF_INO_T 8
4271 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
4272 echo "configure:4273: checking for ino64_t" >&5
4273 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4277 if test "$cross_compiling" = yes; then
4278 samba_cv_HAVE_INO64_T=cross
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4284 #include <sys/stat.h>
4285 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4289 samba_cv_HAVE_INO64_T=yes
4291 echo "configure: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4294 samba_cv_HAVE_INO64_T=no
4301 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
4302 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
4303 cat >> confdefs.h <<\EOF
4304 #define HAVE_INO64_T 1
4309 echo $ac_n "checking for union semun""... $ac_c" 1>&6
4310 echo "configure:4311: checking for union semun" >&5
4311 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4315 if test "$cross_compiling" = yes; then
4316 samba_cv_HAVE_UNION_SEMUN=cross
4318 cat > conftest.$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4322 #include <sys/types.h>
4323 #include <sys/ipc.h>
4324 #include <sys/sem.h>
4325 main() { union semun ss; exit(0); }
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4329 samba_cv_HAVE_UNION_SEMUN=yes
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 samba_cv_HAVE_UNION_SEMUN=no
4341 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
4342 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
4343 cat >> confdefs.h <<\EOF
4344 #define HAVE_UNION_SEMUN 1
4349 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
4350 echo "configure:4351: checking for unsigned char" >&5
4351 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4355 if test "$cross_compiling" = yes; then
4356 samba_cv_HAVE_UNSIGNED_CHAR=cross
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4362 main() { char c; c=250; exit((c > 0)?0:1); }
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4366 samba_cv_HAVE_UNSIGNED_CHAR=yes
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 samba_cv_HAVE_UNSIGNED_CHAR=no
4378 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
4379 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_UNSIGNED_CHAR 1
4386 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
4387 echo "configure:4388: checking for sin_len in sock" >&5
4388 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 #include <sys/types.h>
4396 #include <sys/socket.h>
4397 #include <netinet/in.h>
4399 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
4402 if { (eval echo configure:4403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4404 samba_cv_HAVE_SOCK_SIN_LEN=yes
4406 echo "configure: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4409 samba_cv_HAVE_SOCK_SIN_LEN=no
4414 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
4415 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
4416 cat >> confdefs.h <<\EOF
4417 #define HAVE_SOCK_SIN_LEN 1
4422 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
4423 echo "configure:4424: checking for __FILE__ macro" >&5
4424 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4433 printf("%s\n", __FILE__);
4436 if { (eval echo configure:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4438 samba_cv_HAVE_FILE_MACRO=yes
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 samba_cv_HAVE_FILE_MACRO=no
4448 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
4449 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
4450 cat >> confdefs.h <<\EOF
4451 #define HAVE_FILE_MACRO 1
4456 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
4457 echo "configure:4458: checking for __FUNCTION__ macro" >&5
4458 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4467 printf("%s\n", __FUNCTION__);
4470 if { (eval echo configure:4471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4472 samba_cv_HAVE_FUNCTION_MACRO=yes
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 samba_cv_HAVE_FUNCTION_MACRO=no
4482 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
4483 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
4484 cat >> confdefs.h <<\EOF
4485 #define HAVE_FUNCTION_MACRO 1
4490 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
4491 echo "configure:4492: checking if gettimeofday takes tz argument" >&5
4492 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4496 if test "$cross_compiling" = yes; then
4497 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4503 #include <sys/time.h>
4505 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
4507 if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4509 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
4511 echo "configure: failed program was:" >&5
4512 cat conftest.$ac_ext >&5
4514 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
4521 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
4522 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
4523 cat >> confdefs.h <<\EOF
4524 #define HAVE_GETTIMEOFDAY_TZ 1
4530 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
4531 echo "configure:4532: checking for broken readdir" >&5
4532 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4536 if test "$cross_compiling" = yes; then
4537 samba_cv_HAVE_BROKEN_READDIR=cross
4539 cat > conftest.$ac_ext <<EOF
4540 #line 4541 "configure"
4541 #include "confdefs.h"
4542 #include <sys/types.h>
4544 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
4545 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
4546 di->d_name[0] == 0) exit(0); exit(1);}
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4550 samba_cv_HAVE_BROKEN_READDIR=yes
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 samba_cv_HAVE_BROKEN_READDIR=no
4562 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
4563 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
4564 cat >> confdefs.h <<\EOF
4565 #define HAVE_BROKEN_READDIR 1
4570 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
4571 echo "configure:4572: checking for utimbuf" >&5
4572 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 #include <sys/types.h>
4582 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
4585 if { (eval echo configure:4586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 samba_cv_HAVE_UTIMBUF=yes
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 samba_cv_HAVE_UTIMBUF=no
4597 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
4598 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
4599 cat >> confdefs.h <<\EOF
4600 #define HAVE_UTIMBUF 1
4605 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
4606 echo "configure:4607: checking for kernel oplock type definitions" >&5
4607 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 #include <sys/types.h>
4617 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
4620 if { (eval echo configure:4621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4622 samba_cv_HAVE_KERNEL_OPLOCKS=yes
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4627 samba_cv_HAVE_KERNEL_OPLOCKS=no
4632 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
4633 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
4634 cat >> confdefs.h <<\EOF
4635 #define HAVE_KERNEL_OPLOCKS 1
4640 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
4641 echo "configure:4642: checking for irix specific capabilities" >&5
4642 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4646 if test "$cross_compiling" = yes; then
4647 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure"
4651 #include "confdefs.h"
4652 #include <sys/types.h>
4653 #include <sys/capability.h>
4656 if ((cap = cap_get_proc()) == NULL)
4658 cap->cap_effective |= CAP_NETWORK_MGT;
4659 cap->cap_inheritable |= CAP_NETWORK_MGT;
4665 if { (eval echo configure:4666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4667 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
4669 echo "configure: failed program was:" >&5
4670 cat conftest.$ac_ext >&5
4672 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
4679 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
4680 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
4681 cat >> confdefs.h <<\EOF
4682 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
4687 echo $ac_n "checking for test routines""... $ac_c" 1>&6
4688 echo "configure:4689: checking for test routines" >&5
4689 if test "$cross_compiling" = yes; then
4690 echo "configure: warning: cannot run when cross-compiling" 1>&2
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 #include "${srcdir-.}/tests/trivial.c"
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4699 echo "$ac_t""yes" 1>&6
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
4710 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
4711 echo "configure:4712: checking for ftruncate extend" >&5
4712 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4716 if test "$cross_compiling" = yes; then
4717 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 #include "${srcdir-.}/tests/ftruncate.c"
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4726 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 samba_cv_HAVE_FTRUNCATE_EXTEND=no
4738 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
4739 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
4740 cat >> confdefs.h <<\EOF
4741 #define HAVE_FTRUNCATE_EXTEND 1
4746 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
4747 echo "configure:4748: checking for broken getgroups" >&5
4748 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4752 if test "$cross_compiling" = yes; then
4753 samba_cv_HAVE_BROKEN_GETGROUPS=cross
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 #include "${srcdir-.}/tests/getgroups.c"
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4762 samba_cv_HAVE_BROKEN_GETGROUPS=yes
4764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
4767 samba_cv_HAVE_BROKEN_GETGROUPS=no
4774 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
4775 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
4776 cat >> confdefs.h <<\EOF
4777 #define HAVE_BROKEN_GETGROUPS 1
4782 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
4783 echo "configure:4784: checking whether getpass should be replaced" >&5
4784 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4788 SAVE_CPPFLAGS="$CPPFLAGS"
4789 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4794 #define REPLACE_GETPASS 1
4795 #define NO_CONFIG_H 1
4796 #define main dont_declare_main
4797 #include "${srcdir-.}/lib/getsmbpass.c"
4804 if { (eval echo configure:4805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4806 samba_cv_REPLACE_GETPASS=yes
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 samba_cv_REPLACE_GETPASS=no
4814 CPPFLAGS="$SAVE_CPPFLAGS"
4818 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
4819 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
4820 cat >> confdefs.h <<\EOF
4821 #define REPLACE_GETPASS 1
4826 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
4827 echo "configure:4828: checking for broken inet_ntoa" >&5
4828 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4832 if test "$cross_compiling" = yes; then
4833 samba_cv_REPLACE_INET_NTOA=cross
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 #include <sys/types.h>
4841 #include <netinet/in.h>
4842 #include <arpa/inet.h>
4843 main() { struct in_addr ip; ip.s_addr = 0x12345678;
4844 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
4845 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4850 samba_cv_REPLACE_INET_NTOA=yes
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 samba_cv_REPLACE_INET_NTOA=no
4862 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
4863 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
4864 cat >> confdefs.h <<\EOF
4865 #define REPLACE_INET_NTOA 1
4870 echo $ac_n "checking for root""... $ac_c" 1>&6
4871 echo "configure:4872: checking for root" >&5
4872 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4876 if test "$cross_compiling" = yes; then
4877 samba_cv_HAVE_ROOT=cross
4879 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure"
4881 #include "confdefs.h"
4882 main() { exit(getuid() != 0); }
4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4886 samba_cv_HAVE_ROOT=yes
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 samba_cv_HAVE_ROOT=no
4898 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
4899 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
4900 cat >> confdefs.h <<\EOF
4905 echo "configure: warning: running as non-root will disable some tests" 1>&2
4909 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
4910 echo "configure:4911: checking for netmask ifconf" >&5
4911 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4915 if test "$cross_compiling" = yes; then
4916 samba_cv_HAVE_NETMASK_IFCONF=cross
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4922 #define HAVE_NETMASK_IFCONF 1
4924 #include "${srcdir-.}/lib/netmask.c"
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4928 samba_cv_HAVE_NETMASK_IFCONF=yes
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 samba_cv_HAVE_NETMASK_IFCONF=no
4940 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
4941 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
4942 netmask=yes;cat >> confdefs.h <<\EOF
4943 #define HAVE_NETMASK_IFCONF 1
4948 if test $netmask = no; then
4949 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
4950 echo "configure:4951: checking for netmask ifreq" >&5
4951 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4955 if test "$cross_compiling" = yes; then
4956 samba_cv_HAVE_NETMASK_IFREQ=cross
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4962 #define HAVE_NETMASK_IFREQ 1
4964 #include "${srcdir-.}/lib/netmask.c"
4966 if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4968 samba_cv_HAVE_NETMASK_IFREQ=yes
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4973 samba_cv_HAVE_NETMASK_IFREQ=no
4980 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
4981 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
4982 netmask=yes;cat >> confdefs.h <<\EOF
4983 #define HAVE_NETMASK_IFREQ 1
4989 if test $netmask = no; then
4990 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
4991 echo "configure:4992: checking for netmask AIX" >&5
4992 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4996 if test "$cross_compiling" = yes; then
4997 samba_cv_HAVE_NETMASK_AIX=cross
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5003 #define HAVE_NETMASK_AIX 1
5005 #include "${srcdir-.}/lib/netmask.c"
5007 if { (eval echo configure:5008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5009 samba_cv_HAVE_NETMASK_AIX=yes
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 samba_cv_HAVE_NETMASK_AIX=no
5021 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
5022 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
5023 netmask=yes;cat >> confdefs.h <<\EOF
5024 #define HAVE_NETMASK_AIX 1
5030 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
5031 echo "configure:5032: checking for trapdoor seteuid" >&5
5032 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5036 if test "$cross_compiling" = yes; then
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 #include "${srcdir-.}/tests/trapdoor.c"
5044 if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5046 samba_cv_HAVE_TRAPDOOR_UID=no
5048 echo "configure: failed program was:" >&5
5049 cat conftest.$ac_ext >&5
5051 samba_cv_HAVE_TRAPDOOR_UID=yes
5058 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
5059 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
5060 cat >> confdefs.h <<\EOF
5061 #define HAVE_TRAPDOOR_UID 1
5066 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
5067 echo "configure:5068: checking for shared mmap" >&5
5068 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5072 if test "$cross_compiling" = yes; then
5073 samba_cv_HAVE_SHARED_MMAP=cross
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5078 #include "${srcdir-.}/tests/shared_mmap.c"
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5082 samba_cv_HAVE_SHARED_MMAP=yes
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 samba_cv_HAVE_SHARED_MMAP=no
5094 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
5095 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
5096 cat >> confdefs.h <<\EOF
5097 #define HAVE_SHARED_MMAP 1
5102 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
5103 echo "configure:5104: checking for fcntl locking" >&5
5104 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
5105 echo $ac_n "(cached) $ac_c" 1>&6
5108 if test "$cross_compiling" = yes; then
5109 samba_cv_HAVE_FCNTL_LOCK=cross
5111 cat > conftest.$ac_ext <<EOF
5112 #line 5113 "configure"
5113 #include "confdefs.h"
5114 #include "${srcdir-.}/tests/fcntl_lock.c"
5116 if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5118 samba_cv_HAVE_FCNTL_LOCK=yes
5120 echo "configure: failed program was:" >&5
5121 cat conftest.$ac_ext >&5
5123 samba_cv_HAVE_FCNTL_LOCK=no
5130 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
5131 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
5132 cat >> confdefs.h <<\EOF
5133 #define HAVE_FCNTL_LOCK 1
5138 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
5139 echo "configure:5140: checking for 64 bit fcntl locking" >&5
5140 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5144 if test "$cross_compiling" = yes; then
5145 samba_cv_HAVE_STRUCT_FLOCK64=cross
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5158 #ifdef HAVE_SYS_FCNTL_H
5159 #include <sys/fcntl.h>
5161 main() { struct flock64 fl64;
5162 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
5169 if { (eval echo configure:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5171 samba_cv_HAVE_STRUCT_FLOCK64=yes
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5176 samba_cv_HAVE_STRUCT_FLOCK64=no
5183 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
5184 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
5185 cat >> confdefs.h <<\EOF
5186 #define HAVE_STRUCT_FLOCK64 1
5191 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
5192 echo "configure:5193: checking for sysv ipc" >&5
5193 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5197 if test "$cross_compiling" = yes; then
5198 samba_cv_HAVE_SYSV_IPC=cross
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203 #include "${srcdir-.}/tests/sysv_ipc.c"
5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5207 samba_cv_HAVE_SYSV_IPC=yes
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5212 samba_cv_HAVE_SYSV_IPC=no
5219 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
5220 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
5221 cat >> confdefs.h <<\EOF
5222 #define HAVE_SYSV_IPC 1
5227 #################################################
5228 # check for the AFS filesystem
5229 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
5230 echo "configure:5231: checking whether to use AFS" >&5
5231 # Check whether --with-afs or --without-afs was given.
5232 if test "${with_afs+set}" = set; then
5236 echo "$ac_t""yes" 1>&6
5237 cat >> confdefs.h <<\EOF
5243 echo "$ac_t""no" 1>&6
5247 echo "$ac_t""no" 1>&6
5253 #################################################
5254 # check for the DFS auth system
5255 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
5256 echo "configure:5257: checking whether to use DFS auth" >&5
5257 # Check whether --with-dfs or --without-dfs was given.
5258 if test "${with_dfs+set}" = set; then
5262 echo "$ac_t""yes" 1>&6
5263 cat >> confdefs.h <<\EOF
5269 echo "$ac_t""no" 1>&6
5273 echo "$ac_t""no" 1>&6
5278 #################################################
5279 # check for Kerberos IV auth system
5280 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
5281 echo "configure:5282: checking whether to use Kerberos IV" >&5
5282 # Check whether --with-krb4 or --without-krb4 was given.
5283 if test "${with_krb4+set}" = set; then
5284 withval="$with_krb4"
5285 echo "$ac_t""yes" 1>&6
5286 cat >> confdefs.h <<\EOF
5290 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
5291 echo "configure:5292: checking for dn_expand in -lresolv" >&5
5292 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
5293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 ac_save_LIBS="$LIBS"
5297 LIBS="-lresolv $LIBS"
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5312 eval "ac_cv_lib_$ac_lib_var=yes"
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 eval "ac_cv_lib_$ac_lib_var=no"
5320 LIBS="$ac_save_LIBS"
5323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5327 cat >> confdefs.h <<EOF
5328 #define $ac_tr_lib 1
5331 LIBS="-lresolv $LIBS"
5334 echo "$ac_t""no" 1>&6
5337 LIBS="$LIBS -lkrb -ldes"
5338 CFLAGS="$CFLAGS -I$withval/include"
5339 LDFLAGS="$LDFLAGS -L$withval/lib"
5341 echo "$ac_t""no" 1>&6
5346 #################################################
5347 # check for automount support
5348 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
5349 echo "configure:5350: checking whether to use AUTOMOUNT" >&5
5350 # Check whether --with-automount or --without-automount was given.
5351 if test "${with_automount+set}" = set; then
5352 withval="$with_automount"
5355 echo "$ac_t""yes" 1>&6
5356 cat >> confdefs.h <<\EOF
5357 #define WITH_AUTOMOUNT 1
5362 echo "$ac_t""no" 1>&6
5366 echo "$ac_t""no" 1>&6
5371 #################################################
5372 # check for smbmount support
5373 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
5374 echo "configure:5375: checking whether to use SMBMOUNT" >&5
5375 # Check whether --with-smbmount or --without-smbmount was given.
5376 if test "${with_smbmount+set}" = set; then
5377 withval="$with_smbmount"
5380 echo "$ac_t""yes" 1>&6
5381 cat >> confdefs.h <<\EOF
5382 #define WITH_SMBMOUNT 1
5385 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
5388 echo "$ac_t""no" 1>&6
5393 echo "$ac_t""no" 1>&6
5399 #################################################
5400 # check for a LDAP password database
5401 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
5402 echo "configure:5403: checking whether to use LDAP password database" >&5
5403 # Check whether --with-ldap or --without-ldap was given.
5404 if test "${with_ldap+set}" = set; then
5405 withval="$with_ldap"
5408 echo "$ac_t""yes" 1>&6
5409 cat >> confdefs.h <<\EOF
5415 echo "$ac_t""no" 1>&6
5419 echo "$ac_t""no" 1>&6
5424 #################################################
5425 # check for a NISPLUS password database
5426 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
5427 echo "configure:5428: checking whether to use NISPLUS password database" >&5
5428 # Check whether --with-nisplus or --without-nisplus was given.
5429 if test "${with_nisplus+set}" = set; then
5430 withval="$with_nisplus"
5433 echo "$ac_t""yes" 1>&6
5434 cat >> confdefs.h <<\EOF
5435 #define WITH_NISPLUS 1
5440 echo "$ac_t""no" 1>&6
5444 echo "$ac_t""no" 1>&6
5449 #################################################
5450 # check for a NISPLUS_HOME support
5451 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
5452 echo "configure:5453: checking whether to use NISPLUS_HOME" >&5
5453 # Check whether --with-nisplus-home or --without-nisplus-home was given.
5454 if test "${with_nisplus_home+set}" = set; then
5455 withval="$with_nisplus_home"
5458 echo "$ac_t""yes" 1>&6
5459 cat >> confdefs.h <<\EOF
5460 #define WITH_NISPLUS_HOME 1
5465 echo "$ac_t""no" 1>&6
5469 echo "$ac_t""no" 1>&6
5474 #################################################
5475 # check for the secure socket layer
5476 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
5477 echo "configure:5478: checking whether to use SSL" >&5
5478 # Check whether --with-ssl or --without-ssl was given.
5479 if test "${with_ssl+set}" = set; then
5483 echo "$ac_t""yes" 1>&6
5484 cat >> confdefs.h <<\EOF
5490 echo "$ac_t""no" 1>&6
5494 echo "$ac_t""no" 1>&6
5499 #################################################
5500 # check for experimental mmap support
5501 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
5502 echo "configure:5503: checking whether to use MMAP" >&5
5503 # Check whether --with-mmap or --without-mmap was given.
5504 if test "${with_mmap+set}" = set; then
5505 withval="$with_mmap"
5508 echo "$ac_t""yes" 1>&6
5509 cat >> confdefs.h <<\EOF
5515 echo "$ac_t""no" 1>&6
5519 echo "$ac_t""no" 1>&6
5524 #################################################
5525 # check for syslog logging
5526 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
5527 echo "configure:5528: checking whether to use syslog logging" >&5
5528 # Check whether --with-syslog or --without-syslog was given.
5529 if test "${with_syslog+set}" = set; then
5530 withval="$with_syslog"
5533 echo "$ac_t""yes" 1>&6
5534 cat >> confdefs.h <<\EOF
5535 #define WITH_SYSLOG 1
5540 echo "$ac_t""no" 1>&6
5544 echo "$ac_t""no" 1>&6
5549 #################################################
5550 # check for experimental netatalk resource fork support
5551 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
5552 echo "configure:5553: checking whether to support netatalk" >&5
5553 # Check whether --with-netatalk or --without-netatalk was given.
5554 if test "${with_netatalk+set}" = set; then
5555 withval="$with_netatalk"
5558 echo "$ac_t""yes" 1>&6
5559 cat >> confdefs.h <<\EOF
5560 #define WITH_NETATALK 1
5565 echo "$ac_t""no" 1>&6
5569 echo "$ac_t""no" 1>&6
5575 #################################################
5576 # these tests are taken from the GNU fileutils package
5577 echo "checking how to get filesystem space usage" 1>&6
5578 echo "configure:5579: checking how to get filesystem space usage" >&5
5581 # Test for statvfs64.
5582 if test $space = no; then
5584 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
5585 echo "configure:5586: checking statvfs64 function (SVR4)" >&5
5586 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 if test "$cross_compiling" = yes; then
5590 fu_cv_sys_stat_statvfs64=cross
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5596 #include <sys/types.h>
5597 #include <sys/statvfs.h>
5600 struct statvfs64 fsd;
5601 exit (statfs64 (".", &fsd));
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5606 fu_cv_sys_stat_statvfs64=yes
5608 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5611 fu_cv_sys_stat_statvfs64=no
5618 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
5619 if test $fu_cv_sys_stat_statvfs64 = yes; then
5621 cat >> confdefs.h <<\EOF
5622 #define STAT_STATVFS64 1
5628 # Perform only the link test since it seems there are no variants of the
5629 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
5630 # because that got a false positive on SCO OSR5. Adding the declaration
5631 # of a `struct statvfs' causes this test to fail (as it should) on such
5632 # systems. That system is reported to work fine with STAT_STATFS4 which
5633 # is what it gets when this test fails.
5634 if test $space = no; then
5636 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
5637 echo "configure:5638: checking statvfs function (SVR4)" >&5
5638 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <sys/types.h>
5645 #include <sys/statvfs.h>
5647 struct statvfs fsd; statvfs (0, &fsd);
5650 if { (eval echo configure:5651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5652 fu_cv_sys_stat_statvfs=yes
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5657 fu_cv_sys_stat_statvfs=no
5662 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
5663 if test $fu_cv_sys_stat_statvfs = yes; then
5665 cat >> confdefs.h <<\EOF
5666 #define STAT_STATVFS 1
5672 if test $space = no; then
5673 # DEC Alpha running OSF/1
5674 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
5675 echo "configure:5676: checking for 3-argument statfs function (DEC OSF/1)" >&5
5676 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5679 if test "$cross_compiling" = yes; then
5680 fu_cv_sys_stat_statfs3_osf1=no
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5686 #include <sys/param.h>
5687 #include <sys/types.h>
5688 #include <sys/mount.h>
5693 exit (statfs (".", &fsd, sizeof (struct statfs)));
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5698 fu_cv_sys_stat_statfs3_osf1=yes
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 fu_cv_sys_stat_statfs3_osf1=no
5710 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
5711 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
5713 cat >> confdefs.h <<\EOF
5714 #define STAT_STATFS3_OSF1 1
5720 if test $space = no; then
5722 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
5723 echo "configure:5724: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
5724 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 if test "$cross_compiling" = yes; then
5728 fu_cv_sys_stat_statfs2_bsize=no
5730 cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5734 #ifdef HAVE_SYS_PARAM_H
5735 #include <sys/param.h>
5737 #ifdef HAVE_SYS_MOUNT_H
5738 #include <sys/mount.h>
5740 #ifdef HAVE_SYS_VFS_H
5741 #include <sys/vfs.h>
5747 exit (statfs (".", &fsd));
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5752 fu_cv_sys_stat_statfs2_bsize=yes
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 fu_cv_sys_stat_statfs2_bsize=no
5764 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
5765 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
5767 cat >> confdefs.h <<\EOF
5768 #define STAT_STATFS2_BSIZE 1
5774 if test $space = no; then
5776 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
5777 echo "configure:5778: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
5778 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 if test "$cross_compiling" = yes; then
5782 fu_cv_sys_stat_statfs4=no
5784 cat > conftest.$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 #include <sys/types.h>
5788 #include <sys/statfs.h>
5792 exit (statfs (".", &fsd, sizeof fsd, 0));
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5797 fu_cv_sys_stat_statfs4=yes
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5802 fu_cv_sys_stat_statfs4=no
5809 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
5810 if test $fu_cv_sys_stat_statfs4 = yes; then
5812 cat >> confdefs.h <<\EOF
5813 #define STAT_STATFS4 1
5819 if test $space = no; then
5821 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
5822 echo "configure:5823: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
5823 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5826 if test "$cross_compiling" = yes; then
5827 fu_cv_sys_stat_statfs2_fsize=no
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 #include <sys/types.h>
5833 #ifdef HAVE_SYS_PARAM_H
5834 #include <sys/param.h>
5836 #ifdef HAVE_SYS_MOUNT_H
5837 #include <sys/mount.h>
5843 exit (statfs (".", &fsd));
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5848 fu_cv_sys_stat_statfs2_fsize=yes
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 fu_cv_sys_stat_statfs2_fsize=no
5860 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
5861 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
5863 cat >> confdefs.h <<\EOF
5864 #define STAT_STATFS2_FSIZE 1
5870 if test $space = no; then
5872 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
5873 echo "configure:5874: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
5874 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5877 if test "$cross_compiling" = yes; then
5878 fu_cv_sys_stat_fs_data=no
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 #include <sys/types.h>
5884 #ifdef HAVE_SYS_PARAM_H
5885 #include <sys/param.h>
5887 #ifdef HAVE_SYS_MOUNT_H
5888 #include <sys/mount.h>
5890 #ifdef HAVE_SYS_FS_TYPES_H
5891 #include <sys/fs_types.h>
5896 /* Ultrix's statfs returns 1 for success,
5897 0 for not mounted, -1 for failure. */
5898 exit (statfs (".", &fsd) != 1);
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5903 fu_cv_sys_stat_fs_data=yes
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5908 fu_cv_sys_stat_fs_data=no
5915 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
5916 if test $fu_cv_sys_stat_fs_data = yes; then
5918 cat >> confdefs.h <<\EOF
5919 #define STAT_STATFS2_FS_DATA 1
5925 echo "checking configure summary"
5926 if test "$cross_compiling" = yes; then
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5932 #include "${srcdir-.}/tests/summary.c"
5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5936 echo "configure OK";
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5941 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
5948 cat > confcache <<\EOF
5949 # This file is a shell script that caches the results of configure
5950 # tests run on this system so they can be shared between configure
5951 # scripts and configure runs. It is not useful on other systems.
5952 # If it contains results you don't want to keep, you may remove or edit it.
5954 # By default, configure uses ./config.cache as the cache file,
5955 # creating it if it does not exist already. You can give configure
5956 # the --cache-file=FILE option to use a different cache file; that is
5957 # what configure does when it calls configure scripts in
5958 # subdirectories, so they share the cache.
5959 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5960 # config.status only pays attention to the cache file if you give it the
5961 # --recheck option to rerun configure.
5964 # The following way of writing the cache mishandles newlines in values,
5965 # but we know of no workaround that is simple, portable, and efficient.
5966 # So, don't put newlines in cache variables' values.
5967 # Ultrix sh set writes to stderr and can't be redirected directly,
5968 # and sets the high bit in the cache file unless we assign to the vars.
5970 case `(ac_space=' '; set) 2>&1` in
5972 # `set' does not quote correctly, so add quotes (double-quote substitution
5973 # turns \\\\ into \\, and sed turns \\ into \).
5975 -e "s/'/'\\\\''/g" \
5976 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5979 # `set' quotes correctly as required by POSIX, so do not add quotes.
5980 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5983 if cmp -s $cache_file confcache; then
5986 if test -w $cache_file; then
5987 echo "updating cache $cache_file"
5988 cat confcache > $cache_file
5990 echo "not updating unwritable cache $cache_file"
5995 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5998 # Let make expand exec_prefix.
5999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6001 # Any assignment to VPATH causes Sun make to only execute
6002 # the first set of double-colon rules, so remove it if not needed.
6003 # If there is a colon in the path, we need to keep it.
6004 if test "x$srcdir" = x.; then
6005 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6008 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6010 DEFS=-DHAVE_CONFIG_H
6012 # Without the "./", some shells look in PATH for config.status.
6013 : ${CONFIG_STATUS=./config.status}
6015 echo creating $CONFIG_STATUS
6016 rm -f $CONFIG_STATUS
6017 cat > $CONFIG_STATUS <<EOF
6019 # Generated automatically by configure.
6020 # Run this file to recreate the current configuration.
6021 # This directory was configured as follows,
6022 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6024 # $0 $ac_configure_args
6026 # Compiler output produced by configure, useful for debugging
6027 # configure, is in ./config.log if it exists.
6029 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6032 case "\$ac_option" in
6033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6034 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6035 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6036 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6037 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6039 -help | --help | --hel | --he | --h)
6040 echo "\$ac_cs_usage"; exit 0 ;;
6041 *) echo "\$ac_cs_usage"; exit 1 ;;
6045 ac_given_srcdir=$srcdir
6046 ac_given_INSTALL="$INSTALL"
6048 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6050 cat >> $CONFIG_STATUS <<EOF
6052 # Protect against being on the right side of a sed subst in config.status.
6053 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6054 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6057 s%@CFLAGS@%$CFLAGS%g
6058 s%@CPPFLAGS@%$CPPFLAGS%g
6059 s%@CXXFLAGS@%$CXXFLAGS%g
6061 s%@LDFLAGS@%$LDFLAGS%g
6063 s%@exec_prefix@%$exec_prefix%g
6064 s%@prefix@%$prefix%g
6065 s%@program_transform_name@%$program_transform_name%g
6066 s%@bindir@%$bindir%g
6067 s%@sbindir@%$sbindir%g
6068 s%@libexecdir@%$libexecdir%g
6069 s%@datadir@%$datadir%g
6070 s%@sysconfdir@%$sysconfdir%g
6071 s%@sharedstatedir@%$sharedstatedir%g
6072 s%@localstatedir@%$localstatedir%g
6073 s%@libdir@%$libdir%g
6074 s%@includedir@%$includedir%g
6075 s%@oldincludedir@%$oldincludedir%g
6076 s%@infodir@%$infodir%g
6077 s%@mandir@%$mandir%g
6079 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6080 s%@INSTALL_DATA@%$INSTALL_DATA%g
6082 s%@MPROGS@%$MPROGS%g
6085 s%@host_alias@%$host_alias%g
6086 s%@host_cpu@%$host_cpu%g
6087 s%@host_vendor@%$host_vendor%g
6088 s%@host_os@%$host_os%g
6089 s%@target@%$target%g
6090 s%@target_alias@%$target_alias%g
6091 s%@target_cpu@%$target_cpu%g
6092 s%@target_vendor@%$target_vendor%g
6093 s%@target_os@%$target_os%g
6095 s%@build_alias@%$build_alias%g
6096 s%@build_cpu@%$build_cpu%g
6097 s%@build_vendor@%$build_vendor%g
6098 s%@build_os@%$build_os%g
6100 s%@AUTOCONF@%$AUTOCONF%g
6101 s%@AUTOHEADER@%$AUTOHEADER%g
6103 s%@LIBOBJS@%$LIBOBJS%g
6108 cat >> $CONFIG_STATUS <<\EOF
6110 # Split the substitutions into bite-sized pieces for seds with
6111 # small command number limits, like on Digital OSF/1 and HP-UX.
6112 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6113 ac_file=1 # Number of current file.
6114 ac_beg=1 # First line for current file.
6115 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6118 while $ac_more_lines; do
6119 if test $ac_beg -gt 1; then
6120 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6122 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6124 if test ! -s conftest.s$ac_file; then
6126 rm -f conftest.s$ac_file
6128 if test -z "$ac_sed_cmds"; then
6129 ac_sed_cmds="sed -f conftest.s$ac_file"
6131 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6133 ac_file=`expr $ac_file + 1`
6135 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6138 if test -z "$ac_sed_cmds"; then
6143 cat >> $CONFIG_STATUS <<EOF
6145 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
6147 cat >> $CONFIG_STATUS <<\EOF
6148 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6149 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6151 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6152 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6153 *) ac_file_in="${ac_file}.in" ;;
6156 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6158 # Remove last slash and all that follows it. Not all systems have dirname.
6159 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6160 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6161 # The file is in a subdirectory.
6162 test ! -d "$ac_dir" && mkdir "$ac_dir"
6163 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6164 # A "../" for each directory in $ac_dir_suffix.
6165 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6167 ac_dir_suffix= ac_dots=
6170 case "$ac_given_srcdir" in
6172 if test -z "$ac_dots"; then top_srcdir=.
6173 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6174 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6176 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6177 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6180 case "$ac_given_INSTALL" in
6181 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6182 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6185 echo creating "$ac_file"
6187 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6189 *Makefile*) ac_comsub="1i\\
6190 # $configure_input" ;;
6194 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6196 s%@configure_input@%$configure_input%g
6197 s%@srcdir@%$srcdir%g
6198 s%@top_srcdir@%$top_srcdir%g
6199 s%@INSTALL@%$INSTALL%g
6200 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6207 # ac_d sets the value in "#define NAME VALUE" lines.
6208 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6209 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6212 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6213 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6214 ac_uB='\([ ]\)%\1#\2define\3'
6217 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6218 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6219 ac_eB='$%\1#\2define\3'
6223 if test "${CONFIG_HEADERS+set}" != set; then
6225 cat >> $CONFIG_STATUS <<EOF
6226 CONFIG_HEADERS="include/config.h"
6228 cat >> $CONFIG_STATUS <<\EOF
6230 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6233 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6234 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6235 *) ac_file_in="${ac_file}.in" ;;
6238 echo creating $ac_file
6240 rm -f conftest.frag conftest.in conftest.out
6241 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6242 cat $ac_file_inputs > conftest.in
6246 # Transform confdefs.h into a sed script conftest.vals that substitutes
6247 # the proper values into config.h.in to produce config.h. And first:
6248 # Protect against being on the right side of a sed subst in config.status.
6249 # Protect against being in an unquoted here document in config.status.
6251 cat > conftest.hdr <<\EOF
6254 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6258 sed -n -f conftest.hdr confdefs.h > conftest.vals
6261 # This sed command replaces #undef with comments. This is necessary, for
6262 # example, in the case of _POSIX_SOURCE, which is predefined and required
6263 # on some systems where configure will not decide to define it.
6264 cat >> conftest.vals <<\EOF
6265 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6268 # Break up conftest.vals because some shells have a limit on
6269 # the size of here documents, and old seds have small limits too.
6274 ac_lines=`grep -c . conftest.vals`
6275 # grep -c gives empty output for an empty file on some AIX systems.
6276 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6277 # Write a limited-size here document to conftest.frag.
6278 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6279 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6281 sed -f conftest.frag conftest.in > conftest.out
6283 mv conftest.out conftest.in
6285 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6287 mv conftest.tail conftest.vals
6291 cat >> $CONFIG_STATUS <<\EOF
6292 rm -f conftest.frag conftest.h
6293 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6294 cat conftest.in >> conftest.h
6296 if cmp -s $ac_file conftest.h 2>/dev/null; then
6297 echo "$ac_file is unchanged"
6300 # Remove last slash and all that follows it. Not all systems have dirname.
6301 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6302 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6303 # The file is in a subdirectory.
6304 test ! -d "$ac_dir" && mkdir "$ac_dir"
6307 mv conftest.h $ac_file
6312 cat >> $CONFIG_STATUS <<EOF
6315 cat >> $CONFIG_STATUS <<\EOF
6319 chmod +x $CONFIG_STATUS
6320 rm -fr confdefs* $ac_clean_files
6321 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1