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'
816 for ac_prog in mawk gawk nawk awk
818 # Extract the first word of "$ac_prog", so it can be a program name with args.
819 set dummy $ac_prog; ac_word=$2
820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
821 echo "configure:822: checking for $ac_word" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 if test -n "$AWK"; then
826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
829 for ac_dir in $PATH; do
830 test -z "$ac_dir" && ac_dir=.
831 if test -f $ac_dir/$ac_word; then
832 ac_cv_prog_AWK="$ac_prog"
839 AWK="$ac_cv_prog_AWK"
840 if test -n "$AWK"; then
841 echo "$ac_t""$AWK" 1>&6
843 echo "$ac_t""no" 1>&6
846 test -n "$AWK" && break
851 # Do some error checking and defaulting for the host and target type.
853 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
856 # 1. You are not allowed to specify --host, --target, and nonopt at the
858 # 2. Host defaults to nonopt.
859 # 3. If nonopt is not specified, then host defaults to the current host,
860 # as determined by config.guess.
861 # 4. Target and build default to nonopt.
862 # 5. If nonopt is not specified, then target and build default to host.
864 # The aliases save the names the user supplied, while $host etc.
865 # will get canonicalized.
866 case $host---$target---$nonopt in
867 NONE---*---* | *---NONE---* | *---*---NONE) ;;
868 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
872 # Make sure we can run config.sub.
873 if $ac_config_sub sun4 >/dev/null 2>&1; then :
874 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
877 echo $ac_n "checking host system type""... $ac_c" 1>&6
878 echo "configure:879: checking host system type" >&5
881 case "$host_alias" in
885 if host_alias=`$ac_config_guess`; then :
886 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
888 *) host_alias=$nonopt ;;
892 host=`$ac_config_sub $host_alias`
893 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
894 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
895 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
896 echo "$ac_t""$host" 1>&6
898 echo $ac_n "checking target system type""... $ac_c" 1>&6
899 echo "configure:900: checking target system type" >&5
902 case "$target_alias" in
905 NONE) target_alias=$host_alias ;;
906 *) target_alias=$nonopt ;;
910 target=`$ac_config_sub $target_alias`
911 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
912 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
913 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
914 echo "$ac_t""$target" 1>&6
916 echo $ac_n "checking build system type""... $ac_c" 1>&6
917 echo "configure:918: checking build system type" >&5
920 case "$build_alias" in
923 NONE) build_alias=$host_alias ;;
924 *) build_alias=$nonopt ;;
928 build=`$ac_config_sub $build_alias`
929 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$build" 1>&6
934 test "$host_alias" != "$target_alias" &&
935 test "$program_prefix$program_suffix$program_transform_name" = \
937 program_prefix=${target_alias}-
941 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
942 echo "configure:943: checking config.cache system type" >&5
943 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
944 test x"$ac_cv_host_system_type" != x"$host"; } ||
945 { test x"${ac_cv_build_system_type+set}" = x"set" &&
946 test x"$ac_cv_build_system_type" != x"$build"; } ||
947 { test x"${ac_cv_target_system_type+set}" = x"set" &&
948 test x"$ac_cv_target_system_type" != x"$target"; }; then
949 echo "$ac_t""different" 1>&6
950 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
952 echo "$ac_t""same" 1>&6
954 ac_cv_host_system_type="$host"
955 ac_cv_build_system_type="$build"
956 ac_cv_target_system_type="$target"
959 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
960 if test "${enable_maintainer_mode+set}" = set; then
961 enableval="$enable_maintainer_mode"
962 maint_mode=$enableval
967 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
969 # Extract the first word of "autoconf", so it can be a program name with args.
970 set dummy autoconf; ac_word=$2
971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
972 echo "configure:973: checking for $ac_word" >&5
973 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
978 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
982 for ac_dir in $PATH; do
983 test -z "$ac_dir" && ac_dir=.
984 if test -f $ac_dir/$ac_word; then
985 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
990 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
994 AUTOCONF="$ac_cv_path_AUTOCONF"
995 if test -n "$AUTOCONF"; then
996 echo "$ac_t""$AUTOCONF" 1>&6
998 echo "$ac_t""no" 1>&6
1002 # Extract the first word of "autoheader", so it can be a program name with args.
1003 set dummy autoheader; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 case "$AUTOHEADER" in
1011 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1015 for ac_dir in $PATH; do
1016 test -z "$ac_dir" && ac_dir=.
1017 if test -f $ac_dir/$ac_word; then
1018 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1023 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1027 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1028 if test -n "$AUTOHEADER"; then
1029 echo "$ac_t""$AUTOHEADER" 1>&6
1031 echo "$ac_t""no" 1>&6
1039 # this bit needs to be modified for each OS that is suported by
1040 # smbwrapper. You need to specify how to created a shared library and
1041 # how to compile C code to produce PIC object files
1043 # these are the defaults, good for lots of systems
1047 # and these are for particular systems
1049 *linux*) cat >> confdefs.h <<\EOF
1053 *solaris*) cat >> confdefs.h <<\EOF
1059 *sunos*) cat >> confdefs.h <<\EOF
1065 *irix*) cat >> confdefs.h <<\EOF
1069 WRAP32=smbwrapper/smbwrapper.32.so
1071 *aix*) cat >> confdefs.h <<\EOF
1075 *hpux*) cat >> confdefs.h <<\EOF
1079 *qnx*) cat >> confdefs.h <<\EOF
1083 *osf*) cat >> confdefs.h <<\EOF
1087 *sco*) cat >> confdefs.h <<\EOF
1091 *next2*) cat >> confdefs.h <<\EOF
1098 # try to work out how to produce pic code with this compiler
1100 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether ${CC-cc} accepts -fpic" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 echo 'void f(){}' > conftest.c
1106 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
1107 ac_cv_prog_cc_fpic=yes
1109 ac_cv_prog_cc_fpic=no
1115 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
1116 if test $ac_cv_prog_cc_fpic = yes; then
1119 if test x$PICFLAG = x; then
1120 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether ${CC-cc} accepts -Kpic" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 echo 'void f(){}' > conftest.c
1126 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
1127 ac_cv_prog_cc_Kpic=yes
1129 ac_cv_prog_cc_Kpic=no
1135 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
1136 if test $ac_cv_prog_cc_Kpic = yes; then
1140 if test x$PICFLAG = x; then
1141 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether ${CC-cc} accepts -KPIC" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 echo 'void f(){}' > conftest.c
1147 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
1148 ac_cv_prog_cc_KPIC=yes
1150 ac_cv_prog_cc_KPIC=no
1156 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
1157 if test $ac_cv_prog_cc_KPIC = yes; then
1163 echo $ac_n "checking for inline""... $ac_c" 1>&6
1164 echo "configure:1165: checking for inline" >&5
1165 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1169 for ac_kw in inline __inline__ __inline; do
1170 cat > conftest.$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1178 if { (eval echo configure:1179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1180 ac_cv_c_inline=$ac_kw; break
1182 echo "configure: failed program was:" >&5
1183 cat conftest.$ac_ext >&5
1190 echo "$ac_t""$ac_cv_c_inline" 1>&6
1191 case "$ac_cv_c_inline" in
1193 no) cat >> confdefs.h <<\EOF
1197 *) cat >> confdefs.h <<EOF
1198 #define inline $ac_cv_c_inline
1203 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1204 echo "configure:1205: checking how to run the C preprocessor" >&5
1205 # On Suns, sometimes $CPP names a directory.
1206 if test -n "$CPP" && test -d "$CPP"; then
1209 if test -z "$CPP"; then
1210 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 # This must be in double quotes, not single quotes, because CPP may get
1214 # substituted into the Makefile and "${CC-cc}" will confuse make.
1216 # On the NeXT, cc -E runs the code through the compiler's parser,
1217 # not just through cpp.
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err=`grep -v '^ *+' conftest.out`
1227 if test -z "$ac_err"; then
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1234 CPP="${CC-cc} -E -traditional-cpp"
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1242 { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1243 ac_err=`grep -v '^ *+' conftest.out`
1244 if test -z "$ac_err"; then
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1256 ac_cv_prog_CPP="$CPP"
1258 CPP="$ac_cv_prog_CPP"
1260 ac_cv_prog_CPP="$CPP"
1262 echo "$ac_t""$CPP" 1>&6
1264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1265 echo "configure:1266: checking for ANSI C header files" >&5
1266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err=`grep -v '^ *+' conftest.out`
1280 if test -z "$ac_err"; then
1282 ac_cv_header_stdc=yes
1285 echo "configure: failed program was:" >&5
1286 cat conftest.$ac_ext >&5
1288 ac_cv_header_stdc=no
1292 if test $ac_cv_header_stdc = yes; then
1293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1294 cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1300 egrep "memchr" >/dev/null 2>&1; then
1304 ac_cv_header_stdc=no
1310 if test $ac_cv_header_stdc = yes; then
1311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1318 egrep "free" >/dev/null 2>&1; then
1322 ac_cv_header_stdc=no
1328 if test $ac_cv_header_stdc = yes; then
1329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1330 if test "$cross_compiling" = yes; then
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1340 int main () { int i; for (i = 0; i < 256; i++)
1341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1352 ac_cv_header_stdc=no
1360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1361 if test $ac_cv_header_stdc = yes; then
1362 cat >> confdefs.h <<\EOF
1363 #define STDC_HEADERS 1
1369 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1372 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_hdr that defines DIR" >&5
1374 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 #include <sys/types.h>
1386 if { (eval echo configure:1387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1388 eval "ac_cv_header_dirent_$ac_safe=yes"
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 eval "ac_cv_header_dirent_$ac_safe=no"
1397 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1400 cat >> confdefs.h <<EOF
1401 #define $ac_tr_hdr 1
1403 ac_header_dirent=$ac_hdr; break
1405 echo "$ac_t""no" 1>&6
1408 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1409 if test $ac_header_dirent = dirent.h; then
1410 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1411 echo "configure:1412: checking for opendir in -ldir" >&5
1412 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1416 ac_save_LIBS="$LIBS"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 /* Override any gcc2 internal prototype to avoid an error. */
1422 /* We use char because int might match the return type of a gcc2
1423 builtin and then its argument prototype would still apply. */
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1432 eval "ac_cv_lib_$ac_lib_var=yes"
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 eval "ac_cv_lib_$ac_lib_var=no"
1440 LIBS="$ac_save_LIBS"
1443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1444 echo "$ac_t""yes" 1>&6
1447 echo "$ac_t""no" 1>&6
1451 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1452 echo "configure:1453: checking for opendir in -lx" >&5
1453 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 ac_save_LIBS="$LIBS"
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1462 /* Override any gcc2 internal prototype to avoid an error. */
1463 /* We use char because int might match the return type of a gcc2
1464 builtin and then its argument prototype would still apply. */
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1473 eval "ac_cv_lib_$ac_lib_var=yes"
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1478 eval "ac_cv_lib_$ac_lib_var=no"
1481 LIBS="$ac_save_LIBS"
1484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1493 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether time.h and sys/time.h may both be included" >&5
1495 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1501 #include <sys/types.h>
1502 #include <sys/time.h>
1508 if { (eval echo configure:1509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1510 ac_cv_header_time=yes
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1515 ac_cv_header_time=no
1520 echo "$ac_t""$ac_cv_header_time" 1>&6
1521 if test $ac_cv_header_time = yes; then
1522 cat >> confdefs.h <<\EOF
1523 #define TIME_WITH_SYS_TIME 1
1528 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1529 echo "configure:1530: checking for sys/wait.h that is POSIX.1 compatible" >&5
1530 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1536 #include <sys/types.h>
1537 #include <sys/wait.h>
1539 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1542 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1547 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1550 if { (eval echo configure:1551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1552 ac_cv_header_sys_wait_h=yes
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1557 ac_cv_header_sys_wait_h=no
1562 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1563 if test $ac_cv_header_sys_wait_h = yes; then
1564 cat >> confdefs.h <<\EOF
1565 #define HAVE_SYS_WAIT_H 1
1570 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1574 echo "configure:1575: checking for $ac_hdr" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1584 { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1585 ac_err=`grep -v '^ *+' conftest.out`
1586 if test -z "$ac_err"; then
1588 eval "ac_cv_header_$ac_safe=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1594 eval "ac_cv_header_$ac_safe=no"
1598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1601 cat >> confdefs.h <<EOF
1602 #define $ac_tr_hdr 1
1606 echo "$ac_t""no" 1>&6
1610 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1614 echo "configure:1615: checking for $ac_hdr" >&5
1615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1624 { (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1625 ac_err=`grep -v '^ *+' conftest.out`
1626 if test -z "$ac_err"; then
1628 eval "ac_cv_header_$ac_safe=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1634 eval "ac_cv_header_$ac_safe=no"
1638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1641 cat >> confdefs.h <<EOF
1642 #define $ac_tr_hdr 1
1646 echo "$ac_t""no" 1>&6
1650 for ac_hdr in compat.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1652 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_hdr" >&5
1655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 cat > conftest.$ac_ext <<EOF
1659 #line 1660 "configure"
1660 #include "confdefs.h"
1663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1664 { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1665 ac_err=`grep -v '^ *+' conftest.out`
1666 if test -z "$ac_err"; then
1668 eval "ac_cv_header_$ac_safe=yes"
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1674 eval "ac_cv_header_$ac_safe=no"
1678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1681 cat >> confdefs.h <<EOF
1682 #define $ac_tr_hdr 1
1686 echo "$ac_t""no" 1>&6
1690 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_hdr" >&5
1695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1704 { (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1705 ac_err=`grep -v '^ *+' conftest.out`
1706 if test -z "$ac_err"; then
1708 eval "ac_cv_header_$ac_safe=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 eval "ac_cv_header_$ac_safe=no"
1718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1719 echo "$ac_t""yes" 1>&6
1720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1721 cat >> confdefs.h <<EOF
1722 #define $ac_tr_hdr 1
1726 echo "$ac_t""no" 1>&6
1730 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_hdr" >&5
1735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1744 { (eval echo configure:1745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1745 ac_err=`grep -v '^ *+' conftest.out`
1746 if test -z "$ac_err"; then
1748 eval "ac_cv_header_$ac_safe=yes"
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 eval "ac_cv_header_$ac_safe=no"
1758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1759 echo "$ac_t""yes" 1>&6
1760 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1761 cat >> confdefs.h <<EOF
1762 #define $ac_tr_hdr 1
1766 echo "$ac_t""no" 1>&6
1770 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_hdr" >&5
1775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 cat > conftest.$ac_ext <<EOF
1779 #line 1780 "configure"
1780 #include "confdefs.h"
1783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1784 { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1785 ac_err=`grep -v '^ *+' conftest.out`
1786 if test -z "$ac_err"; then
1788 eval "ac_cv_header_$ac_safe=yes"
1791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1794 eval "ac_cv_header_$ac_safe=no"
1798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1801 cat >> confdefs.h <<EOF
1802 #define $ac_tr_hdr 1
1806 echo "$ac_t""no" 1>&6
1810 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1814 echo "configure:1815: checking for $ac_hdr" >&5
1815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1824 { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1825 ac_err=`grep -v '^ *+' conftest.out`
1826 if test -z "$ac_err"; then
1828 eval "ac_cv_header_$ac_safe=yes"
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1834 eval "ac_cv_header_$ac_safe=no"
1838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1839 echo "$ac_t""yes" 1>&6
1840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1841 cat >> confdefs.h <<EOF
1842 #define $ac_tr_hdr 1
1846 echo "$ac_t""no" 1>&6
1850 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1854 echo "configure:1855: checking for $ac_hdr" >&5
1855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1864 { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1865 ac_err=`grep -v '^ *+' conftest.out`
1866 if test -z "$ac_err"; then
1868 eval "ac_cv_header_$ac_safe=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 eval "ac_cv_header_$ac_safe=no"
1878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1881 cat >> confdefs.h <<EOF
1882 #define $ac_tr_hdr 1
1886 echo "$ac_t""no" 1>&6
1890 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_hdr" >&5
1895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err=`grep -v '^ *+' conftest.out`
1906 if test -z "$ac_err"; then
1908 eval "ac_cv_header_$ac_safe=yes"
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 eval "ac_cv_header_$ac_safe=no"
1918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1921 cat >> confdefs.h <<EOF
1922 #define $ac_tr_hdr 1
1926 echo "$ac_t""no" 1>&6
1930 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1934 echo "configure:1935: checking for $ac_hdr" >&5
1935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1944 { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1945 ac_err=`grep -v '^ *+' conftest.out`
1946 if test -z "$ac_err"; then
1948 eval "ac_cv_header_$ac_safe=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_header_$ac_safe=no"
1958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1959 echo "$ac_t""yes" 1>&6
1960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1961 cat >> confdefs.h <<EOF
1962 #define $ac_tr_hdr 1
1966 echo "$ac_t""no" 1>&6
1970 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_hdr" >&5
1975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err=`grep -v '^ *+' conftest.out`
1986 if test -z "$ac_err"; then
1988 eval "ac_cv_header_$ac_safe=yes"
1991 echo "configure: failed program was:" >&5
1992 cat conftest.$ac_ext >&5
1994 eval "ac_cv_header_$ac_safe=no"
1998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2001 cat >> confdefs.h <<EOF
2002 #define $ac_tr_hdr 1
2006 echo "$ac_t""no" 1>&6
2010 for ac_hdr in sys/acl.h sys/cdefs.h
2012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2014 echo "configure:2015: checking for $ac_hdr" >&5
2015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2016 echo $ac_n "(cached) $ac_c" 1>&6
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2024 { (eval echo configure:2025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2025 ac_err=`grep -v '^ *+' conftest.out`
2026 if test -z "$ac_err"; then
2028 eval "ac_cv_header_$ac_safe=yes"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5
2034 eval "ac_cv_header_$ac_safe=no"
2038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2039 echo "$ac_t""yes" 1>&6
2040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2041 cat >> confdefs.h <<EOF
2042 #define $ac_tr_hdr 1
2046 echo "$ac_t""no" 1>&6
2051 echo $ac_n "checking size of int""... $ac_c" 1>&6
2052 echo "configure:2053: checking size of int" >&5
2053 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 if test "$cross_compiling" = yes; then
2057 ac_cv_sizeof_int=cross
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2065 FILE *f=fopen("conftestval", "w");
2067 fprintf(f, "%d\n", sizeof(int));
2071 if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2073 ac_cv_sizeof_int=`cat conftestval`
2075 echo "configure: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2084 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2085 cat >> confdefs.h <<EOF
2086 #define SIZEOF_INT $ac_cv_sizeof_int
2090 echo $ac_n "checking size of long""... $ac_c" 1>&6
2091 echo "configure:2092: checking size of long" >&5
2092 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 if test "$cross_compiling" = yes; then
2096 ac_cv_sizeof_long=cross
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2104 FILE *f=fopen("conftestval", "w");
2106 fprintf(f, "%d\n", sizeof(long));
2110 if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2112 ac_cv_sizeof_long=`cat conftestval`
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2123 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2124 cat >> confdefs.h <<EOF
2125 #define SIZEOF_LONG $ac_cv_sizeof_long
2129 echo $ac_n "checking size of short""... $ac_c" 1>&6
2130 echo "configure:2131: checking size of short" >&5
2131 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test "$cross_compiling" = yes; then
2135 ac_cv_sizeof_short=cross
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2143 FILE *f=fopen("conftestval", "w");
2145 fprintf(f, "%d\n", sizeof(short));
2149 if { (eval echo configure:2150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2151 ac_cv_sizeof_short=`cat conftestval`
2153 echo "configure: failed program was:" >&5
2154 cat conftest.$ac_ext >&5
2156 ac_cv_sizeof_short=0
2162 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2163 cat >> confdefs.h <<EOF
2164 #define SIZEOF_SHORT $ac_cv_sizeof_short
2169 echo $ac_n "checking for working const""... $ac_c" 1>&6
2170 echo "configure:2171: checking for working const" >&5
2171 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2180 /* Ultrix mips cc rejects this. */
2181 typedef int charset[2]; const charset x;
2182 /* SunOS 4.1.1 cc rejects this. */
2183 char const *const *ccp;
2185 /* NEC SVR4.0.2 mips cc rejects this. */
2186 struct point {int x, y;};
2187 static struct point const zero = {0,0};
2188 /* AIX XL C 1.02.0.0 rejects this.
2189 It does not let you subtract one const X* pointer from another in an arm
2190 of an if-expression whose if-part is not a constant expression */
2191 const char *g = "string";
2192 ccp = &g + (g ? g-g : 0);
2193 /* HPUX 7.0 cc rejects these. */
2196 ccp = (char const *const *) p;
2197 { /* SCO 3.2v4 cc rejects this. */
2199 char const *s = 0 ? (char *) 0 : (char const *) 0;
2203 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2205 const int *foo = &x[0];
2208 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2209 typedef const int *iptr;
2213 { /* AIX XL C 1.02.0.0 rejects this saying
2214 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2215 struct s { int j; const int *ap[3]; };
2216 struct s *b; b->j = 5;
2218 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2224 if { (eval echo configure:2225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2236 echo "$ac_t""$ac_cv_c_const" 1>&6
2237 if test $ac_cv_c_const = no; then
2238 cat >> confdefs.h <<\EOF
2244 echo $ac_n "checking for inline""... $ac_c" 1>&6
2245 echo "configure:2246: checking for inline" >&5
2246 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2250 for ac_kw in inline __inline__ __inline; do
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2259 if { (eval echo configure:2260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2261 ac_cv_c_inline=$ac_kw; break
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2271 echo "$ac_t""$ac_cv_c_inline" 1>&6
2272 case "$ac_cv_c_inline" in
2274 no) cat >> confdefs.h <<\EOF
2278 *) cat >> confdefs.h <<EOF
2279 #define inline $ac_cv_c_inline
2284 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2285 echo "configure:2286: checking whether byte ordering is bigendian" >&5
2286 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_cv_c_bigendian=unknown
2290 # See if sys/param.h defines the BYTE_ORDER macro.
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 #include <sys/types.h>
2295 #include <sys/param.h>
2298 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2303 if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 # It does; now see whether it defined to BIG_ENDIAN or not.
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <sys/types.h>
2310 #include <sys/param.h>
2313 #if BYTE_ORDER != BIG_ENDIAN
2318 if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2320 ac_cv_c_bigendian=yes
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2325 ac_cv_c_bigendian=no
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2333 if test $ac_cv_c_bigendian = unknown; then
2334 if test "$cross_compiling" = yes; then
2335 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2341 /* Are we little or big endian? From Harbison&Steele. */
2345 char c[sizeof (long)];
2348 exit (u.c[sizeof (long) - 1] == 1);
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2353 ac_cv_c_bigendian=no
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2358 ac_cv_c_bigendian=yes
2366 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2367 if test $ac_cv_c_bigendian = yes; then
2368 cat >> confdefs.h <<\EOF
2369 #define WORDS_BIGENDIAN 1
2374 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2375 echo "configure:2376: checking whether char is unsigned" >&5
2376 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 if test "$GCC" = yes; then
2380 # GCC predefines this symbol on systems where it applies.
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #ifdef __CHAR_UNSIGNED__
2389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2390 egrep "yes" >/dev/null 2>&1; then
2392 ac_cv_c_char_unsigned=yes
2395 ac_cv_c_char_unsigned=no
2400 if test "$cross_compiling" = yes; then
2401 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2407 #if !defined(__STDC__) || __STDC__ != 1
2411 volatile char c = 255; exit(c < 0);
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2416 ac_cv_c_char_unsigned=yes
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 ac_cv_c_char_unsigned=no
2429 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2430 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2431 cat >> confdefs.h <<\EOF
2432 #define __CHAR_UNSIGNED__ 1
2438 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2439 echo "configure:2440: checking return type of signal handlers" >&5
2440 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2446 #include <sys/types.h>
2452 extern "C" void (*signal (int, void (*)(int)))(int);
2454 void (*signal ()) ();
2461 if { (eval echo configure:2462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 ac_cv_type_signal=void
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2468 ac_cv_type_signal=int
2473 echo "$ac_t""$ac_cv_type_signal" 1>&6
2474 cat >> confdefs.h <<EOF
2475 #define RETSIGTYPE $ac_cv_type_signal
2479 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2480 echo "configure:2481: checking for uid_t in sys/types.h" >&5
2481 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <sys/types.h>
2489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2490 egrep "uid_t" >/dev/null 2>&1; then
2492 ac_cv_type_uid_t=yes
2501 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2502 if test $ac_cv_type_uid_t = no; then
2503 cat >> confdefs.h <<\EOF
2507 cat >> confdefs.h <<\EOF
2513 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2514 echo "configure:2515: checking for mode_t" >&5
2515 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 #include <sys/types.h>
2527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2528 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2530 ac_cv_type_mode_t=yes
2533 ac_cv_type_mode_t=no
2538 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2539 if test $ac_cv_type_mode_t = no; then
2540 cat >> confdefs.h <<\EOF
2546 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2547 echo "configure:2548: checking for off_t" >&5
2548 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 #include <sys/types.h>
2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2561 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2563 ac_cv_type_off_t=yes
2571 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2572 if test $ac_cv_type_off_t = no; then
2573 cat >> confdefs.h <<\EOF
2579 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2580 echo "configure:2581: checking for size_t" >&5
2581 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 #include <sys/types.h>
2593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2594 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2596 ac_cv_type_size_t=yes
2599 ac_cv_type_size_t=no
2604 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2605 if test $ac_cv_type_size_t = no; then
2606 cat >> confdefs.h <<\EOF
2607 #define size_t unsigned
2612 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2613 echo "configure:2614: checking for pid_t" >&5
2614 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <sys/types.h>
2626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2627 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2629 ac_cv_type_pid_t=yes
2637 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2638 if test $ac_cv_type_pid_t = no; then
2639 cat >> confdefs.h <<\EOF
2645 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2646 echo "configure:2647: checking for st_rdev in struct stat" >&5
2647 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 #include <sys/types.h>
2654 #include <sys/stat.h>
2656 struct stat s; s.st_rdev;
2659 if { (eval echo configure:2660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2661 ac_cv_struct_st_rdev=yes
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2666 ac_cv_struct_st_rdev=no
2671 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2672 if test $ac_cv_struct_st_rdev = yes; then
2673 cat >> confdefs.h <<\EOF
2674 #define HAVE_ST_RDEV 1
2679 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2680 echo "configure:2681: checking for d_off in dirent" >&5
2681 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2689 #include <sys/types.h>
2692 struct dirent d; d.d_off;
2695 if { (eval echo configure:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 ac_cv_dirent_d_off=yes
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2702 ac_cv_dirent_d_off=no
2707 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2708 if test $ac_cv_dirent_d_off = yes; then
2709 cat >> confdefs.h <<\EOF
2710 #define HAVE_DIRENT_D_OFF 1
2715 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2716 echo "configure:2717: checking for ino_t" >&5
2717 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #include <sys/types.h>
2729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2730 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2732 ac_cv_type_ino_t=yes
2740 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2741 if test $ac_cv_type_ino_t = no; then
2742 cat >> confdefs.h <<\EOF
2743 #define ino_t unsigned
2748 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2749 echo "configure:2750: checking for loff_t" >&5
2750 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <sys/types.h>
2762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2763 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2765 ac_cv_type_loff_t=yes
2768 ac_cv_type_loff_t=no
2773 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2774 if test $ac_cv_type_loff_t = no; then
2775 cat >> confdefs.h <<\EOF
2776 #define loff_t off_t
2781 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2782 echo "configure:2783: checking for offset_t" >&5
2783 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2789 #include <sys/types.h>
2795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2796 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2798 ac_cv_type_offset_t=yes
2801 ac_cv_type_offset_t=no
2806 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2807 if test $ac_cv_type_offset_t = no; then
2808 cat >> confdefs.h <<\EOF
2809 #define offset_t loff_t
2814 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2815 echo "configure:2816: checking for ssize_t" >&5
2816 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include <sys/types.h>
2828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2829 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2831 ac_cv_type_ssize_t=yes
2834 ac_cv_type_ssize_t=no
2839 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2840 if test $ac_cv_type_ssize_t = no; then
2841 cat >> confdefs.h <<\EOF
2848 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2849 echo "configure:2850: checking for errno in errno.h" >&5
2850 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2862 if { (eval echo configure:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 samba_cv_have_errno_decl=no
2874 echo "$ac_t""$samba_cv_errno" 1>&6
2875 if test x"$samba_cv_errno" = x"yes"; then
2876 cat >> confdefs.h <<\EOF
2877 #define HAVE_ERRNO_DECL 1
2882 # stupid glibc has the functions but no declaration. grrrr.
2883 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2884 echo "configure:2885: checking for setresuid declaration" >&5
2885 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2897 if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2899 samba_cv_have_setresuid_decl=yes
2901 echo "configure: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 samba_cv_have_setresuid_decl=no
2909 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2910 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2911 cat >> confdefs.h <<\EOF
2912 #define HAVE_SETRESUID_DECL 1
2917 # and glibc has setresuid under linux but the function does
2918 # nothing until kernel 2.1.44! very dumb.
2919 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2920 echo "configure:2921: checking for real setresuid" >&5
2921 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2925 if test "$cross_compiling" = yes; then
2926 samba_cv_have_setresuid=cross
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2932 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2936 samba_cv_have_setresuid=yes
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 samba_cv_have_setresuid=no
2948 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2949 if test x"$samba_cv_have_setresuid" = x"yes"; then
2950 cat >> confdefs.h <<\EOF
2951 #define HAVE_SETRESUID 1
2956 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2957 echo "configure:2958: checking for 8-bit clean memcmp" >&5
2958 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 if test "$cross_compiling" = yes; then
2962 ac_cv_func_memcmp_clean=no
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2970 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2971 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2975 if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2977 ac_cv_func_memcmp_clean=yes
2979 echo "configure: failed program was:" >&5
2980 cat conftest.$ac_ext >&5
2982 ac_cv_func_memcmp_clean=no
2989 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2990 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2993 ###############################################
2994 # test for where we get crypt() from
2995 for ac_func in crypt
2997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2998 echo "configure:2999: checking for $ac_func" >&5
2999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 cat > conftest.$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3005 /* System header to define __stub macros and hopefully few prototypes,
3006 which can conflict with char $ac_func(); below. */
3008 /* Override any gcc2 internal prototype to avoid an error. */
3009 /* We use char because int might match the return type of a gcc2
3010 builtin and then its argument prototype would still apply. */
3015 /* The GNU C library defines this for functions which it implements
3016 to always fail with ENOSYS. Some functions are actually named
3017 something starting with __ and the normal name is an alias. */
3018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3026 if { (eval echo configure:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3028 eval "ac_cv_func_$ac_func=yes"
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3033 eval "ac_cv_func_$ac_func=no"
3038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3041 cat >> confdefs.h <<EOF
3042 #define $ac_tr_func 1
3046 echo "$ac_t""no" 1>&6
3050 if test x"$ac_cv_func_crypt" = x"no"; then
3051 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3052 echo "configure:3053: checking for crypt in -lcrypt" >&5
3053 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 ac_save_LIBS="$LIBS"
3058 LIBS="-lcrypt $LIBS"
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3062 /* Override any gcc2 internal prototype to avoid an error. */
3063 /* We use char because int might match the return type of a gcc2
3064 builtin and then its argument prototype would still apply. */
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3073 eval "ac_cv_lib_$ac_lib_var=yes"
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3078 eval "ac_cv_lib_$ac_lib_var=no"
3081 LIBS="$ac_save_LIBS"
3084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3085 echo "$ac_t""yes" 1>&6
3086 LIBS="$LIBS -lcrypt";
3087 cat >> confdefs.h <<\EOF
3088 #define HAVE_CRYPT 1
3092 echo "$ac_t""no" 1>&6
3098 ###############################################
3099 # test for where we get pam_authenticate() from
3100 # might need libdl for this to work
3101 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3102 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3103 echo "configure:3104: checking for main in -ldl" >&5
3104 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 ac_save_LIBS="$LIBS"
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3120 eval "ac_cv_lib_$ac_lib_var=yes"
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3125 eval "ac_cv_lib_$ac_lib_var=no"
3128 LIBS="$ac_save_LIBS"
3131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3132 echo "$ac_t""yes" 1>&6
3133 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3135 cat >> confdefs.h <<EOF
3136 #define $ac_tr_lib 1
3142 echo "$ac_t""no" 1>&6
3146 for ac_func in pam_authenticate
3148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3149 echo "configure:3150: checking for $ac_func" >&5
3150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 /* System header to define __stub macros and hopefully few prototypes,
3157 which can conflict with char $ac_func(); below. */
3159 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3166 /* The GNU C library defines this for functions which it implements
3167 to always fail with ENOSYS. Some functions are actually named
3168 something starting with __ and the normal name is an alias. */
3169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3179 eval "ac_cv_func_$ac_func=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 eval "ac_cv_func_$ac_func=no"
3189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3190 echo "$ac_t""yes" 1>&6
3191 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3192 cat >> confdefs.h <<EOF
3193 #define $ac_tr_func 1
3197 echo "$ac_t""no" 1>&6
3201 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3202 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3203 echo "configure:3204: checking for pam_authenticate in -lpam" >&5
3204 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 ac_save_LIBS="$LIBS"
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3216 char pam_authenticate();
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3224 eval "ac_cv_lib_$ac_lib_var=yes"
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3229 eval "ac_cv_lib_$ac_lib_var=no"
3232 LIBS="$ac_save_LIBS"
3235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3238 cat >> confdefs.h <<\EOF
3239 #define HAVE_PAM_AUTHENTICATE 1
3243 echo "$ac_t""no" 1>&6
3249 ###############################################
3250 # test for where we get readline() from
3251 if test "$ac_cv_header_readline_h" = "yes" ||
3252 test "$ac_cv_header_readline_readline_h" = "yes"; then
3253 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3254 echo "configure:3255: checking for readline in -lreadline" >&5
3255 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 ac_save_LIBS="$LIBS"
3260 LIBS="-lreadline $LIBS"
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3275 eval "ac_cv_lib_$ac_lib_var=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_lib_$ac_lib_var=no"
3283 LIBS="$ac_save_LIBS"
3286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3288 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3290 cat >> confdefs.h <<EOF
3291 #define $ac_tr_lib 1
3294 LIBS="-lreadline $LIBS"
3297 echo "$ac_t""no" 1>&6
3303 # The following test taken from the cvs sources
3304 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3305 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3306 # libsocket.so which has a bad implementation of gethostbyname (it
3307 # only looks in /etc/hosts), so we only look for -lsocket if we need
3309 for ac_func in connect
3311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_func" >&5
3313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* System header to define __stub macros and hopefully few prototypes,
3320 which can conflict with char $ac_func(); below. */
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 /* We use char because int might match the return type of a gcc2
3324 builtin and then its argument prototype would still apply. */
3329 /* The GNU C library defines this for functions which it implements
3330 to always fail with ENOSYS. Some functions are actually named
3331 something starting with __ and the normal name is an alias. */
3332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3342 eval "ac_cv_func_$ac_func=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_func_$ac_func=no"
3352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3355 cat >> confdefs.h <<EOF
3356 #define $ac_tr_func 1
3360 echo "$ac_t""no" 1>&6
3364 if test x"$ac_cv_func_connect" = x"no"; then
3367 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3368 echo "configure:3369: checking for printf in -lnsl_s" >&5
3369 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 ac_save_LIBS="$LIBS"
3374 LIBS="-lnsl_s $LIBS"
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 /* Override any gcc2 internal prototype to avoid an error. */
3379 /* We use char because int might match the return type of a gcc2
3380 builtin and then its argument prototype would still apply. */
3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3389 eval "ac_cv_lib_$ac_lib_var=yes"
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3394 eval "ac_cv_lib_$ac_lib_var=no"
3397 LIBS="$ac_save_LIBS"
3400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3404 cat >> confdefs.h <<EOF
3405 #define $ac_tr_lib 1
3408 LIBS="-lnsl_s $LIBS"
3411 echo "$ac_t""no" 1>&6
3417 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3418 echo "configure:3419: checking for printf in -lnsl" >&5
3419 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3423 ac_save_LIBS="$LIBS"
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* Override any gcc2 internal prototype to avoid an error. */
3429 /* We use char because int might match the return type of a gcc2
3430 builtin and then its argument prototype would still apply. */
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3439 eval "ac_cv_lib_$ac_lib_var=yes"
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3444 eval "ac_cv_lib_$ac_lib_var=no"
3447 LIBS="$ac_save_LIBS"
3450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3452 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3454 cat >> confdefs.h <<EOF
3455 #define $ac_tr_lib 1
3461 echo "$ac_t""no" 1>&6
3467 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3468 echo "configure:3469: checking for connect in -lsocket" >&5
3469 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS="$LIBS"
3474 LIBS="-lsocket $LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3494 eval "ac_cv_lib_$ac_lib_var=no"
3497 LIBS="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3503 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3504 cat >> confdefs.h <<EOF
3505 #define $ac_tr_lib 1
3508 LIBS="-lsocket $LIBS"
3511 echo "$ac_t""no" 1>&6
3517 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3518 echo "configure:3519: checking for connect in -linet" >&5
3519 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 ac_save_LIBS="$LIBS"
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* Override any gcc2 internal prototype to avoid an error. */
3529 /* We use char because int might match the return type of a gcc2
3530 builtin and then its argument prototype would still apply. */
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3539 eval "ac_cv_lib_$ac_lib_var=yes"
3541 echo "configure: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 eval "ac_cv_lib_$ac_lib_var=no"
3547 LIBS="$ac_save_LIBS"
3550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3554 cat >> confdefs.h <<EOF
3555 #define $ac_tr_lib 1
3561 echo "$ac_t""no" 1>&6
3565 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3566 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3567 # ac_cv_func_connect=yes
3568 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3569 cat >> confdefs.h <<\EOF
3570 #define HAVE_CONNECT 1
3577 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_func" >&5
3581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* System header to define __stub macros and hopefully few prototypes,
3588 which can conflict with char $ac_func(); below. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3597 /* The GNU C library defines this for functions which it implements
3598 to always fail with ENOSYS. Some functions are actually named
3599 something starting with __ and the normal name is an alias. */
3600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3610 eval "ac_cv_func_$ac_func=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_func_$ac_func=no"
3620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3623 cat >> confdefs.h <<EOF
3624 #define $ac_tr_func 1
3628 echo "$ac_t""no" 1>&6
3632 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3635 echo "configure:3636: checking for $ac_func" >&5
3636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 /* System header to define __stub macros and hopefully few prototypes,
3643 which can conflict with char $ac_func(); below. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3652 /* The GNU C library defines this for functions which it implements
3653 to always fail with ENOSYS. Some functions are actually named
3654 something starting with __ and the normal name is an alias. */
3655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3665 eval "ac_cv_func_$ac_func=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_func_$ac_func=no"
3675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3678 cat >> confdefs.h <<EOF
3679 #define $ac_tr_func 1
3683 echo "$ac_t""no" 1>&6
3687 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3690 echo "configure:3691: checking for $ac_func" >&5
3691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3697 /* System header to define __stub macros and hopefully few prototypes,
3698 which can conflict with char $ac_func(); below. */
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3720 eval "ac_cv_func_$ac_func=yes"
3722 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_func_$ac_func=no"
3730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3733 cat >> confdefs.h <<EOF
3734 #define $ac_tr_func 1
3738 echo "$ac_t""no" 1>&6
3742 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3745 echo "configure:3746: checking for $ac_func" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char $ac_func(); below. */
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3775 eval "ac_cv_func_$ac_func=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_func_$ac_func=no"
3785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3788 cat >> confdefs.h <<EOF
3789 #define $ac_tr_func 1
3793 echo "$ac_t""no" 1>&6
3797 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_func" >&5
3801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 /* System header to define __stub macros and hopefully few prototypes,
3808 which can conflict with char $ac_func(); below. */
3810 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3817 /* The GNU C library defines this for functions which it implements
3818 to always fail with ENOSYS. Some functions are actually named
3819 something starting with __ and the normal name is an alias. */
3820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3830 eval "ac_cv_func_$ac_func=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3835 eval "ac_cv_func_$ac_func=no"
3840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3843 cat >> confdefs.h <<EOF
3844 #define $ac_tr_func 1
3848 echo "$ac_t""no" 1>&6
3852 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_func" >&5
3856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* System header to define __stub macros and hopefully few prototypes,
3863 which can conflict with char $ac_func(); below. */
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3872 /* The GNU C library defines this for functions which it implements
3873 to always fail with ENOSYS. Some functions are actually named
3874 something starting with __ and the normal name is an alias. */
3875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3885 eval "ac_cv_func_$ac_func=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_func_$ac_func=no"
3895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3898 cat >> confdefs.h <<EOF
3899 #define $ac_tr_func 1
3903 echo "$ac_t""no" 1>&6
3907 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3910 echo "configure:3911: checking for $ac_func" >&5
3911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* System header to define __stub macros and hopefully few prototypes,
3918 which can conflict with char $ac_func(); below. */
3920 /* Override any gcc2 internal prototype to avoid an error. */
3921 /* We use char because int might match the return type of a gcc2
3922 builtin and then its argument prototype would still apply. */
3927 /* The GNU C library defines this for functions which it implements
3928 to always fail with ENOSYS. Some functions are actually named
3929 something starting with __ and the normal name is an alias. */
3930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3940 eval "ac_cv_func_$ac_func=yes"
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3945 eval "ac_cv_func_$ac_func=no"
3950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3951 echo "$ac_t""yes" 1>&6
3952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3953 cat >> confdefs.h <<EOF
3954 #define $ac_tr_func 1
3958 echo "$ac_t""no" 1>&6
3962 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3965 echo "configure:3966: checking for $ac_func" >&5
3966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* System header to define __stub macros and hopefully few prototypes,
3973 which can conflict with char $ac_func(); below. */
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3982 /* The GNU C library defines this for functions which it implements
3983 to always fail with ENOSYS. Some functions are actually named
3984 something starting with __ and the normal name is an alias. */
3985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3995 eval "ac_cv_func_$ac_func=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_func_$ac_func=no"
4005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4008 cat >> confdefs.h <<EOF
4009 #define $ac_tr_func 1
4013 echo "$ac_t""no" 1>&6
4017 for ac_func in srandom random srand rand setenv
4019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4020 echo "configure:4021: checking for $ac_func" >&5
4021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* System header to define __stub macros and hopefully few prototypes,
4028 which can conflict with char $ac_func(); below. */
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4037 /* The GNU C library defines this for functions which it implements
4038 to always fail with ENOSYS. Some functions are actually named
4039 something starting with __ and the normal name is an alias. */
4040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4048 if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4050 eval "ac_cv_func_$ac_func=yes"
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4055 eval "ac_cv_func_$ac_func=no"
4060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4063 cat >> confdefs.h <<EOF
4064 #define $ac_tr_func 1
4068 echo "$ac_t""no" 1>&6
4073 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4076 echo "configure:4077: checking for $ac_func" >&5
4077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* System header to define __stub macros and hopefully few prototypes,
4084 which can conflict with char $ac_func(); below. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4093 /* The GNU C library defines this for functions which it implements
4094 to always fail with ENOSYS. Some functions are actually named
4095 something starting with __ and the normal name is an alias. */
4096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4106 eval "ac_cv_func_$ac_func=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4111 eval "ac_cv_func_$ac_func=no"
4116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4119 cat >> confdefs.h <<EOF
4120 #define $ac_tr_func 1
4124 echo "$ac_t""no" 1>&6
4128 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4131 echo "configure:4132: checking for $ac_func" >&5
4132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 /* System header to define __stub macros and hopefully few prototypes,
4139 which can conflict with char $ac_func(); below. */
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4148 /* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4159 if { (eval echo configure:4160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4161 eval "ac_cv_func_$ac_func=yes"
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 eval "ac_cv_func_$ac_func=no"
4171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4174 cat >> confdefs.h <<EOF
4175 #define $ac_tr_func 1
4179 echo "$ac_t""no" 1>&6
4183 for ac_func in __getcwd _getcwd
4185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4186 echo "configure:4187: checking for $ac_func" >&5
4187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char $ac_func(); below. */
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4203 /* The GNU C library defines this for functions which it implements
4204 to always fail with ENOSYS. Some functions are actually named
4205 something starting with __ and the normal name is an alias. */
4206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4216 eval "ac_cv_func_$ac_func=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_func_$ac_func=no"
4226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4229 cat >> confdefs.h <<EOF
4230 #define $ac_tr_func 1
4234 echo "$ac_t""no" 1>&6
4238 for ac_func in __xstat __fxstat __lxstat
4240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4241 echo "configure:4242: checking for $ac_func" >&5
4242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* System header to define __stub macros and hopefully few prototypes,
4249 which can conflict with char $ac_func(); below. */
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4258 /* The GNU C library defines this for functions which it implements
4259 to always fail with ENOSYS. Some functions are actually named
4260 something starting with __ and the normal name is an alias. */
4261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4271 eval "ac_cv_func_$ac_func=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4276 eval "ac_cv_func_$ac_func=no"
4281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4282 echo "$ac_t""yes" 1>&6
4283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4284 cat >> confdefs.h <<EOF
4285 #define $ac_tr_func 1
4289 echo "$ac_t""no" 1>&6
4293 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4296 echo "configure:4297: checking for $ac_func" >&5
4297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4303 /* System header to define __stub macros and hopefully few prototypes,
4304 which can conflict with char $ac_func(); below. */
4306 /* Override any gcc2 internal prototype to avoid an error. */
4307 /* We use char because int might match the return type of a gcc2
4308 builtin and then its argument prototype would still apply. */
4313 /* The GNU C library defines this for functions which it implements
4314 to always fail with ENOSYS. Some functions are actually named
4315 something starting with __ and the normal name is an alias. */
4316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4326 eval "ac_cv_func_$ac_func=yes"
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4331 eval "ac_cv_func_$ac_func=no"
4336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4339 cat >> confdefs.h <<EOF
4340 #define $ac_tr_func 1
4344 echo "$ac_t""no" 1>&6
4348 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4351 echo "configure:4352: checking for $ac_func" >&5
4352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 /* System header to define __stub macros and hopefully few prototypes,
4359 which can conflict with char $ac_func(); below. */
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4368 /* The GNU C library defines this for functions which it implements
4369 to always fail with ENOSYS. Some functions are actually named
4370 something starting with __ and the normal name is an alias. */
4371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4381 eval "ac_cv_func_$ac_func=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_func_$ac_func=no"
4391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
4393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4394 cat >> confdefs.h <<EOF
4395 #define $ac_tr_func 1
4399 echo "$ac_t""no" 1>&6
4403 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4406 echo "configure:4407: checking for $ac_func" >&5
4407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* System header to define __stub macros and hopefully few prototypes,
4414 which can conflict with char $ac_func(); below. */
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4423 /* The GNU C library defines this for functions which it implements
4424 to always fail with ENOSYS. Some functions are actually named
4425 something starting with __ and the normal name is an alias. */
4426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4436 eval "ac_cv_func_$ac_func=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5
4441 eval "ac_cv_func_$ac_func=no"
4446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4447 echo "$ac_t""yes" 1>&6
4448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4449 cat >> confdefs.h <<EOF
4450 #define $ac_tr_func 1
4454 echo "$ac_t""no" 1>&6
4458 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4461 echo "configure:4462: checking for $ac_func" >&5
4462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* System header to define __stub macros and hopefully few prototypes,
4469 which can conflict with char $ac_func(); below. */
4471 /* Override any gcc2 internal prototype to avoid an error. */
4472 /* We use char because int might match the return type of a gcc2
4473 builtin and then its argument prototype would still apply. */
4478 /* The GNU C library defines this for functions which it implements
4479 to always fail with ENOSYS. Some functions are actually named
4480 something starting with __ and the normal name is an alias. */
4481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4491 eval "ac_cv_func_$ac_func=yes"
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4496 eval "ac_cv_func_$ac_func=no"
4501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4504 cat >> confdefs.h <<EOF
4505 #define $ac_tr_func 1
4509 echo "$ac_t""no" 1>&6
4513 for ac_func in _write __write _fork __fork
4515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_func" >&5
4517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 /* System header to define __stub macros and hopefully few prototypes,
4524 which can conflict with char $ac_func(); below. */
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4533 /* The GNU C library defines this for functions which it implements
4534 to always fail with ENOSYS. Some functions are actually named
4535 something starting with __ and the normal name is an alias. */
4536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4546 eval "ac_cv_func_$ac_func=yes"
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 eval "ac_cv_func_$ac_func=no"
4556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4559 cat >> confdefs.h <<EOF
4560 #define $ac_tr_func 1
4564 echo "$ac_t""no" 1>&6
4568 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4571 echo "configure:4572: checking for $ac_func" >&5
4572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure"
4577 #include "confdefs.h"
4578 /* System header to define __stub macros and hopefully few prototypes,
4579 which can conflict with char $ac_func(); below. */
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4588 /* The GNU C library defines this for functions which it implements
4589 to always fail with ENOSYS. Some functions are actually named
4590 something starting with __ and the normal name is an alias. */
4591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4601 eval "ac_cv_func_$ac_func=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
4606 eval "ac_cv_func_$ac_func=no"
4611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6
4613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4614 cat >> confdefs.h <<EOF
4615 #define $ac_tr_func 1
4619 echo "$ac_t""no" 1>&6
4623 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4626 echo "configure:4627: checking for $ac_func" >&5
4627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 /* System header to define __stub macros and hopefully few prototypes,
4634 which can conflict with char $ac_func(); below. */
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4643 /* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4654 if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4656 eval "ac_cv_func_$ac_func=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 eval "ac_cv_func_$ac_func=no"
4666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4669 cat >> confdefs.h <<EOF
4670 #define $ac_tr_func 1
4674 echo "$ac_t""no" 1>&6
4678 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4681 echo "configure:4682: checking for $ac_func" >&5
4682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4688 /* System header to define __stub macros and hopefully few prototypes,
4689 which can conflict with char $ac_func(); below. */
4691 /* Override any gcc2 internal prototype to avoid an error. */
4692 /* We use char because int might match the return type of a gcc2
4693 builtin and then its argument prototype would still apply. */
4698 /* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4711 eval "ac_cv_func_$ac_func=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_func_$ac_func=no"
4721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4724 cat >> confdefs.h <<EOF
4725 #define $ac_tr_func 1
4729 echo "$ac_t""no" 1>&6
4733 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_func" >&5
4737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4743 /* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char $ac_func(); below. */
4746 /* Override any gcc2 internal prototype to avoid an error. */
4747 /* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
4753 /* The GNU C library defines this for functions which it implements
4754 to always fail with ENOSYS. Some functions are actually named
4755 something starting with __ and the normal name is an alias. */
4756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4766 eval "ac_cv_func_$ac_func=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_func_$ac_func=no"
4776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4779 cat >> confdefs.h <<EOF
4780 #define $ac_tr_func 1
4784 echo "$ac_t""no" 1>&6
4788 for ac_func in open64 _open64 __open64 creat64
4790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_func" >&5
4792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 /* System header to define __stub macros and hopefully few prototypes,
4799 which can conflict with char $ac_func(); below. */
4801 /* Override any gcc2 internal prototype to avoid an error. */
4802 /* We use char because int might match the return type of a gcc2
4803 builtin and then its argument prototype would still apply. */
4808 /* The GNU C library defines this for functions which it implements
4809 to always fail with ENOSYS. Some functions are actually named
4810 something starting with __ and the normal name is an alias. */
4811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4819 if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4821 eval "ac_cv_func_$ac_func=yes"
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4826 eval "ac_cv_func_$ac_func=no"
4831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4832 echo "$ac_t""yes" 1>&6
4833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4834 cat >> confdefs.h <<EOF
4835 #define $ac_tr_func 1
4839 echo "$ac_t""no" 1>&6
4844 echo $ac_n "checking for long long""... $ac_c" 1>&6
4845 echo "configure:4846: checking for long long" >&5
4846 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4850 if test "$cross_compiling" = yes; then
4851 samba_cv_have_longlong=cross
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4857 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4861 samba_cv_have_longlong=yes
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4866 samba_cv_have_longlong=no
4873 echo "$ac_t""$samba_cv_have_longlong" 1>&6
4874 if test x"$samba_cv_have_longlong" = x"yes"; then
4875 cat >> confdefs.h <<\EOF
4876 #define HAVE_LONGLONG 1
4881 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
4882 echo "configure:4883: checking for 64 bit off_t" >&5
4883 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4887 if test "$cross_compiling" = yes; then
4888 samba_cv_SIZEOF_OFF_T=cross
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4894 #include <sys/stat.h>
4895 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
4897 if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4899 samba_cv_SIZEOF_OFF_T=yes
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 samba_cv_SIZEOF_OFF_T=no
4911 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
4912 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
4913 cat >> confdefs.h <<\EOF
4914 #define SIZEOF_OFF_T 8
4919 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
4920 echo "configure:4921: checking for off64_t" >&5
4921 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4925 if test "$cross_compiling" = yes; then
4926 samba_cv_HAVE_OFF64_T=cross
4928 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4932 #include <sys/stat.h>
4933 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
4935 if { (eval echo configure:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4937 samba_cv_HAVE_OFF64_T=yes
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4942 samba_cv_HAVE_OFF64_T=no
4949 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
4950 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
4951 cat >> confdefs.h <<\EOF
4952 #define HAVE_OFF64_T 1
4957 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
4958 echo "configure:4959: checking for 64 bit ino_t" >&5
4959 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4963 if test "$cross_compiling" = yes; then
4964 samba_cv_SIZEOF_INO_T=cross
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4970 #include <sys/stat.h>
4971 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4975 samba_cv_SIZEOF_INO_T=yes
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 samba_cv_SIZEOF_INO_T=no
4987 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
4988 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
4989 cat >> confdefs.h <<\EOF
4990 #define SIZEOF_INO_T 8
4995 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
4996 echo "configure:4997: checking for ino64_t" >&5
4997 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5001 if test "$cross_compiling" = yes; then
5002 samba_cv_HAVE_INO64_T=cross
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5008 #include <sys/stat.h>
5009 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5013 samba_cv_HAVE_INO64_T=yes
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 samba_cv_HAVE_INO64_T=no
5025 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
5026 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
5027 cat >> confdefs.h <<\EOF
5028 #define HAVE_INO64_T 1
5033 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5034 echo "configure:5035: checking for union semun" >&5
5035 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5039 if test "$cross_compiling" = yes; then
5040 samba_cv_HAVE_UNION_SEMUN=cross
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5046 #include <sys/types.h>
5047 #include <sys/ipc.h>
5048 #include <sys/sem.h>
5049 main() { union semun ss; exit(0); }
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5053 samba_cv_HAVE_UNION_SEMUN=yes
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5058 samba_cv_HAVE_UNION_SEMUN=no
5065 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
5066 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
5067 cat >> confdefs.h <<\EOF
5068 #define HAVE_UNION_SEMUN 1
5073 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
5074 echo "configure:5075: checking for unsigned char" >&5
5075 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5079 if test "$cross_compiling" = yes; then
5080 samba_cv_HAVE_UNSIGNED_CHAR=cross
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5086 main() { char c; c=250; exit((c > 0)?0:1); }
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5090 samba_cv_HAVE_UNSIGNED_CHAR=yes
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 samba_cv_HAVE_UNSIGNED_CHAR=no
5102 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
5103 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
5104 cat >> confdefs.h <<\EOF
5105 #define HAVE_UNSIGNED_CHAR 1
5110 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
5111 echo "configure:5112: checking for sin_len in sock" >&5
5112 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5116 cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 #include <sys/types.h>
5120 #include <sys/socket.h>
5121 #include <netinet/in.h>
5123 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
5126 if { (eval echo configure:5127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5128 samba_cv_HAVE_SOCK_SIN_LEN=yes
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5133 samba_cv_HAVE_SOCK_SIN_LEN=no
5138 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
5139 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
5140 cat >> confdefs.h <<\EOF
5141 #define HAVE_SOCK_SIN_LEN 1
5146 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
5147 echo "configure:5148: checking whether seekdir returns void" >&5
5148 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 #include <sys/types.h>
5157 void seekdir(DIR *d, long loc) { return; }
5162 if { (eval echo configure:5163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5164 samba_cv_SEEKDIR_RETURNS_VOID=yes
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5169 samba_cv_SEEKDIR_RETURNS_VOID=no
5174 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
5175 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
5176 cat >> confdefs.h <<\EOF
5177 #define SEEKDIR_RETURNS_VOID 1
5182 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
5183 echo "configure:5184: checking for __FILE__ macro" >&5
5184 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5193 printf("%s\n", __FILE__);
5196 if { (eval echo configure:5197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5198 samba_cv_HAVE_FILE_MACRO=yes
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5203 samba_cv_HAVE_FILE_MACRO=no
5208 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
5209 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
5210 cat >> confdefs.h <<\EOF
5211 #define HAVE_FILE_MACRO 1
5216 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
5217 echo "configure:5218: checking for __FUNCTION__ macro" >&5
5218 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5227 printf("%s\n", __FUNCTION__);
5230 if { (eval echo configure:5231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5232 samba_cv_HAVE_FUNCTION_MACRO=yes
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5237 samba_cv_HAVE_FUNCTION_MACRO=no
5242 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
5243 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
5244 cat >> confdefs.h <<\EOF
5245 #define HAVE_FUNCTION_MACRO 1
5250 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
5251 echo "configure:5252: checking if gettimeofday takes tz argument" >&5
5252 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5256 if test "$cross_compiling" = yes; then
5257 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5263 #include <sys/time.h>
5265 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
5267 if { (eval echo configure:5268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5269 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5274 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
5281 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
5282 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
5283 cat >> confdefs.h <<\EOF
5284 #define HAVE_GETTIMEOFDAY_TZ 1
5290 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
5291 echo "configure:5292: checking for broken readdir" >&5
5292 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5296 if test "$cross_compiling" = yes; then
5297 samba_cv_HAVE_BROKEN_READDIR=cross
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 #include <sys/types.h>
5304 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
5305 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
5306 di->d_name[0] == 0) exit(0); exit(1);}
5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5310 samba_cv_HAVE_BROKEN_READDIR=yes
5312 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5
5315 samba_cv_HAVE_BROKEN_READDIR=no
5322 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
5323 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
5324 cat >> confdefs.h <<\EOF
5325 #define HAVE_BROKEN_READDIR 1
5330 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
5331 echo "configure:5332: checking for utimbuf" >&5
5332 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5342 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
5345 if { (eval echo configure:5346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5347 samba_cv_HAVE_UTIMBUF=yes
5349 echo "configure: failed program was:" >&5
5350 cat conftest.$ac_ext >&5
5352 samba_cv_HAVE_UTIMBUF=no
5357 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
5358 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
5359 cat >> confdefs.h <<\EOF
5360 #define HAVE_UTIMBUF 1
5365 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
5366 echo "configure:5367: checking for kernel oplock type definitions" >&5
5367 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5371 cat > conftest.$ac_ext <<EOF
5372 #line 5373 "configure"
5373 #include "confdefs.h"
5374 #include <sys/types.h>
5377 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
5380 if { (eval echo configure:5381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5382 samba_cv_HAVE_KERNEL_OPLOCKS=yes
5384 echo "configure: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5387 samba_cv_HAVE_KERNEL_OPLOCKS=no
5392 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
5393 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
5394 cat >> confdefs.h <<\EOF
5395 #define HAVE_KERNEL_OPLOCKS 1
5400 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
5401 echo "configure:5402: checking for irix specific capabilities" >&5
5402 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5406 if test "$cross_compiling" = yes; then
5407 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 #include <sys/types.h>
5413 #include <sys/capability.h>
5416 if ((cap = cap_get_proc()) == NULL)
5418 cap->cap_effective |= CAP_NETWORK_MGT;
5419 cap->cap_inheritable |= CAP_NETWORK_MGT;
5425 if { (eval echo configure:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5427 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5432 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
5439 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
5440 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
5441 cat >> confdefs.h <<\EOF
5442 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
5447 echo $ac_n "checking for test routines""... $ac_c" 1>&6
5448 echo "configure:5449: checking for test routines" >&5
5449 if test "$cross_compiling" = yes; then
5450 echo "configure: warning: cannot run when cross-compiling" 1>&2
5452 cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 #include "${srcdir-.}/tests/trivial.c"
5457 if { (eval echo configure:5458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5459 echo "$ac_t""yes" 1>&6
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5464 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
5470 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
5471 echo "configure:5472: checking for ftruncate extend" >&5
5472 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5476 if test "$cross_compiling" = yes; then
5477 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5482 #include "${srcdir-.}/tests/ftruncate.c"
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5486 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 samba_cv_HAVE_FTRUNCATE_EXTEND=no
5498 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
5499 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
5500 cat >> confdefs.h <<\EOF
5501 #define HAVE_FTRUNCATE_EXTEND 1
5506 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
5507 echo "configure:5508: checking for broken getgroups" >&5
5508 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5512 if test "$cross_compiling" = yes; then
5513 samba_cv_HAVE_BROKEN_GETGROUPS=cross
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 #include "${srcdir-.}/tests/getgroups.c"
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5522 samba_cv_HAVE_BROKEN_GETGROUPS=yes
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 samba_cv_HAVE_BROKEN_GETGROUPS=no
5534 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
5535 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
5536 cat >> confdefs.h <<\EOF
5537 #define HAVE_BROKEN_GETGROUPS 1
5542 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
5543 echo "configure:5544: checking whether getpass should be replaced" >&5
5544 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5548 SAVE_CPPFLAGS="$CPPFLAGS"
5549 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5554 #define REPLACE_GETPASS 1
5555 #define NO_CONFIG_H 1
5556 #define main dont_declare_main
5557 #include "${srcdir-.}/lib/getsmbpass.c"
5564 if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5566 samba_cv_REPLACE_GETPASS=yes
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 samba_cv_REPLACE_GETPASS=no
5574 CPPFLAGS="$SAVE_CPPFLAGS"
5578 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
5579 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
5580 cat >> confdefs.h <<\EOF
5581 #define REPLACE_GETPASS 1
5586 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
5587 echo "configure:5588: checking for broken inet_ntoa" >&5
5588 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5592 if test "$cross_compiling" = yes; then
5593 samba_cv_REPLACE_INET_NTOA=cross
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5600 #include <sys/types.h>
5601 #include <netinet/in.h>
5602 #include <arpa/inet.h>
5603 main() { struct in_addr ip; ip.s_addr = 0x12345678;
5604 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
5605 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5610 samba_cv_REPLACE_INET_NTOA=yes
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 samba_cv_REPLACE_INET_NTOA=no
5622 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
5623 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
5624 cat >> confdefs.h <<\EOF
5625 #define REPLACE_INET_NTOA 1
5630 echo $ac_n "checking for root""... $ac_c" 1>&6
5631 echo "configure:5632: checking for root" >&5
5632 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5636 if test "$cross_compiling" = yes; then
5637 samba_cv_HAVE_ROOT=cross
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 main() { exit(getuid() != 0); }
5644 if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5646 samba_cv_HAVE_ROOT=yes
5648 echo "configure: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 samba_cv_HAVE_ROOT=no
5658 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
5659 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
5660 cat >> confdefs.h <<\EOF
5665 echo "configure: warning: running as non-root will disable some tests" 1>&2
5669 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
5670 echo "configure:5671: checking for netmask ifconf" >&5
5671 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
5672 echo $ac_n "(cached) $ac_c" 1>&6
5675 if test "$cross_compiling" = yes; then
5676 samba_cv_HAVE_NETMASK_IFCONF=cross
5678 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure"
5680 #include "confdefs.h"
5682 #define HAVE_NETMASK_IFCONF 1
5684 #include "${srcdir-.}/lib/netmask.c"
5686 if { (eval echo configure:5687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5688 samba_cv_HAVE_NETMASK_IFCONF=yes
5690 echo "configure: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5693 samba_cv_HAVE_NETMASK_IFCONF=no
5700 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
5701 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
5702 netmask=yes;cat >> confdefs.h <<\EOF
5703 #define HAVE_NETMASK_IFCONF 1
5708 if test $netmask = no; then
5709 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
5710 echo "configure:5711: checking for netmask ifreq" >&5
5711 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5715 if test "$cross_compiling" = yes; then
5716 samba_cv_HAVE_NETMASK_IFREQ=cross
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5722 #define HAVE_NETMASK_IFREQ 1
5724 #include "${srcdir-.}/lib/netmask.c"
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5728 samba_cv_HAVE_NETMASK_IFREQ=yes
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5733 samba_cv_HAVE_NETMASK_IFREQ=no
5740 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
5741 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
5742 netmask=yes;cat >> confdefs.h <<\EOF
5743 #define HAVE_NETMASK_IFREQ 1
5749 if test $netmask = no; then
5750 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
5751 echo "configure:5752: checking for netmask AIX" >&5
5752 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5756 if test "$cross_compiling" = yes; then
5757 samba_cv_HAVE_NETMASK_AIX=cross
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5763 #define HAVE_NETMASK_AIX 1
5765 #include "${srcdir-.}/lib/netmask.c"
5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5769 samba_cv_HAVE_NETMASK_AIX=yes
5771 echo "configure: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5774 samba_cv_HAVE_NETMASK_AIX=no
5781 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
5782 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
5783 netmask=yes;cat >> confdefs.h <<\EOF
5784 #define HAVE_NETMASK_AIX 1
5790 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
5791 echo "configure:5792: checking for trapdoor seteuid" >&5
5792 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5796 if test "$cross_compiling" = yes; then
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5802 #include "${srcdir-.}/tests/trapdoor.c"
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5806 samba_cv_HAVE_TRAPDOOR_UID=no
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 samba_cv_HAVE_TRAPDOOR_UID=yes
5818 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
5819 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
5820 cat >> confdefs.h <<\EOF
5821 #define HAVE_TRAPDOOR_UID 1
5826 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
5827 echo "configure:5828: checking for shared mmap" >&5
5828 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5832 if test "$cross_compiling" = yes; then
5833 samba_cv_HAVE_SHARED_MMAP=cross
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 #include "${srcdir-.}/tests/shared_mmap.c"
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5842 samba_cv_HAVE_SHARED_MMAP=yes
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5847 samba_cv_HAVE_SHARED_MMAP=no
5854 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
5855 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
5856 cat >> confdefs.h <<\EOF
5857 #define HAVE_SHARED_MMAP 1
5862 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
5863 echo "configure:5864: checking for fcntl locking" >&5
5864 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5868 if test "$cross_compiling" = yes; then
5869 samba_cv_HAVE_FCNTL_LOCK=cross
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 #include "${srcdir-.}/tests/fcntl_lock.c"
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5878 samba_cv_HAVE_FCNTL_LOCK=yes
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5883 samba_cv_HAVE_FCNTL_LOCK=no
5890 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
5891 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_FCNTL_LOCK 1
5898 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
5899 echo "configure:5900: checking for 64 bit fcntl locking" >&5
5900 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5904 if test "$cross_compiling" = yes; then
5905 samba_cv_HAVE_STRUCT_FLOCK64=cross
5907 cat > conftest.$ac_ext <<EOF
5908 #line 5909 "configure"
5909 #include "confdefs.h"
5918 #ifdef HAVE_SYS_FCNTL_H
5919 #include <sys/fcntl.h>
5921 main() { struct flock64 fl64;
5922 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5931 samba_cv_HAVE_STRUCT_FLOCK64=yes
5933 echo "configure: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5936 samba_cv_HAVE_STRUCT_FLOCK64=no
5943 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
5944 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
5945 cat >> confdefs.h <<\EOF
5946 #define HAVE_STRUCT_FLOCK64 1
5951 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
5952 echo "configure:5953: checking for sysv ipc" >&5
5953 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
5954 echo $ac_n "(cached) $ac_c" 1>&6
5957 if test "$cross_compiling" = yes; then
5958 samba_cv_HAVE_SYSV_IPC=cross
5960 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure"
5962 #include "confdefs.h"
5963 #include "${srcdir-.}/tests/sysv_ipc.c"
5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5967 samba_cv_HAVE_SYSV_IPC=yes
5969 echo "configure: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5972 samba_cv_HAVE_SYSV_IPC=no
5979 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
5980 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
5981 cat >> confdefs.h <<\EOF
5982 #define HAVE_SYSV_IPC 1
5987 #################################################
5988 # check for the AFS filesystem
5989 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
5990 echo "configure:5991: checking whether to use AFS" >&5
5991 # Check whether --with-afs or --without-afs was given.
5992 if test "${with_afs+set}" = set; then
5996 echo "$ac_t""yes" 1>&6
5997 cat >> confdefs.h <<\EOF
6003 echo "$ac_t""no" 1>&6
6007 echo "$ac_t""no" 1>&6
6013 #################################################
6014 # check for the DFS auth system
6015 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
6016 echo "configure:6017: checking whether to use DFS auth" >&5
6017 # Check whether --with-dfs or --without-dfs was given.
6018 if test "${with_dfs+set}" = set; then
6022 echo "$ac_t""yes" 1>&6
6023 cat >> confdefs.h <<\EOF
6029 echo "$ac_t""no" 1>&6
6033 echo "$ac_t""no" 1>&6
6038 #################################################
6039 # check for Kerberos IV auth system
6040 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
6041 echo "configure:6042: checking whether to use Kerberos IV" >&5
6042 # Check whether --with-krb4 or --without-krb4 was given.
6043 if test "${with_krb4+set}" = set; then
6044 withval="$with_krb4"
6045 echo "$ac_t""yes" 1>&6
6046 cat >> confdefs.h <<\EOF
6050 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6051 echo "configure:6052: checking for dn_expand in -lresolv" >&5
6052 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6054 echo $ac_n "(cached) $ac_c" 1>&6
6056 ac_save_LIBS="$LIBS"
6057 LIBS="-lresolv $LIBS"
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6072 eval "ac_cv_lib_$ac_lib_var=yes"
6074 echo "configure: failed program was:" >&5
6075 cat conftest.$ac_ext >&5
6077 eval "ac_cv_lib_$ac_lib_var=no"
6080 LIBS="$ac_save_LIBS"
6083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6084 echo "$ac_t""yes" 1>&6
6085 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6087 cat >> confdefs.h <<EOF
6088 #define $ac_tr_lib 1
6091 LIBS="-lresolv $LIBS"
6094 echo "$ac_t""no" 1>&6
6097 LIBS="$LIBS -lkrb -ldes"
6098 CFLAGS="$CFLAGS -I$withval/include"
6099 LDFLAGS="$LDFLAGS -L$withval/lib"
6101 echo "$ac_t""no" 1>&6
6106 #################################################
6107 # check for automount support
6108 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
6109 echo "configure:6110: checking whether to use AUTOMOUNT" >&5
6110 # Check whether --with-automount or --without-automount was given.
6111 if test "${with_automount+set}" = set; then
6112 withval="$with_automount"
6115 echo "$ac_t""yes" 1>&6
6116 cat >> confdefs.h <<\EOF
6117 #define WITH_AUTOMOUNT 1
6122 echo "$ac_t""no" 1>&6
6126 echo "$ac_t""no" 1>&6
6131 #################################################
6132 # check for smbmount support
6133 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
6134 echo "configure:6135: checking whether to use SMBMOUNT" >&5
6135 # Check whether --with-smbmount or --without-smbmount was given.
6136 if test "${with_smbmount+set}" = set; then
6137 withval="$with_smbmount"
6140 echo "$ac_t""yes" 1>&6
6141 cat >> confdefs.h <<\EOF
6142 #define WITH_SMBMOUNT 1
6145 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
6148 echo "$ac_t""no" 1>&6
6153 echo "$ac_t""no" 1>&6
6159 #################################################
6160 # check for a LDAP password database
6161 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
6162 echo "configure:6163: checking whether to use LDAP password database" >&5
6163 # Check whether --with-ldap or --without-ldap was given.
6164 if test "${with_ldap+set}" = set; then
6165 withval="$with_ldap"
6168 echo "$ac_t""yes" 1>&6
6169 cat >> confdefs.h <<\EOF
6175 echo "$ac_t""no" 1>&6
6179 echo "$ac_t""no" 1>&6
6184 #################################################
6185 # check for a NISPLUS password database
6186 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
6187 echo "configure:6188: checking whether to use NISPLUS password database" >&5
6188 # Check whether --with-nisplus or --without-nisplus was given.
6189 if test "${with_nisplus+set}" = set; then
6190 withval="$with_nisplus"
6193 echo "$ac_t""yes" 1>&6
6194 cat >> confdefs.h <<\EOF
6195 #define WITH_NISPLUS 1
6200 echo "$ac_t""no" 1>&6
6204 echo "$ac_t""no" 1>&6
6209 #################################################
6210 # check for a NISPLUS_HOME support
6211 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
6212 echo "configure:6213: checking whether to use NISPLUS_HOME" >&5
6213 # Check whether --with-nisplus-home or --without-nisplus-home was given.
6214 if test "${with_nisplus_home+set}" = set; then
6215 withval="$with_nisplus_home"
6218 echo "$ac_t""yes" 1>&6
6219 cat >> confdefs.h <<\EOF
6220 #define WITH_NISPLUS_HOME 1
6225 echo "$ac_t""no" 1>&6
6229 echo "$ac_t""no" 1>&6
6234 #################################################
6235 # check for the secure socket layer
6236 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
6237 echo "configure:6238: checking whether to use SSL" >&5
6238 # Check whether --with-ssl or --without-ssl was given.
6239 if test "${with_ssl+set}" = set; then
6243 echo "$ac_t""yes" 1>&6
6244 cat >> confdefs.h <<\EOF
6250 echo "$ac_t""no" 1>&6
6254 echo "$ac_t""no" 1>&6
6259 #################################################
6260 # check for experimental mmap support
6261 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
6262 echo "configure:6263: checking whether to use MMAP" >&5
6263 # Check whether --with-mmap or --without-mmap was given.
6264 if test "${with_mmap+set}" = set; then
6265 withval="$with_mmap"
6268 echo "$ac_t""yes" 1>&6
6269 cat >> confdefs.h <<\EOF
6275 echo "$ac_t""no" 1>&6
6279 echo "$ac_t""no" 1>&6
6284 #################################################
6285 # check for syslog logging
6286 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
6287 echo "configure:6288: checking whether to use syslog logging" >&5
6288 # Check whether --with-syslog or --without-syslog was given.
6289 if test "${with_syslog+set}" = set; then
6290 withval="$with_syslog"
6293 echo "$ac_t""yes" 1>&6
6294 cat >> confdefs.h <<\EOF
6295 #define WITH_SYSLOG 1
6300 echo "$ac_t""no" 1>&6
6304 echo "$ac_t""no" 1>&6
6309 #################################################
6310 # check for experimental netatalk resource fork support
6311 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
6312 echo "configure:6313: checking whether to support netatalk" >&5
6313 # Check whether --with-netatalk or --without-netatalk was given.
6314 if test "${with_netatalk+set}" = set; then
6315 withval="$with_netatalk"
6318 echo "$ac_t""yes" 1>&6
6319 cat >> confdefs.h <<\EOF
6320 #define WITH_NETATALK 1
6325 echo "$ac_t""no" 1>&6
6329 echo "$ac_t""no" 1>&6
6335 #################################################
6336 # these tests are taken from the GNU fileutils package
6337 echo "checking how to get filesystem space usage" 1>&6
6338 echo "configure:6339: checking how to get filesystem space usage" >&5
6341 # Test for statvfs64.
6342 if test $space = no; then
6344 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
6345 echo "configure:6346: checking statvfs64 function (SVR4)" >&5
6346 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 if test "$cross_compiling" = yes; then
6350 fu_cv_sys_stat_statvfs64=cross
6352 cat > conftest.$ac_ext <<EOF
6353 #line 6354 "configure"
6354 #include "confdefs.h"
6356 #include <sys/types.h>
6357 #include <sys/statvfs.h>
6360 struct statvfs64 fsd;
6361 exit (statfs64 (".", &fsd));
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6366 fu_cv_sys_stat_statvfs64=yes
6368 echo "configure: failed program was:" >&5
6369 cat conftest.$ac_ext >&5
6371 fu_cv_sys_stat_statvfs64=no
6378 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
6379 if test $fu_cv_sys_stat_statvfs64 = yes; then
6381 cat >> confdefs.h <<\EOF
6382 #define STAT_STATVFS64 1
6388 # Perform only the link test since it seems there are no variants of the
6389 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
6390 # because that got a false positive on SCO OSR5. Adding the declaration
6391 # of a `struct statvfs' causes this test to fail (as it should) on such
6392 # systems. That system is reported to work fine with STAT_STATFS4 which
6393 # is what it gets when this test fails.
6394 if test $space = no; then
6396 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
6397 echo "configure:6398: checking statvfs function (SVR4)" >&5
6398 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 #include <sys/types.h>
6405 #include <sys/statvfs.h>
6407 struct statvfs fsd; statvfs (0, &fsd);
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6412 fu_cv_sys_stat_statvfs=yes
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6417 fu_cv_sys_stat_statvfs=no
6422 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
6423 if test $fu_cv_sys_stat_statvfs = yes; then
6425 cat >> confdefs.h <<\EOF
6426 #define STAT_STATVFS 1
6432 if test $space = no; then
6433 # DEC Alpha running OSF/1
6434 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
6435 echo "configure:6436: checking for 3-argument statfs function (DEC OSF/1)" >&5
6436 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
6437 echo $ac_n "(cached) $ac_c" 1>&6
6439 if test "$cross_compiling" = yes; then
6440 fu_cv_sys_stat_statfs3_osf1=no
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6446 #include <sys/param.h>
6447 #include <sys/types.h>
6448 #include <sys/mount.h>
6453 exit (statfs (".", &fsd, sizeof (struct statfs)));
6456 if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6458 fu_cv_sys_stat_statfs3_osf1=yes
6460 echo "configure: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6463 fu_cv_sys_stat_statfs3_osf1=no
6470 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
6471 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
6473 cat >> confdefs.h <<\EOF
6474 #define STAT_STATFS3_OSF1 1
6480 if test $space = no; then
6482 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
6483 echo "configure:6484: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
6484 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 if test "$cross_compiling" = yes; then
6488 fu_cv_sys_stat_statfs2_bsize=no
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6494 #ifdef HAVE_SYS_PARAM_H
6495 #include <sys/param.h>
6497 #ifdef HAVE_SYS_MOUNT_H
6498 #include <sys/mount.h>
6500 #ifdef HAVE_SYS_VFS_H
6501 #include <sys/vfs.h>
6507 exit (statfs (".", &fsd));
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6512 fu_cv_sys_stat_statfs2_bsize=yes
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 fu_cv_sys_stat_statfs2_bsize=no
6524 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
6525 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
6527 cat >> confdefs.h <<\EOF
6528 #define STAT_STATFS2_BSIZE 1
6534 if test $space = no; then
6536 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
6537 echo "configure:6538: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
6538 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 if test "$cross_compiling" = yes; then
6542 fu_cv_sys_stat_statfs4=no
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 #include <sys/types.h>
6548 #include <sys/statfs.h>
6552 exit (statfs (".", &fsd, sizeof fsd, 0));
6555 if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6557 fu_cv_sys_stat_statfs4=yes
6559 echo "configure: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 fu_cv_sys_stat_statfs4=no
6569 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
6570 if test $fu_cv_sys_stat_statfs4 = yes; then
6572 cat >> confdefs.h <<\EOF
6573 #define STAT_STATFS4 1
6579 if test $space = no; then
6581 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
6582 echo "configure:6583: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
6583 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6586 if test "$cross_compiling" = yes; then
6587 fu_cv_sys_stat_statfs2_fsize=no
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 #include <sys/types.h>
6593 #ifdef HAVE_SYS_PARAM_H
6594 #include <sys/param.h>
6596 #ifdef HAVE_SYS_MOUNT_H
6597 #include <sys/mount.h>
6603 exit (statfs (".", &fsd));
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6608 fu_cv_sys_stat_statfs2_fsize=yes
6610 echo "configure: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6613 fu_cv_sys_stat_statfs2_fsize=no
6620 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
6621 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
6623 cat >> confdefs.h <<\EOF
6624 #define STAT_STATFS2_FSIZE 1
6630 if test $space = no; then
6632 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
6633 echo "configure:6634: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
6634 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
6635 echo $ac_n "(cached) $ac_c" 1>&6
6637 if test "$cross_compiling" = yes; then
6638 fu_cv_sys_stat_fs_data=no
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 #include <sys/types.h>
6644 #ifdef HAVE_SYS_PARAM_H
6645 #include <sys/param.h>
6647 #ifdef HAVE_SYS_MOUNT_H
6648 #include <sys/mount.h>
6650 #ifdef HAVE_SYS_FS_TYPES_H
6651 #include <sys/fs_types.h>
6656 /* Ultrix's statfs returns 1 for success,
6657 0 for not mounted, -1 for failure. */
6658 exit (statfs (".", &fsd) != 1);
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6663 fu_cv_sys_stat_fs_data=yes
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 fu_cv_sys_stat_fs_data=no
6675 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
6676 if test $fu_cv_sys_stat_fs_data = yes; then
6678 cat >> confdefs.h <<\EOF
6679 #define STAT_STATFS2_FS_DATA 1
6685 echo "checking configure summary"
6686 if test "$cross_compiling" = yes; then
6689 cat > conftest.$ac_ext <<EOF
6690 #line 6691 "configure"
6691 #include "confdefs.h"
6692 #include "${srcdir-.}/tests/summary.c"
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6696 echo "configure OK";
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
6711 cat > confcache <<\EOF
6712 # This file is a shell script that caches the results of configure
6713 # tests run on this system so they can be shared between configure
6714 # scripts and configure runs. It is not useful on other systems.
6715 # If it contains results you don't want to keep, you may remove or edit it.
6717 # By default, configure uses ./config.cache as the cache file,
6718 # creating it if it does not exist already. You can give configure
6719 # the --cache-file=FILE option to use a different cache file; that is
6720 # what configure does when it calls configure scripts in
6721 # subdirectories, so they share the cache.
6722 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6723 # config.status only pays attention to the cache file if you give it the
6724 # --recheck option to rerun configure.
6727 # The following way of writing the cache mishandles newlines in values,
6728 # but we know of no workaround that is simple, portable, and efficient.
6729 # So, don't put newlines in cache variables' values.
6730 # Ultrix sh set writes to stderr and can't be redirected directly,
6731 # and sets the high bit in the cache file unless we assign to the vars.
6733 case `(ac_space=' '; set) 2>&1` in
6735 # `set' does not quote correctly, so add quotes (double-quote substitution
6736 # turns \\\\ into \\, and sed turns \\ into \).
6738 -e "s/'/'\\\\''/g" \
6739 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6742 # `set' quotes correctly as required by POSIX, so do not add quotes.
6743 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6746 if cmp -s $cache_file confcache; then
6749 if test -w $cache_file; then
6750 echo "updating cache $cache_file"
6751 cat confcache > $cache_file
6753 echo "not updating unwritable cache $cache_file"
6758 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6760 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6761 # Let make expand exec_prefix.
6762 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6764 # Any assignment to VPATH causes Sun make to only execute
6765 # the first set of double-colon rules, so remove it if not needed.
6766 # If there is a colon in the path, we need to keep it.
6767 if test "x$srcdir" = x.; then
6768 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6771 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6773 DEFS=-DHAVE_CONFIG_H
6775 # Without the "./", some shells look in PATH for config.status.
6776 : ${CONFIG_STATUS=./config.status}
6778 echo creating $CONFIG_STATUS
6779 rm -f $CONFIG_STATUS
6780 cat > $CONFIG_STATUS <<EOF
6782 # Generated automatically by configure.
6783 # Run this file to recreate the current configuration.
6784 # This directory was configured as follows,
6785 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6787 # $0 $ac_configure_args
6789 # Compiler output produced by configure, useful for debugging
6790 # configure, is in ./config.log if it exists.
6792 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6795 case "\$ac_option" in
6796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6797 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6798 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6799 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6800 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6802 -help | --help | --hel | --he | --h)
6803 echo "\$ac_cs_usage"; exit 0 ;;
6804 *) echo "\$ac_cs_usage"; exit 1 ;;
6808 ac_given_srcdir=$srcdir
6809 ac_given_INSTALL="$INSTALL"
6811 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6813 cat >> $CONFIG_STATUS <<EOF
6815 # Protect against being on the right side of a sed subst in config.status.
6816 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6817 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6820 s%@CFLAGS@%$CFLAGS%g
6821 s%@CPPFLAGS@%$CPPFLAGS%g
6822 s%@CXXFLAGS@%$CXXFLAGS%g
6824 s%@LDFLAGS@%$LDFLAGS%g
6826 s%@exec_prefix@%$exec_prefix%g
6827 s%@prefix@%$prefix%g
6828 s%@program_transform_name@%$program_transform_name%g
6829 s%@bindir@%$bindir%g
6830 s%@sbindir@%$sbindir%g
6831 s%@libexecdir@%$libexecdir%g
6832 s%@datadir@%$datadir%g
6833 s%@sysconfdir@%$sysconfdir%g
6834 s%@sharedstatedir@%$sharedstatedir%g
6835 s%@localstatedir@%$localstatedir%g
6836 s%@libdir@%$libdir%g
6837 s%@includedir@%$includedir%g
6838 s%@oldincludedir@%$oldincludedir%g
6839 s%@infodir@%$infodir%g
6840 s%@mandir@%$mandir%g
6842 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6843 s%@INSTALL_DATA@%$INSTALL_DATA%g
6845 s%@MPROGS@%$MPROGS%g
6846 s%@LDSHFLAGS@%$LDSHFLAGS%g
6847 s%@HOST_OS@%$HOST_OS%g
6848 s%@WRAP32@%$WRAP32%g
6849 s%@PICFLAG@%$PICFLAG%g
6852 s%@host_alias@%$host_alias%g
6853 s%@host_cpu@%$host_cpu%g
6854 s%@host_vendor@%$host_vendor%g
6855 s%@host_os@%$host_os%g
6856 s%@target@%$target%g
6857 s%@target_alias@%$target_alias%g
6858 s%@target_cpu@%$target_cpu%g
6859 s%@target_vendor@%$target_vendor%g
6860 s%@target_os@%$target_os%g
6862 s%@build_alias@%$build_alias%g
6863 s%@build_cpu@%$build_cpu%g
6864 s%@build_vendor@%$build_vendor%g
6865 s%@build_os@%$build_os%g
6867 s%@AUTOCONF@%$AUTOCONF%g
6868 s%@AUTOHEADER@%$AUTOHEADER%g
6870 s%@LIBOBJS@%$LIBOBJS%g
6871 s%@builddir@%$builddir%g
6876 cat >> $CONFIG_STATUS <<\EOF
6878 # Split the substitutions into bite-sized pieces for seds with
6879 # small command number limits, like on Digital OSF/1 and HP-UX.
6880 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6881 ac_file=1 # Number of current file.
6882 ac_beg=1 # First line for current file.
6883 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6886 while $ac_more_lines; do
6887 if test $ac_beg -gt 1; then
6888 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6890 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6892 if test ! -s conftest.s$ac_file; then
6894 rm -f conftest.s$ac_file
6896 if test -z "$ac_sed_cmds"; then
6897 ac_sed_cmds="sed -f conftest.s$ac_file"
6899 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6901 ac_file=`expr $ac_file + 1`
6903 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6906 if test -z "$ac_sed_cmds"; then
6911 cat >> $CONFIG_STATUS <<EOF
6913 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
6915 cat >> $CONFIG_STATUS <<\EOF
6916 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6919 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6920 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6921 *) ac_file_in="${ac_file}.in" ;;
6924 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6926 # Remove last slash and all that follows it. Not all systems have dirname.
6927 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6929 # The file is in a subdirectory.
6930 test ! -d "$ac_dir" && mkdir "$ac_dir"
6931 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6932 # A "../" for each directory in $ac_dir_suffix.
6933 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6935 ac_dir_suffix= ac_dots=
6938 case "$ac_given_srcdir" in
6940 if test -z "$ac_dots"; then top_srcdir=.
6941 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6942 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6944 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6945 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6948 case "$ac_given_INSTALL" in
6949 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6950 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6953 echo creating "$ac_file"
6955 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6957 *Makefile*) ac_comsub="1i\\
6958 # $configure_input" ;;
6962 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6964 s%@configure_input@%$configure_input%g
6965 s%@srcdir@%$srcdir%g
6966 s%@top_srcdir@%$top_srcdir%g
6967 s%@INSTALL@%$INSTALL%g
6968 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6975 # ac_d sets the value in "#define NAME VALUE" lines.
6976 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6977 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6980 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6981 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6982 ac_uB='\([ ]\)%\1#\2define\3'
6985 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6986 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6987 ac_eB='$%\1#\2define\3'
6991 if test "${CONFIG_HEADERS+set}" != set; then
6993 cat >> $CONFIG_STATUS <<EOF
6994 CONFIG_HEADERS="include/config.h"
6996 cat >> $CONFIG_STATUS <<\EOF
6998 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7001 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7002 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7003 *) ac_file_in="${ac_file}.in" ;;
7006 echo creating $ac_file
7008 rm -f conftest.frag conftest.in conftest.out
7009 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7010 cat $ac_file_inputs > conftest.in
7014 # Transform confdefs.h into a sed script conftest.vals that substitutes
7015 # the proper values into config.h.in to produce config.h. And first:
7016 # Protect against being on the right side of a sed subst in config.status.
7017 # Protect against being in an unquoted here document in config.status.
7019 cat > conftest.hdr <<\EOF
7022 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7026 sed -n -f conftest.hdr confdefs.h > conftest.vals
7029 # This sed command replaces #undef with comments. This is necessary, for
7030 # example, in the case of _POSIX_SOURCE, which is predefined and required
7031 # on some systems where configure will not decide to define it.
7032 cat >> conftest.vals <<\EOF
7033 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7036 # Break up conftest.vals because some shells have a limit on
7037 # the size of here documents, and old seds have small limits too.
7042 ac_lines=`grep -c . conftest.vals`
7043 # grep -c gives empty output for an empty file on some AIX systems.
7044 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7045 # Write a limited-size here document to conftest.frag.
7046 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7047 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7049 sed -f conftest.frag conftest.in > conftest.out
7051 mv conftest.out conftest.in
7053 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7055 mv conftest.tail conftest.vals
7059 cat >> $CONFIG_STATUS <<\EOF
7060 rm -f conftest.frag conftest.h
7061 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7062 cat conftest.in >> conftest.h
7064 if cmp -s $ac_file conftest.h 2>/dev/null; then
7065 echo "$ac_file is unchanged"
7068 # Remove last slash and all that follows it. Not all systems have dirname.
7069 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7070 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7071 # The file is in a subdirectory.
7072 test ! -d "$ac_dir" && mkdir "$ac_dir"
7075 mv conftest.h $ac_file
7080 cat >> $CONFIG_STATUS <<EOF
7083 cat >> $CONFIG_STATUS <<\EOF
7087 chmod +x $CONFIG_STATUS
7088 rm -fr confdefs* $ac_clean_files
7089 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1