2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="include/includes.h"
271 ac_default_prefix=/usr/local/samba
272 # Factoring default headers for most tests.
273 ac_includes_default="\
276 # include <sys/types.h>
279 # include <sys/stat.h>
290 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <strings.h>
299 # include <inttypes.h>
309 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configdir lockdir piddir logfilebase privatedir swatdir RUNPROG MPROGS LDSHFLAGS SONAMEFLAG SHLD HOST_OS PAM_MOD WRAP WRAP32 WRAPPROG PICFLAG PICSUFFIX POBAD_CC SHLIBEXT LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINTLIBS AUTHLIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS MODULE_PDB_MYSQL XML2_CONFIG XML_CFLAGS XML_LIBS MODULE_PDB_XML QUOTAOBJS manlangs WINBIND_TARGETS WINBIND_STARGETS WINBIND_LTARGETS WINBIND_PAM_TARGETS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT FLAGS1 PYTHON builddir LTLIBOBJS'
312 # Initialize some variables set by options.
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
324 program_transform_name=s,x,x,
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
384 cache_file=config.cache ;;
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390 datadir=$ac_optarg ;;
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 eval "enable_$ac_feature='$ac_optarg'" ;;
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
427 -help | --help | --hel | --he | -h)
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
451 -libdir | --libdir | --libdi | --libd)
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 # Obsolete; use --without-fp.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542 sbindir=$ac_optarg ;;
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553 sharedstatedir=$ac_optarg ;;
555 -site | --site | --sit)
557 -site=* | --site=* | --sit=*)
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 -version | --version | --versio | --versi | --vers | -V)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 eval "with_$ac_package='$ac_optarg'" ;;
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
606 # Obsolete; use --with-x.
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
670 eval ac_val=$`echo $ac_var`
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
699 test "$silent" = yes && exec 6>/dev/null
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
719 if test ! -r $srcdir/$ac_unique_file; then
723 ac_srcdir_defaulted=no
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
778 \`configure' configures this package to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
838 if test -n "$ac_init_help"; then
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-debug Turn on compiler debugging information (default=no)
846 --enable-developer Turn on developer warnings and debugging (default=no)
847 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
848 --enable-dmalloc Enable heap debugging default=no
849 --enable-cups Turn on CUPS support (default=auto)
850 --disable-mysqltest Do not try to compile and run a test MYSQL program
851 --disable-xmltest Do not try to compile and run a test LIBXML program
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-fhs Use FHS-compliant paths (default=no)
857 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
858 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
859 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
860 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
861 --with-configdir=DIR Where to put configuration files (\$libdir)
862 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
863 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
864 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
865 --with-smbwrapper Include SMB wrapper support (default=no)
866 --with-afs Include AFS clear-text auth support (default=no)
867 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
868 --with-ads Active Directory support (default yes)
869 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
870 --with-ldap LDAP support (default yes)
871 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
872 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
873 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
874 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
875 --with-automount Include AUTOMOUNT support (default=no)
876 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)
877 --with-pam Include PAM support (default=no)
878 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
879 --with-sam Build new (experimental) SAM database (default=no)
880 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
881 --with-tdbsam Include experimental TDB SAM support (default=no)
882 --with-nisplussam Include NISPLUS SAM support (default=no)
883 --with-nisplus-home Include NISPLUS_HOME support (default=no)
884 --with-syslog Include experimental SYSLOG support (default=no)
885 --with-profiling-data Include gathering source code profile information (default=no)
886 --with-quotas Include experimental disk-quota support (default=no)
887 --with-utmp Include experimental utmp accounting (default=no)
888 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
889 --with-libsmbclient Build the libsmbclient shared library (default=yes)
890 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
891 --with-acl-support Include ACL support (default=no)
892 --with-sendfile-support Check for sendfile support (default=yes)
893 --with-winbind Build winbind (default, if supported by OS)
894 --with-included-popt use bundled popt library, not from system
895 --with-python=PYTHONNAME build Python libraries
897 Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.54. Invocation command line was
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Also quote any args containing shell meta-characters.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n ) continue ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1072 # The following way of writing the cache mishandles newlines in values,
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -n "$ac_subst_files"; then
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -s confdefs.h; then
1124 sed "/^$/d" confdefs.h | sort
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1131 rm -f core core.* *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1207 # Check that the precious variables saved in the cache have kept the same
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 ac_config_headers="$ac_config_headers include/config.h"
1285 #################################################
1286 # Directory handling stuff to support both the
1287 # legacy SAMBA directories and FHS compliant
1292 # Check whether --with-fhs or --without-fhs was given.
1293 if test "${with_fhs+set}" = set; then
1295 configdir="${sysconfdir}/samba"
1296 lockdir="\${VARDIR}/cache/samba"
1297 piddir="\$(VARDIR)/run/samba"
1298 logfilebase="\${VARDIR}/log/samba"
1299 privatedir="\${CONFIGDIR}/private"
1300 swatdir="\${DATADIR}/samba/swat"
1302 configdir="\$(LIBDIR)"
1303 logfilebase="\$(VARDIR)"
1304 lockdir="\${VARDIR}/locks"
1305 piddir="\$(VARDIR)/locks"
1306 privatedir="\${prefix}/private"
1307 swatdir="\${prefix}/swat"
1310 #################################################
1311 # set private directory location
1313 # Check whether --with-privatedir or --without-privatedir was given.
1314 if test "${with_privatedir+set}" = set; then
1315 withval="$with_privatedir"
1319 # Just in case anybody calls it without argument
1321 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1322 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1325 privatedir="$withval"
1330 #################################################
1331 # set lock directory location
1333 # Check whether --with-lockdir or --without-lockdir was given.
1334 if test "${with_lockdir+set}" = set; then
1335 withval="$with_lockdir"
1339 # Just in case anybody calls it without argument
1341 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1342 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1350 #################################################
1351 # set pid directory location
1353 # Check whether --with-piddir or --without-piddir was given.
1354 if test "${with_piddir+set}" = set; then
1355 withval="$with_piddir"
1359 # Just in case anybody calls it without argument
1361 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1362 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1370 #################################################
1371 # set SWAT directory location
1373 # Check whether --with-swatdir or --without-swatdir was given.
1374 if test "${with_swatdir+set}" = set; then
1375 withval="$with_swatdir"
1379 # Just in case anybody does it
1381 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1382 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1390 #################################################
1391 # set configuration directory location
1393 # Check whether --with-configdir or --without-configdir was given.
1394 if test "${with_configdir+set}" = set; then
1395 withval="$with_configdir"
1399 # Just in case anybody does it
1401 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1402 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1405 configdir="$withval"
1410 #################################################
1411 # set log directory location
1413 # Check whether --with-logfilebase or --without-logfilebase was given.
1414 if test "${with_logfilebase+set}" = set; then
1415 withval="$with_logfilebase"
1419 # Just in case anybody does it
1421 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1422 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1425 logfilebase="$withval"
1459 # compile with optimization and without debugging by default
1460 CFLAGS="-O ${CFLAGS}"
1462 # Check whether --enable-debug or --disable-debug was given.
1463 if test "${enable_debug+set}" = set; then
1464 enableval="$enable_debug"
1465 if eval "test x$enable_debug = xyes"; then
1466 CFLAGS="${CFLAGS} -g"
1470 # Check whether --enable-developer or --disable-developer was given.
1471 if test "${enable_developer+set}" = set; then
1472 enableval="$enable_developer"
1473 if eval "test x$enable_developer = xyes"; then
1474 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1478 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1479 if test "${enable_krb5developer+set}" = set; then
1480 enableval="$enable_krb5developer"
1481 if eval "test x$enable_krb5developer = xyes"; then
1482 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1486 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1487 if test "${enable_dmalloc+set}" = set; then
1488 enableval="$enable_dmalloc"
1492 if test "x$enable_dmalloc" = xyes
1495 cat >>confdefs.h <<\_ACEOF
1496 #define ENABLE_DMALLOC 1
1500 cat >>confdefs.h <<\_ACEOF
1501 #define DMALLOC_FUNC_CHECK 1
1504 LIBS="$LIBS -ldmalloc"
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$CC"; then
1521 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1549 if test -z "$ac_cv_prog_CC"; then
1551 # Extract the first word of "gcc", so it can be a program name with args.
1552 set dummy gcc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$ac_ct_CC"; then
1559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_ac_ct_CC="gcc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1591 if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_CC="${ac_tool_prefix}cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test -n "$CC"; then
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1629 if test -z "$ac_cv_prog_CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1672 if test -z "$CC"; then
1673 # Extract the first word of "cc", so it can be a program name with args.
1674 set dummy cc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1692 ac_prog_rejected=yes
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 if test $ac_prog_rejected = yes; then
1703 # We found a bogon in the path, so make sure we never use it.
1704 set dummy $ac_cv_prog_CC
1706 if test $# != 0; then
1707 # We chose a different compiler from the bogus one.
1708 # However, it has the same basename, so the bogon will be chosen
1709 # first if we set CC to just the basename; use the full file name.
1711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1726 if test -z "$CC"; then
1727 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$CC" && break
1768 if test -z "$CC"; then
1772 # Extract the first word of "$ac_prog", so it can be a program name with args.
1773 set dummy $ac_prog; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$ac_ct_CC"; then
1780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_ac_ct_CC="$ac_prog"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1799 if test -n "$ac_ct_CC"; then
1800 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1801 echo "${ECHO_T}$ac_ct_CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1807 test -n "$ac_ct_CC" && break
1816 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1817 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1818 { (exit 1); exit 1; }; }
1820 # Provide some information about the compiler.
1821 echo "$as_me:$LINENO:" \
1822 "checking for C compiler version" >&5
1823 ac_compiler=`set X $ac_compile; echo $2`
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1825 (eval $ac_compiler --version </dev/null >&5) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1830 (eval $ac_compiler -v </dev/null >&5) 2>&5
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1835 (eval $ac_compiler -V </dev/null >&5) 2>&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1842 #include "confdefs.h"
1852 ac_clean_files_save=$ac_clean_files
1853 ac_clean_files="$ac_clean_files a.out a.exe"
1854 # Try to create an executable without -o first, disregard a.out.
1855 # It will help us diagnose broken compilers, and finding out an intuition
1857 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1858 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1860 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1861 (eval $ac_link_default) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; then
1865 # Find the output, starting from the most likely. This scheme is
1866 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1869 # Be careful to initialize this variable, since it used to be cached.
1870 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1872 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1873 test -f "$ac_file" || continue
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1876 a.out ) # We found the default executable, but exeext='' is most
1879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1887 echo "$as_me: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1890 check \`config.log' for details." >&5
1891 echo "$as_me: error: C compiler cannot create executables
1892 check \`config.log' for details." >&2;}
1893 { (exit 77); exit 77; }; }
1896 ac_exeext=$ac_cv_exeext
1897 echo "$as_me:$LINENO: result: $ac_file" >&5
1898 echo "${ECHO_T}$ac_file" >&6
1900 # Check the compiler produces executables we can run. If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1905 # If not cross compiling, check that we can run a simple program.
1906 if test "$cross_compiling" != yes; then
1907 if { ac_try='./$ac_file'
1908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; }; then
1915 if test "$cross_compiling" = maybe; then
1918 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1919 If you meant to cross compile, use \`--host'." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'." >&2;}
1922 { (exit 1); exit 1; }; }
1926 echo "$as_me:$LINENO: result: yes" >&5
1927 echo "${ECHO_T}yes" >&6
1929 rm -f a.out a.exe conftest$ac_cv_exeext
1930 ac_clean_files=$ac_clean_files_save
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1934 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1935 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1936 echo "${ECHO_T}$cross_compiling" >&6
1938 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1939 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1941 (eval $ac_link) 2>&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1946 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1947 # work properly (i.e., refer to `conftest.exe'), while it won't with
1949 for ac_file in conftest.exe conftest conftest.*; do
1950 test -f "$ac_file" || continue
1952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1953 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1960 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1962 { (exit 1); exit 1; }; }
1965 rm -f conftest$ac_cv_exeext
1966 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967 echo "${ECHO_T}$ac_cv_exeext" >&6
1969 rm -f conftest.$ac_ext
1970 EXEEXT=$ac_cv_exeext
1972 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974 if test "${ac_cv_objext+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 #include "confdefs.h"
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; then
1995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2003 echo "$as_me: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2006 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2007 { (exit 1); exit 1; }; }
2010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2012 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2013 echo "${ECHO_T}$ac_cv_objext" >&6
2014 OBJEXT=$ac_cv_objext
2016 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 #include "confdefs.h"
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2071 #include "confdefs.h"
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104 CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106 if test "$GCC" = yes; then
2112 if test "$GCC" = yes; then
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_cv_prog_cc_stdc=no
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2146 s = g (p, va_arg (v,int));
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2164 # Don't try gcc -ansi; that turns off useful extensions and
2165 # breaks some systems' header files.
2166 # AIX -qlanglvl=ansi
2167 # Ultrix and OSF/1 -std1
2168 # HP-UX 10.20 and later -Ae
2169 # HP-UX older versions -Aa -D_HPUX_SOURCE
2170 # SVR4 -Xc -D__EXTENSIONS__
2171 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173 CC="$ac_save_CC $ac_arg"
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2189 echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 rm -f conftest.$ac_objext
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2199 case "x$ac_cv_prog_cc_stdc" in
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 for ac_declaration in \
2232 '#include <stdlib.h>' \
2233 'extern "C" void std::exit (int) throw (); using std::exit;' \
2234 'extern "C" void std::exit (int); using std::exit;' \
2235 'extern "C" void exit (int) throw ();' \
2236 'extern "C" void exit (int);' \
2239 cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 #include "confdefs.h"
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2303 if test -n "$ac_declaration"; then
2304 echo '#ifdef __cplusplus' >>confdefs.h
2305 echo $ac_declaration >>confdefs.h
2306 echo '#endif' >>confdefs.h
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2322 if test -f $ac_dir/install-sh; then
2324 ac_install_sh="$ac_aux_dir/install-sh -c"
2326 elif test -f $ac_dir/install.sh; then
2328 ac_install_sh="$ac_aux_dir/install.sh -c"
2330 elif test -f $ac_dir/shtool; then
2332 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 if test -z "$ac_aux_dir"; then
2337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2339 { (exit 1); exit 1; }; }
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2345 # Find a good install program. We prefer a C program (faster),
2346 # so one script is as good as another. But avoid the broken or
2347 # incompatible versions:
2348 # SysV /etc/install, /usr/sbin/install
2349 # SunOS /usr/etc/install
2350 # IRIX /sbin/install
2352 # AmigaOS /C/install, which installs bootblocks on floppy discs
2353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356 # ./install, which can be erroneously created by make from ./install.sh.
2357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2359 if test -z "$INSTALL"; then
2360 if test "${ac_cv_path_install+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 # Account for people who put trailing slashes in PATH elements.
2370 ./ | .// | /cC/* | \
2371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2374 # OSF1 and SCO ODT 3.0 have their own names for install.
2375 # Don't use installbsd from OSF since it installs stuff as root
2377 for ac_prog in ginstall scoinst install; do
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2380 if test $ac_prog = install &&
2381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # AIX install. It has an incompatible calling convention.
2384 elif test $ac_prog = install &&
2385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # program-specific install script used by HP pwplus--don't use.
2389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2401 if test "${ac_cv_path_install+set}" = set; then
2402 INSTALL=$ac_cv_path_install
2404 # As a last resort, use the slow shell script. We don't cache a
2405 # path for INSTALL within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the path is relative.
2408 INSTALL=$ac_install_sh
2411 echo "$as_me:$LINENO: result: $INSTALL" >&5
2412 echo "${ECHO_T}$INSTALL" >&6
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2422 for ac_prog in gawk mawk nawk awk
2424 # Extract the first word of "$ac_prog", so it can be a program name with args.
2425 set dummy $ac_prog; ac_word=$2
2426 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_AWK+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$AWK"; then
2432 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441 ac_cv_prog_AWK="$ac_prog"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 if test -n "$AWK"; then
2452 echo "$as_me:$LINENO: result: $AWK" >&5
2453 echo "${ECHO_T}$AWK" >&6
2455 echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2459 test -n "$AWK" && break
2464 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2466 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2470 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2471 ac_cv_prog_gnu_ld=yes
2473 ac_cv_prog_gnu_ld=no
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2477 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2481 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2482 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2483 if test "${ac_cv_search_strerror+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 ac_func_search_save_LIBS=$LIBS
2487 ac_cv_search_strerror=no
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2492 /* Override any gcc2 internal prototype to avoid an error. */
2496 /* We use char because int might match the return type of a gcc2
2497 builtin and then its argument prototype would still apply. */
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest$ac_exeext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_search_strerror="none required"
2521 echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 if test "$ac_cv_search_strerror" = no; then
2526 for ac_lib in cposix; do
2527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 #include "confdefs.h"
2532 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2547 rm -f conftest.$ac_objext conftest$ac_exeext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest$ac_exeext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_search_strerror="-l$ac_lib"
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2568 LIBS=$ac_func_search_save_LIBS
2570 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2571 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2572 if test "$ac_cv_search_strerror" != no; then
2573 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2578 if test "x$CC" != xcc; then
2579 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2580 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2582 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2583 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2585 set dummy $CC; ac_cc=`echo $2 |
2586 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2587 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2602 # Make sure it works both with $CC and with simple cc.
2603 # We do the test twice because some compilers refuse to overwrite an
2604 # existing .o file with -o, though they will create one.
2605 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2606 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); };
2617 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2618 if test "x$CC" != xcc; then
2619 # Test first that cc exists at all.
2620 if { ac_try='cc -c conftest.$ac_ext >&5'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2627 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); };
2641 # cc exists but doesn't like -o.
2642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2652 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2653 echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6
2656 echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2659 cat >>confdefs.h <<\_ACEOF
2660 #define NO_MINUS_C_MINUS_O 1
2665 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2672 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2673 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2674 if test "${samba_cv_volatile+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 #include "confdefs.h"
2681 #include <sys/types.h>
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 samba_cv_volatile=yes
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 samba_cv_volatile=no
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2710 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2711 echo "${ECHO_T}$samba_cv_volatile" >&6
2712 if test x"$samba_cv_volatile" = x"yes"; then
2714 cat >>confdefs.h <<\_ACEOF
2715 #define HAVE_VOLATILE 1
2721 # Make sure we can run config.sub.
2722 $ac_config_sub sun4 >/dev/null 2>&1 ||
2723 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2725 { (exit 1); exit 1; }; }
2727 echo "$as_me:$LINENO: checking build system type" >&5
2728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2729 if test "${ac_cv_build+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 ac_cv_build_alias=$build_alias
2733 test -z "$ac_cv_build_alias" &&
2734 ac_cv_build_alias=`$ac_config_guess`
2735 test -z "$ac_cv_build_alias" &&
2736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2738 { (exit 1); exit 1; }; }
2739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2742 { (exit 1); exit 1; }; }
2745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2746 echo "${ECHO_T}$ac_cv_build" >&6
2748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2753 echo "$as_me:$LINENO: checking host system type" >&5
2754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2755 if test "${ac_cv_host+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_cv_host_alias=$host_alias
2759 test -z "$ac_cv_host_alias" &&
2760 ac_cv_host_alias=$ac_cv_build_alias
2761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2764 { (exit 1); exit 1; }; }
2767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2768 echo "${ECHO_T}$ac_cv_host" >&6
2770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2775 echo "$as_me:$LINENO: checking target system type" >&5
2776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2777 if test "${ac_cv_target+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 ac_cv_target_alias=$target_alias
2781 test "x$ac_cv_target_alias" = "x" &&
2782 ac_cv_target_alias=$ac_cv_host_alias
2783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2784 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2786 { (exit 1); exit 1; }; }
2789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2790 echo "${ECHO_T}$ac_cv_target" >&6
2791 target=$ac_cv_target
2792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2797 # The aliases save the names the user supplied, while $host etc.
2798 # will get canonicalized.
2799 test -n "$target_alias" &&
2800 test "$program_prefix$program_suffix$program_transform_name" = \
2802 program_prefix=${target_alias}-
2805 *irix6*) cat >> confdefs.h <<\EOF
2806 #include <standards.h>
2814 echo "$as_me:$LINENO: checking config.cache system type" >&5
2815 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2816 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2817 test x"$ac_cv_host_system_type" != x"$host"; } ||
2818 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2819 test x"$ac_cv_build_system_type" != x"$build"; } ||
2820 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2821 test x"$ac_cv_target_system_type" != x"$target"; }; then
2822 echo "$as_me:$LINENO: result: different" >&5
2823 echo "${ECHO_T}different" >&6
2824 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2825 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2826 { (exit 1); exit 1; }; }
2828 echo "$as_me:$LINENO: result: same" >&5
2829 echo "${ECHO_T}same" >&6
2831 ac_cv_host_system_type="$host"
2832 ac_cv_build_system_type="$build"
2833 ac_cv_target_system_type="$target"
2839 # Config CPPFLAG settings for strange OS's that must be set
2840 # before other tests.
2843 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2846 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2847 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2848 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 echo 'void f(){}' > conftest.c
2852 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2853 ac_cv_prog_cc_Ae=yes
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2862 # mmap on HPUX is completely broken...
2864 cat >>confdefs.h <<\_ACEOF
2865 #define MMAP_BLACKLIST 1
2868 if test $ac_cv_prog_cc_Ae = yes; then
2869 CPPFLAGS="$CPPFLAGS -Ae"
2872 # Defines needed for HPUX support.
2873 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2874 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2878 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2880 cat >>confdefs.h <<\_ACEOF
2881 #define USE_BOTH_CRYPT_CALLS 1
2885 cat >>confdefs.h <<\_ACEOF
2886 #define _HPUX_SOURCE 1
2890 cat >>confdefs.h <<\_ACEOF
2891 #define _POSIX_SOURCE 1
2895 cat >>confdefs.h <<\_ACEOF
2896 #define _ALIGNMENT_REQUIRED 1
2900 cat >>confdefs.h <<\_ACEOF
2901 #define _MAX_ALIGNMENT 4
2906 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2908 cat >>confdefs.h <<\_ACEOF
2909 #define USE_BOTH_CRYPT_CALLS 1
2913 cat >>confdefs.h <<\_ACEOF
2914 #define _HPUX_SOURCE 1
2918 cat >>confdefs.h <<\_ACEOF
2919 #define _POSIX_SOURCE 1
2923 cat >>confdefs.h <<\_ACEOF
2924 #define _LARGEFILE64_SOURCE 1
2928 cat >>confdefs.h <<\_ACEOF
2929 #define _ALIGNMENT_REQUIRED 1
2933 cat >>confdefs.h <<\_ACEOF
2934 #define _MAX_ALIGNMENT 4
2943 # CRAY Unicos has broken const handling
2945 echo "$as_me:$LINENO: result: disabling const" >&5
2946 echo "${ECHO_T}disabling const" >&6
2947 CPPFLAGS="$CPPFLAGS -Dconst="
2951 # AIX4.x doesn't even admit to having large
2952 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2955 echo "$as_me:$LINENO: result: enabling large file support" >&5
2956 echo "${ECHO_T}enabling large file support" >&6
2957 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2959 cat >>confdefs.h <<\_ACEOF
2960 #define _LARGE_FILES 1
2965 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2966 # to the existance of large files..
2967 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2968 # recommendations on large file support, however it makes the
2969 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2970 # recommendation makes the compile fail on gcc2.7. JRA.
2974 5.0*|5.1*|5.2*|5.3*|5.5*)
2975 echo "$as_me:$LINENO: result: no large file support" >&5
2976 echo "${ECHO_T}no large file support" >&6
2979 echo "$as_me:$LINENO: result: enabling large file support" >&5
2980 echo "${ECHO_T}enabling large file support" >&6
2981 if test "$ac_cv_c_compiler_gnu" = yes; then
2982 ${CC-cc} -v >conftest.c 2>&1
2983 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2985 case "$ac_cv_gcc_compiler_version_number" in
2986 *"gcc version 2.6"*|*"gcc version 2.7"*)
2987 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2989 cat >>confdefs.h <<\_ACEOF
2990 #define _LARGEFILE64_SOURCE 1
2995 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2997 cat >>confdefs.h <<\_ACEOF
2998 #define _LARGEFILE64_SOURCE 1
3002 cat >>confdefs.h <<\_ACEOF
3003 #define _FILE_OFFSET_BITS 64
3009 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3011 cat >>confdefs.h <<\_ACEOF
3012 #define _LARGEFILE64_SOURCE 1
3016 cat >>confdefs.h <<\_ACEOF
3017 #define _FILE_OFFSET_BITS 64
3025 # Tests needed for SINIX large file support.
3028 if test $host = mips-sni-sysv4 ; then
3029 echo "$as_me:$LINENO: checking for LFS support" >&5
3030 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3031 old_CPPFLAGS="$CPPFLAGS"
3032 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3033 if test "$cross_compiling" = yes; then
3034 SINIX_LFS_SUPPORT=cross
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3042 #if _LFS64_LARGEFILE == 1
3049 rm -f conftest$ac_exeext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3051 (eval $ac_link) 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 SINIX_LFS_SUPPORT=yes
3062 echo "$as_me: program exited with status $ac_status" >&5
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 SINIX_LFS_SUPPORT=no
3068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3070 CPPFLAGS="$old_CPPFLAGS"
3071 if test x$SINIX_LFS_SUPPORT = xyes ; then
3072 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3074 cat >>confdefs.h <<\_ACEOF
3075 #define _LARGEFILE64_SOURCE 1
3078 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3079 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3080 LIBS="`getconf LFS64_LIBS` $LIBS"
3082 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3083 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3087 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3090 echo "$as_me:$LINENO: checking for LFS support" >&5
3091 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3092 old_CPPFLAGS="$CPPFLAGS"
3093 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3094 if test "$cross_compiling" = yes; then
3095 LINUX_LFS_SUPPORT=cross
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 #include "confdefs.h"
3102 #include <sys/utsname.h>
3104 #if _LFS64_LARGEFILE == 1
3109 /* Ensure this is glibc 2.2 or higher */
3110 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3111 int libc_major = __GLIBC__;
3112 int libc_minor = __GLIBC_MINOR__;
3120 /* Ensure this is kernel 2.4 or higher */
3123 release = uts.release;
3124 major = atoi(strsep(&release, "."));
3125 minor = atoi(strsep(&release, "."));
3127 if (major > 2 || (major == 2 && minor > 3))
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 LINUX_LFS_SUPPORT=yes
3149 echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3153 LINUX_LFS_SUPPORT=no
3155 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157 CPPFLAGS="$old_CPPFLAGS"
3158 if test x$LINUX_LFS_SUPPORT = xyes ; then
3159 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3161 cat >>confdefs.h <<\_ACEOF
3162 #define _LARGEFILE64_SOURCE 1
3166 cat >>confdefs.h <<\_ACEOF
3167 #define _FILE_OFFSET_BITS 64
3171 cat >>confdefs.h <<\_ACEOF
3172 #define _GNU_SOURCE 1
3176 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3177 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3181 echo "$as_me:$LINENO: checking for LFS support" >&5
3182 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3183 old_CPPFLAGS="$CPPFLAGS"
3184 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3185 if test "$cross_compiling" = yes; then
3186 GLIBC_LFS_SUPPORT=cross
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3190 #include "confdefs.h"
3194 #if _LFS64_LARGEFILE == 1
3201 rm -f conftest$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203 (eval $ac_link) 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 GLIBC_LFS_SUPPORT=yes
3214 echo "$as_me: program exited with status $ac_status" >&5
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 GLIBC_LFS_SUPPORT=no
3220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3222 CPPFLAGS="$old_CPPFLAGS"
3223 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3224 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _LARGEFILE64_SOURCE 1
3231 cat >>confdefs.h <<\_ACEOF
3232 #define _GNU_SOURCE 1
3236 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3237 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3242 echo "$as_me:$LINENO: checking for inline" >&5
3243 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3244 if test "${ac_cv_c_inline+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 for ac_kw in inline __inline__ __inline; do
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 #include "confdefs.h"
3254 static $ac_kw foo_t static_foo () {return 0; }
3255 $ac_kw foo_t foo () {return 0; }
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261 (eval $ac_compile) 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 ac_cv_c_inline=$ac_kw; break
3273 echo "$as_me: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3281 echo "${ECHO_T}$ac_cv_c_inline" >&6
3282 case $ac_cv_c_inline in
3285 cat >>confdefs.h <<\_ACEOF
3289 *) cat >>confdefs.h <<_ACEOF
3290 #define inline $ac_cv_c_inline
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 #include "confdefs.h"
3326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null; then
3334 if test -s conftest.err; then
3335 ac_cpp_err=$ac_c_preproc_warn_flag
3342 if test -z "$ac_cpp_err"; then
3345 echo "$as_me: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3347 # Broken: fails on valid input.
3350 rm -f conftest.err conftest.$ac_ext
3352 # OK, works on sane cases. Now check whether non-existent headers
3353 # can be detected and how.
3354 cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 #include "confdefs.h"
3357 #include <ac_nonexistent.h>
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3375 if test -z "$ac_cpp_err"; then
3376 # Broken: success on invalid input.
3379 echo "$as_me: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 # Passes both tests.
3385 rm -f conftest.err conftest.$ac_ext
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then
3402 echo "$as_me:$LINENO: result: $CPP" >&5
3403 echo "${ECHO_T}$CPP" >&6
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3433 if test -z "$ac_cpp_err"; then
3436 echo "$as_me: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3441 rm -f conftest.err conftest.$ac_ext
3443 # OK, works on sane cases. Now check whether non-existent headers
3444 # can be detected and how.
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3448 #include <ac_nonexistent.h>
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3486 { (exit 1); exit 1; }; }
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 echo "$as_me:$LINENO: checking for egrep" >&5
3497 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3498 if test "${ac_cv_prog_egrep+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3502 then ac_cv_prog_egrep='grep -E'
3503 else ac_cv_prog_egrep='egrep'
3506 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3507 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3508 EGREP=$ac_cv_prog_egrep
3511 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3512 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3513 if test "${ac_cv_header_stdc+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 #include "confdefs.h"
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3541 if test -z "$ac_cpp_err"; then
3542 ac_cv_header_stdc=yes
3544 echo "$as_me: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 ac_cv_header_stdc=no
3548 rm -f conftest.err conftest.$ac_ext
3550 if test $ac_cv_header_stdc = yes; then
3551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "memchr" >/dev/null 2>&1; then
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3571 #line $LINENO "configure"
3572 #include "confdefs.h"
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev/null 2>&1; then
3580 ac_cv_header_stdc=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3595 #if ((' ' & 0x0FF) == 0x020)
3596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3600 || ('j' <= (c) && (c) <= 'r') \
3601 || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3610 for (i = 0; i < 256; i++)
3611 if (XOR (islower (i), ISLOWER (i))
3612 || toupper (i) != TOUPPER (i))
3617 rm -f conftest$ac_exeext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619 (eval $ac_link) 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3630 echo "$as_me: program exited with status $ac_status" >&5
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 ac_cv_header_stdc=no
3636 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3656 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3657 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3658 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3659 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 eval "$as_ac_Header=yes"
3692 echo "$as_me: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 eval "$as_ac_Header=no"
3696 rm -f conftest.$ac_objext conftest.$ac_ext
3698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3701 cat >>confdefs.h <<_ACEOF
3702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3705 ac_header_dirent=$ac_hdr; break
3709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3710 if test $ac_header_dirent = dirent.h; then
3711 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3713 if test "${ac_cv_search_opendir+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 ac_func_search_save_LIBS=$LIBS
3717 ac_cv_search_opendir=no
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3720 #include "confdefs.h"
3722 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_search_opendir="none required"
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755 if test "$ac_cv_search_opendir" = no; then
3756 for ac_lib in dir; do
3757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3760 #include "confdefs.h"
3762 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779 (eval $ac_link) 2>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -s conftest$ac_exeext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_search_opendir="-l$ac_lib"
3792 echo "$as_me: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_func_search_save_LIBS
3800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3802 if test "$ac_cv_search_opendir" != no; then
3803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3810 if test "${ac_cv_search_opendir+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 ac_func_search_save_LIBS=$LIBS
3814 ac_cv_search_opendir=no
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_cv_search_opendir="none required"
3848 echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 if test "$ac_cv_search_opendir" = no; then
3854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3855 cat >conftest.$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 #include "confdefs.h"
3859 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3874 rm -f conftest.$ac_objext conftest$ac_exeext
3875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3876 (eval $ac_link) 2>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try='test -s conftest$ac_exeext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_cv_search_opendir="-l$ac_lib"
3889 echo "$as_me: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3895 LIBS=$ac_func_search_save_LIBS
3897 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3898 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3899 if test "$ac_cv_search_opendir" != no; then
3900 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3906 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3907 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3908 if test "${ac_cv_header_time+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3914 #include <sys/types.h>
3915 #include <sys/time.h>
3921 if ((struct tm *) 0)
3927 rm -f conftest.$ac_objext
3928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3929 (eval $ac_compile) 2>&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } &&
3933 { ac_try='test -s conftest.$ac_objext'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3939 ac_cv_header_time=yes
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 ac_cv_header_time=no
3945 rm -f conftest.$ac_objext conftest.$ac_ext
3947 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3948 echo "${ECHO_T}$ac_cv_header_time" >&6
3949 if test $ac_cv_header_time = yes; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define TIME_WITH_SYS_TIME 1
3957 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3958 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3959 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 cat >conftest.$ac_ext <<_ACEOF
3963 #line $LINENO "configure"
3964 #include "confdefs.h"
3965 #include <sys/types.h>
3966 #include <sys/wait.h>
3968 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3971 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3979 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_cv_header_sys_wait_h=yes
3998 echo "$as_me: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 ac_cv_header_sys_wait_h=no
4002 rm -f conftest.$ac_objext conftest.$ac_ext
4004 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4005 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4006 if test $ac_cv_header_sys_wait_h = yes; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_SYS_WAIT_H 1
4014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4025 inttypes.h stdint.h unistd.h
4027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4028 echo "$as_me:$LINENO: checking for $ac_header" >&5
4029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 cat >conftest.$ac_ext <<_ACEOF
4034 #line $LINENO "configure"
4035 #include "confdefs.h"
4036 $ac_includes_default
4038 #include <$ac_header>
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); } &&
4046 { ac_try='test -s conftest.$ac_objext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 eval "$as_ac_Header=yes"
4054 echo "$as_me: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4056 eval "$as_ac_Header=no"
4058 rm -f conftest.$ac_objext conftest.$ac_ext
4060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4063 cat >>confdefs.h <<_ACEOF
4064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082 echo "$as_me:$LINENO: checking for $ac_header" >&5
4083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4090 # Is the header compilable?
4091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4095 #include "confdefs.h"
4096 $ac_includes_default
4097 #include <$ac_header>
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_header_compiler=yes
4113 echo "$as_me: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4115 ac_header_compiler=no
4117 rm -f conftest.$ac_objext conftest.$ac_ext
4118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4119 echo "${ECHO_T}$ac_header_compiler" >&6
4121 # Is the header present?
4122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4125 #line $LINENO "configure"
4126 #include "confdefs.h"
4127 #include <$ac_header>
4129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4132 grep -v '^ *+' conftest.er1 >conftest.err
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } >/dev/null; then
4137 if test -s conftest.err; then
4138 ac_cpp_err=$ac_c_preproc_warn_flag
4145 if test -z "$ac_cpp_err"; then
4146 ac_header_preproc=yes
4148 echo "$as_me: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4150 ac_header_preproc=no
4152 rm -f conftest.err conftest.$ac_ext
4153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4154 echo "${ECHO_T}$ac_header_preproc" >&6
4156 # So? What about this header?
4157 case $ac_header_compiler:$ac_header_preproc in
4159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4171 echo "$as_me:$LINENO: checking for $ac_header" >&5
4172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 eval "$as_ac_Header=$ac_header_preproc"
4178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4198 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202 echo "$as_me:$LINENO: checking for $ac_header" >&5
4203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4210 # Is the header compilable?
4211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4213 cat >conftest.$ac_ext <<_ACEOF
4214 #line $LINENO "configure"
4215 #include "confdefs.h"
4216 $ac_includes_default
4217 #include <$ac_header>
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 ac_header_compiler=yes
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 ac_header_compiler=no
4237 rm -f conftest.$ac_objext conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4239 echo "${ECHO_T}$ac_header_compiler" >&6
4241 # Is the header present?
4242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 #include "confdefs.h"
4247 #include <$ac_header>
4249 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null; then
4257 if test -s conftest.err; then
4258 ac_cpp_err=$ac_c_preproc_warn_flag
4265 if test -z "$ac_cpp_err"; then
4266 ac_header_preproc=yes
4268 echo "$as_me: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4270 ac_header_preproc=no
4272 rm -f conftest.err conftest.$ac_ext
4273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4274 echo "${ECHO_T}$ac_header_preproc" >&6
4276 # So? What about this header?
4277 case $ac_header_compiler:$ac_header_preproc in
4279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4291 echo "$as_me:$LINENO: checking for $ac_header" >&5
4292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 eval "$as_ac_Header=$ac_header_preproc"
4298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4303 cat >>confdefs.h <<_ACEOF
4304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4320 echo "$as_me:$LINENO: checking for $ac_header" >&5
4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4328 # Is the header compilable?
4329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4333 #include "confdefs.h"
4334 $ac_includes_default
4335 #include <$ac_header>
4337 rm -f conftest.$ac_objext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_header_compiler=yes
4351 echo "$as_me: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4353 ac_header_compiler=no
4355 rm -f conftest.$ac_objext conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4357 echo "${ECHO_T}$ac_header_compiler" >&6
4359 # Is the header present?
4360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4362 cat >conftest.$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4364 #include "confdefs.h"
4365 #include <$ac_header>
4367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null; then
4375 if test -s conftest.err; then
4376 ac_cpp_err=$ac_c_preproc_warn_flag
4383 if test -z "$ac_cpp_err"; then
4384 ac_header_preproc=yes
4386 echo "$as_me: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 ac_header_preproc=no
4390 rm -f conftest.err conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4392 echo "${ECHO_T}$ac_header_preproc" >&6
4394 # So? What about this header?
4395 case $ac_header_compiler:$ac_header_preproc in
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4409 echo "$as_me:$LINENO: checking for $ac_header" >&5
4410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 eval "$as_ac_Header=$ac_header_preproc"
4416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4421 cat >>confdefs.h <<_ACEOF
4422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440 echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4448 # Is the header compilable?
4449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 #include "confdefs.h"
4454 $ac_includes_default
4455 #include <$ac_header>
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -s conftest.$ac_objext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_header_compiler=yes
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ac_header_compiler=no
4475 rm -f conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4477 echo "${ECHO_T}$ac_header_compiler" >&6
4479 # Is the header present?
4480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line $LINENO "configure"
4484 #include "confdefs.h"
4485 #include <$ac_header>
4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } >/dev/null; then
4495 if test -s conftest.err; then
4496 ac_cpp_err=$ac_c_preproc_warn_flag
4503 if test -z "$ac_cpp_err"; then
4504 ac_header_preproc=yes
4506 echo "$as_me: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 ac_header_preproc=no
4510 rm -f conftest.err conftest.$ac_ext
4511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4512 echo "${ECHO_T}$ac_header_preproc" >&6
4514 # So? What about this header?
4515 case $ac_header_compiler:$ac_header_preproc in
4517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4529 echo "$as_me:$LINENO: checking for $ac_header" >&5
4530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 eval "$as_ac_Header=$ac_header_preproc"
4536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541 cat >>confdefs.h <<_ACEOF
4542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4557 for ac_header in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
4559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4561 echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4569 # Is the header compilable?
4570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 #include "confdefs.h"
4575 $ac_includes_default
4576 #include <$ac_header>
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 ac_header_compiler=yes
4592 echo "$as_me: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4594 ac_header_compiler=no
4596 rm -f conftest.$ac_objext conftest.$ac_ext
4597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4598 echo "${ECHO_T}$ac_header_compiler" >&6
4600 # Is the header present?
4601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 #include "confdefs.h"
4606 #include <$ac_header>
4608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4611 grep -v '^ *+' conftest.er1 >conftest.err
4613 cat conftest.err >&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } >/dev/null; then
4616 if test -s conftest.err; then
4617 ac_cpp_err=$ac_c_preproc_warn_flag
4624 if test -z "$ac_cpp_err"; then
4625 ac_header_preproc=yes
4627 echo "$as_me: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 ac_header_preproc=no
4631 rm -f conftest.err conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4633 echo "${ECHO_T}$ac_header_preproc" >&6
4635 # So? What about this header?
4636 case $ac_header_compiler:$ac_header_preproc in
4638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4650 echo "$as_me:$LINENO: checking for $ac_header" >&5
4651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 eval "$as_ac_Header=$ac_header_preproc"
4657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4662 cat >>confdefs.h <<_ACEOF
4663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4680 echo "$as_me:$LINENO: checking for $ac_header" >&5
4681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4688 # Is the header compilable?
4689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4691 cat >conftest.$ac_ext <<_ACEOF
4692 #line $LINENO "configure"
4693 #include "confdefs.h"
4694 $ac_includes_default
4695 #include <$ac_header>
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest.$ac_objext'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_header_compiler=yes
4711 echo "$as_me: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4713 ac_header_compiler=no
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4717 echo "${ECHO_T}$ac_header_compiler" >&6
4719 # Is the header present?
4720 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4722 cat >conftest.$ac_ext <<_ACEOF
4723 #line $LINENO "configure"
4724 #include "confdefs.h"
4725 #include <$ac_header>
4727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4730 grep -v '^ *+' conftest.er1 >conftest.err
4732 cat conftest.err >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); } >/dev/null; then
4735 if test -s conftest.err; then
4736 ac_cpp_err=$ac_c_preproc_warn_flag
4743 if test -z "$ac_cpp_err"; then
4744 ac_header_preproc=yes
4746 echo "$as_me: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 ac_header_preproc=no
4750 rm -f conftest.err conftest.$ac_ext
4751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4752 echo "${ECHO_T}$ac_header_preproc" >&6
4754 # So? What about this header?
4755 case $ac_header_compiler:$ac_header_preproc in
4757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4769 echo "$as_me:$LINENO: checking for $ac_header" >&5
4770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 eval "$as_ac_Header=$ac_header_preproc"
4776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4781 cat >>confdefs.h <<_ACEOF
4782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799 echo "$as_me:$LINENO: checking for $ac_header" >&5
4800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4807 # Is the header compilable?
4808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4813 $ac_includes_default
4814 #include <$ac_header>
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_header_compiler=yes
4830 echo "$as_me: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 ac_header_compiler=no
4834 rm -f conftest.$ac_objext conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4836 echo "${ECHO_T}$ac_header_compiler" >&6
4838 # Is the header present?
4839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4844 #include <$ac_header>
4846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849 grep -v '^ *+' conftest.er1 >conftest.err
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } >/dev/null; then
4854 if test -s conftest.err; then
4855 ac_cpp_err=$ac_c_preproc_warn_flag
4862 if test -z "$ac_cpp_err"; then
4863 ac_header_preproc=yes
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 ac_header_preproc=no
4869 rm -f conftest.err conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4871 echo "${ECHO_T}$ac_header_preproc" >&6
4873 # So? What about this header?
4874 case $ac_header_compiler:$ac_header_preproc in
4876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 eval "$as_ac_Header=$ac_header_preproc"
4895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4900 cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4913 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4917 echo "$as_me:$LINENO: checking for $ac_header" >&5
4918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4925 # Is the header compilable?
4926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4928 cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4930 #include "confdefs.h"
4931 $ac_includes_default
4932 #include <$ac_header>
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_header_compiler=yes
4948 echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 ac_header_compiler=no
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4954 echo "${ECHO_T}$ac_header_compiler" >&6
4956 # Is the header present?
4957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4962 #include <$ac_header>
4964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null; then
4972 if test -s conftest.err; then
4973 ac_cpp_err=$ac_c_preproc_warn_flag
4980 if test -z "$ac_cpp_err"; then
4981 ac_header_preproc=yes
4983 echo "$as_me: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4985 ac_header_preproc=no
4987 rm -f conftest.err conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4989 echo "${ECHO_T}$ac_header_preproc" >&6
4991 # So? What about this header?
4992 case $ac_header_compiler:$ac_header_preproc in
4994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5006 echo "$as_me:$LINENO: checking for $ac_header" >&5
5007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 eval "$as_ac_Header=$ac_header_preproc"
5013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5018 cat >>confdefs.h <<_ACEOF
5019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5028 for ac_header in sys/syslog.h syslog.h
5030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5032 echo "$as_me:$LINENO: checking for $ac_header" >&5
5033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5040 # Is the header compilable?
5041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 #include "confdefs.h"
5046 $ac_includes_default
5047 #include <$ac_header>
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_header_compiler=yes
5063 echo "$as_me: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5065 ac_header_compiler=no
5067 rm -f conftest.$ac_objext conftest.$ac_ext
5068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5069 echo "${ECHO_T}$ac_header_compiler" >&6
5071 # Is the header present?
5072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 #include "confdefs.h"
5077 #include <$ac_header>
5079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5082 grep -v '^ *+' conftest.er1 >conftest.err
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev/null; then
5087 if test -s conftest.err; then
5088 ac_cpp_err=$ac_c_preproc_warn_flag
5095 if test -z "$ac_cpp_err"; then
5096 ac_header_preproc=yes
5098 echo "$as_me: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5100 ac_header_preproc=no
5102 rm -f conftest.err conftest.$ac_ext
5103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5104 echo "${ECHO_T}$ac_header_preproc" >&6
5106 # So? What about this header?
5107 case $ac_header_compiler:$ac_header_preproc in
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5121 echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 eval "$as_ac_Header=$ac_header_preproc"
5128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5133 cat >>confdefs.h <<_ACEOF
5134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5143 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5144 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5148 cat >conftest.$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5150 #include "confdefs.h"
5160 rm -f conftest.$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_header_shadow_h=yes
5174 echo "$as_me: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 ac_cv_header_shadow_h=no
5178 rm -f conftest.$ac_objext conftest.$ac_ext
5179 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_SHADOW_H 1
5193 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205 # Is the header compilable?
5206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5209 #line $LINENO "configure"
5210 #include "confdefs.h"
5211 $ac_includes_default
5212 #include <$ac_header>
5214 rm -f conftest.$ac_objext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5216 (eval $ac_compile) 2>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest.$ac_objext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_header_compiler=yes
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_header_compiler=no
5232 rm -f conftest.$ac_objext conftest.$ac_ext
5233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5234 echo "${ECHO_T}$ac_header_compiler" >&6
5236 # Is the header present?
5237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5239 cat >conftest.$ac_ext <<_ACEOF
5240 #line $LINENO "configure"
5241 #include "confdefs.h"
5242 #include <$ac_header>
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5247 grep -v '^ *+' conftest.er1 >conftest.err
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null; then
5252 if test -s conftest.err; then
5253 ac_cpp_err=$ac_c_preproc_warn_flag
5260 if test -z "$ac_cpp_err"; then
5261 ac_header_preproc=yes
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_header_preproc=no
5267 rm -f conftest.err conftest.$ac_ext
5268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5269 echo "${ECHO_T}$ac_header_preproc" >&6
5271 # So? What about this header?
5272 case $ac_header_compiler:$ac_header_preproc in
5274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5286 echo "$as_me:$LINENO: checking for $ac_header" >&5
5287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 eval "$as_ac_Header=$ac_header_preproc"
5293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5312 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5324 # Is the header compilable?
5325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 #include "confdefs.h"
5330 $ac_includes_default
5331 #include <$ac_header>
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335 (eval $ac_compile) 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -s conftest.$ac_objext'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_header_compiler=yes
5347 echo "$as_me: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5349 ac_header_compiler=no
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 #include "confdefs.h"
5361 #include <$ac_header>
5363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null; then
5371 if test -s conftest.err; then
5372 ac_cpp_err=$ac_c_preproc_warn_flag
5379 if test -z "$ac_cpp_err"; then
5380 ac_header_preproc=yes
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5384 ac_header_preproc=no
5386 rm -f conftest.err conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc in
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5405 echo "$as_me:$LINENO: checking for $ac_header" >&5
5406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 eval "$as_ac_Header=$ac_header_preproc"
5412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 for ac_header in stropts.h poll.h
5429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431 echo "$as_me:$LINENO: checking for $ac_header" >&5
5432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5439 # Is the header compilable?
5440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5442 cat >conftest.$ac_ext <<_ACEOF
5443 #line $LINENO "configure"
5444 #include "confdefs.h"
5445 $ac_includes_default
5446 #include <$ac_header>
5448 rm -f conftest.$ac_objext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450 (eval $ac_compile) 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_header_compiler=yes
5462 echo "$as_me: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5464 ac_header_compiler=no
5466 rm -f conftest.$ac_objext conftest.$ac_ext
5467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5468 echo "${ECHO_T}$ac_header_compiler" >&6
5470 # Is the header present?
5471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 #include "confdefs.h"
5476 #include <$ac_header>
5478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5481 grep -v '^ *+' conftest.er1 >conftest.err
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } >/dev/null; then
5486 if test -s conftest.err; then
5487 ac_cpp_err=$ac_c_preproc_warn_flag
5494 if test -z "$ac_cpp_err"; then
5495 ac_header_preproc=yes
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 ac_header_preproc=no
5501 rm -f conftest.err conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5503 echo "${ECHO_T}$ac_header_preproc" >&6
5505 # So? What about this header?
5506 case $ac_header_compiler:$ac_header_preproc in
5508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5520 echo "$as_me:$LINENO: checking for $ac_header" >&5
5521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 eval "$as_ac_Header=$ac_header_preproc"
5527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5532 cat >>confdefs.h <<_ACEOF
5533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5543 for ac_header in sys/capability.h syscall.h sys/syscall.h
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 # Is the header compilable?
5556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5560 #include "confdefs.h"
5561 $ac_includes_default
5562 #include <$ac_header>
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_header_compiler=yes
5578 echo "$as_me: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5580 ac_header_compiler=no
5582 rm -f conftest.$ac_objext conftest.$ac_ext
5583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5584 echo "${ECHO_T}$ac_header_compiler" >&6
5586 # Is the header present?
5587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5589 cat >conftest.$ac_ext <<_ACEOF
5590 #line $LINENO "configure"
5591 #include "confdefs.h"
5592 #include <$ac_header>
5594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5597 grep -v '^ *+' conftest.er1 >conftest.err
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } >/dev/null; then
5602 if test -s conftest.err; then
5603 ac_cpp_err=$ac_c_preproc_warn_flag
5610 if test -z "$ac_cpp_err"; then
5611 ac_header_preproc=yes
5613 echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_header_preproc=no
5617 rm -f conftest.err conftest.$ac_ext
5618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5619 echo "${ECHO_T}$ac_header_preproc" >&6
5621 # So? What about this header?
5622 case $ac_header_compiler:$ac_header_preproc in
5624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5636 echo "$as_me:$LINENO: checking for $ac_header" >&5
5637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 eval "$as_ac_Header=$ac_header_preproc"
5643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5648 cat >>confdefs.h <<_ACEOF
5649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5659 for ac_header in sys/acl.h sys/cdefs.h glob.h
5661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5663 echo "$as_me:$LINENO: checking for $ac_header" >&5
5664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5671 # Is the header compilable?
5672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line $LINENO "configure"
5676 #include "confdefs.h"
5677 $ac_includes_default
5678 #include <$ac_header>
5680 rm -f conftest.$ac_objext
5681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5682 (eval $ac_compile) 2>&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_header_compiler=yes
5694 echo "$as_me: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 ac_header_compiler=no
5698 rm -f conftest.$ac_objext conftest.$ac_ext
5699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5700 echo "${ECHO_T}$ac_header_compiler" >&6
5702 # Is the header present?
5703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5705 cat >conftest.$ac_ext <<_ACEOF
5706 #line $LINENO "configure"
5707 #include "confdefs.h"
5708 #include <$ac_header>
5710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } >/dev/null; then
5718 if test -s conftest.err; then
5719 ac_cpp_err=$ac_c_preproc_warn_flag
5726 if test -z "$ac_cpp_err"; then
5727 ac_header_preproc=yes
5729 echo "$as_me: failed program was:" >&5
5730 cat conftest.$ac_ext >&5
5731 ac_header_preproc=no
5733 rm -f conftest.err conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5735 echo "${ECHO_T}$ac_header_preproc" >&6
5737 # So? What about this header?
5738 case $ac_header_compiler:$ac_header_preproc in
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5752 echo "$as_me:$LINENO: checking for $ac_header" >&5
5753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 eval "$as_ac_Header=$ac_header_preproc"
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5764 cat >>confdefs.h <<_ACEOF
5765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5773 # For experimental utmp support (lastlog on some BSD-like systems)
5777 for ac_header in utmp.h utmpx.h lastlog.h
5779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5781 echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5789 # Is the header compilable?
5790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5795 $ac_includes_default
5796 #include <$ac_header>
5798 rm -f conftest.$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
5804 { ac_try='test -s conftest.$ac_objext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_header_compiler=yes
5812 echo "$as_me: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5814 ac_header_compiler=no
5816 rm -f conftest.$ac_objext conftest.$ac_ext
5817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818 echo "${ECHO_T}$ac_header_compiler" >&6
5820 # Is the header present?
5821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5824 #line $LINENO "configure"
5825 #include "confdefs.h"
5826 #include <$ac_header>
5828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null; then
5836 if test -s conftest.err; then
5837 ac_cpp_err=$ac_c_preproc_warn_flag
5844 if test -z "$ac_cpp_err"; then
5845 ac_header_preproc=yes
5847 echo "$as_me: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5849 ac_header_preproc=no
5851 rm -f conftest.err conftest.$ac_ext
5852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853 echo "${ECHO_T}$ac_header_preproc" >&6
5855 # So? What about this header?
5856 case $ac_header_compiler:$ac_header_preproc in
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5870 echo "$as_me:$LINENO: checking for $ac_header" >&5
5871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 eval "$as_ac_Header=$ac_header_preproc"
5877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5882 cat >>confdefs.h <<_ACEOF
5883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5891 # For quotas on Veritas VxFS filesystems
5893 for ac_header in sys/fs/vx_quota.h
5895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5897 echo "$as_me:$LINENO: checking for $ac_header" >&5
5898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5905 # Is the header compilable?
5906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 #include "confdefs.h"
5911 $ac_includes_default
5912 #include <$ac_header>
5914 rm -f conftest.$ac_objext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5916 (eval $ac_compile) 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest.$ac_objext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_header_compiler=yes
5928 echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_header_compiler=no
5932 rm -f conftest.$ac_objext conftest.$ac_ext
5933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5934 echo "${ECHO_T}$ac_header_compiler" >&6
5936 # Is the header present?
5937 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5939 cat >conftest.$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5941 #include "confdefs.h"
5942 #include <$ac_header>
5944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } >/dev/null; then
5952 if test -s conftest.err; then
5953 ac_cpp_err=$ac_c_preproc_warn_flag
5960 if test -z "$ac_cpp_err"; then
5961 ac_header_preproc=yes
5963 echo "$as_me: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 ac_header_preproc=no
5967 rm -f conftest.err conftest.$ac_ext
5968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5969 echo "${ECHO_T}$ac_header_preproc" >&6
5971 # So? What about this header?
5972 case $ac_header_compiler:$ac_header_preproc in
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5986 echo "$as_me:$LINENO: checking for $ac_header" >&5
5987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 eval "$as_ac_Header=$ac_header_preproc"
5993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6007 # For quotas on Linux XFS filesystems
6009 for ac_header in linux/xqm.h
6011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6021 # Is the header compilable?
6022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6027 $ac_includes_default
6028 #include <$ac_header>
6030 rm -f conftest.$ac_objext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_header_compiler=yes
6044 echo "$as_me: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6046 ac_header_compiler=no
6048 rm -f conftest.$ac_objext conftest.$ac_ext
6049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6050 echo "${ECHO_T}$ac_header_compiler" >&6
6052 # Is the header present?
6053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6055 cat >conftest.$ac_ext <<_ACEOF
6056 #line $LINENO "configure"
6057 #include "confdefs.h"
6058 #include <$ac_header>
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_c_preproc_warn_flag
6076 if test -z "$ac_cpp_err"; then
6077 ac_header_preproc=yes
6079 echo "$as_me: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6081 ac_header_preproc=no
6083 rm -f conftest.err conftest.$ac_ext
6084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6085 echo "${ECHO_T}$ac_header_preproc" >&6
6087 # So? What about this header?
6088 case $ac_header_compiler:$ac_header_preproc in
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6102 echo "$as_me:$LINENO: checking for $ac_header" >&5
6103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 eval "$as_ac_Header=$ac_header_preproc"
6109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6114 cat >>confdefs.h <<_ACEOF
6115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 echo "$as_me:$LINENO: checking for int" >&5
6124 echo $ECHO_N "checking for int... $ECHO_C" >&6
6125 if test "${ac_cv_type_int+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 cat >conftest.$ac_ext <<_ACEOF
6129 #line $LINENO "configure"
6130 #include "confdefs.h"
6131 $ac_includes_default
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145 (eval $ac_compile) 2>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } &&
6149 { ac_try='test -s conftest.$ac_objext'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6157 echo "$as_me: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6161 rm -f conftest.$ac_objext conftest.$ac_ext
6163 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6164 echo "${ECHO_T}$ac_cv_type_int" >&6
6166 echo "$as_me:$LINENO: checking size of int" >&5
6167 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6168 if test "${ac_cv_sizeof_int+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 if test "$ac_cv_type_int" = yes; then
6172 # The cast to unsigned long works around a bug in the HP C Compiler
6173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6175 # This bug is HP SR number 8606223364.
6176 if test "$cross_compiling" = yes; then
6177 # Depending upon the size, compute the lo and hi bounds.
6178 cat >conftest.$ac_ext <<_ACEOF
6179 #line $LINENO "configure"
6180 #include "confdefs.h"
6181 $ac_includes_default
6185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6192 rm -f conftest.$ac_objext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6194 (eval $ac_compile) 2>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest.$ac_objext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6206 cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 #include "confdefs.h"
6209 $ac_includes_default
6213 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -s conftest.$ac_objext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_hi=$ac_mid; break
6234 echo "$as_me: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6236 ac_lo=`expr $ac_mid + 1`
6237 if test $ac_lo -le $ac_mid; then
6241 ac_mid=`expr 2 '*' $ac_mid + 1`
6243 rm -f conftest.$ac_objext conftest.$ac_ext
6246 echo "$as_me: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6248 cat >conftest.$ac_ext <<_ACEOF
6249 #line $LINENO "configure"
6250 #include "confdefs.h"
6251 $ac_includes_default
6255 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264 (eval $ac_compile) 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -s conftest.$ac_objext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6276 cat >conftest.$ac_ext <<_ACEOF
6277 #line $LINENO "configure"
6278 #include "confdefs.h"
6279 $ac_includes_default
6283 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292 (eval $ac_compile) 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -s conftest.$ac_objext'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_lo=$ac_mid; break
6304 echo "$as_me: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 ac_hi=`expr '(' $ac_mid ')' - 1`
6307 if test $ac_mid -le $ac_hi; then
6311 ac_mid=`expr 2 '*' $ac_mid`
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6316 echo "$as_me: failed program was:" >&5
6317 cat conftest.$ac_ext >&5
6320 rm -f conftest.$ac_objext conftest.$ac_ext
6322 rm -f conftest.$ac_objext conftest.$ac_ext
6323 # Binary search between lo and hi bounds.
6324 while test "x$ac_lo" != "x$ac_hi"; do
6325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6326 cat >conftest.$ac_ext <<_ACEOF
6327 #line $LINENO "configure"
6328 #include "confdefs.h"
6329 $ac_includes_default
6333 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6354 echo "$as_me: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6356 ac_lo=`expr '(' $ac_mid ')' + 1`
6358 rm -f conftest.$ac_objext conftest.$ac_ext
6361 ?*) ac_cv_sizeof_int=$ac_lo;;
6362 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6363 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6364 { (exit 1); exit 1; }; } ;;
6367 if test "$cross_compiling" = yes; then
6368 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6369 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6370 { (exit 1); exit 1; }; }
6372 cat >conftest.$ac_ext <<_ACEOF
6373 #line $LINENO "configure"
6374 #include "confdefs.h"
6375 $ac_includes_default
6376 long longval () { return (long) (sizeof (int)); }
6377 unsigned long ulongval () { return (long) (sizeof (int)); }
6384 FILE *f = fopen ("conftest.val", "w");
6387 if (((long) (sizeof (int))) < 0)
6389 long i = longval ();
6390 if (i != ((long) (sizeof (int))))
6392 fprintf (f, "%ld\n", i);
6396 unsigned long i = ulongval ();
6397 if (i != ((long) (sizeof (int))))
6399 fprintf (f, "%lu\n", i);
6401 exit (ferror (f) || fclose (f) != 0);
6407 rm -f conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409 (eval $ac_link) 2>&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_cv_sizeof_int=`cat conftest.val`
6420 echo "$as_me: program exited with status $ac_status" >&5
6421 echo "$as_me: failed program was:" >&5
6422 cat conftest.$ac_ext >&5
6424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6425 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6426 { (exit 1); exit 1; }; }
6428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6437 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6438 cat >>confdefs.h <<_ACEOF
6439 #define SIZEOF_INT $ac_cv_sizeof_int
6443 echo "$as_me:$LINENO: checking for long" >&5
6444 echo $ECHO_N "checking for long... $ECHO_C" >&6
6445 if test "${ac_cv_type_long+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.$ac_ext <<_ACEOF
6449 #line $LINENO "configure"
6450 #include "confdefs.h"
6451 $ac_includes_default
6463 rm -f conftest.$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -s conftest.$ac_objext'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6477 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6481 rm -f conftest.$ac_objext conftest.$ac_ext
6483 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6484 echo "${ECHO_T}$ac_cv_type_long" >&6
6486 echo "$as_me:$LINENO: checking size of long" >&5
6487 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6488 if test "${ac_cv_sizeof_long+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 if test "$ac_cv_type_long" = yes; then
6492 # The cast to unsigned long works around a bug in the HP C Compiler
6493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6495 # This bug is HP SR number 8606223364.
6496 if test "$cross_compiling" = yes; then
6497 # Depending upon the size, compute the lo and hi bounds.
6498 cat >conftest.$ac_ext <<_ACEOF
6499 #line $LINENO "configure"
6500 #include "confdefs.h"
6501 $ac_includes_default
6505 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -s conftest.$ac_objext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 #include "confdefs.h"
6529 $ac_includes_default
6533 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 ac_hi=$ac_mid; break
6554 echo "$as_me: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6556 ac_lo=`expr $ac_mid + 1`
6557 if test $ac_lo -le $ac_mid; then
6561 ac_mid=`expr 2 '*' $ac_mid + 1`
6563 rm -f conftest.$ac_objext conftest.$ac_ext
6566 echo "$as_me: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6568 cat >conftest.$ac_ext <<_ACEOF
6569 #line $LINENO "configure"
6570 #include "confdefs.h"
6571 $ac_includes_default
6575 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6596 cat >conftest.$ac_ext <<_ACEOF
6597 #line $LINENO "configure"
6598 #include "confdefs.h"
6599 $ac_includes_default
6603 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6610 rm -f conftest.$ac_objext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -s conftest.$ac_objext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_lo=$ac_mid; break
6624 echo "$as_me: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 ac_hi=`expr '(' $ac_mid ')' - 1`
6627 if test $ac_mid -le $ac_hi; then
6631 ac_mid=`expr 2 '*' $ac_mid`
6633 rm -f conftest.$ac_objext conftest.$ac_ext
6636 echo "$as_me: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6640 rm -f conftest.$ac_objext conftest.$ac_ext
6642 rm -f conftest.$ac_objext conftest.$ac_ext
6643 # Binary search between lo and hi bounds.
6644 while test "x$ac_lo" != "x$ac_hi"; do
6645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6646 cat >conftest.$ac_ext <<_ACEOF
6647 #line $LINENO "configure"
6648 #include "confdefs.h"
6649 $ac_includes_default
6653 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6674 echo "$as_me: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 ac_lo=`expr '(' $ac_mid ')' + 1`
6678 rm -f conftest.$ac_objext conftest.$ac_ext
6681 ?*) ac_cv_sizeof_long=$ac_lo;;
6682 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6683 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6684 { (exit 1); exit 1; }; } ;;
6687 if test "$cross_compiling" = yes; then
6688 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6689 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6690 { (exit 1); exit 1; }; }
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6695 $ac_includes_default
6696 long longval () { return (long) (sizeof (long)); }
6697 unsigned long ulongval () { return (long) (sizeof (long)); }
6704 FILE *f = fopen ("conftest.val", "w");
6707 if (((long) (sizeof (long))) < 0)
6709 long i = longval ();
6710 if (i != ((long) (sizeof (long))))
6712 fprintf (f, "%ld\n", i);
6716 unsigned long i = ulongval ();
6717 if (i != ((long) (sizeof (long))))
6719 fprintf (f, "%lu\n", i);
6721 exit (ferror (f) || fclose (f) != 0);
6727 rm -f conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_sizeof_long=`cat conftest.val`
6740 echo "$as_me: program exited with status $ac_status" >&5
6741 echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6745 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6746 { (exit 1); exit 1; }; }
6748 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6756 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6757 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6758 cat >>confdefs.h <<_ACEOF
6759 #define SIZEOF_LONG $ac_cv_sizeof_long
6763 echo "$as_me:$LINENO: checking for short" >&5
6764 echo $ECHO_N "checking for short... $ECHO_C" >&6
6765 if test "${ac_cv_type_short+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771 $ac_includes_default
6783 rm -f conftest.$ac_objext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6785 (eval $ac_compile) 2>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -s conftest.$ac_objext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_type_short=yes
6797 echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6801 rm -f conftest.$ac_objext conftest.$ac_ext
6803 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6804 echo "${ECHO_T}$ac_cv_type_short" >&6
6806 echo "$as_me:$LINENO: checking size of short" >&5
6807 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6808 if test "${ac_cv_sizeof_short+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 if test "$ac_cv_type_short" = yes; then
6812 # The cast to unsigned long works around a bug in the HP C Compiler
6813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6815 # This bug is HP SR number 8606223364.
6816 if test "$cross_compiling" = yes; then
6817 # Depending upon the size, compute the lo and hi bounds.
6818 cat >conftest.$ac_ext <<_ACEOF
6819 #line $LINENO "configure"
6820 #include "confdefs.h"
6821 $ac_includes_default
6825 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6832 rm -f conftest.$ac_objext
6833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6846 cat >conftest.$ac_ext <<_ACEOF
6847 #line $LINENO "configure"
6848 #include "confdefs.h"
6849 $ac_includes_default
6853 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_hi=$ac_mid; break
6874 echo "$as_me: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6876 ac_lo=`expr $ac_mid + 1`
6877 if test $ac_lo -le $ac_mid; then
6881 ac_mid=`expr 2 '*' $ac_mid + 1`
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6886 echo "$as_me: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 cat >conftest.$ac_ext <<_ACEOF
6889 #line $LINENO "configure"
6890 #include "confdefs.h"
6891 $ac_includes_default
6895 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6916 cat >conftest.$ac_ext <<_ACEOF
6917 #line $LINENO "configure"
6918 #include "confdefs.h"
6919 $ac_includes_default
6923 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6930 rm -f conftest.$ac_objext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932 (eval $ac_compile) 2>&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_lo=$ac_mid; break
6944 echo "$as_me: failed program was:" >&5
6945 cat conftest.$ac_ext >&5
6946 ac_hi=`expr '(' $ac_mid ')' - 1`
6947 if test $ac_mid -le $ac_hi; then
6951 ac_mid=`expr 2 '*' $ac_mid`
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6956 echo "$as_me: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6960 rm -f conftest.$ac_objext conftest.$ac_ext
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6963 # Binary search between lo and hi bounds.
6964 while test "x$ac_lo" != "x$ac_hi"; do
6965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6966 cat >conftest.$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6968 #include "confdefs.h"
6969 $ac_includes_default
6973 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6980 rm -f conftest.$ac_objext
6981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6982 (eval $ac_compile) 2>&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -s conftest.$ac_objext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6994 echo "$as_me: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6996 ac_lo=`expr '(' $ac_mid ')' + 1`
6998 rm -f conftest.$ac_objext conftest.$ac_ext
7001 ?*) ac_cv_sizeof_short=$ac_lo;;
7002 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7003 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7004 { (exit 1); exit 1; }; } ;;
7007 if test "$cross_compiling" = yes; then
7008 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7009 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7010 { (exit 1); exit 1; }; }
7012 cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7015 $ac_includes_default
7016 long longval () { return (long) (sizeof (short)); }
7017 unsigned long ulongval () { return (long) (sizeof (short)); }
7024 FILE *f = fopen ("conftest.val", "w");
7027 if (((long) (sizeof (short))) < 0)
7029 long i = longval ();
7030 if (i != ((long) (sizeof (short))))
7032 fprintf (f, "%ld\n", i);
7036 unsigned long i = ulongval ();
7037 if (i != ((long) (sizeof (short))))
7039 fprintf (f, "%lu\n", i);
7041 exit (ferror (f) || fclose (f) != 0);
7047 rm -f conftest$ac_exeext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049 (eval $ac_link) 2>&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_sizeof_short=`cat conftest.val`
7060 echo "$as_me: program exited with status $ac_status" >&5
7061 echo "$as_me: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7065 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7066 { (exit 1); exit 1; }; }
7068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7073 ac_cv_sizeof_short=0
7076 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7077 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7078 cat >>confdefs.h <<_ACEOF
7079 #define SIZEOF_SHORT $ac_cv_sizeof_short
7084 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7085 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7086 if test "${ac_cv_c_const+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 cat >conftest.$ac_ext <<_ACEOF
7090 #line $LINENO "configure"
7091 #include "confdefs.h"
7096 /* FIXME: Include the comments suggested by Paul. */
7098 /* Ultrix mips cc rejects this. */
7099 typedef int charset[2];
7101 /* SunOS 4.1.1 cc rejects this. */
7102 char const *const *ccp;
7104 /* NEC SVR4.0.2 mips cc rejects this. */
7105 struct point {int x, y;};
7106 static struct point const zero = {0,0};
7107 /* AIX XL C 1.02.0.0 rejects this.
7108 It does not let you subtract one const X* pointer from another in
7109 an arm of an if-expression whose if-part is not a constant
7111 const char *g = "string";
7112 ccp = &g + (g ? g-g : 0);
7113 /* HPUX 7.0 cc rejects these. */
7116 ccp = (char const *const *) p;
7117 { /* SCO 3.2v4 cc rejects this. */
7119 char const *s = 0 ? (char *) 0 : (char const *) 0;
7123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7125 const int *foo = &x[0];
7128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7129 typedef const int *iptr;
7133 { /* AIX XL C 1.02.0.0 rejects this saying
7134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7135 struct s { int j; const int *ap[3]; };
7136 struct s *b; b->j = 5;
7138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7147 rm -f conftest.$ac_objext
7148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7149 (eval $ac_compile) 2>&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -s conftest.$ac_objext'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then
7161 echo "$as_me: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7165 rm -f conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7168 echo "${ECHO_T}$ac_cv_c_const" >&6
7169 if test $ac_cv_c_const = no; then
7171 cat >>confdefs.h <<\_ACEOF
7177 echo "$as_me:$LINENO: checking for inline" >&5
7178 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7179 if test "${ac_cv_c_inline+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 for ac_kw in inline __inline__ __inline; do
7184 cat >conftest.$ac_ext <<_ACEOF
7185 #line $LINENO "configure"
7186 #include "confdefs.h"
7189 static $ac_kw foo_t static_foo () {return 0; }
7190 $ac_kw foo_t foo () {return 0; }
7194 rm -f conftest.$ac_objext
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_cv_c_inline=$ac_kw; break
7208 echo "$as_me: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7216 echo "${ECHO_T}$ac_cv_c_inline" >&6
7217 case $ac_cv_c_inline in
7220 cat >>confdefs.h <<\_ACEOF
7224 *) cat >>confdefs.h <<_ACEOF
7225 #define inline $ac_cv_c_inline
7230 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7231 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7232 if test "${ac_cv_c_bigendian+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 # See if sys/param.h defines the BYTE_ORDER macro.
7236 cat >conftest.$ac_ext <<_ACEOF
7237 #line $LINENO "configure"
7238 #include "confdefs.h"
7239 #include <sys/types.h>
7240 #include <sys/param.h>
7245 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 # It does; now see whether it defined to BIG_ENDIAN or not.
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 #include "confdefs.h"
7269 #include <sys/types.h>
7270 #include <sys/param.h>
7275 #if BYTE_ORDER != BIG_ENDIAN
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_c_bigendian=yes
7297 echo "$as_me: failed program was:" >&5
7298 cat conftest.$ac_ext >&5
7299 ac_cv_c_bigendian=no
7301 rm -f conftest.$ac_objext conftest.$ac_ext
7303 echo "$as_me: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7305 # It does not; compile a test program.
7306 if test "$cross_compiling" = yes; then
7307 # try to guess the endianness by grepping values into an object file
7308 ac_cv_c_bigendian=unknown
7309 cat >conftest.$ac_ext <<_ACEOF
7310 #line $LINENO "configure"
7311 #include "confdefs.h"
7312 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7313 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7314 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7315 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7316 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7317 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7321 _ascii (); _ebcdic ();
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7339 ac_cv_c_bigendian=yes
7341 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7342 if test "$ac_cv_c_bigendian" = unknown; then
7343 ac_cv_c_bigendian=no
7345 # finding both strings is unlikely to happen, but who knows?
7346 ac_cv_c_bigendian=unknown
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7353 rm -f conftest.$ac_objext conftest.$ac_ext
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 #include "confdefs.h"
7361 /* Are we little or big endian? From Harbison&Steele. */
7365 char c[sizeof (long)];
7368 exit (u.c[sizeof (long) - 1] == 1);
7371 rm -f conftest$ac_exeext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373 (eval $ac_link) 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_cv_c_bigendian=no
7384 echo "$as_me: program exited with status $ac_status" >&5
7385 echo "$as_me: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7388 ac_cv_c_bigendian=yes
7390 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7393 rm -f conftest.$ac_objext conftest.$ac_ext
7395 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7396 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7397 case $ac_cv_c_bigendian in
7400 cat >>confdefs.h <<\_ACEOF
7401 #define WORDS_BIGENDIAN 1
7407 { { echo "$as_me:$LINENO: error: unknown endianness
7408 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7409 echo "$as_me: error: unknown endianness
7410 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7411 { (exit 1); exit 1; }; } ;;
7415 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7416 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7417 if test "${ac_cv_c_char_unsigned+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 cat >conftest.$ac_ext <<_ACEOF
7421 #line $LINENO "configure"
7422 #include "confdefs.h"
7423 $ac_includes_default
7427 static int test_array [1 - 2 * !(((char) -1) < 0)];
7434 rm -f conftest.$ac_objext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_c_char_unsigned=no
7448 echo "$as_me: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7450 ac_cv_c_char_unsigned=yes
7452 rm -f conftest.$ac_objext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7455 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7456 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7457 cat >>confdefs.h <<\_ACEOF
7458 #define __CHAR_UNSIGNED__ 1
7464 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7465 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7466 if test "${ac_cv_type_signal+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.$ac_ext <<_ACEOF
7470 #line $LINENO "configure"
7471 #include "confdefs.h"
7472 #include <sys/types.h>
7478 extern "C" void (*signal (int, void (*)(int)))(int);
7480 void (*signal ()) ();
7491 rm -f conftest.$ac_objext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493 (eval $ac_compile) 2>&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_type_signal=void
7505 echo "$as_me: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7507 ac_cv_type_signal=int
7509 rm -f conftest.$ac_objext conftest.$ac_ext
7511 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7512 echo "${ECHO_T}$ac_cv_type_signal" >&6
7514 cat >>confdefs.h <<_ACEOF
7515 #define RETSIGTYPE $ac_cv_type_signal
7519 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7520 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7521 if test "${ac_cv_type_uid_t+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 cat >conftest.$ac_ext <<_ACEOF
7525 #line $LINENO "configure"
7526 #include "confdefs.h"
7527 #include <sys/types.h>
7530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7531 $EGREP "uid_t" >/dev/null 2>&1; then
7532 ac_cv_type_uid_t=yes
7539 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7540 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7541 if test $ac_cv_type_uid_t = no; then
7543 cat >>confdefs.h <<\_ACEOF
7548 cat >>confdefs.h <<\_ACEOF
7554 echo "$as_me:$LINENO: checking for mode_t" >&5
7555 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7556 if test "${ac_cv_type_mode_t+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7561 #include "confdefs.h"
7562 $ac_includes_default
7568 if (sizeof (mode_t))
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -s conftest.$ac_objext'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 ac_cv_type_mode_t=yes
7588 echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 ac_cv_type_mode_t=no
7592 rm -f conftest.$ac_objext conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7595 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7596 if test $ac_cv_type_mode_t = yes; then
7600 cat >>confdefs.h <<_ACEOF
7606 echo "$as_me:$LINENO: checking for off_t" >&5
7607 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7608 if test "${ac_cv_type_off_t+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7612 #line $LINENO "configure"
7613 #include "confdefs.h"
7614 $ac_includes_default
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_type_off_t=yes
7640 echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7644 rm -f conftest.$ac_objext conftest.$ac_ext
7646 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7647 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7648 if test $ac_cv_type_off_t = yes; then
7652 cat >>confdefs.h <<_ACEOF
7658 echo "$as_me:$LINENO: checking for size_t" >&5
7659 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7660 if test "${ac_cv_type_size_t+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line $LINENO "configure"
7665 #include "confdefs.h"
7666 $ac_includes_default
7672 if (sizeof (size_t))
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680 (eval $ac_compile) 2>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -s conftest.$ac_objext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 ac_cv_type_size_t=yes
7692 echo "$as_me: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7694 ac_cv_type_size_t=no
7696 rm -f conftest.$ac_objext conftest.$ac_ext
7698 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7699 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7700 if test $ac_cv_type_size_t = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define size_t unsigned
7710 echo "$as_me:$LINENO: checking for pid_t" >&5
7711 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7712 if test "${ac_cv_type_pid_t+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7717 #include "confdefs.h"
7718 $ac_includes_default
7730 rm -f conftest.$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 ac_cv_type_pid_t=yes
7744 echo "$as_me: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7748 rm -f conftest.$ac_objext conftest.$ac_ext
7750 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7751 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7752 if test $ac_cv_type_pid_t = yes; then
7756 cat >>confdefs.h <<_ACEOF
7763 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7764 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7765 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7775 static struct stat ac_aggr;
7776 if (ac_aggr.st_rdev)
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784 (eval $ac_compile) 2>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -s conftest.$ac_objext'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; }; then
7794 ac_cv_member_struct_stat_st_rdev=yes
7796 echo "$as_me: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 cat >conftest.$ac_ext <<_ACEOF
7799 #line $LINENO "configure"
7800 #include "confdefs.h"
7801 $ac_includes_default
7805 static struct stat ac_aggr;
7806 if (sizeof ac_aggr.st_rdev)
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -s conftest.$ac_objext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_cv_member_struct_stat_st_rdev=yes
7826 echo "$as_me: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 ac_cv_member_struct_stat_st_rdev=no
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7832 rm -f conftest.$ac_objext conftest.$ac_ext
7834 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7835 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7836 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839 #define HAVE_STRUCT_STAT_ST_RDEV 1
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_ST_RDEV 1
7850 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
7851 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
7852 if test "${ac_cv_dirent_d_off+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7860 #include <sys/types.h>
7865 struct dirent d; d.d_off;
7870 rm -f conftest.$ac_objext
7871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -s conftest.$ac_objext'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_dirent_d_off=yes
7884 echo "$as_me: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7886 ac_cv_dirent_d_off=no
7888 rm -f conftest.$ac_objext conftest.$ac_ext
7890 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
7891 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
7892 if test $ac_cv_dirent_d_off = yes; then
7894 cat >>confdefs.h <<\_ACEOF
7895 #define HAVE_DIRENT_D_OFF 1
7900 echo "$as_me:$LINENO: checking for ino_t" >&5
7901 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
7902 if test "${ac_cv_type_ino_t+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 cat >conftest.$ac_ext <<_ACEOF
7906 #line $LINENO "configure"
7907 #include "confdefs.h"
7908 $ac_includes_default
7920 rm -f conftest.$ac_objext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922 (eval $ac_compile) 2>&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } &&
7926 { ac_try='test -s conftest.$ac_objext'
7927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); }; }; then
7932 ac_cv_type_ino_t=yes
7934 echo "$as_me: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7938 rm -f conftest.$ac_objext conftest.$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
7941 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
7942 if test $ac_cv_type_ino_t = yes; then
7946 cat >>confdefs.h <<_ACEOF
7947 #define ino_t unsigned
7952 echo "$as_me:$LINENO: checking for loff_t" >&5
7953 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
7954 if test "${ac_cv_type_loff_t+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line $LINENO "configure"
7959 #include "confdefs.h"
7960 $ac_includes_default
7966 if (sizeof (loff_t))
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974 (eval $ac_compile) 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest.$ac_objext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_type_loff_t=yes
7986 echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 ac_cv_type_loff_t=no
7990 rm -f conftest.$ac_objext conftest.$ac_ext
7992 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
7993 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
7994 if test $ac_cv_type_loff_t = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define loff_t off_t
8004 echo "$as_me:$LINENO: checking for offset_t" >&5
8005 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8006 if test "${ac_cv_type_offset_t+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8011 #include "confdefs.h"
8012 $ac_includes_default
8018 if (sizeof (offset_t))
8024 rm -f conftest.$ac_objext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8026 (eval $ac_compile) 2>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -s conftest.$ac_objext'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; }; then
8036 ac_cv_type_offset_t=yes
8038 echo "$as_me: failed program was:" >&5
8039 cat conftest.$ac_ext >&5
8040 ac_cv_type_offset_t=no
8042 rm -f conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8045 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8046 if test $ac_cv_type_offset_t = yes; then
8050 cat >>confdefs.h <<_ACEOF
8051 #define offset_t loff_t
8056 echo "$as_me:$LINENO: checking for ssize_t" >&5
8057 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8058 if test "${ac_cv_type_ssize_t+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 #include "confdefs.h"
8064 $ac_includes_default
8070 if (sizeof (ssize_t))
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -s conftest.$ac_objext'
8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; }; then
8088 ac_cv_type_ssize_t=yes
8090 echo "$as_me: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8092 ac_cv_type_ssize_t=no
8094 rm -f conftest.$ac_objext conftest.$ac_ext
8096 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8097 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8098 if test $ac_cv_type_ssize_t = yes; then
8102 cat >>confdefs.h <<_ACEOF
8108 echo "$as_me:$LINENO: checking for wchar_t" >&5
8109 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8110 if test "${ac_cv_type_wchar_t+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8114 #line $LINENO "configure"
8115 #include "confdefs.h"
8116 $ac_includes_default
8122 if (sizeof (wchar_t))
8128 rm -f conftest.$ac_objext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_type_wchar_t=yes
8142 echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_cv_type_wchar_t=no
8146 rm -f conftest.$ac_objext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8149 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8150 if test $ac_cv_type_wchar_t = yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define wchar_t unsigned short
8161 ############################################
8162 # for cups support we need libcups, and a handful of header files
8164 # Check whether --enable-cups or --disable-cups was given.
8165 if test "${enable_cups+set}" = set; then
8166 enableval="$enable_cups"
8170 if test x$enable_cups != xno; then
8171 # Extract the first word of "cups-config", so it can be a program name with args.
8172 set dummy cups-config; ac_word=$2
8173 echo "$as_me:$LINENO: checking for $ac_word" >&5
8174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8175 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 case $CUPS_CONFIG in
8180 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8190 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8202 if test -n "$CUPS_CONFIG"; then
8203 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8204 echo "${ECHO_T}$CUPS_CONFIG" >&6
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8211 if test "x$CUPS_CONFIG" != x; then
8213 cat >>confdefs.h <<\_ACEOF
8217 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8218 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8219 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8223 ############################################
8224 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8226 for ac_func in dlopen
8228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8229 echo "$as_me:$LINENO: checking for $ac_func" >&5
8230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_var+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 #include "confdefs.h"
8237 /* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func (); below. */
8240 /* Override any gcc2 internal prototype to avoid an error. */
8244 /* We use char because int might match the return type of a gcc2
8245 builtin and then its argument prototype would still apply. */
8252 /* The GNU C library defines this for functions which it implements
8253 to always fail with ENOSYS. Some functions are actually named
8254 something starting with __ and the normal name is an alias. */
8255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267 (eval $ac_link) 2>&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -s conftest$ac_exeext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 eval "$as_ac_var=yes"
8279 echo "$as_me: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 eval "$as_ac_var=no"
8283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8287 if test `eval echo '${'$as_ac_var'}'` = yes; then
8288 cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8295 if test x"$ac_cv_func_dlopen" = x"no"; then
8296 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8297 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_check_lib_save_LIBS=$LIBS
8303 cat >conftest.$ac_ext <<_ACEOF
8304 #line $LINENO "configure"
8305 #include "confdefs.h"
8307 /* Override any gcc2 internal prototype to avoid an error. */
8311 /* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_lib_dl_dlopen=yes
8336 echo "$as_me: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8338 ac_cv_lib_dl_dlopen=no
8340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8341 LIBS=$ac_check_lib_save_LIBS
8343 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8345 if test $ac_cv_lib_dl_dlopen = yes; then
8348 cat >>confdefs.h <<\_ACEOF
8349 #define HAVE_DLOPEN 1
8355 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8357 ############################################
8358 # check if the compiler can do immediate structures
8359 echo "$as_me:$LINENO: checking for immediate structures" >&5
8360 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8361 if test "${samba_cv_immediate_structures+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8366 #line $LINENO "configure"
8367 #include "confdefs.h"
8374 typedef struct {unsigned x;} FOOBAR;
8375 #define X_FOOBAR(x) ((FOOBAR) { x })
8376 #define FOO_ONE X_FOOBAR(1)
8388 rm -f conftest.$ac_objext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390 (eval $ac_compile) 2>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -s conftest.$ac_objext'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 samba_cv_immediate_structures=yes
8402 echo "$as_me: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8404 samba_cv_immediate_structures=no
8406 rm -f conftest.$ac_objext conftest.$ac_ext
8408 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8409 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8410 if test x"$samba_cv_immediate_structures" = x"yes"; then
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_IMMEDIATE_STRUCTURES 1
8418 ############################################
8419 # check for unix domain sockets
8420 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8421 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8422 if test "${samba_cv_unixsocket+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8428 #include "confdefs.h"
8430 #include <sys/types.h>
8433 #include <sys/socket.h>
8439 struct sockaddr_un sunaddr;
8440 sunaddr.sun_family = AF_UNIX;
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 samba_cv_unixsocket=yes
8460 echo "$as_me: failed program was:" >&5
8461 cat conftest.$ac_ext >&5
8462 samba_cv_unixsocket=no
8464 rm -f conftest.$ac_objext conftest.$ac_ext
8466 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8467 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8468 if test x"$samba_cv_unixsocket" = x"yes"; then
8470 cat >>confdefs.h <<\_ACEOF
8471 #define HAVE_UNIXSOCKET 1
8477 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8478 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8479 if test "${samba_cv_socklen_t+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8485 #include "confdefs.h"
8487 #include <sys/types.h>
8492 #include <sys/socket.h>
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503 (eval $ac_compile) 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 samba_cv_socklen_t=yes
8515 echo "$as_me: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8517 samba_cv_socklen_t=no
8519 rm -f conftest.$ac_objext conftest.$ac_ext
8521 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8522 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8523 if test x"$samba_cv_socklen_t" = x"yes"; then
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_SOCKLEN_T_TYPE 1
8531 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8532 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8533 if test "${samba_cv_sig_atomic_t+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 cat >conftest.$ac_ext <<_ACEOF
8538 #line $LINENO "configure"
8539 #include "confdefs.h"
8541 #include <sys/types.h>
8555 rm -f conftest.$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 samba_cv_sig_atomic_t=yes
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.$ac_ext >&5
8571 samba_cv_sig_atomic_t=no
8573 rm -f conftest.$ac_objext conftest.$ac_ext
8575 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8576 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8577 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_SIG_ATOMIC_T_TYPE 1
8585 # stupid headers have the functions but no declaration. grrrr.
8587 echo "$as_me:$LINENO: checking for errno declaration" >&5
8588 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8589 if test "${ac_cv_have_errno_decl+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8594 #line $LINENO "configure"
8595 #include "confdefs.h"
8605 rm -f conftest.$ac_objext
8606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8607 (eval $ac_compile) 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_have_errno_decl=yes
8619 echo "$as_me: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 ac_cv_have_errno_decl=no
8623 rm -f conftest.$ac_objext conftest.$ac_ext
8625 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
8626 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
8627 if test x"$ac_cv_have_errno_decl" = x"yes"; then
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_ERRNO_DECL 1
8636 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
8637 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
8638 if test "${ac_cv_have_setresuid_decl+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 cat >conftest.$ac_ext <<_ACEOF
8643 #line $LINENO "configure"
8644 #include "confdefs.h"
8649 int i = (int)setresuid
8654 rm -f conftest.$ac_objext
8655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656 (eval $ac_compile) 2>&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_have_setresuid_decl=yes
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 ac_cv_have_setresuid_decl=no
8672 rm -f conftest.$ac_objext conftest.$ac_ext
8674 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
8675 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
8676 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_SETRESUID_DECL 1
8685 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
8686 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
8687 if test "${ac_cv_have_setresgid_decl+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 #include "confdefs.h"
8698 int i = (int)setresgid
8703 rm -f conftest.$ac_objext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_cv_have_setresgid_decl=yes
8717 echo "$as_me: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8719 ac_cv_have_setresgid_decl=no
8721 rm -f conftest.$ac_objext conftest.$ac_ext
8723 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
8724 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
8725 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
8727 cat >>confdefs.h <<\_ACEOF
8728 #define HAVE_SETRESGID_DECL 1
8734 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
8735 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
8736 if test "${ac_cv_have_asprintf_decl+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8742 #include "confdefs.h"
8747 int i = (int)asprintf
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_have_asprintf_decl=yes
8766 echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_cv_have_asprintf_decl=no
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
8773 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
8774 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
8776 cat >>confdefs.h <<\_ACEOF
8777 #define HAVE_ASPRINTF_DECL 1
8783 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
8784 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
8785 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 #include "confdefs.h"
8796 int i = (int)vasprintf
8801 rm -f conftest.$ac_objext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803 (eval $ac_compile) 2>&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -s conftest.$ac_objext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_have_vasprintf_decl=yes
8815 echo "$as_me: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8817 ac_cv_have_vasprintf_decl=no
8819 rm -f conftest.$ac_objext conftest.$ac_ext
8821 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
8822 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
8823 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
8825 cat >>confdefs.h <<\_ACEOF
8826 #define HAVE_VASPRINTF_DECL 1
8832 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
8833 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
8834 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 cat >conftest.$ac_ext <<_ACEOF
8839 #line $LINENO "configure"
8840 #include "confdefs.h"
8845 int i = (int)vsnprintf
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_have_vsnprintf_decl=yes
8864 echo "$as_me: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8866 ac_cv_have_vsnprintf_decl=no
8868 rm -f conftest.$ac_objext conftest.$ac_ext
8870 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
8871 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
8872 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
8874 cat >>confdefs.h <<\_ACEOF
8875 #define HAVE_VSNPRINTF_DECL 1
8881 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
8882 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
8883 if test "${ac_cv_have_snprintf_decl+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8889 #include "confdefs.h"
8894 int i = (int)snprintf
8899 rm -f conftest.$ac_objext
8900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8901 (eval $ac_compile) 2>&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try='test -s conftest.$ac_objext'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
8911 ac_cv_have_snprintf_decl=yes
8913 echo "$as_me: failed program was:" >&5
8914 cat conftest.$ac_ext >&5
8915 ac_cv_have_snprintf_decl=no
8917 rm -f conftest.$ac_objext conftest.$ac_ext
8919 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
8920 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
8921 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
8923 cat >>confdefs.h <<\_ACEOF
8924 #define HAVE_SNPRINTF_DECL 1
8930 # and glibc has setresuid under linux but the function does
8931 # nothing until kernel 2.1.44! very dumb.
8932 echo "$as_me:$LINENO: checking for real setresuid" >&5
8933 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
8934 if test "${samba_cv_have_setresuid+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 if test "$cross_compiling" = yes; then
8939 samba_cv_have_setresuid=cross
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8943 #include "confdefs.h"
8945 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
8947 rm -f conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 samba_cv_have_setresuid=yes
8960 echo "$as_me: program exited with status $ac_status" >&5
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8964 samba_cv_have_setresuid=no
8966 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8969 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
8970 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
8971 if test x"$samba_cv_have_setresuid" = x"yes"; then
8973 cat >>confdefs.h <<\_ACEOF
8974 #define HAVE_SETRESUID 1
8979 # Do the same check for setresguid...
8981 echo "$as_me:$LINENO: checking for real setresgid" >&5
8982 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
8983 if test "${samba_cv_have_setresgid+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 if test "$cross_compiling" = yes; then
8988 samba_cv_have_setresgid=cross
8990 cat >conftest.$ac_ext <<_ACEOF
8991 #line $LINENO "configure"
8992 #include "confdefs.h"
8995 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
8997 rm -f conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 samba_cv_have_setresgid=yes
9010 echo "$as_me: program exited with status $ac_status" >&5
9011 echo "$as_me: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9014 samba_cv_have_setresgid=no
9016 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9019 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9020 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9021 if test x"$samba_cv_have_setresgid" = x"yes"; then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_SETRESGID 1
9029 echo "$as_me:$LINENO: checking for working memcmp" >&5
9030 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9031 if test "${ac_cv_func_memcmp_working+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 if test "$cross_compiling" = yes; then
9035 ac_cv_func_memcmp_working=no
9037 cat >conftest.$ac_ext <<_ACEOF
9038 #line $LINENO "configure"
9039 #include "confdefs.h"
9045 /* Some versions of memcmp are not 8-bit clean. */
9046 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9047 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9050 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9051 or more and with at least one buffer not starting on a 4-byte boundary.
9052 William Lewis provided this test program. */
9057 for (i = 0; i < 4; i++)
9061 strcpy (a, "--------01111111");
9062 strcpy (b, "--------10000000");
9063 if (memcmp (a, b, 16) >= 0)
9073 rm -f conftest$ac_exeext
9074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_func_memcmp_working=yes
9086 echo "$as_me: program exited with status $ac_status" >&5
9087 echo "$as_me: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9090 ac_cv_func_memcmp_working=no
9092 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9095 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9096 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9097 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9100 ###############################################
9101 # test for where we get crypt() from
9103 for ac_func in crypt
9105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9106 echo "$as_me:$LINENO: checking for $ac_func" >&5
9107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9108 if eval "test \"\${$as_ac_var+set}\" = set"; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 cat >conftest.$ac_ext <<_ACEOF
9112 #line $LINENO "configure"
9113 #include "confdefs.h"
9114 /* System header to define __stub macros and hopefully few prototypes,
9115 which can conflict with char $ac_func (); below. */
9117 /* Override any gcc2 internal prototype to avoid an error. */
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9129 /* The GNU C library defines this for functions which it implements
9130 to always fail with ENOSYS. Some functions are actually named
9131 something starting with __ and the normal name is an alias. */
9132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 eval "$as_ac_var=yes"
9156 echo "$as_me: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9158 eval "$as_ac_var=no"
9160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9164 if test `eval echo '${'$as_ac_var'}'` = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9172 if test x"$ac_cv_func_crypt" = x"no"; then
9173 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9174 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9175 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lcrypt $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 #line $LINENO "configure"
9182 #include "confdefs.h"
9184 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } &&
9205 { ac_try='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_lib_crypt_crypt=yes
9213 echo "$as_me: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9215 ac_cv_lib_crypt_crypt=no
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9220 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9221 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9222 if test $ac_cv_lib_crypt_crypt = yes; then
9223 AUTHLIBS="$AUTHLIBS -lcrypt";
9225 cat >>confdefs.h <<\_ACEOF
9226 #define HAVE_CRYPT 1
9234 ###############################################
9235 # Readline included by default unless explicitly asked not to
9236 test "${with_readline+set}" != "set" && with_readline=yes
9238 # test for where we get readline() from
9239 echo "$as_me:$LINENO: checking whether to use readline" >&5
9240 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9242 # Check whether --with-readline or --without-readline was given.
9243 if test "${with_readline+set}" = set; then
9244 withval="$with_readline"
9245 case "$with_readline" in
9247 echo "$as_me:$LINENO: result: yes" >&5
9248 echo "${ECHO_T}yes" >&6
9253 for ac_header in readline.h history.h readline/readline.h
9255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257 echo "$as_me:$LINENO: checking for $ac_header" >&5
9258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9265 # Is the header compilable?
9266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line $LINENO "configure"
9270 #include "confdefs.h"
9271 $ac_includes_default
9272 #include <$ac_header>
9274 rm -f conftest.$ac_objext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9276 (eval $ac_compile) 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try='test -s conftest.$ac_objext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_header_compiler=yes
9288 echo "$as_me: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9290 ac_header_compiler=no
9292 rm -f conftest.$ac_objext conftest.$ac_ext
9293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9294 echo "${ECHO_T}$ac_header_compiler" >&6
9296 # Is the header present?
9297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9300 #line $LINENO "configure"
9301 #include "confdefs.h"
9302 #include <$ac_header>
9304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9307 grep -v '^ *+' conftest.er1 >conftest.err
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } >/dev/null; then
9312 if test -s conftest.err; then
9313 ac_cpp_err=$ac_c_preproc_warn_flag
9320 if test -z "$ac_cpp_err"; then
9321 ac_header_preproc=yes
9323 echo "$as_me: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9325 ac_header_preproc=no
9327 rm -f conftest.err conftest.$ac_ext
9328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9329 echo "${ECHO_T}$ac_header_preproc" >&6
9331 # So? What about this header?
9332 case $ac_header_compiler:$ac_header_preproc in
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9346 echo "$as_me:$LINENO: checking for $ac_header" >&5
9347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 eval "$as_ac_Header=$ac_header_preproc"
9353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9358 cat >>confdefs.h <<_ACEOF
9359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9367 for ac_header in readline/history.h
9369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9371 echo "$as_me:$LINENO: checking for $ac_header" >&5
9372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9379 # Is the header compilable?
9380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9384 #include "confdefs.h"
9385 $ac_includes_default
9386 #include <$ac_header>
9388 rm -f conftest.$ac_objext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9390 (eval $ac_compile) 2>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 ac_header_compiler=yes
9402 echo "$as_me: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9404 ac_header_compiler=no
9406 rm -f conftest.$ac_objext conftest.$ac_ext
9407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9408 echo "${ECHO_T}$ac_header_compiler" >&6
9410 # Is the header present?
9411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9415 #include "confdefs.h"
9416 #include <$ac_header>
9418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } >/dev/null; then
9426 if test -s conftest.err; then
9427 ac_cpp_err=$ac_c_preproc_warn_flag
9434 if test -z "$ac_cpp_err"; then
9435 ac_header_preproc=yes
9437 echo "$as_me: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 ac_header_preproc=no
9441 rm -f conftest.err conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9443 echo "${ECHO_T}$ac_header_preproc" >&6
9445 # So? What about this header?
9446 case $ac_header_compiler:$ac_header_preproc in
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9460 echo "$as_me:$LINENO: checking for $ac_header" >&5
9461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 eval "$as_ac_Header=$ac_header_preproc"
9467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9472 cat >>confdefs.h <<_ACEOF
9473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9483 for ac_header in readline.h readline/readline.h
9485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9487 echo "$as_me:$LINENO: checking for $ac_header" >&5
9488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9495 # Is the header compilable?
9496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9498 cat >conftest.$ac_ext <<_ACEOF
9499 #line $LINENO "configure"
9500 #include "confdefs.h"
9501 $ac_includes_default
9502 #include <$ac_header>
9504 rm -f conftest.$ac_objext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9506 (eval $ac_compile) 2>&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -s conftest.$ac_objext'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_header_compiler=yes
9518 echo "$as_me: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9520 ac_header_compiler=no
9522 rm -f conftest.$ac_objext conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9524 echo "${ECHO_T}$ac_header_compiler" >&6
9526 # Is the header present?
9527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9531 #include "confdefs.h"
9532 #include <$ac_header>
9534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9537 grep -v '^ *+' conftest.er1 >conftest.err
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } >/dev/null; then
9542 if test -s conftest.err; then
9543 ac_cpp_err=$ac_c_preproc_warn_flag
9550 if test -z "$ac_cpp_err"; then
9551 ac_header_preproc=yes
9553 echo "$as_me: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 ac_header_preproc=no
9557 rm -f conftest.err conftest.$ac_ext
9558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559 echo "${ECHO_T}$ac_header_preproc" >&6
9561 # So? What about this header?
9562 case $ac_header_compiler:$ac_header_preproc in
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9576 echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 eval "$as_ac_Header=$ac_header_preproc"
9583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9592 for termlib in ncurses curses termcap terminfo termlib; do
9593 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
9594 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
9595 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
9596 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-l${termlib} $LIBS"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9605 /* Override any gcc2 internal prototype to avoid an error. */
9609 /* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 eval "$as_ac_Lib=yes"
9634 echo "$as_me: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9636 eval "$as_ac_Lib=no"
9638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
9642 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
9643 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9644 TERMLIBS="-l${termlib}"; break
9648 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
9649 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
9650 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_check_lib_save_LIBS=$LIBS
9654 LIBS="-lreadline $TERMLIBS $LIBS"
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 #include "confdefs.h"
9659 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9665 char rl_callback_handler_install ();
9669 rl_callback_handler_install ();
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -s conftest$ac_exeext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 ac_cv_lib_readline_rl_callback_handler_install=yes
9688 echo "$as_me: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 ac_cv_lib_readline_rl_callback_handler_install=no
9692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9695 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
9696 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
9697 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
9698 TERMLIBS="-lreadline $TERMLIBS"
9700 cat >>confdefs.h <<\_ACEOF
9701 #define HAVE_LIBREADLINE 1
9715 echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6
9719 echo "$as_me:$LINENO: result: yes" >&5
9720 echo "${ECHO_T}yes" >&6
9722 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
9723 # alternate readline path
9725 _cppflags=${CPPFLAGS}
9727 # Add additional search path
9728 LDFLAGS="-L$with_readline/lib $LDFLAGS"
9729 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
9734 for ac_header in readline.h history.h readline/readline.h
9736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9738 echo "$as_me:$LINENO: checking for $ac_header" >&5
9739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9746 # Is the header compilable?
9747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9750 #line $LINENO "configure"
9751 #include "confdefs.h"
9752 $ac_includes_default
9753 #include <$ac_header>
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_header_compiler=yes
9769 echo "$as_me: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 ac_header_compiler=no
9773 rm -f conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 echo "${ECHO_T}$ac_header_compiler" >&6
9777 # Is the header present?
9778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9783 #include <$ac_header>
9785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9788 grep -v '^ *+' conftest.er1 >conftest.err
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } >/dev/null; then
9793 if test -s conftest.err; then
9794 ac_cpp_err=$ac_c_preproc_warn_flag
9801 if test -z "$ac_cpp_err"; then
9802 ac_header_preproc=yes
9804 echo "$as_me: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 ac_header_preproc=no
9808 rm -f conftest.err conftest.$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9810 echo "${ECHO_T}$ac_header_preproc" >&6
9812 # So? What about this header?
9813 case $ac_header_compiler:$ac_header_preproc in
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9827 echo "$as_me:$LINENO: checking for $ac_header" >&5
9828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 eval "$as_ac_Header=$ac_header_preproc"
9834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9839 cat >>confdefs.h <<_ACEOF
9840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9848 for ac_header in readline/history.h
9850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9852 echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 # Is the header compilable?
9861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9863 cat >conftest.$ac_ext <<_ACEOF
9864 #line $LINENO "configure"
9865 #include "confdefs.h"
9866 $ac_includes_default
9867 #include <$ac_header>
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_header_compiler=yes
9883 echo "$as_me: failed program was:" >&5
9884 cat conftest.$ac_ext >&5
9885 ac_header_compiler=no
9887 rm -f conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9889 echo "${ECHO_T}$ac_header_compiler" >&6
9891 # Is the header present?
9892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 #include "confdefs.h"
9897 #include <$ac_header>
9899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev/null; then
9907 if test -s conftest.err; then
9908 ac_cpp_err=$ac_c_preproc_warn_flag
9915 if test -z "$ac_cpp_err"; then
9916 ac_header_preproc=yes
9918 echo "$as_me: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 ac_header_preproc=no
9922 rm -f conftest.err conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9924 echo "${ECHO_T}$ac_header_preproc" >&6
9926 # So? What about this header?
9927 case $ac_header_compiler:$ac_header_preproc in
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9941 echo "$as_me:$LINENO: checking for $ac_header" >&5
9942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 eval "$as_ac_Header=$ac_header_preproc"
9948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9953 cat >>confdefs.h <<_ACEOF
9954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9964 for ac_header in readline.h readline/readline.h
9966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968 echo "$as_me:$LINENO: checking for $ac_header" >&5
9969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 # Is the header compilable?
9977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9981 #include "confdefs.h"
9982 $ac_includes_default
9983 #include <$ac_header>
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -s conftest.$ac_objext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_header_compiler=yes
9999 echo "$as_me: failed program was:" >&5
10000 cat conftest.$ac_ext >&5
10001 ac_header_compiler=no
10003 rm -f conftest.$ac_objext conftest.$ac_ext
10004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10005 echo "${ECHO_T}$ac_header_compiler" >&6
10007 # Is the header present?
10008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10011 #line $LINENO "configure"
10012 #include "confdefs.h"
10013 #include <$ac_header>
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev/null; then
10023 if test -s conftest.err; then
10024 ac_cpp_err=$ac_c_preproc_warn_flag
10031 if test -z "$ac_cpp_err"; then
10032 ac_header_preproc=yes
10034 echo "$as_me: failed program was:" >&5
10035 cat conftest.$ac_ext >&5
10036 ac_header_preproc=no
10038 rm -f conftest.err conftest.$ac_ext
10039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10040 echo "${ECHO_T}$ac_header_preproc" >&6
10042 # So? What about this header?
10043 case $ac_header_compiler:$ac_header_preproc in
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10057 echo "$as_me:$LINENO: checking for $ac_header" >&5
10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 eval "$as_ac_Header=$ac_header_preproc"
10064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10069 cat >>confdefs.h <<_ACEOF
10070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10073 for termlib in ncurses curses termcap terminfo termlib; do
10074 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10075 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10076 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10077 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-l${termlib} $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 #include "confdefs.h"
10086 /* Override any gcc2 internal prototype to avoid an error. */
10090 /* We use char because int might match the return type of a gcc2
10091 builtin and then its argument prototype would still apply. */
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 eval "$as_ac_Lib=yes"
10115 echo "$as_me: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 eval "$as_ac_Lib=no"
10119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10120 LIBS=$ac_check_lib_save_LIBS
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10124 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10125 TERMLIBS="-l${termlib}"; break
10129 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10130 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10131 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lreadline $TERMLIBS $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 #line $LINENO "configure"
10138 #include "confdefs.h"
10140 /* Override any gcc2 internal prototype to avoid an error. */
10144 /* We use char because int might match the return type of a gcc2
10145 builtin and then its argument prototype would still apply. */
10146 char rl_callback_handler_install ();
10150 rl_callback_handler_install ();
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_lib_readline_rl_callback_handler_install=yes
10169 echo "$as_me: failed program was:" >&5
10170 cat conftest.$ac_ext >&5
10171 ac_cv_lib_readline_rl_callback_handler_install=no
10173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10176 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10177 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10178 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10179 TERMLDFLAGS="-L$with_readline/lib"
10180 TERMCPPFLAGS="-I$with_readline/include"
10181 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10182 TERMLIBS="-lreadline $TERMLIBS"
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_LIBREADLINE 1
10190 TERMLIBS= CPPFLAGS=$_cppflags
10202 echo "$as_me:$LINENO: result: no" >&5
10203 echo "${ECHO_T}no" >&6
10209 # The readline API changed slightly from readline3 to readline4, so
10210 # code will generate warnings on one of them unless we have a few
10212 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10213 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10214 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 ac_check_lib_save_LIBS=$LIBS
10218 LIBS="-lreadline $TERMLIBS $LIBS"
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10223 /* Override any gcc2 internal prototype to avoid an error. */
10227 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */
10229 char rl_completion_matches ();
10233 rl_completion_matches ();
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_lib_readline_rl_completion_matches=yes
10252 echo "$as_me: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 ac_cv_lib_readline_rl_completion_matches=no
10256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10259 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10260 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10261 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10263 cat >>confdefs.h <<\_ACEOF
10264 #define HAVE_NEW_LIBREADLINE 1
10270 # The following test taken from the cvs sources
10271 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10272 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10273 # libsocket.so which has a bad implementation of gethostbyname (it
10274 # only looks in /etc/hosts), so we only look for -lsocket if we need
10277 for ac_func in connect
10279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10280 echo "$as_me:$LINENO: checking for $ac_func" >&5
10281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10282 if eval "test \"\${$as_ac_var+set}\" = set"; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 cat >conftest.$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10287 #include "confdefs.h"
10288 /* System header to define __stub macros and hopefully few prototypes,
10289 which can conflict with char $ac_func (); below. */
10290 #include <assert.h>
10291 /* Override any gcc2 internal prototype to avoid an error. */
10295 /* We use char because int might match the return type of a gcc2
10296 builtin and then its argument prototype would still apply. */
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318 (eval $ac_link) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -s conftest$ac_exeext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 eval "$as_ac_var=yes"
10330 echo "$as_me: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10332 eval "$as_ac_var=no"
10334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10338 if test `eval echo '${'$as_ac_var'}'` = yes; then
10339 cat >>confdefs.h <<_ACEOF
10340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 if test x"$ac_cv_func_connect" = x"no"; then
10350 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10351 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10352 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 ac_check_lib_save_LIBS=$LIBS
10356 LIBS="-lnsl_s $LIBS"
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10361 /* Override any gcc2 internal prototype to avoid an error. */
10365 /* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10378 (eval $ac_link) 2>&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -s conftest$ac_exeext'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }; then
10388 ac_cv_lib_nsl_s_printf=yes
10390 echo "$as_me: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 ac_cv_lib_nsl_s_printf=no
10394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10398 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10399 if test $ac_cv_lib_nsl_s_printf = yes; then
10400 cat >>confdefs.h <<_ACEOF
10401 #define HAVE_LIBNSL_S 1
10404 LIBS="-lnsl_s $LIBS"
10412 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10413 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10414 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 ac_check_lib_save_LIBS=$LIBS
10419 cat >conftest.$ac_ext <<_ACEOF
10420 #line $LINENO "configure"
10421 #include "confdefs.h"
10423 /* Override any gcc2 internal prototype to avoid an error. */
10427 /* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try='test -s conftest$ac_exeext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_lib_nsl_printf=yes
10452 echo "$as_me: failed program was:" >&5
10453 cat conftest.$ac_ext >&5
10454 ac_cv_lib_nsl_printf=no
10456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10457 LIBS=$ac_check_lib_save_LIBS
10459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10460 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10461 if test $ac_cv_lib_nsl_printf = yes; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_LIBNSL 1
10474 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10475 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10476 if test "${ac_cv_lib_socket_connect+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-lsocket $LIBS"
10481 cat >conftest.$ac_ext <<_ACEOF
10482 #line $LINENO "configure"
10483 #include "confdefs.h"
10485 /* Override any gcc2 internal prototype to avoid an error. */
10489 /* We use char because int might match the return type of a gcc2
10490 builtin and then its argument prototype would still apply. */
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -s conftest$ac_exeext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_cv_lib_socket_connect=yes
10514 echo "$as_me: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 ac_cv_lib_socket_connect=no
10518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10521 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10522 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10523 if test $ac_cv_lib_socket_connect = yes; then
10524 cat >>confdefs.h <<_ACEOF
10525 #define HAVE_LIBSOCKET 1
10528 LIBS="-lsocket $LIBS"
10536 echo "$as_me:$LINENO: checking for connect in -linet" >&5
10537 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
10538 if test "${ac_cv_lib_inet_connect+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 ac_check_lib_save_LIBS=$LIBS
10542 LIBS="-linet $LIBS"
10543 cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 #include "confdefs.h"
10547 /* Override any gcc2 internal prototype to avoid an error. */
10551 /* We use char because int might match the return type of a gcc2
10552 builtin and then its argument prototype would still apply. */
10562 rm -f conftest.$ac_objext conftest$ac_exeext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -s conftest$ac_exeext'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
10574 ac_cv_lib_inet_connect=yes
10576 echo "$as_me: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 ac_cv_lib_inet_connect=no
10580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10583 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
10584 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
10585 if test $ac_cv_lib_inet_connect = yes; then
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_LIBINET 1
10590 LIBS="-linet $LIBS"
10595 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
10596 test x"$ac_cv_lib_inet_connect" = x"yes"; then
10597 # ac_cv_func_connect=yes
10598 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
10600 cat >>confdefs.h <<\_ACEOF
10601 #define HAVE_CONNECT 1
10607 ###############################################
10608 # test for where we get get_yp_default_domain() from
10610 for ac_func in yp_get_default_domain
10612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10613 echo "$as_me:$LINENO: checking for $ac_func" >&5
10614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_var+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10619 #line $LINENO "configure"
10620 #include "confdefs.h"
10621 /* System header to define __stub macros and hopefully few prototypes,
10622 which can conflict with char $ac_func (); below. */
10623 #include <assert.h>
10624 /* Override any gcc2 internal prototype to avoid an error. */
10628 /* We use char because int might match the return type of a gcc2
10629 builtin and then its argument prototype would still apply. */
10636 /* The GNU C library defines this for functions which it implements
10637 to always fail with ENOSYS. Some functions are actually named
10638 something starting with __ and the normal name is an alias. */
10639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -s conftest$ac_exeext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 eval "$as_ac_var=yes"
10663 echo "$as_me: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 eval "$as_ac_var=no"
10667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10671 if test `eval echo '${'$as_ac_var'}'` = yes; then
10672 cat >>confdefs.h <<_ACEOF
10673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10679 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
10680 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
10681 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
10682 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 ac_check_lib_save_LIBS=$LIBS
10687 cat >conftest.$ac_ext <<_ACEOF
10688 #line $LINENO "configure"
10689 #include "confdefs.h"
10691 /* Override any gcc2 internal prototype to avoid an error. */
10695 /* We use char because int might match the return type of a gcc2
10696 builtin and then its argument prototype would still apply. */
10697 char yp_get_default_domain ();
10701 yp_get_default_domain ();
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10708 (eval $ac_link) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -s conftest$ac_exeext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
10718 ac_cv_lib_nsl_yp_get_default_domain=yes
10720 echo "$as_me: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10722 ac_cv_lib_nsl_yp_get_default_domain=no
10724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10725 LIBS=$ac_check_lib_save_LIBS
10727 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
10728 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
10729 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
10730 LIBS="$LIBS -lnsl";
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
10740 # Check if we have execl, if not we need to compile smbrun.
10742 for ac_func in execl
10744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10745 echo "$as_me:$LINENO: checking for $ac_func" >&5
10746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10747 if eval "test \"\${$as_ac_var+set}\" = set"; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 cat >conftest.$ac_ext <<_ACEOF
10751 #line $LINENO "configure"
10752 #include "confdefs.h"
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below. */
10755 #include <assert.h>
10756 /* Override any gcc2 internal prototype to avoid an error. */
10760 /* We use char because int might match the return type of a gcc2
10761 builtin and then its argument prototype would still apply. */
10768 /* The GNU C library defines this for functions which it implements
10769 to always fail with ENOSYS. Some functions are actually named
10770 something starting with __ and the normal name is an alias. */
10771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 eval "$as_ac_var=yes"
10795 echo "$as_me: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 eval "$as_ac_var=no"
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10803 if test `eval echo '${'$as_ac_var'}'` = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10811 if test x"$ac_cv_func_execl" = x"no"; then
10812 RUNPROG="bin/smbrun"
10836 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
10838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10839 echo "$as_me:$LINENO: checking for $ac_func" >&5
10840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_var+set}\" = set"; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 /* System header to define __stub macros and hopefully few prototypes,
10848 which can conflict with char $ac_func (); below. */
10849 #include <assert.h>
10850 /* Override any gcc2 internal prototype to avoid an error. */
10854 /* We use char because int might match the return type of a gcc2
10855 builtin and then its argument prototype would still apply. */
10862 /* The GNU C library defines this for functions which it implements
10863 to always fail with ENOSYS. Some functions are actually named
10864 something starting with __ and the normal name is an alias. */
10865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877 (eval $ac_link) 2>&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -s conftest$ac_exeext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 eval "$as_ac_var=yes"
10889 echo "$as_me: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10891 eval "$as_ac_var=no"
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10897 if test `eval echo '${'$as_ac_var'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10916 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
10918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10919 echo "$as_me:$LINENO: checking for $ac_func" >&5
10920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10921 if eval "test \"\${$as_ac_var+set}\" = set"; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10927 /* System header to define __stub macros and hopefully few prototypes,
10928 which can conflict with char $ac_func (); below. */
10929 #include <assert.h>
10930 /* Override any gcc2 internal prototype to avoid an error. */
10934 /* We use char because int might match the return type of a gcc2
10935 builtin and then its argument prototype would still apply. */
10942 /* The GNU C library defines this for functions which it implements
10943 to always fail with ENOSYS. Some functions are actually named
10944 something starting with __ and the normal name is an alias. */
10945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10957 (eval $ac_link) 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 eval "$as_ac_var=yes"
10969 echo "$as_me: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 eval "$as_ac_var=no"
10973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10977 if test `eval echo '${'$as_ac_var'}'` = yes; then
10978 cat >>confdefs.h <<_ACEOF
10979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10996 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
10998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10999 echo "$as_me:$LINENO: checking for $ac_func" >&5
11000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11001 if eval "test \"\${$as_ac_var+set}\" = set"; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 cat >conftest.$ac_ext <<_ACEOF
11005 #line $LINENO "configure"
11006 #include "confdefs.h"
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below. */
11009 #include <assert.h>
11010 /* Override any gcc2 internal prototype to avoid an error. */
11014 /* We use char because int might match the return type of a gcc2
11015 builtin and then its argument prototype would still apply. */
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -s conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 eval "$as_ac_var=yes"
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11074 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11077 echo "$as_me:$LINENO: checking for $ac_func" >&5
11078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11079 if eval "test \"\${$as_ac_var+set}\" = set"; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 cat >conftest.$ac_ext <<_ACEOF
11083 #line $LINENO "configure"
11084 #include "confdefs.h"
11085 /* System header to define __stub macros and hopefully few prototypes,
11086 which can conflict with char $ac_func (); below. */
11087 #include <assert.h>
11088 /* Override any gcc2 internal prototype to avoid an error. */
11092 /* We use char because int might match the return type of a gcc2
11093 builtin and then its argument prototype would still apply. */
11100 /* The GNU C library defines this for functions which it implements
11101 to always fail with ENOSYS. Some functions are actually named
11102 something starting with __ and the normal name is an alias. */
11103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115 (eval $ac_link) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -s conftest$ac_exeext'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; }; then
11125 eval "$as_ac_var=yes"
11127 echo "$as_me: failed program was:" >&5
11128 cat conftest.$ac_ext >&5
11129 eval "$as_ac_var=no"
11131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11135 if test `eval echo '${'$as_ac_var'}'` = yes; then
11136 cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11151 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11154 echo "$as_me:$LINENO: checking for $ac_func" >&5
11155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11156 if eval "test \"\${$as_ac_var+set}\" = set"; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 #include "confdefs.h"
11162 /* System header to define __stub macros and hopefully few prototypes,
11163 which can conflict with char $ac_func (); below. */
11164 #include <assert.h>
11165 /* Override any gcc2 internal prototype to avoid an error. */
11169 /* We use char because int might match the return type of a gcc2
11170 builtin and then its argument prototype would still apply. */
11177 /* The GNU C library defines this for functions which it implements
11178 to always fail with ENOSYS. Some functions are actually named
11179 something starting with __ and the normal name is an alias. */
11180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 eval "$as_ac_var=yes"
11204 echo "$as_me: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 eval "$as_ac_var=no"
11208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11230 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11233 echo "$as_me:$LINENO: checking for $ac_func" >&5
11234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11235 if eval "test \"\${$as_ac_var+set}\" = set"; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11239 #line $LINENO "configure"
11240 #include "confdefs.h"
11241 /* System header to define __stub macros and hopefully few prototypes,
11242 which can conflict with char $ac_func (); below. */
11243 #include <assert.h>
11244 /* Override any gcc2 internal prototype to avoid an error. */
11248 /* We use char because int might match the return type of a gcc2
11249 builtin and then its argument prototype would still apply. */
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271 (eval $ac_link) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -s conftest$ac_exeext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 eval "$as_ac_var=yes"
11283 echo "$as_me: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 eval "$as_ac_var=no"
11287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11291 if test `eval echo '${'$as_ac_var'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11307 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11310 echo "$as_me:$LINENO: checking for $ac_func" >&5
11311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11312 if eval "test \"\${$as_ac_var+set}\" = set"; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11316 #line $LINENO "configure"
11317 #include "confdefs.h"
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below. */
11320 #include <assert.h>
11321 /* Override any gcc2 internal prototype to avoid an error. */
11325 /* We use char because int might match the return type of a gcc2
11326 builtin and then its argument prototype would still apply. */
11333 /* The GNU C library defines this for functions which it implements
11334 to always fail with ENOSYS. Some functions are actually named
11335 something starting with __ and the normal name is an alias. */
11336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
11352 { ac_try='test -s conftest$ac_exeext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 eval "$as_ac_var=yes"
11360 echo "$as_me: failed program was:" >&5
11361 cat conftest.$ac_ext >&5
11362 eval "$as_ac_var=no"
11364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11368 if test `eval echo '${'$as_ac_var'}'` = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11383 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386 echo "$as_me:$LINENO: checking for $ac_func" >&5
11387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_var+set}\" = set"; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11392 #line $LINENO "configure"
11393 #include "confdefs.h"
11394 /* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char $ac_func (); below. */
11396 #include <assert.h>
11397 /* Override any gcc2 internal prototype to avoid an error. */
11401 /* We use char because int might match the return type of a gcc2
11402 builtin and then its argument prototype would still apply. */
11409 /* The GNU C library defines this for functions which it implements
11410 to always fail with ENOSYS. Some functions are actually named
11411 something starting with __ and the normal name is an alias. */
11412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424 (eval $ac_link) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "$as_ac_var=yes"
11436 echo "$as_me: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11438 eval "$as_ac_var=no"
11440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11444 if test `eval echo '${'$as_ac_var'}'` = yes; then
11445 cat >>confdefs.h <<_ACEOF
11446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11463 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
11465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11466 echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11468 if eval "test \"\${$as_ac_var+set}\" = set"; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 cat >conftest.$ac_ext <<_ACEOF
11472 #line $LINENO "configure"
11473 #include "confdefs.h"
11474 /* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func (); below. */
11476 #include <assert.h>
11477 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11489 /* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 eval "$as_ac_var=yes"
11516 echo "$as_me: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11518 eval "$as_ac_var=no"
11520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525 cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11536 for ac_func in syslog vsyslog getgrouplist timegm
11538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11539 echo "$as_me:$LINENO: checking for $ac_func" >&5
11540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11541 if eval "test \"\${$as_ac_var+set}\" = set"; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11545 #line $LINENO "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func (); below. */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error. */
11554 /* We use char because int might match the return type of a gcc2
11555 builtin and then its argument prototype would still apply. */
11562 /* The GNU C library defines this for functions which it implements
11563 to always fail with ENOSYS. Some functions are actually named
11564 something starting with __ and the normal name is an alias. */
11565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 eval "$as_ac_var=yes"
11589 echo "$as_me: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11591 eval "$as_ac_var=no"
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11597 if test `eval echo '${'$as_ac_var'}'` = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11605 # setbuffer is needed for smbtorture
11607 for ac_func in setbuffer
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11612 if eval "test \"\${$as_ac_var+set}\" = set"; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618 /* System header to define __stub macros and hopefully few prototypes,
11619 which can conflict with char $ac_func (); below. */
11620 #include <assert.h>
11621 /* Override any gcc2 internal prototype to avoid an error. */
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11633 /* The GNU C library defines this for functions which it implements
11634 to always fail with ENOSYS. Some functions are actually named
11635 something starting with __ and the normal name is an alias. */
11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 eval "$as_ac_var=no"
11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11677 # syscall() is needed for smbwrapper.
11679 for ac_func in syscall
11681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 echo "$as_me:$LINENO: checking for $ac_func" >&5
11683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11684 if eval "test \"\${$as_ac_var+set}\" = set"; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 cat >conftest.$ac_ext <<_ACEOF
11688 #line $LINENO "configure"
11689 #include "confdefs.h"
11690 /* System header to define __stub macros and hopefully few prototypes,
11691 which can conflict with char $ac_func (); below. */
11692 #include <assert.h>
11693 /* Override any gcc2 internal prototype to avoid an error. */
11697 /* We use char because int might match the return type of a gcc2
11698 builtin and then its argument prototype would still apply. */
11705 /* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
11708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 eval "$as_ac_var=yes"
11732 echo "$as_me: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
11758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11759 echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11761 if eval "test \"\${$as_ac_var+set}\" = set"; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11765 #line $LINENO "configure"
11766 #include "confdefs.h"
11767 /* System header to define __stub macros and hopefully few prototypes,
11768 which can conflict with char $ac_func (); below. */
11769 #include <assert.h>
11770 /* Override any gcc2 internal prototype to avoid an error. */
11774 /* We use char because int might match the return type of a gcc2
11775 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 eval "$as_ac_var=yes"
11809 echo "$as_me: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 eval "$as_ac_var=no"
11813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11817 if test `eval echo '${'$as_ac_var'}'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11832 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
11834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11835 echo "$as_me:$LINENO: checking for $ac_func" >&5
11836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11837 if eval "test \"\${$as_ac_var+set}\" = set"; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 cat >conftest.$ac_ext <<_ACEOF
11841 #line $LINENO "configure"
11842 #include "confdefs.h"
11843 /* System header to define __stub macros and hopefully few prototypes,
11844 which can conflict with char $ac_func (); below. */
11845 #include <assert.h>
11846 /* Override any gcc2 internal prototype to avoid an error. */
11850 /* We use char because int might match the return type of a gcc2
11851 builtin and then its argument prototype would still apply. */
11858 /* The GNU C library defines this for functions which it implements
11859 to always fail with ENOSYS. Some functions are actually named
11860 something starting with __ and the normal name is an alias. */
11861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11871 rm -f conftest.$ac_objext conftest$ac_exeext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11873 (eval $ac_link) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 eval "$as_ac_var=yes"
11885 echo "$as_me: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11887 eval "$as_ac_var=no"
11889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11893 if test `eval echo '${'$as_ac_var'}'` = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 for ac_func in __getcwd _getcwd
11905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906 echo "$as_me:$LINENO: checking for $ac_func" >&5
11907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11908 if eval "test \"\${$as_ac_var+set}\" = set"; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11912 #line $LINENO "configure"
11913 #include "confdefs.h"
11914 /* System header to define __stub macros and hopefully few prototypes,
11915 which can conflict with char $ac_func (); below. */
11916 #include <assert.h>
11917 /* Override any gcc2 internal prototype to avoid an error. */
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11929 /* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
11932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944 (eval $ac_link) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -s conftest$ac_exeext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 eval "$as_ac_var=yes"
11956 echo "$as_me: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11958 eval "$as_ac_var=no"
11960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11964 if test `eval echo '${'$as_ac_var'}'` = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11975 for ac_func in __xstat __fxstat __lxstat
11977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11978 echo "$as_me:$LINENO: checking for $ac_func" >&5
11979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11980 if eval "test \"\${$as_ac_var+set}\" = set"; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 #include "confdefs.h"
11986 /* System header to define __stub macros and hopefully few prototypes,
11987 which can conflict with char $ac_func (); below. */
11988 #include <assert.h>
11989 /* Override any gcc2 internal prototype to avoid an error. */
11993 /* We use char because int might match the return type of a gcc2
11994 builtin and then its argument prototype would still apply. */
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12014 rm -f conftest.$ac_objext conftest$ac_exeext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12016 (eval $ac_link) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -s conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 eval "$as_ac_var=yes"
12028 echo "$as_me: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12036 if test `eval echo '${'$as_ac_var'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12050 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_var+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 cat >conftest.$ac_ext <<_ACEOF
12059 #line $LINENO "configure"
12060 #include "confdefs.h"
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below. */
12063 #include <assert.h>
12064 /* Override any gcc2 internal prototype to avoid an error. */
12068 /* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 eval "$as_ac_var=yes"
12103 echo "$as_me: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 eval "$as_ac_var=no"
12107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12111 if test `eval echo '${'$as_ac_var'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below. */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error. */
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12153 /* The GNU C library defines this for functions which it implements
12154 to always fail with ENOSYS. Some functions are actually named
12155 something starting with __ and the normal name is an alias. */
12156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 eval "$as_ac_var=yes"
12180 echo "$as_me: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 eval "$as_ac_var=no"
12184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12202 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12205 echo "$as_me:$LINENO: checking for $ac_func" >&5
12206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12207 if eval "test \"\${$as_ac_var+set}\" = set"; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 #include "confdefs.h"
12213 /* System header to define __stub macros and hopefully few prototypes,
12214 which can conflict with char $ac_func (); below. */
12215 #include <assert.h>
12216 /* Override any gcc2 internal prototype to avoid an error. */
12220 /* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12243 (eval $ac_link) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -s conftest$ac_exeext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 eval "$as_ac_var=yes"
12255 echo "$as_me: failed program was:" >&5
12256 cat conftest.$ac_ext >&5
12257 eval "$as_ac_var=no"
12259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12263 if test `eval echo '${'$as_ac_var'}'` = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12278 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12281 echo "$as_me:$LINENO: checking for $ac_func" >&5
12282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12283 if eval "test \"\${$as_ac_var+set}\" = set"; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 cat >conftest.$ac_ext <<_ACEOF
12287 #line $LINENO "configure"
12288 #include "confdefs.h"
12289 /* System header to define __stub macros and hopefully few prototypes,
12290 which can conflict with char $ac_func (); below. */
12291 #include <assert.h>
12292 /* Override any gcc2 internal prototype to avoid an error. */
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12304 /* The GNU C library defines this for functions which it implements
12305 to always fail with ENOSYS. Some functions are actually named
12306 something starting with __ and the normal name is an alias. */
12307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -s conftest$ac_exeext'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 eval "$as_ac_var=yes"
12331 echo "$as_me: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 eval "$as_ac_var=no"
12335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12339 if test `eval echo '${'$as_ac_var'}'` = yes; then
12340 cat >>confdefs.h <<_ACEOF
12341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12351 for ac_func in _write __write _fork __fork
12353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12354 echo "$as_me:$LINENO: checking for $ac_func" >&5
12355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12356 if eval "test \"\${$as_ac_var+set}\" = set"; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 #include "confdefs.h"
12362 /* System header to define __stub macros and hopefully few prototypes,
12363 which can conflict with char $ac_func (); below. */
12364 #include <assert.h>
12365 /* Override any gcc2 internal prototype to avoid an error. */
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12377 /* The GNU C library defines this for functions which it implements
12378 to always fail with ENOSYS. Some functions are actually named
12379 something starting with __ and the normal name is an alias. */
12380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -s conftest$ac_exeext'
12397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 eval "$as_ac_var=yes"
12404 echo "$as_me: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 eval "$as_ac_var=no"
12408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12412 if test `eval echo '${'$as_ac_var'}'` = yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12426 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
12428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12429 echo "$as_me:$LINENO: checking for $ac_func" >&5
12430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12431 if eval "test \"\${$as_ac_var+set}\" = set"; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12435 #line $LINENO "configure"
12436 #include "confdefs.h"
12437 /* System header to define __stub macros and hopefully few prototypes,
12438 which can conflict with char $ac_func (); below. */
12439 #include <assert.h>
12440 /* Override any gcc2 internal prototype to avoid an error. */
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12452 /* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
12455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 eval "$as_ac_var=yes"
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 eval "$as_ac_var=no"
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12487 if test `eval echo '${'$as_ac_var'}'` = yes; then
12488 cat >>confdefs.h <<_ACEOF
12489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12502 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
12504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12505 echo "$as_me:$LINENO: checking for $ac_func" >&5
12506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12507 if eval "test \"\${$as_ac_var+set}\" = set"; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12512 #include "confdefs.h"
12513 /* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below. */
12515 #include <assert.h>
12516 /* Override any gcc2 internal prototype to avoid an error. */
12520 /* We use char because int might match the return type of a gcc2
12521 builtin and then its argument prototype would still apply. */
12528 /* The GNU C library defines this for functions which it implements
12529 to always fail with ENOSYS. Some functions are actually named
12530 something starting with __ and the normal name is an alias. */
12531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543 (eval $ac_link) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -s conftest$ac_exeext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 eval "$as_ac_var=yes"
12555 echo "$as_me: failed program was:" >&5
12556 cat conftest.$ac_ext >&5
12557 eval "$as_ac_var=no"
12559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12563 if test `eval echo '${'$as_ac_var'}'` = yes; then
12564 cat >>confdefs.h <<_ACEOF
12565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12577 for ac_func in pread _pread __pread pread64 _pread64 __pread64
12579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12580 echo "$as_me:$LINENO: checking for $ac_func" >&5
12581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_var+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 cat >conftest.$ac_ext <<_ACEOF
12586 #line $LINENO "configure"
12587 #include "confdefs.h"
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below. */
12590 #include <assert.h>
12591 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12603 /* The GNU C library defines this for functions which it implements
12604 to always fail with ENOSYS. Some functions are actually named
12605 something starting with __ and the normal name is an alias. */
12606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -s conftest$ac_exeext'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 eval "$as_ac_var=yes"
12630 echo "$as_me: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12632 eval "$as_ac_var=no"
12634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12638 if test `eval echo '${'$as_ac_var'}'` = yes; then
12639 cat >>confdefs.h <<_ACEOF
12640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12652 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
12654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12655 echo "$as_me:$LINENO: checking for $ac_func" >&5
12656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12657 if eval "test \"\${$as_ac_var+set}\" = set"; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12661 #line $LINENO "configure"
12662 #include "confdefs.h"
12663 /* System header to define __stub macros and hopefully few prototypes,
12664 which can conflict with char $ac_func (); below. */
12665 #include <assert.h>
12666 /* Override any gcc2 internal prototype to avoid an error. */
12670 /* We use char because int might match the return type of a gcc2
12671 builtin and then its argument prototype would still apply. */
12678 /* The GNU C library defines this for functions which it implements
12679 to always fail with ENOSYS. Some functions are actually named
12680 something starting with __ and the normal name is an alias. */
12681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693 (eval $ac_link) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -s conftest$ac_exeext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 eval "$as_ac_var=yes"
12705 echo "$as_me: failed program was:" >&5
12706 cat conftest.$ac_ext >&5
12707 eval "$as_ac_var=no"
12709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12713 if test `eval echo '${'$as_ac_var'}'` = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12725 for ac_func in open64 _open64 __open64 creat64
12727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12728 echo "$as_me:$LINENO: checking for $ac_func" >&5
12729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12730 if eval "test \"\${$as_ac_var+set}\" = set"; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 cat >conftest.$ac_ext <<_ACEOF
12734 #line $LINENO "configure"
12735 #include "confdefs.h"
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below. */
12738 #include <assert.h>
12739 /* Override any gcc2 internal prototype to avoid an error. */
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12766 (eval $ac_link) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 eval "$as_ac_var=yes"
12778 echo "$as_me: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12780 eval "$as_ac_var=no"
12782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787 cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12796 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
12799 if test x$ac_cv_func_stat64 = xno ; then
12800 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
12801 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
12802 cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12806 #if defined(HAVE_UNISTD_H)
12807 #include <unistd.h>
12809 #include <sys/stat.h>
12814 struct stat64 st64; exit(stat64(".",&st64));
12819 rm -f conftest.$ac_objext conftest$ac_exeext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821 (eval $ac_link) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12831 ac_cv_func_stat64=yes
12833 echo "$as_me: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
12838 echo "${ECHO_T}$ac_cv_func_stat64" >&6
12839 if test x$ac_cv_func_stat64 = xyes ; then
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_STAT64 1
12848 if test x$ac_cv_func_lstat64 = xno ; then
12849 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
12850 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
12851 cat >conftest.$ac_ext <<_ACEOF
12852 #line $LINENO "configure"
12853 #include "confdefs.h"
12855 #if defined(HAVE_UNISTD_H)
12856 #include <unistd.h>
12858 #include <sys/stat.h>
12863 struct stat64 st64; exit(lstat64(".",&st64));
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12870 (eval $ac_link) 2>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try='test -s conftest$ac_exeext'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
12880 ac_cv_func_lstat64=yes
12882 echo "$as_me: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12886 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
12887 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
12888 if test x$ac_cv_func_lstat64 = xyes ; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_LSTAT64 Whether lstat64() is available
12896 if test x$ac_cv_func_fstat64 = xno ; then
12897 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
12898 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
12899 cat >conftest.$ac_ext <<_ACEOF
12900 #line $LINENO "configure"
12901 #include "confdefs.h"
12903 #if defined(HAVE_UNISTD_H)
12904 #include <unistd.h>
12906 #include <sys/stat.h>
12911 struct stat64 st64; exit(fstat64(0,&st64));
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -s conftest$ac_exeext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_cv_func_fstat64=yes
12930 echo "$as_me: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12934 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
12935 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
12936 if test x$ac_cv_func_fstat64 = xyes ; then
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FSTAT64 1
12945 #####################################
12946 # we might need the resolv library on some systems
12948 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
12949 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
12950 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-lresolv $LIBS"
12955 cat >conftest.$ac_ext <<_ACEOF
12956 #line $LINENO "configure"
12957 #include "confdefs.h"
12959 /* Override any gcc2 internal prototype to avoid an error. */
12963 /* We use char because int might match the return type of a gcc2
12964 builtin and then its argument prototype would still apply. */
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12976 (eval $ac_link) 2>&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -s conftest$ac_exeext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
12986 ac_cv_lib_resolv_dn_expand=yes
12988 echo "$as_me: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 ac_cv_lib_resolv_dn_expand=no
12992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12995 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
12996 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
12997 if test $ac_cv_lib_resolv_dn_expand = yes; then
12998 cat >>confdefs.h <<_ACEOF
12999 #define HAVE_LIBRESOLV 1
13002 LIBS="-lresolv $LIBS"
13008 # Check for the functions putprpwnam, set_auth_parameters,
13009 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13010 # Needed for OSF1 and HPUX.
13015 for ac_func in putprpwnam
13017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13018 echo "$as_me:$LINENO: checking for $ac_func" >&5
13019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13020 if eval "test \"\${$as_ac_var+set}\" = set"; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 cat >conftest.$ac_ext <<_ACEOF
13024 #line $LINENO "configure"
13025 #include "confdefs.h"
13026 /* System header to define __stub macros and hopefully few prototypes,
13027 which can conflict with char $ac_func (); below. */
13028 #include <assert.h>
13029 /* Override any gcc2 internal prototype to avoid an error. */
13033 /* We use char because int might match the return type of a gcc2
13034 builtin and then its argument prototype would still apply. */
13041 /* The GNU C library defines this for functions which it implements
13042 to always fail with ENOSYS. Some functions are actually named
13043 something starting with __ and the normal name is an alias. */
13044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13056 (eval $ac_link) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest$ac_exeext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 eval "$as_ac_var=yes"
13068 echo "$as_me: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 eval "$as_ac_var=no"
13072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13076 if test `eval echo '${'$as_ac_var'}'` = yes; then
13077 cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13086 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13087 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lsecurity $LIBS"
13092 cat >conftest.$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13094 #include "confdefs.h"
13096 /* Override any gcc2 internal prototype to avoid an error. */
13100 /* We use char because int might match the return type of a gcc2
13101 builtin and then its argument prototype would still apply. */
13102 char putprpwnam ();
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest$ac_exeext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_lib_security_putprpwnam=yes
13125 echo "$as_me: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 ac_cv_lib_security_putprpwnam=no
13129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13133 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13134 if test $ac_cv_lib_security_putprpwnam = yes; then
13135 cat >>confdefs.h <<_ACEOF
13136 #define HAVE_LIBSECURITY 1
13139 LIBS="-lsecurity $LIBS"
13144 for ac_func in putprpwnam
13146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13147 echo "$as_me:$LINENO: checking for $ac_func" >&5
13148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_var+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 cat >conftest.$ac_ext <<_ACEOF
13153 #line $LINENO "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156 which can conflict with char $ac_func (); below. */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error. */
13162 /* We use char because int might match the return type of a gcc2
13163 builtin and then its argument prototype would still apply. */
13170 /* The GNU C library defines this for functions which it implements
13171 to always fail with ENOSYS. Some functions are actually named
13172 something starting with __ and the normal name is an alias. */
13173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13185 (eval $ac_link) 2>&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 eval "$as_ac_var=yes"
13197 echo "$as_me: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 eval "$as_ac_var=no"
13201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13205 if test `eval echo '${'$as_ac_var'}'` = yes; then
13206 cat >>confdefs.h <<_ACEOF
13207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13218 for ac_func in putprpwnam
13220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221 echo "$as_me:$LINENO: checking for $ac_func" >&5
13222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13223 if eval "test \"\${$as_ac_var+set}\" = set"; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 #include "confdefs.h"
13229 /* System header to define __stub macros and hopefully few prototypes,
13230 which can conflict with char $ac_func (); below. */
13231 #include <assert.h>
13232 /* Override any gcc2 internal prototype to avoid an error. */
13236 /* We use char because int might match the return type of a gcc2
13237 builtin and then its argument prototype would still apply. */
13244 /* The GNU C library defines this for functions which it implements
13245 to always fail with ENOSYS. Some functions are actually named
13246 something starting with __ and the normal name is an alias. */
13247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13257 rm -f conftest.$ac_objext conftest$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259 (eval $ac_link) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -s conftest$ac_exeext'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
13269 eval "$as_ac_var=yes"
13271 echo "$as_me: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 eval "$as_ac_var=no"
13275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13279 if test `eval echo '${'$as_ac_var'}'` = yes; then
13280 cat >>confdefs.h <<_ACEOF
13281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13288 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
13289 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
13290 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_check_lib_save_LIBS=$LIBS
13295 cat >conftest.$ac_ext <<_ACEOF
13296 #line $LINENO "configure"
13297 #include "confdefs.h"
13299 /* Override any gcc2 internal prototype to avoid an error. */
13303 /* We use char because int might match the return type of a gcc2
13304 builtin and then its argument prototype would still apply. */
13305 char putprpwnam ();
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -s conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_cv_lib_sec_putprpwnam=yes
13328 echo "$as_me: failed program was:" >&5
13329 cat conftest.$ac_ext >&5
13330 ac_cv_lib_sec_putprpwnam=no
13332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
13336 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
13337 if test $ac_cv_lib_sec_putprpwnam = yes; then
13338 cat >>confdefs.h <<_ACEOF
13339 #define HAVE_LIBSEC 1
13347 for ac_func in putprpwnam
13349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13350 echo "$as_me:$LINENO: checking for $ac_func" >&5
13351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13352 if eval "test \"\${$as_ac_var+set}\" = set"; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 #include "confdefs.h"
13358 /* System header to define __stub macros and hopefully few prototypes,
13359 which can conflict with char $ac_func (); below. */
13360 #include <assert.h>
13361 /* Override any gcc2 internal prototype to avoid an error. */
13365 /* We use char because int might match the return type of a gcc2
13366 builtin and then its argument prototype would still apply. */
13373 /* The GNU C library defines this for functions which it implements
13374 to always fail with ENOSYS. Some functions are actually named
13375 something starting with __ and the normal name is an alias. */
13376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -s conftest$ac_exeext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 eval "$as_ac_var=yes"
13400 echo "$as_me: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 eval "$as_ac_var=no"
13404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13408 if test `eval echo '${'$as_ac_var'}'` = yes; then
13409 cat >>confdefs.h <<_ACEOF
13410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13422 for ac_func in set_auth_parameters
13424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13425 echo "$as_me:$LINENO: checking for $ac_func" >&5
13426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_var+set}\" = set"; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 cat >conftest.$ac_ext <<_ACEOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433 /* System header to define __stub macros and hopefully few prototypes,
13434 which can conflict with char $ac_func (); below. */
13435 #include <assert.h>
13436 /* Override any gcc2 internal prototype to avoid an error. */
13440 /* We use char because int might match the return type of a gcc2
13441 builtin and then its argument prototype would still apply. */
13448 /* The GNU C library defines this for functions which it implements
13449 to always fail with ENOSYS. Some functions are actually named
13450 something starting with __ and the normal name is an alias. */
13451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 eval "$as_ac_var=yes"
13475 echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 eval "$as_ac_var=no"
13479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13483 if test `eval echo '${'$as_ac_var'}'` = yes; then
13484 cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13492 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
13493 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
13494 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 ac_check_lib_save_LIBS=$LIBS
13498 LIBS="-lsecurity $LIBS"
13499 cat >conftest.$ac_ext <<_ACEOF
13500 #line $LINENO "configure"
13501 #include "confdefs.h"
13503 /* Override any gcc2 internal prototype to avoid an error. */
13507 /* We use char because int might match the return type of a gcc2
13508 builtin and then its argument prototype would still apply. */
13509 char set_auth_parameters ();
13513 set_auth_parameters ();
13518 rm -f conftest.$ac_objext conftest$ac_exeext
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520 (eval $ac_link) 2>&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
13524 { ac_try='test -s conftest$ac_exeext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_cv_lib_security_set_auth_parameters=yes
13532 echo "$as_me: failed program was:" >&5
13533 cat conftest.$ac_ext >&5
13534 ac_cv_lib_security_set_auth_parameters=no
13536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
13540 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
13541 if test $ac_cv_lib_security_set_auth_parameters = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBSECURITY 1
13546 LIBS="-lsecurity $LIBS"
13551 for ac_func in set_auth_parameters
13553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13554 echo "$as_me:$LINENO: checking for $ac_func" >&5
13555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13556 if eval "test \"\${$as_ac_var+set}\" = set"; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13561 #include "confdefs.h"
13562 /* System header to define __stub macros and hopefully few prototypes,
13563 which can conflict with char $ac_func (); below. */
13564 #include <assert.h>
13565 /* Override any gcc2 internal prototype to avoid an error. */
13569 /* We use char because int might match the return type of a gcc2
13570 builtin and then its argument prototype would still apply. */
13577 /* The GNU C library defines this for functions which it implements
13578 to always fail with ENOSYS. Some functions are actually named
13579 something starting with __ and the normal name is an alias. */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13590 rm -f conftest.$ac_objext conftest$ac_exeext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13592 (eval $ac_link) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -s conftest$ac_exeext'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; }; then
13602 eval "$as_ac_var=yes"
13604 echo "$as_me: failed program was:" >&5
13605 cat conftest.$ac_ext >&5
13606 eval "$as_ac_var=no"
13608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13612 if test `eval echo '${'$as_ac_var'}'` = yes; then
13613 cat >>confdefs.h <<_ACEOF
13614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13625 for ac_func in set_auth_parameters
13627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13628 echo "$as_me:$LINENO: checking for $ac_func" >&5
13629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13630 if eval "test \"\${$as_ac_var+set}\" = set"; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 cat >conftest.$ac_ext <<_ACEOF
13634 #line $LINENO "configure"
13635 #include "confdefs.h"
13636 /* System header to define __stub macros and hopefully few prototypes,
13637 which can conflict with char $ac_func (); below. */
13638 #include <assert.h>
13639 /* Override any gcc2 internal prototype to avoid an error. */
13643 /* We use char because int might match the return type of a gcc2
13644 builtin and then its argument prototype would still apply. */
13651 /* The GNU C library defines this for functions which it implements
13652 to always fail with ENOSYS. Some functions are actually named
13653 something starting with __ and the normal name is an alias. */
13654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 eval "$as_ac_var=yes"
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 eval "$as_ac_var=no"
13682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13686 if test `eval echo '${'$as_ac_var'}'` = yes; then
13687 cat >>confdefs.h <<_ACEOF
13688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13695 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
13696 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
13697 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 ac_check_lib_save_LIBS=$LIBS
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13704 #include "confdefs.h"
13706 /* Override any gcc2 internal prototype to avoid an error. */
13710 /* We use char because int might match the return type of a gcc2
13711 builtin and then its argument prototype would still apply. */
13712 char set_auth_parameters ();
13716 set_auth_parameters ();
13721 rm -f conftest.$ac_objext conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_cv_lib_sec_set_auth_parameters=yes
13735 echo "$as_me: failed program was:" >&5
13736 cat conftest.$ac_ext >&5
13737 ac_cv_lib_sec_set_auth_parameters=no
13739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13742 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
13743 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
13744 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
13745 cat >>confdefs.h <<_ACEOF
13746 #define HAVE_LIBSEC 1
13754 for ac_func in set_auth_parameters
13756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13757 echo "$as_me:$LINENO: checking for $ac_func" >&5
13758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13759 if eval "test \"\${$as_ac_var+set}\" = set"; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13762 cat >conftest.$ac_ext <<_ACEOF
13763 #line $LINENO "configure"
13764 #include "confdefs.h"
13765 /* System header to define __stub macros and hopefully few prototypes,
13766 which can conflict with char $ac_func (); below. */
13767 #include <assert.h>
13768 /* Override any gcc2 internal prototype to avoid an error. */
13772 /* We use char because int might match the return type of a gcc2
13773 builtin and then its argument prototype would still apply. */
13780 /* The GNU C library defines this for functions which it implements
13781 to always fail with ENOSYS. Some functions are actually named
13782 something starting with __ and the normal name is an alias. */
13783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795 (eval $ac_link) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -s conftest$ac_exeext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 eval "$as_ac_var=yes"
13807 echo "$as_me: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13809 eval "$as_ac_var=no"
13811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13815 if test `eval echo '${'$as_ac_var'}'` = yes; then
13816 cat >>confdefs.h <<_ACEOF
13817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13827 # UnixWare 7.x has its getspnam in -lgen
13830 for ac_func in getspnam
13832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13833 echo "$as_me:$LINENO: checking for $ac_func" >&5
13834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13835 if eval "test \"\${$as_ac_var+set}\" = set"; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13839 #line $LINENO "configure"
13840 #include "confdefs.h"
13841 /* System header to define __stub macros and hopefully few prototypes,
13842 which can conflict with char $ac_func (); below. */
13843 #include <assert.h>
13844 /* Override any gcc2 internal prototype to avoid an error. */
13848 /* We use char because int might match the return type of a gcc2
13849 builtin and then its argument prototype would still apply. */
13856 /* The GNU C library defines this for functions which it implements
13857 to always fail with ENOSYS. Some functions are actually named
13858 something starting with __ and the normal name is an alias. */
13859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871 (eval $ac_link) 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -s conftest$ac_exeext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 eval "$as_ac_var=yes"
13883 echo "$as_me: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
13885 eval "$as_ac_var=no"
13887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13891 if test `eval echo '${'$as_ac_var'}'` = yes; then
13892 cat >>confdefs.h <<_ACEOF
13893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13900 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
13901 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
13902 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_check_lib_save_LIBS=$LIBS
13907 cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 #include "confdefs.h"
13911 /* Override any gcc2 internal prototype to avoid an error. */
13915 /* We use char because int might match the return type of a gcc2
13916 builtin and then its argument prototype would still apply. */
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 ac_cv_lib_gen_getspnam=yes
13940 echo "$as_me: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 ac_cv_lib_gen_getspnam=no
13944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
13948 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
13949 if test $ac_cv_lib_gen_getspnam = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951 #define HAVE_LIBGEN 1
13959 for ac_func in getspnam
13961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13962 echo "$as_me:$LINENO: checking for $ac_func" >&5
13963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_var+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13969 #include "confdefs.h"
13970 /* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char $ac_func (); below. */
13972 #include <assert.h>
13973 /* Override any gcc2 internal prototype to avoid an error. */
13977 /* We use char because int might match the return type of a gcc2
13978 builtin and then its argument prototype would still apply. */
13985 /* The GNU C library defines this for functions which it implements
13986 to always fail with ENOSYS. Some functions are actually named
13987 something starting with __ and the normal name is an alias. */
13988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13998 rm -f conftest.$ac_objext conftest$ac_exeext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14000 (eval $ac_link) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 eval "$as_ac_var=yes"
14012 echo "$as_me: failed program was:" >&5
14013 cat conftest.$ac_ext >&5
14014 eval "$as_ac_var=no"
14016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14020 if test `eval echo '${'$as_ac_var'}'` = yes; then
14021 cat >>confdefs.h <<_ACEOF
14022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14034 for ac_func in getspnam
14036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14037 echo "$as_me:$LINENO: checking for $ac_func" >&5
14038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14039 if eval "test \"\${$as_ac_var+set}\" = set"; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >conftest.$ac_ext <<_ACEOF
14043 #line $LINENO "configure"
14044 #include "confdefs.h"
14045 /* System header to define __stub macros and hopefully few prototypes,
14046 which can conflict with char $ac_func (); below. */
14047 #include <assert.h>
14048 /* Override any gcc2 internal prototype to avoid an error. */
14052 /* We use char because int might match the return type of a gcc2
14053 builtin and then its argument prototype would still apply. */
14060 /* The GNU C library defines this for functions which it implements
14061 to always fail with ENOSYS. Some functions are actually named
14062 something starting with __ and the normal name is an alias. */
14063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14073 rm -f conftest.$ac_objext conftest$ac_exeext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14075 (eval $ac_link) 2>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -s conftest$ac_exeext'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085 eval "$as_ac_var=yes"
14087 echo "$as_me: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14089 eval "$as_ac_var=no"
14091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14095 if test `eval echo '${'$as_ac_var'}'` = yes; then
14096 cat >>confdefs.h <<_ACEOF
14097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14104 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14105 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14106 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 ac_check_lib_save_LIBS=$LIBS
14110 LIBS="-lsecurity $LIBS"
14111 cat >conftest.$ac_ext <<_ACEOF
14112 #line $LINENO "configure"
14113 #include "confdefs.h"
14115 /* Override any gcc2 internal prototype to avoid an error. */
14119 /* We use char because int might match the return type of a gcc2
14120 builtin and then its argument prototype would still apply. */
14130 rm -f conftest.$ac_objext conftest$ac_exeext
14131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14132 (eval $ac_link) 2>&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -s conftest$ac_exeext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_lib_security_getspnam=yes
14144 echo "$as_me: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 ac_cv_lib_security_getspnam=no
14148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14151 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14152 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14153 if test $ac_cv_lib_security_getspnam = yes; then
14154 cat >>confdefs.h <<_ACEOF
14155 #define HAVE_LIBSECURITY 1
14158 LIBS="-lsecurity $LIBS"
14163 for ac_func in getspnam
14165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14166 echo "$as_me:$LINENO: checking for $ac_func" >&5
14167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14168 if eval "test \"\${$as_ac_var+set}\" = set"; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14173 #include "confdefs.h"
14174 /* System header to define __stub macros and hopefully few prototypes,
14175 which can conflict with char $ac_func (); below. */
14176 #include <assert.h>
14177 /* Override any gcc2 internal prototype to avoid an error. */
14181 /* We use char because int might match the return type of a gcc2
14182 builtin and then its argument prototype would still apply. */
14189 /* The GNU C library defines this for functions which it implements
14190 to always fail with ENOSYS. Some functions are actually named
14191 something starting with __ and the normal name is an alias. */
14192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14204 (eval $ac_link) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -s conftest$ac_exeext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 eval "$as_ac_var=yes"
14216 echo "$as_me: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 eval "$as_ac_var=no"
14220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14224 if test `eval echo '${'$as_ac_var'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14237 for ac_func in getspnam
14239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14240 echo "$as_me:$LINENO: checking for $ac_func" >&5
14241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_var+set}\" = set"; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14247 #include "confdefs.h"
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func (); below. */
14250 #include <assert.h>
14251 /* Override any gcc2 internal prototype to avoid an error. */
14255 /* We use char because int might match the return type of a gcc2
14256 builtin and then its argument prototype would still apply. */
14263 /* The GNU C library defines this for functions which it implements
14264 to always fail with ENOSYS. Some functions are actually named
14265 something starting with __ and the normal name is an alias. */
14266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14278 (eval $ac_link) 2>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } &&
14282 { ac_try='test -s conftest$ac_exeext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 eval "$as_ac_var=yes"
14290 echo "$as_me: failed program was:" >&5
14291 cat conftest.$ac_ext >&5
14292 eval "$as_ac_var=no"
14294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14298 if test `eval echo '${'$as_ac_var'}'` = yes; then
14299 cat >>confdefs.h <<_ACEOF
14300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14307 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
14308 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
14309 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 ac_check_lib_save_LIBS=$LIBS
14314 cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 #include "confdefs.h"
14318 /* Override any gcc2 internal prototype to avoid an error. */
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335 (eval $ac_link) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try='test -s conftest$ac_exeext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_lib_sec_getspnam=yes
14347 echo "$as_me: failed program was:" >&5
14348 cat conftest.$ac_ext >&5
14349 ac_cv_lib_sec_getspnam=no
14351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14354 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
14355 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
14356 if test $ac_cv_lib_sec_getspnam = yes; then
14357 cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBSEC 1
14366 for ac_func in getspnam
14368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 echo "$as_me:$LINENO: checking for $ac_func" >&5
14370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14371 if eval "test \"\${$as_ac_var+set}\" = set"; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14375 #line $LINENO "configure"
14376 #include "confdefs.h"
14377 /* System header to define __stub macros and hopefully few prototypes,
14378 which can conflict with char $ac_func (); below. */
14379 #include <assert.h>
14380 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14392 /* The GNU C library defines this for functions which it implements
14393 to always fail with ENOSYS. Some functions are actually named
14394 something starting with __ and the normal name is an alias. */
14395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 (eval $ac_link) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -s conftest$ac_exeext'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 eval "$as_ac_var=yes"
14419 echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14421 eval "$as_ac_var=no"
14423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14427 if test `eval echo '${'$as_ac_var'}'` = yes; then
14428 cat >>confdefs.h <<_ACEOF
14429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14441 for ac_func in bigcrypt
14443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14446 if eval "test \"\${$as_ac_var+set}\" = set"; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 #include "confdefs.h"
14452 /* System header to define __stub macros and hopefully few prototypes,
14453 which can conflict with char $ac_func (); below. */
14454 #include <assert.h>
14455 /* Override any gcc2 internal prototype to avoid an error. */
14459 /* We use char because int might match the return type of a gcc2
14460 builtin and then its argument prototype would still apply. */
14467 /* The GNU C library defines this for functions which it implements
14468 to always fail with ENOSYS. Some functions are actually named
14469 something starting with __ and the normal name is an alias. */
14470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14482 (eval $ac_link) 2>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -s conftest$ac_exeext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 eval "$as_ac_var=yes"
14494 echo "$as_me: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14496 eval "$as_ac_var=no"
14498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14502 if test `eval echo '${'$as_ac_var'}'` = yes; then
14503 cat >>confdefs.h <<_ACEOF
14504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
14512 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
14513 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 ac_check_lib_save_LIBS=$LIBS
14517 LIBS="-lsecurity $LIBS"
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14520 #include "confdefs.h"
14522 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539 (eval $ac_link) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -s conftest$ac_exeext'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14549 ac_cv_lib_security_bigcrypt=yes
14551 echo "$as_me: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14553 ac_cv_lib_security_bigcrypt=no
14555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_lib_save_LIBS
14558 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
14559 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
14560 if test $ac_cv_lib_security_bigcrypt = yes; then
14561 cat >>confdefs.h <<_ACEOF
14562 #define HAVE_LIBSECURITY 1
14565 LIBS="-lsecurity $LIBS"
14570 for ac_func in bigcrypt
14572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14573 echo "$as_me:$LINENO: checking for $ac_func" >&5
14574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14575 if eval "test \"\${$as_ac_var+set}\" = set"; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 cat >conftest.$ac_ext <<_ACEOF
14579 #line $LINENO "configure"
14580 #include "confdefs.h"
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below. */
14583 #include <assert.h>
14584 /* Override any gcc2 internal prototype to avoid an error. */
14588 /* We use char because int might match the return type of a gcc2
14589 builtin and then its argument prototype would still apply. */
14596 /* The GNU C library defines this for functions which it implements
14597 to always fail with ENOSYS. Some functions are actually named
14598 something starting with __ and the normal name is an alias. */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611 (eval $ac_link) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 eval "$as_ac_var=yes"
14623 echo "$as_me: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14625 eval "$as_ac_var=no"
14627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14631 if test `eval echo '${'$as_ac_var'}'` = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14644 for ac_func in bigcrypt
14646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14647 echo "$as_me:$LINENO: checking for $ac_func" >&5
14648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14649 if eval "test \"\${$as_ac_var+set}\" = set"; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14653 #line $LINENO "configure"
14654 #include "confdefs.h"
14655 /* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char $ac_func (); below. */
14657 #include <assert.h>
14658 /* Override any gcc2 internal prototype to avoid an error. */
14662 /* We use char because int might match the return type of a gcc2
14663 builtin and then its argument prototype would still apply. */
14670 /* The GNU C library defines this for functions which it implements
14671 to always fail with ENOSYS. Some functions are actually named
14672 something starting with __ and the normal name is an alias. */
14673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14685 (eval $ac_link) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
14689 { ac_try='test -s conftest$ac_exeext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 eval "$as_ac_var=yes"
14697 echo "$as_me: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 eval "$as_ac_var=no"
14701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14705 if test `eval echo '${'$as_ac_var'}'` = yes; then
14706 cat >>confdefs.h <<_ACEOF
14707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14714 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14715 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
14716 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14719 ac_check_lib_save_LIBS=$LIBS
14721 cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14723 #include "confdefs.h"
14725 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_lib_sec_bigcrypt=yes
14754 echo "$as_me: failed program was:" >&5
14755 cat conftest.$ac_ext >&5
14756 ac_cv_lib_sec_bigcrypt=no
14758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14759 LIBS=$ac_check_lib_save_LIBS
14761 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14762 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
14763 if test $ac_cv_lib_sec_bigcrypt = yes; then
14764 cat >>confdefs.h <<_ACEOF
14765 #define HAVE_LIBSEC 1
14773 for ac_func in bigcrypt
14775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14776 echo "$as_me:$LINENO: checking for $ac_func" >&5
14777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14778 if eval "test \"\${$as_ac_var+set}\" = set"; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14782 #line $LINENO "configure"
14783 #include "confdefs.h"
14784 /* System header to define __stub macros and hopefully few prototypes,
14785 which can conflict with char $ac_func (); below. */
14786 #include <assert.h>
14787 /* Override any gcc2 internal prototype to avoid an error. */
14791 /* We use char because int might match the return type of a gcc2
14792 builtin and then its argument prototype would still apply. */
14799 /* The GNU C library defines this for functions which it implements
14800 to always fail with ENOSYS. Some functions are actually named
14801 something starting with __ and the normal name is an alias. */
14802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14812 rm -f conftest.$ac_objext conftest$ac_exeext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814 (eval $ac_link) 2>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -s conftest$ac_exeext'
14819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820 (eval $ac_try) 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 eval "$as_ac_var=yes"
14826 echo "$as_me: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 eval "$as_ac_var=no"
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14834 if test `eval echo '${'$as_ac_var'}'` = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14848 for ac_func in getprpwnam
14850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14851 echo "$as_me:$LINENO: checking for $ac_func" >&5
14852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14853 if eval "test \"\${$as_ac_var+set}\" = set"; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 #include "confdefs.h"
14859 /* System header to define __stub macros and hopefully few prototypes,
14860 which can conflict with char $ac_func (); below. */
14861 #include <assert.h>
14862 /* Override any gcc2 internal prototype to avoid an error. */
14866 /* We use char because int might match the return type of a gcc2
14867 builtin and then its argument prototype would still apply. */
14874 /* The GNU C library defines this for functions which it implements
14875 to always fail with ENOSYS. Some functions are actually named
14876 something starting with __ and the normal name is an alias. */
14877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14889 (eval $ac_link) 2>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try='test -s conftest$ac_exeext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 eval "$as_ac_var=yes"
14901 echo "$as_me: failed program was:" >&5
14902 cat conftest.$ac_ext >&5
14903 eval "$as_ac_var=no"
14905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14909 if test `eval echo '${'$as_ac_var'}'` = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14918 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14919 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
14920 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-lsecurity $LIBS"
14925 cat >conftest.$ac_ext <<_ACEOF
14926 #line $LINENO "configure"
14927 #include "confdefs.h"
14929 /* Override any gcc2 internal prototype to avoid an error. */
14933 /* We use char because int might match the return type of a gcc2
14934 builtin and then its argument prototype would still apply. */
14935 char getprpwnam ();
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14946 (eval $ac_link) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } &&
14950 { ac_try='test -s conftest$ac_exeext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_lib_security_getprpwnam=yes
14958 echo "$as_me: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 ac_cv_lib_security_getprpwnam=no
14962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14963 LIBS=$ac_check_lib_save_LIBS
14965 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14966 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
14967 if test $ac_cv_lib_security_getprpwnam = yes; then
14968 cat >>confdefs.h <<_ACEOF
14969 #define HAVE_LIBSECURITY 1
14972 LIBS="-lsecurity $LIBS"
14977 for ac_func in getprpwnam
14979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 echo "$as_me:$LINENO: checking for $ac_func" >&5
14981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14982 if eval "test \"\${$as_ac_var+set}\" = set"; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 cat >conftest.$ac_ext <<_ACEOF
14986 #line $LINENO "configure"
14987 #include "confdefs.h"
14988 /* System header to define __stub macros and hopefully few prototypes,
14989 which can conflict with char $ac_func (); below. */
14990 #include <assert.h>
14991 /* Override any gcc2 internal prototype to avoid an error. */
14995 /* We use char because int might match the return type of a gcc2
14996 builtin and then its argument prototype would still apply. */
15003 /* The GNU C library defines this for functions which it implements
15004 to always fail with ENOSYS. Some functions are actually named
15005 something starting with __ and the normal name is an alias. */
15006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018 (eval $ac_link) 2>&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } &&
15022 { ac_try='test -s conftest$ac_exeext'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
15028 eval "$as_ac_var=yes"
15030 echo "$as_me: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15032 eval "$as_ac_var=no"
15034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15038 if test `eval echo '${'$as_ac_var'}'` = yes; then
15039 cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15051 for ac_func in getprpwnam
15053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15054 echo "$as_me:$LINENO: checking for $ac_func" >&5
15055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15056 if eval "test \"\${$as_ac_var+set}\" = set"; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 /* System header to define __stub macros and hopefully few prototypes,
15063 which can conflict with char $ac_func (); below. */
15064 #include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error. */
15069 /* We use char because int might match the return type of a gcc2
15070 builtin and then its argument prototype would still apply. */
15077 /* The GNU C library defines this for functions which it implements
15078 to always fail with ENOSYS. Some functions are actually named
15079 something starting with __ and the normal name is an alias. */
15080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092 (eval $ac_link) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -s conftest$ac_exeext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 eval "$as_ac_var=yes"
15104 echo "$as_me: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 eval "$as_ac_var=no"
15108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15112 if test `eval echo '${'$as_ac_var'}'` = yes; then
15113 cat >>confdefs.h <<_ACEOF
15114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15121 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
15122 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
15123 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 ac_check_lib_save_LIBS=$LIBS
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 #include "confdefs.h"
15132 /* Override any gcc2 internal prototype to avoid an error. */
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char getprpwnam ();
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_lib_sec_getprpwnam=yes
15161 echo "$as_me: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 ac_cv_lib_sec_getprpwnam=no
15165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15168 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
15169 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
15170 if test $ac_cv_lib_sec_getprpwnam = yes; then
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_LIBSEC 1
15180 for ac_func in getprpwnam
15182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 echo "$as_me:$LINENO: checking for $ac_func" >&5
15184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_var+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 cat >conftest.$ac_ext <<_ACEOF
15189 #line $LINENO "configure"
15190 #include "confdefs.h"
15191 /* System header to define __stub macros and hopefully few prototypes,
15192 which can conflict with char $ac_func (); below. */
15193 #include <assert.h>
15194 /* Override any gcc2 internal prototype to avoid an error. */
15198 /* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15206 /* The GNU C library defines this for functions which it implements
15207 to always fail with ENOSYS. Some functions are actually named
15208 something starting with __ and the normal name is an alias. */
15209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221 (eval $ac_link) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } &&
15225 { ac_try='test -s conftest$ac_exeext'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 eval "$as_ac_var=yes"
15233 echo "$as_me: failed program was:" >&5
15234 cat conftest.$ac_ext >&5
15235 eval "$as_ac_var=no"
15237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15241 if test `eval echo '${'$as_ac_var'}'` = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15253 # this bit needs to be modified for each OS that is suported by
15254 # smbwrapper. You need to specify how to created a shared library and
15255 # how to compile C code to produce PIC object files
15257 # these are the defaults, good for lots of systems
15259 LDSHFLAGS="-shared"
15266 # Assume non-shared by default and override below
15268 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
15269 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
15271 # and these are for particular systems
15274 cat >>confdefs.h <<\_ACEOF
15279 LDSHFLAGS="-shared"
15280 DYNEXP="-Wl,--export-dynamic"
15282 SONAMEFLAG="-Wl,-soname="
15283 cat >>confdefs.h <<\_ACEOF
15284 #define STAT_ST_BLOCKSIZE 512
15289 cat >>confdefs.h <<\_ACEOF
15296 if test "${GCC}" = "yes"; then
15298 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
15303 ## ${CFLAGS} added for building 64-bit shared
15304 ## libs using Sun's Compiler
15305 LDSHFLAGS="-G \${CFLAGS}"
15310 cat >>confdefs.h <<\_ACEOF
15311 #define STAT_ST_BLOCKSIZE 512
15316 cat >>confdefs.h <<\_ACEOF
15322 SONAMEFLAG="-Wl,-h,"
15323 PICFLAG="-KPIC" # Is this correct for SunOS
15325 *freebsd*) BLDSHARED="true"
15326 LDSHFLAGS="-shared"
15327 DYNEXP="-Wl,--export-dynamic"
15328 SONAMEFLAG="-Wl,-soname,"
15329 PICFLAG="-fPIC -DPIC"
15331 cat >>confdefs.h <<\_ACEOF
15332 #define STAT_ST_BLOCKSIZE 512
15336 *openbsd*) BLDSHARED="true"
15337 LDSHFLAGS="-shared"
15338 DYNEXP="-Wl,-Bdynamic"
15339 SONAMEFLAG="-Wl,-soname,"
15342 cat >>confdefs.h <<\_ACEOF
15343 #define STAT_ST_BLOCKSIZE 512
15348 cat >>confdefs.h <<\_ACEOF
15354 cat >>confdefs.h <<\_ACEOF
15360 ATTEMPT_WRAP32_BUILD=yes
15362 LDSHFLAGS="-set_version sgi1.0 -shared"
15363 SONAMEFLAG="-soname "
15365 if test "${GCC}" = "yes"; then
15371 cat >>confdefs.h <<\_ACEOF
15372 #define STAT_ST_BLOCKSIZE 512
15377 cat >>confdefs.h <<\_ACEOF
15382 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
15383 DYNEXP="-Wl,-brtl,-bexpall"
15385 if test "${GCC}" != "yes"; then
15386 ## for funky AIX compiler using strncpy()
15387 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
15391 cat >>confdefs.h <<\_ACEOF
15392 #define STAT_ST_BLOCKSIZE DEV_BSIZE
15397 cat >>confdefs.h <<\_ACEOF
15402 # Use special PIC flags for the native HP-UX compiler.
15403 if test $ac_cv_prog_cc_Ae = yes; then
15406 LDSHFLAGS="-B symbolic -b -z"
15412 cat >>confdefs.h <<\_ACEOF
15413 #define STAT_ST_BLOCKSIZE 8192
15418 cat >>confdefs.h <<\_ACEOF
15423 cat >>confdefs.h <<\_ACEOF
15428 LDSHFLAGS="-shared"
15429 SONAMEFLAG="-Wl,-soname,"
15433 cat >>confdefs.h <<\_ACEOF
15438 cat >>confdefs.h <<\_ACEOF
15443 LDSHFLAGS="-shared"
15444 SONAMEFLAG="-Wl,-soname,"
15448 cat >>confdefs.h <<\_ACEOF
15452 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
15453 set dummy groff; ac_word=$2
15454 echo "$as_me:$LINENO: checking for $ac_word" >&5
15455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15456 if test "${ac_cv_prog_ROFF+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 if test -n "$ROFF"; then
15460 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
15462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15463 for as_dir in $PATH
15466 test -z "$as_dir" && as_dir=.
15467 for ac_exec_ext in '' $ac_executable_extensions; do
15468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15469 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
15470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15478 ROFF=$ac_cv_prog_ROFF
15479 if test -n "$ROFF"; then
15480 echo "$as_me:$LINENO: result: $ROFF" >&5
15481 echo "${ECHO_T}$ROFF" >&6
15483 echo "$as_me:$LINENO: result: no" >&5
15484 echo "${ECHO_T}no" >&6
15488 cat >>confdefs.h <<\_ACEOF
15493 *-univel-*) if test "$GCC" != yes ; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_MEMSET 1
15504 cat >>confdefs.h <<\_ACEOF
15505 #define RELIANTUNIX 1
15512 cat >>confdefs.h <<\_ACEOF
15516 if test "$GCC" != yes ; then
15518 cat >>confdefs.h <<\_ACEOF
15519 #define HAVE_MEMSET 1
15527 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
15528 echo "${ECHO_T}$BLDSHARED" >&6
15529 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
15530 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
15531 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
15532 echo "${ECHO_T}$LDSHFLAGS" >&6
15533 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
15534 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
15535 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
15536 echo "${ECHO_T}$PICFLAGS" >&6
15538 #######################################################
15539 # test whether building a shared library actually works
15540 if test $BLDSHARED = true; then
15541 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
15542 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
15543 if test "${ac_cv_shlib_works+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 ac_cv_shlib_works=no
15548 # try building a trivial shared library
15549 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
15550 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
15551 ac_cv_shlib_works=yes
15552 rm -f shlib.so shlib.po
15555 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
15556 echo "${ECHO_T}$ac_cv_shlib_works" >&6
15557 if test $ac_cv_shlib_works = no; then
15563 # this updates our target list if we can build shared libs
15564 if test $BLDSHARED = true; then
15565 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
15567 LIBSMBCLIENT_SHARED=
15572 echo "$as_me:$LINENO: checking for long long" >&5
15573 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15574 if test "${samba_cv_have_longlong+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 if test "$cross_compiling" = yes; then
15579 samba_cv_have_longlong=cross
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 #include "confdefs.h"
15585 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
15587 rm -f conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 samba_cv_have_longlong=yes
15600 echo "$as_me: program exited with status $ac_status" >&5
15601 echo "$as_me: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15603 ( exit $ac_status )
15604 samba_cv_have_longlong=no
15606 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
15610 echo "${ECHO_T}$samba_cv_have_longlong" >&6
15611 if test x"$samba_cv_have_longlong" = x"yes"; then
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_LONGLONG 1
15620 # Check if the compiler supports the LL prefix on long long integers.
15623 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
15624 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
15625 if test "${samba_cv_compiler_supports_ll+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15631 #include "confdefs.h"
15636 long long i = 0x8000000000LL
15641 rm -f conftest.$ac_objext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } &&
15647 { ac_try='test -s conftest.$ac_objext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 samba_cv_compiler_supports_ll=yes
15655 echo "$as_me: failed program was:" >&5
15656 cat conftest.$ac_ext >&5
15657 samba_cv_compiler_supports_ll=no
15659 rm -f conftest.$ac_objext conftest.$ac_ext
15661 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
15662 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
15663 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
15665 cat >>confdefs.h <<\_ACEOF
15666 #define COMPILER_SUPPORTS_LL 1
15672 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
15673 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
15674 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15678 if test "$cross_compiling" = yes; then
15679 samba_cv_SIZEOF_OFF_T=cross
15681 cat >conftest.$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15683 #include "confdefs.h"
15685 #include <sys/stat.h>
15686 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
15688 rm -f conftest$ac_exeext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15690 (eval $ac_link) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 samba_cv_SIZEOF_OFF_T=yes
15701 echo "$as_me: program exited with status $ac_status" >&5
15702 echo "$as_me: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15704 ( exit $ac_status )
15705 samba_cv_SIZEOF_OFF_T=no
15707 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15710 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
15711 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
15712 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
15714 cat >>confdefs.h <<\_ACEOF
15715 #define SIZEOF_OFF_T 8
15720 echo "$as_me:$LINENO: checking for off64_t" >&5
15721 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
15722 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 if test "$cross_compiling" = yes; then
15727 samba_cv_HAVE_OFF64_T=cross
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 #include "confdefs.h"
15733 #if defined(HAVE_UNISTD_H)
15734 #include <unistd.h>
15737 #include <sys/stat.h>
15738 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15740 rm -f conftest$ac_exeext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15742 (eval $ac_link) 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 samba_cv_HAVE_OFF64_T=yes
15753 echo "$as_me: program exited with status $ac_status" >&5
15754 echo "$as_me: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15756 ( exit $ac_status )
15757 samba_cv_HAVE_OFF64_T=no
15759 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
15763 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
15764 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_OFF64_T 1
15772 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
15773 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
15774 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15778 if test "$cross_compiling" = yes; then
15779 samba_cv_SIZEOF_INO_T=cross
15781 cat >conftest.$ac_ext <<_ACEOF
15782 #line $LINENO "configure"
15783 #include "confdefs.h"
15785 #include <sys/stat.h>
15786 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
15788 rm -f conftest$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790 (eval $ac_link) 2>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 samba_cv_SIZEOF_INO_T=yes
15801 echo "$as_me: program exited with status $ac_status" >&5
15802 echo "$as_me: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 ( exit $ac_status )
15805 samba_cv_SIZEOF_INO_T=no
15807 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15810 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
15811 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
15812 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
15814 cat >>confdefs.h <<\_ACEOF
15815 #define SIZEOF_INO_T 8
15820 echo "$as_me:$LINENO: checking for ino64_t" >&5
15821 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
15822 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 if test "$cross_compiling" = yes; then
15827 samba_cv_HAVE_INO64_T=cross
15829 cat >conftest.$ac_ext <<_ACEOF
15830 #line $LINENO "configure"
15831 #include "confdefs.h"
15833 #if defined(HAVE_UNISTD_H)
15834 #include <unistd.h>
15837 #include <sys/stat.h>
15838 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15840 rm -f conftest$ac_exeext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15842 (eval $ac_link) 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 samba_cv_HAVE_INO64_T=yes
15853 echo "$as_me: program exited with status $ac_status" >&5
15854 echo "$as_me: failed program was:" >&5
15855 cat conftest.$ac_ext >&5
15856 ( exit $ac_status )
15857 samba_cv_HAVE_INO64_T=no
15859 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15862 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
15863 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
15864 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
15866 cat >>confdefs.h <<\_ACEOF
15867 #define HAVE_INO64_T 1
15872 echo "$as_me:$LINENO: checking for dev64_t" >&5
15873 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
15874 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 if test "$cross_compiling" = yes; then
15879 samba_cv_HAVE_DEV64_T=cross
15881 cat >conftest.$ac_ext <<_ACEOF
15882 #line $LINENO "configure"
15883 #include "confdefs.h"
15885 #if defined(HAVE_UNISTD_H)
15886 #include <unistd.h>
15889 #include <sys/stat.h>
15890 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
15892 rm -f conftest$ac_exeext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15894 (eval $ac_link) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 samba_cv_HAVE_DEV64_T=yes
15905 echo "$as_me: program exited with status $ac_status" >&5
15906 echo "$as_me: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908 ( exit $ac_status )
15909 samba_cv_HAVE_DEV64_T=no
15911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15914 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
15915 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
15916 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_DEV64_T 1
15924 echo "$as_me:$LINENO: checking for struct dirent64" >&5
15925 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
15926 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 cat >conftest.$ac_ext <<_ACEOF
15931 #line $LINENO "configure"
15932 #include "confdefs.h"
15934 #if defined(HAVE_UNISTD_H)
15935 #include <unistd.h>
15937 #include <sys/types.h>
15938 #include <dirent.h>
15942 struct dirent64 de;
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 samba_cv_HAVE_STRUCT_DIRENT64=yes
15961 echo "$as_me: failed program was:" >&5
15962 cat conftest.$ac_ext >&5
15963 samba_cv_HAVE_STRUCT_DIRENT64=no
15965 rm -f conftest.$ac_objext conftest.$ac_ext
15967 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
15968 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
15969 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
15971 cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_STRUCT_DIRENT64 1
15977 echo "$as_me:$LINENO: checking for major macro" >&5
15978 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
15979 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 if test "$cross_compiling" = yes; then
15984 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 #include "confdefs.h"
15990 #if defined(HAVE_UNISTD_H)
15991 #include <unistd.h>
15993 #include <sys/types.h>
15994 main() { dev_t dev; int i = major(dev); return 0; }
15996 rm -f conftest$ac_exeext
15997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998 (eval $ac_link) 2>&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16009 echo "$as_me: program exited with status $ac_status" >&5
16010 echo "$as_me: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 ( exit $ac_status )
16013 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16018 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
16019 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
16020 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
16022 cat >>confdefs.h <<\_ACEOF
16023 #define HAVE_DEVICE_MAJOR_FN 1
16028 echo "$as_me:$LINENO: checking for minor macro" >&5
16029 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
16030 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 if test "$cross_compiling" = yes; then
16035 samba_cv_HAVE_DEVICE_MINOR_FN=cross
16037 cat >conftest.$ac_ext <<_ACEOF
16038 #line $LINENO "configure"
16039 #include "confdefs.h"
16041 #if defined(HAVE_UNISTD_H)
16042 #include <unistd.h>
16044 #include <sys/types.h>
16045 main() { dev_t dev; int i = minor(dev); return 0; }
16047 rm -f conftest$ac_exeext
16048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16049 (eval $ac_link) 2>&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 samba_cv_HAVE_DEVICE_MINOR_FN=yes
16060 echo "$as_me: program exited with status $ac_status" >&5
16061 echo "$as_me: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16063 ( exit $ac_status )
16064 samba_cv_HAVE_DEVICE_MINOR_FN=no
16066 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16069 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
16070 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
16071 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
16073 cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_DEVICE_MINOR_FN 1
16079 echo "$as_me:$LINENO: checking for unsigned char" >&5
16080 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
16081 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 if test "$cross_compiling" = yes; then
16086 samba_cv_HAVE_UNSIGNED_CHAR=cross
16088 cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16090 #include "confdefs.h"
16092 main() { char c; c=250; exit((c > 0)?0:1); }
16094 rm -f conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096 (eval $ac_link) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 samba_cv_HAVE_UNSIGNED_CHAR=yes
16107 echo "$as_me: program exited with status $ac_status" >&5
16108 echo "$as_me: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 ( exit $ac_status )
16111 samba_cv_HAVE_UNSIGNED_CHAR=no
16113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16116 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
16117 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
16118 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_UNSIGNED_CHAR 1
16126 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
16127 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
16128 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 cat >conftest.$ac_ext <<_ACEOF
16133 #line $LINENO "configure"
16134 #include "confdefs.h"
16135 #include <sys/types.h>
16136 #include <sys/socket.h>
16137 #include <netinet/in.h>
16141 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
16146 rm -f conftest.$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148 (eval $ac_compile) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 samba_cv_HAVE_SOCK_SIN_LEN=yes
16160 echo "$as_me: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16162 samba_cv_HAVE_SOCK_SIN_LEN=no
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
16167 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
16168 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
16170 cat >>confdefs.h <<\_ACEOF
16171 #define HAVE_SOCK_SIN_LEN 1
16176 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
16177 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
16178 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
16179 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 cat >conftest.$ac_ext <<_ACEOF
16183 #line $LINENO "configure"
16184 #include "confdefs.h"
16185 #include <sys/types.h>
16186 #include <dirent.h>
16187 void seekdir(DIR *d, long loc) { return; }
16196 rm -f conftest.$ac_objext
16197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16198 (eval $ac_compile) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -s conftest.$ac_objext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16208 samba_cv_SEEKDIR_RETURNS_VOID=yes
16210 echo "$as_me: failed program was:" >&5
16211 cat conftest.$ac_ext >&5
16212 samba_cv_SEEKDIR_RETURNS_VOID=no
16214 rm -f conftest.$ac_objext conftest.$ac_ext
16216 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
16217 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
16218 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
16220 cat >>confdefs.h <<\_ACEOF
16221 #define SEEKDIR_RETURNS_VOID 1
16226 echo "$as_me:$LINENO: checking for __FILE__ macro" >&5
16227 echo $ECHO_N "checking for __FILE__ macro... $ECHO_C" >&6
16228 if test "${samba_cv_HAVE_FILE_MACRO+set}" = set; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 cat >conftest.$ac_ext <<_ACEOF
16233 #line $LINENO "configure"
16234 #include "confdefs.h"
16239 printf("%s\n", __FILE__);
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 samba_cv_HAVE_FILE_MACRO=yes
16258 echo "$as_me: failed program was:" >&5
16259 cat conftest.$ac_ext >&5
16260 samba_cv_HAVE_FILE_MACRO=no
16262 rm -f conftest.$ac_objext conftest.$ac_ext
16264 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FILE_MACRO" >&5
16265 echo "${ECHO_T}$samba_cv_HAVE_FILE_MACRO" >&6
16266 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
16268 cat >>confdefs.h <<\_ACEOF
16269 #define HAVE_FILE_MACRO 1
16274 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
16275 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
16276 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 cat >conftest.$ac_ext <<_ACEOF
16281 #line $LINENO "configure"
16282 #include "confdefs.h"
16287 printf("%s\n", __FUNCTION__);
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
16298 { ac_try='test -s conftest.$ac_objext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 samba_cv_HAVE_FUNCTION_MACRO=yes
16306 echo "$as_me: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 samba_cv_HAVE_FUNCTION_MACRO=no
16310 rm -f conftest.$ac_objext conftest.$ac_ext
16312 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
16313 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
16314 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_FUNCTION_MACRO 1
16322 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
16323 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
16324 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16328 if test "$cross_compiling" = yes; then
16329 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
16331 cat >conftest.$ac_ext <<_ACEOF
16332 #line $LINENO "configure"
16333 #include "confdefs.h"
16335 #include <sys/time.h>
16336 #include <unistd.h>
16337 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
16339 rm -f conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
16352 echo "$as_me: program exited with status $ac_status" >&5
16353 echo "$as_me: failed program was:" >&5
16354 cat conftest.$ac_ext >&5
16355 ( exit $ac_status )
16356 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
16358 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
16362 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
16363 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
16365 cat >>confdefs.h <<\_ACEOF
16366 #define HAVE_GETTIMEOFDAY_TZ 1
16371 echo "$as_me:$LINENO: checking for __va_copy" >&5
16372 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
16373 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 cat >conftest.$ac_ext <<_ACEOF
16378 #line $LINENO "configure"
16379 #include "confdefs.h"
16380 #include <stdarg.h>
16385 __va_copy(ap1,ap2);
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -s conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 samba_cv_HAVE_VA_COPY=yes
16404 echo "$as_me: failed program was:" >&5
16405 cat conftest.$ac_ext >&5
16406 samba_cv_HAVE_VA_COPY=no
16408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16410 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
16411 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
16412 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_VA_COPY 1
16420 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
16421 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
16422 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16426 if test "$cross_compiling" = yes; then
16427 samba_cv_HAVE_C99_VSNPRINTF=cross
16429 cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16431 #include "confdefs.h"
16433 #include <sys/types.h>
16434 #include <stdarg.h>
16435 void foo(const char *format, ...) {
16440 va_start(ap, format);
16441 len = vsnprintf(buf, 0, format, ap);
16443 if (len != 5) exit(1);
16445 va_start(ap, format);
16446 len = vsnprintf(0, 0, format, ap);
16448 if (len != 5) exit(1);
16450 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
16454 main() { foo("hello"); }
16457 rm -f conftest$ac_exeext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16459 (eval $ac_link) 2>&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16464 (eval $ac_try) 2>&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468 samba_cv_HAVE_C99_VSNPRINTF=yes
16470 echo "$as_me: program exited with status $ac_status" >&5
16471 echo "$as_me: failed program was:" >&5
16472 cat conftest.$ac_ext >&5
16473 ( exit $ac_status )
16474 samba_cv_HAVE_C99_VSNPRINTF=no
16476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16479 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
16480 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
16481 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
16483 cat >>confdefs.h <<\_ACEOF
16484 #define HAVE_C99_VSNPRINTF 1
16489 echo "$as_me:$LINENO: checking for broken readdir" >&5
16490 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
16491 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 if test "$cross_compiling" = yes; then
16496 samba_cv_HAVE_BROKEN_READDIR=cross
16498 cat >conftest.$ac_ext <<_ACEOF
16499 #line $LINENO "configure"
16500 #include "confdefs.h"
16501 #include <sys/types.h>
16502 #include <dirent.h>
16503 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
16504 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
16505 di->d_name[0] == 0) exit(0); exit(1);}
16507 rm -f conftest$ac_exeext
16508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16509 (eval $ac_link) 2>&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518 samba_cv_HAVE_BROKEN_READDIR=yes
16520 echo "$as_me: program exited with status $ac_status" >&5
16521 echo "$as_me: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16523 ( exit $ac_status )
16524 samba_cv_HAVE_BROKEN_READDIR=no
16526 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16529 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
16530 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
16531 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_BROKEN_READDIR 1
16539 echo "$as_me:$LINENO: checking for utimbuf" >&5
16540 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
16541 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 cat >conftest.$ac_ext <<_ACEOF
16546 #line $LINENO "configure"
16547 #include "confdefs.h"
16548 #include <sys/types.h>
16553 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -s conftest.$ac_objext'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 samba_cv_HAVE_UTIMBUF=yes
16572 echo "$as_me: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 samba_cv_HAVE_UTIMBUF=no
16576 rm -f conftest.$ac_objext conftest.$ac_ext
16578 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
16579 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
16580 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE_UTIMBUF 1
16594 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
16596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16597 echo "$as_me:$LINENO: checking for $ac_func" >&5
16598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16599 if eval "test \"\${$as_ac_var+set}\" = set"; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 #include "confdefs.h"
16605 /* System header to define __stub macros and hopefully few prototypes,
16606 which can conflict with char $ac_func (); below. */
16607 #include <assert.h>
16608 /* Override any gcc2 internal prototype to avoid an error. */
16612 /* We use char because int might match the return type of a gcc2
16613 builtin and then its argument prototype would still apply. */
16620 /* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16635 (eval $ac_link) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -s conftest$ac_exeext'
16640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; }; then
16645 eval "$as_ac_var=yes"
16647 echo "$as_me: failed program was:" >&5
16648 cat conftest.$ac_ext >&5
16649 eval "$as_ac_var=no"
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16655 if test `eval echo '${'$as_ac_var'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16664 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
16665 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
16666 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16672 #include "confdefs.h"
16673 #include <sys/types.h>
16678 struct utmp ut; ut.ut_name[0] = 'a';
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 samba_cv_HAVE_UT_UT_NAME=yes
16697 echo "$as_me: failed program was:" >&5
16698 cat conftest.$ac_ext >&5
16699 samba_cv_HAVE_UT_UT_NAME=no
16701 rm -f conftest.$ac_objext conftest.$ac_ext
16703 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
16704 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
16705 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_UT_UT_NAME 1
16713 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
16714 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
16715 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16721 #include "confdefs.h"
16722 #include <sys/types.h>
16727 struct utmp ut; ut.ut_user[0] = 'a';
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734 (eval $ac_compile) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -s conftest.$ac_objext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 samba_cv_HAVE_UT_UT_USER=yes
16746 echo "$as_me: failed program was:" >&5
16747 cat conftest.$ac_ext >&5
16748 samba_cv_HAVE_UT_UT_USER=no
16750 rm -f conftest.$ac_objext conftest.$ac_ext
16752 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
16753 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
16754 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
16756 cat >>confdefs.h <<\_ACEOF
16757 #define HAVE_UT_UT_USER 1
16762 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
16763 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
16764 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16770 #include "confdefs.h"
16771 #include <sys/types.h>
16776 struct utmp ut; ut.ut_id[0] = 'a';
16781 rm -f conftest.$ac_objext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783 (eval $ac_compile) 2>&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -s conftest.$ac_objext'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 samba_cv_HAVE_UT_UT_ID=yes
16795 echo "$as_me: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 samba_cv_HAVE_UT_UT_ID=no
16799 rm -f conftest.$ac_objext conftest.$ac_ext
16801 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
16802 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
16803 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
16805 cat >>confdefs.h <<\_ACEOF
16806 #define HAVE_UT_UT_ID 1
16811 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
16812 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
16813 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 cat >conftest.$ac_ext <<_ACEOF
16818 #line $LINENO "configure"
16819 #include "confdefs.h"
16820 #include <sys/types.h>
16825 struct utmp ut; ut.ut_host[0] = 'a';
16830 rm -f conftest.$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -s conftest.$ac_objext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 samba_cv_HAVE_UT_UT_HOST=yes
16844 echo "$as_me: failed program was:" >&5
16845 cat conftest.$ac_ext >&5
16846 samba_cv_HAVE_UT_UT_HOST=no
16848 rm -f conftest.$ac_objext conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
16851 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
16852 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
16854 cat >>confdefs.h <<\_ACEOF
16855 #define HAVE_UT_UT_HOST 1
16860 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
16861 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
16862 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.$ac_ext <<_ACEOF
16867 #line $LINENO "configure"
16868 #include "confdefs.h"
16869 #include <sys/types.h>
16874 struct utmp ut; time_t t; ut.ut_time = t;
16879 rm -f conftest.$ac_objext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881 (eval $ac_compile) 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -s conftest.$ac_objext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 samba_cv_HAVE_UT_UT_TIME=yes
16893 echo "$as_me: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16895 samba_cv_HAVE_UT_UT_TIME=no
16897 rm -f conftest.$ac_objext conftest.$ac_ext
16899 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
16900 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
16901 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_UT_UT_TIME 1
16909 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
16910 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
16911 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 cat >conftest.$ac_ext <<_ACEOF
16916 #line $LINENO "configure"
16917 #include "confdefs.h"
16918 #include <sys/types.h>
16923 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
16928 rm -f conftest.$ac_objext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16930 (eval $ac_compile) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 samba_cv_HAVE_UT_UT_TV=yes
16942 echo "$as_me: failed program was:" >&5
16943 cat conftest.$ac_ext >&5
16944 samba_cv_HAVE_UT_UT_TV=no
16946 rm -f conftest.$ac_objext conftest.$ac_ext
16948 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
16949 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
16950 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
16952 cat >>confdefs.h <<\_ACEOF
16953 #define HAVE_UT_UT_TV 1
16958 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
16959 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
16960 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 cat >conftest.$ac_ext <<_ACEOF
16965 #line $LINENO "configure"
16966 #include "confdefs.h"
16967 #include <sys/types.h>
16972 struct utmp ut; ut.ut_type = 0;
16977 rm -f conftest.$ac_objext
16978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16979 (eval $ac_compile) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -s conftest.$ac_objext'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 samba_cv_HAVE_UT_UT_TYPE=yes
16991 echo "$as_me: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 samba_cv_HAVE_UT_UT_TYPE=no
16995 rm -f conftest.$ac_objext conftest.$ac_ext
16997 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
16998 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
16999 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_UT_UT_TYPE 1
17007 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
17008 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
17009 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 cat >conftest.$ac_ext <<_ACEOF
17014 #line $LINENO "configure"
17015 #include "confdefs.h"
17016 #include <sys/types.h>
17021 struct utmp ut; ut.ut_pid = 0;
17026 rm -f conftest.$ac_objext
17027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17028 (eval $ac_compile) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try='test -s conftest.$ac_objext'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
17038 samba_cv_HAVE_UT_UT_PID=yes
17040 echo "$as_me: failed program was:" >&5
17041 cat conftest.$ac_ext >&5
17042 samba_cv_HAVE_UT_UT_PID=no
17044 rm -f conftest.$ac_objext conftest.$ac_ext
17046 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
17047 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
17048 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_UT_UT_PID 1
17056 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
17057 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
17058 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17062 cat >conftest.$ac_ext <<_ACEOF
17063 #line $LINENO "configure"
17064 #include "confdefs.h"
17065 #include <sys/types.h>
17070 struct utmp ut; ut.ut_exit.e_exit = 0;
17075 rm -f conftest.$ac_objext
17076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17077 (eval $ac_compile) 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -s conftest.$ac_objext'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; }; then
17087 samba_cv_HAVE_UT_UT_EXIT=yes
17089 echo "$as_me: failed program was:" >&5
17090 cat conftest.$ac_ext >&5
17091 samba_cv_HAVE_UT_UT_EXIT=no
17093 rm -f conftest.$ac_objext conftest.$ac_ext
17095 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
17096 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
17097 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
17099 cat >>confdefs.h <<\_ACEOF
17100 #define HAVE_UT_UT_EXIT 1
17105 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
17106 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
17107 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 cat >conftest.$ac_ext <<_ACEOF
17112 #line $LINENO "configure"
17113 #include "confdefs.h"
17114 #include <sys/types.h>
17119 struct utmp ut; ut.ut_addr = 0;
17124 rm -f conftest.$ac_objext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17126 (eval $ac_compile) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
17130 { ac_try='test -s conftest.$ac_objext'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; }; then
17136 samba_cv_HAVE_UT_UT_ADDR=yes
17138 echo "$as_me: failed program was:" >&5
17139 cat conftest.$ac_ext >&5
17140 samba_cv_HAVE_UT_UT_ADDR=no
17142 rm -f conftest.$ac_objext conftest.$ac_ext
17144 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
17145 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
17146 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
17148 cat >>confdefs.h <<\_ACEOF
17149 #define HAVE_UT_UT_ADDR 1
17154 if test x$ac_cv_func_pututline = xyes ; then
17155 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
17156 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
17157 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 cat >conftest.$ac_ext <<_ACEOF
17162 #line $LINENO "configure"
17163 #include "confdefs.h"
17164 #include <sys/types.h>
17169 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
17174 rm -f conftest.$ac_objext
17175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17176 (eval $ac_compile) 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -s conftest.$ac_objext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
17188 echo "$as_me: failed program was:" >&5
17189 cat conftest.$ac_ext >&5
17190 samba_cv_PUTUTLINE_RETURNS_UTMP=no
17192 rm -f conftest.$ac_objext conftest.$ac_ext
17194 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
17195 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
17196 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
17198 cat >>confdefs.h <<\_ACEOF
17199 #define PUTUTLINE_RETURNS_UTMP 1
17205 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
17206 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
17207 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17213 #include "confdefs.h"
17214 #include <sys/types.h>
17219 struct utmpx ux; ux.ut_syslen = 0;
17224 rm -f conftest.$ac_objext
17225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17226 (eval $ac_compile) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -s conftest.$ac_objext'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; }; then
17236 samba_cv_HAVE_UX_UT_SYSLEN=yes
17238 echo "$as_me: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17240 samba_cv_HAVE_UX_UT_SYSLEN=no
17242 rm -f conftest.$ac_objext conftest.$ac_ext
17244 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
17245 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
17246 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
17248 cat >>confdefs.h <<\_ACEOF
17249 #define HAVE_UX_UT_SYSLEN 1
17255 #################################################
17256 # check for libiconv support
17257 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
17258 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
17260 # Check whether --with-libiconv or --without-libiconv was given.
17261 if test "${with_libiconv+set}" = set; then
17262 withval="$with_libiconv"
17265 echo "$as_me:$LINENO: result: no" >&5
17266 echo "${ECHO_T}no" >&6
17269 echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6
17271 CFLAGS="$CFLAGS -I$withval/include"
17272 LDFLAGS="$LDFLAGS -L$withval/lib"
17274 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
17275 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
17276 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-liconv $LIBS"
17281 cat >conftest.$ac_ext <<_ACEOF
17282 #line $LINENO "configure"
17283 #include "confdefs.h"
17285 /* Override any gcc2 internal prototype to avoid an error. */
17289 /* We use char because int might match the return type of a gcc2
17290 builtin and then its argument prototype would still apply. */
17291 char iconv_open ();
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17302 (eval $ac_link) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
17306 { ac_try='test -s conftest$ac_exeext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_lib_iconv_iconv_open=yes
17314 echo "$as_me: failed program was:" >&5
17315 cat conftest.$ac_ext >&5
17316 ac_cv_lib_iconv_iconv_open=no
17318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_check_lib_save_LIBS
17321 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
17322 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
17323 if test $ac_cv_lib_iconv_iconv_open = yes; then
17324 cat >>confdefs.h <<_ACEOF
17325 #define HAVE_LIBICONV 1
17328 LIBS="-liconv $LIBS"
17333 cat >>confdefs.h <<_ACEOF
17334 #define WITH_LIBICONV "${withval}"
17340 echo "$as_me:$LINENO: result: no" >&5
17341 echo "${ECHO_T}no" >&6
17347 # check for iconv in libc
17348 echo "$as_me:$LINENO: checking for working iconv" >&5
17349 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
17350 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 if test "$cross_compiling" = yes; then
17355 samba_cv_HAVE_NATIVE_ICONV=cross
17357 cat >conftest.$ac_ext <<_ACEOF
17358 #line $LINENO "configure"
17359 #include "confdefs.h"
17363 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
17364 if (cd == 0 || cd == (iconv_t)-1) return -1;
17369 rm -f conftest$ac_exeext
17370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17371 (eval $ac_link) 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 samba_cv_HAVE_NATIVE_ICONV=yes
17382 echo "$as_me: program exited with status $ac_status" >&5
17383 echo "$as_me: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17385 ( exit $ac_status )
17386 samba_cv_HAVE_NATIVE_ICONV=no
17388 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
17392 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
17393 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_NATIVE_ICONV 1
17402 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
17403 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
17404 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17408 if test "$cross_compiling" = yes; then
17409 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
17411 cat >conftest.$ac_ext <<_ACEOF
17412 #line $LINENO "configure"
17413 #include "confdefs.h"
17415 #include <sys/types.h>
17418 #define F_GETLEASE 1025
17421 int fd = open("/dev/null", O_RDONLY);
17422 return fcntl(fd, F_GETLEASE, 0) == -1;
17426 rm -f conftest$ac_exeext
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428 (eval $ac_link) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
17439 echo "$as_me: program exited with status $ac_status" >&5
17440 echo "$as_me: failed program was:" >&5
17441 cat conftest.$ac_ext >&5
17442 ( exit $ac_status )
17443 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
17445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17448 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
17449 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
17450 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
17452 cat >>confdefs.h <<\_ACEOF
17453 #define HAVE_KERNEL_OPLOCKS_LINUX 1
17458 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
17459 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
17460 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 if test "$cross_compiling" = yes; then
17465 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
17467 cat >conftest.$ac_ext <<_ACEOF
17468 #line $LINENO "configure"
17469 #include "confdefs.h"
17471 #include <sys/types.h>
17473 #include <signal.h>
17475 #define F_NOTIFY 1026
17478 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
17482 rm -f conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
17495 echo "$as_me: program exited with status $ac_status" >&5
17496 echo "$as_me: failed program was:" >&5
17497 cat conftest.$ac_ext >&5
17498 ( exit $ac_status )
17499 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
17501 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17504 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
17505 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
17506 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
17508 cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_KERNEL_CHANGE_NOTIFY 1
17514 echo "$as_me:$LINENO: checking for kernel share modes" >&5
17515 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
17516 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
17517 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 if test "$cross_compiling" = yes; then
17521 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
17523 cat >conftest.$ac_ext <<_ACEOF
17524 #line $LINENO "configure"
17525 #include "confdefs.h"
17527 #include <sys/types.h>
17529 #include <signal.h>
17530 #include <sys/file.h>
17532 #define LOCK_MAND 32
17533 #define LOCK_READ 64
17536 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
17540 rm -f conftest$ac_exeext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17542 (eval $ac_link) 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
17553 echo "$as_me: program exited with status $ac_status" >&5
17554 echo "$as_me: failed program was:" >&5
17555 cat conftest.$ac_ext >&5
17556 ( exit $ac_status )
17557 samba_cv_HAVE_KERNEL_SHARE_MODES=no
17559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17562 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
17563 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
17564 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_KERNEL_SHARE_MODES 1
17575 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
17576 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
17577 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 cat >conftest.$ac_ext <<_ACEOF
17582 #line $LINENO "configure"
17583 #include "confdefs.h"
17584 #include <sys/types.h>
17589 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
17594 rm -f conftest.$ac_objext
17595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17596 (eval $ac_compile) 2>&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -s conftest.$ac_objext'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; }; then
17606 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
17608 echo "$as_me: failed program was:" >&5
17609 cat conftest.$ac_ext >&5
17610 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
17612 rm -f conftest.$ac_objext conftest.$ac_ext
17614 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
17615 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
17616 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
17618 cat >>confdefs.h <<\_ACEOF
17619 #define HAVE_KERNEL_OPLOCKS_IRIX 1
17624 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
17625 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
17626 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 if test "$cross_compiling" = yes; then
17631 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
17633 cat >conftest.$ac_ext <<_ACEOF
17634 #line $LINENO "configure"
17635 #include "confdefs.h"
17636 #include <sys/types.h>
17637 #include <sys/capability.h>
17640 if ((cap = cap_get_proc()) == NULL)
17642 cap->cap_effective |= CAP_NETWORK_MGT;
17643 cap->cap_inheritable |= CAP_NETWORK_MGT;
17649 rm -f conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
17662 echo "$as_me: program exited with status $ac_status" >&5
17663 echo "$as_me: failed program was:" >&5
17664 cat conftest.$ac_ext >&5
17665 ( exit $ac_status )
17666 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
17668 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17671 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
17672 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
17673 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
17675 cat >>confdefs.h <<\_ACEOF
17676 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
17682 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
17683 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
17686 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
17687 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17688 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 cat >conftest.$ac_ext <<_ACEOF
17693 #line $LINENO "configure"
17694 #include "confdefs.h"
17695 #include <sys/types.h>
17696 #if defined(HAVE_RPC_RPC_H)
17697 #include <rpc/rpc.h>
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -s conftest.$ac_objext'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
17721 echo "$as_me: failed program was:" >&5
17722 cat conftest.$ac_ext >&5
17723 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
17725 rm -f conftest.$ac_objext conftest.$ac_ext
17727 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
17728 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
17729 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
17731 cat >>confdefs.h <<\_ACEOF
17732 #define HAVE_INT16_FROM_RPC_RPC_H 1
17737 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
17738 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
17739 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17743 cat >conftest.$ac_ext <<_ACEOF
17744 #line $LINENO "configure"
17745 #include "confdefs.h"
17746 #include <sys/types.h>
17747 #if defined(HAVE_RPC_RPC_H)
17748 #include <rpc/rpc.h>
17758 rm -f conftest.$ac_objext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760 (eval $ac_compile) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
17772 echo "$as_me: failed program was:" >&5
17773 cat conftest.$ac_ext >&5
17774 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
17776 rm -f conftest.$ac_objext conftest.$ac_ext
17778 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
17779 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
17780 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
17782 cat >>confdefs.h <<\_ACEOF
17783 #define HAVE_UINT16_FROM_RPC_RPC_H 1
17788 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
17789 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17790 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 cat >conftest.$ac_ext <<_ACEOF
17795 #line $LINENO "configure"
17796 #include "confdefs.h"
17797 #include <sys/types.h>
17798 #if defined(HAVE_RPC_RPC_H)
17799 #include <rpc/rpc.h>
17809 rm -f conftest.$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -s conftest.$ac_objext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
17823 echo "$as_me: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17825 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
17827 rm -f conftest.$ac_objext conftest.$ac_ext
17829 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
17830 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
17831 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
17833 cat >>confdefs.h <<\_ACEOF
17834 #define HAVE_INT32_FROM_RPC_RPC_H 1
17839 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
17840 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
17841 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 cat >conftest.$ac_ext <<_ACEOF
17846 #line $LINENO "configure"
17847 #include "confdefs.h"
17848 #include <sys/types.h>
17849 #if defined(HAVE_RPC_RPC_H)
17850 #include <rpc/rpc.h>
17860 rm -f conftest.$ac_objext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17862 (eval $ac_compile) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
17874 echo "$as_me: failed program was:" >&5
17875 cat conftest.$ac_ext >&5
17876 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
17878 rm -f conftest.$ac_objext conftest.$ac_ext
17880 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
17881 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
17882 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
17884 cat >>confdefs.h <<\_ACEOF
17885 #define HAVE_UINT32_FROM_RPC_RPC_H 1
17891 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
17892 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
17893 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 cat >conftest.$ac_ext <<_ACEOF
17898 #line $LINENO "configure"
17899 #include "confdefs.h"
17900 #include <sys/types.h>
17901 #ifdef HAVE_SYS_SECURITY_H
17902 #include <sys/security.h>
17904 #endif /* HAVE_SYS_SECURITY_H */
17905 #if defined(HAVE_RPC_RPC_H)
17906 #include <rpc/rpc.h>
17916 rm -f conftest.$ac_objext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17918 (eval $ac_compile) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -s conftest.$ac_objext'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
17930 echo "$as_me: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
17934 rm -f conftest.$ac_objext conftest.$ac_ext
17936 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
17937 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
17938 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
17946 echo "$as_me:$LINENO: checking for test routines" >&5
17947 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
17948 if test "$cross_compiling" = yes; then
17949 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
17950 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
17952 cat >conftest.$ac_ext <<_ACEOF
17953 #line $LINENO "configure"
17954 #include "confdefs.h"
17955 #include "${srcdir-.}/tests/trivial.c"
17957 rm -f conftest$ac_exeext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959 (eval $ac_link) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 echo "$as_me:$LINENO: result: yes" >&5
17969 echo "${ECHO_T}yes" >&6
17971 echo "$as_me: program exited with status $ac_status" >&5
17972 echo "$as_me: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17974 ( exit $ac_status )
17975 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
17976 echo "$as_me: error: cant find test code. Aborting config" >&2;}
17977 { (exit 1); exit 1; }; }
17979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17982 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
17983 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
17984 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17988 if test "$cross_compiling" = yes; then
17989 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
17991 cat >conftest.$ac_ext <<_ACEOF
17992 #line $LINENO "configure"
17993 #include "confdefs.h"
17994 #include "${srcdir-.}/tests/ftruncate.c"
17996 rm -f conftest$ac_exeext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17998 (eval $ac_link) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; }; then
18007 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
18009 echo "$as_me: program exited with status $ac_status" >&5
18010 echo "$as_me: failed program was:" >&5
18011 cat conftest.$ac_ext >&5
18012 ( exit $ac_status )
18013 samba_cv_HAVE_FTRUNCATE_EXTEND=no
18015 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
18019 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
18020 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
18022 cat >>confdefs.h <<\_ACEOF
18023 #define HAVE_FTRUNCATE_EXTEND 1
18028 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
18029 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
18030 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 if test "$cross_compiling" = yes; then
18035 samba_cv_HAVE_WORKING_AF_LOCAL=cross
18037 cat >conftest.$ac_ext <<_ACEOF
18038 #line $LINENO "configure"
18039 #include "confdefs.h"
18040 #include "${srcdir-.}/tests/unixsock.c"
18042 rm -f conftest$ac_exeext
18043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18044 (eval $ac_link) 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 samba_cv_HAVE_WORKING_AF_LOCAL=yes
18055 echo "$as_me: program exited with status $ac_status" >&5
18056 echo "$as_me: failed program was:" >&5
18057 cat conftest.$ac_ext >&5
18058 ( exit $ac_status )
18059 samba_cv_HAVE_WORKING_AF_LOCAL=no
18061 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18064 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
18065 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
18066 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_WORKING_AF_LOCAL 1
18075 echo "$as_me:$LINENO: checking for broken getgroups" >&5
18076 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
18077 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 if test "$cross_compiling" = yes; then
18082 samba_cv_HAVE_BROKEN_GETGROUPS=cross
18084 cat >conftest.$ac_ext <<_ACEOF
18085 #line $LINENO "configure"
18086 #include "confdefs.h"
18087 #include "${srcdir-.}/tests/getgroups.c"
18089 rm -f conftest$ac_exeext
18090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18091 (eval $ac_link) 2>&5
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 samba_cv_HAVE_BROKEN_GETGROUPS=yes
18102 echo "$as_me: program exited with status $ac_status" >&5
18103 echo "$as_me: failed program was:" >&5
18104 cat conftest.$ac_ext >&5
18105 ( exit $ac_status )
18106 samba_cv_HAVE_BROKEN_GETGROUPS=no
18108 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
18112 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
18113 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
18115 cat >>confdefs.h <<\_ACEOF
18116 #define HAVE_BROKEN_GETGROUPS 1
18121 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
18122 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
18123 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 SAVE_CPPFLAGS="$CPPFLAGS"
18128 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
18129 cat >conftest.$ac_ext <<_ACEOF
18130 #line $LINENO "configure"
18131 #include "confdefs.h"
18133 #define REPLACE_GETPASS 1
18134 #define NO_CONFIG_H 1
18135 #define main dont_declare_main
18136 #include "${srcdir-.}/lib/getsmbpass.c"
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 samba_cv_REPLACE_GETPASS=yes
18161 echo "$as_me: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18163 samba_cv_REPLACE_GETPASS=no
18165 rm -f conftest.$ac_objext conftest.$ac_ext
18166 CPPFLAGS="$SAVE_CPPFLAGS"
18169 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
18170 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
18171 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
18173 cat >>confdefs.h <<\_ACEOF
18174 #define REPLACE_GETPASS 1
18179 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
18180 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
18181 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 if test "$cross_compiling" = yes; then
18186 samba_cv_REPLACE_INET_NTOA=cross
18188 cat >conftest.$ac_ext <<_ACEOF
18189 #line $LINENO "configure"
18190 #include "confdefs.h"
18193 #include <sys/types.h>
18194 #include <netinet/in.h>
18195 #ifdef HAVE_ARPA_INET_H
18196 #include <arpa/inet.h>
18198 main() { struct in_addr ip; ip.s_addr = 0x12345678;
18199 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
18200 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
18203 rm -f conftest$ac_exeext
18204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18205 (eval $ac_link) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 samba_cv_REPLACE_INET_NTOA=yes
18216 echo "$as_me: program exited with status $ac_status" >&5
18217 echo "$as_me: failed program was:" >&5
18218 cat conftest.$ac_ext >&5
18219 ( exit $ac_status )
18220 samba_cv_REPLACE_INET_NTOA=no
18222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18225 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
18226 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
18227 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
18229 cat >>confdefs.h <<\_ACEOF
18230 #define REPLACE_INET_NTOA 1
18235 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
18236 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
18237 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 if test "$cross_compiling" = yes; then
18242 samba_cv_HAVE_SECURE_MKSTEMP=cross
18244 cat >conftest.$ac_ext <<_ACEOF
18245 #line $LINENO "configure"
18246 #include "confdefs.h"
18247 #include <stdlib.h>
18248 #include <sys/types.h>
18249 #include <sys/stat.h>
18250 #include <unistd.h>
18253 char tpl[20]="/tmp/test.XXXXXX";
18254 int fd = mkstemp(tpl);
18255 if (fd == -1) exit(1);
18257 if (fstat(fd, &st) != 0) exit(1);
18258 if ((st.st_mode & 0777) != 0600) exit(1);
18262 rm -f conftest$ac_exeext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18264 (eval $ac_link) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18273 samba_cv_HAVE_SECURE_MKSTEMP=yes
18275 echo "$as_me: program exited with status $ac_status" >&5
18276 echo "$as_me: failed program was:" >&5
18277 cat conftest.$ac_ext >&5
18278 ( exit $ac_status )
18279 samba_cv_HAVE_SECURE_MKSTEMP=no
18281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18284 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
18285 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
18286 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_SECURE_MKSTEMP 1
18294 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
18295 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
18296 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 if test "$cross_compiling" = yes; then
18301 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
18303 cat >conftest.$ac_ext <<_ACEOF
18304 #line $LINENO "configure"
18305 #include "confdefs.h"
18306 #include <unistd.h>
18307 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
18309 rm -f conftest$ac_exeext
18310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18311 (eval $ac_link) 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
18322 echo "$as_me: program exited with status $ac_status" >&5
18323 echo "$as_me: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18325 ( exit $ac_status )
18326 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
18328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18331 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
18332 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
18333 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
18335 cat >>confdefs.h <<\_ACEOF
18336 #define SYSCONF_SC_NGROUPS_MAX 1
18341 echo "$as_me:$LINENO: checking for root" >&5
18342 echo $ECHO_N "checking for root... $ECHO_C" >&6
18343 if test "${samba_cv_HAVE_ROOT+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18347 if test "$cross_compiling" = yes; then
18348 samba_cv_HAVE_ROOT=cross
18350 cat >conftest.$ac_ext <<_ACEOF
18351 #line $LINENO "configure"
18352 #include "confdefs.h"
18353 main() { exit(getuid() != 0); }
18355 rm -f conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357 (eval $ac_link) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 samba_cv_HAVE_ROOT=yes
18368 echo "$as_me: program exited with status $ac_status" >&5
18369 echo "$as_me: failed program was:" >&5
18370 cat conftest.$ac_ext >&5
18371 ( exit $ac_status )
18372 samba_cv_HAVE_ROOT=no
18374 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18377 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
18378 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
18379 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
18381 cat >>confdefs.h <<\_ACEOF
18382 #define HAVE_ROOT 1
18386 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
18387 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
18391 # look for a method of finding the list of network interfaces
18393 echo "$as_me:$LINENO: checking for iface AIX" >&5
18394 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
18395 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18399 if test "$cross_compiling" = yes; then
18400 samba_cv_HAVE_IFACE_AIX=cross
18402 cat >conftest.$ac_ext <<_ACEOF
18403 #line $LINENO "configure"
18404 #include "confdefs.h"
18406 #define HAVE_IFACE_AIX 1
18407 #define AUTOCONF_TEST 1
18408 #include "confdefs.h"
18409 #include "${srcdir-.}/lib/interfaces.c"
18411 rm -f conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413 (eval $ac_link) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 samba_cv_HAVE_IFACE_AIX=yes
18424 echo "$as_me: program exited with status $ac_status" >&5
18425 echo "$as_me: failed program was:" >&5
18426 cat conftest.$ac_ext >&5
18427 ( exit $ac_status )
18428 samba_cv_HAVE_IFACE_AIX=no
18430 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18433 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
18434 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
18435 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE_IFACE_AIX 1
18443 if test $iface = no; then
18444 echo "$as_me:$LINENO: checking for iface ifconf" >&5
18445 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
18446 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 if test "$cross_compiling" = yes; then
18451 samba_cv_HAVE_IFACE_IFCONF=cross
18453 cat >conftest.$ac_ext <<_ACEOF
18454 #line $LINENO "configure"
18455 #include "confdefs.h"
18457 #define HAVE_IFACE_IFCONF 1
18458 #define AUTOCONF_TEST 1
18459 #include "confdefs.h"
18460 #include "${srcdir-.}/lib/interfaces.c"
18462 rm -f conftest$ac_exeext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18464 (eval $ac_link) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 samba_cv_HAVE_IFACE_IFCONF=yes
18475 echo "$as_me: program exited with status $ac_status" >&5
18476 echo "$as_me: failed program was:" >&5
18477 cat conftest.$ac_ext >&5
18478 ( exit $ac_status )
18479 samba_cv_HAVE_IFACE_IFCONF=no
18481 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18484 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
18485 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
18486 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_IFACE_IFCONF 1
18495 if test $iface = no; then
18496 echo "$as_me:$LINENO: checking for iface ifreq" >&5
18497 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
18498 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 if test "$cross_compiling" = yes; then
18503 samba_cv_HAVE_IFACE_IFREQ=cross
18505 cat >conftest.$ac_ext <<_ACEOF
18506 #line $LINENO "configure"
18507 #include "confdefs.h"
18509 #define HAVE_IFACE_IFREQ 1
18510 #define AUTOCONF_TEST 1
18511 #include "confdefs.h"
18512 #include "${srcdir-.}/lib/interfaces.c"
18514 rm -f conftest$ac_exeext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18516 (eval $ac_link) 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 samba_cv_HAVE_IFACE_IFREQ=yes
18527 echo "$as_me: program exited with status $ac_status" >&5
18528 echo "$as_me: failed program was:" >&5
18529 cat conftest.$ac_ext >&5
18530 ( exit $ac_status )
18531 samba_cv_HAVE_IFACE_IFREQ=no
18533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18536 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
18537 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
18538 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
18540 cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_IFACE_IFREQ 1
18548 ################################################
18549 # look for a method of setting the effective uid
18551 if test $seteuid = no; then
18552 echo "$as_me:$LINENO: checking for setresuid" >&5
18553 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
18554 if test "${samba_cv_USE_SETRESUID+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 if test "$cross_compiling" = yes; then
18559 samba_cv_USE_SETRESUID=cross
18561 cat >conftest.$ac_ext <<_ACEOF
18562 #line $LINENO "configure"
18563 #include "confdefs.h"
18565 #define AUTOCONF_TEST 1
18566 #define USE_SETRESUID 1
18567 #include "confdefs.h"
18568 #include "${srcdir-.}/lib/util_sec.c"
18570 rm -f conftest$ac_exeext
18571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18572 (eval $ac_link) 2>&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 samba_cv_USE_SETRESUID=yes
18583 echo "$as_me: program exited with status $ac_status" >&5
18584 echo "$as_me: failed program was:" >&5
18585 cat conftest.$ac_ext >&5
18586 ( exit $ac_status )
18587 samba_cv_USE_SETRESUID=no
18589 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18592 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
18593 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
18594 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
18596 cat >>confdefs.h <<\_ACEOF
18597 #define USE_SETRESUID 1
18604 if test $seteuid = no; then
18605 echo "$as_me:$LINENO: checking for setreuid" >&5
18606 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
18607 if test "${samba_cv_USE_SETREUID+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 if test "$cross_compiling" = yes; then
18612 samba_cv_USE_SETREUID=cross
18614 cat >conftest.$ac_ext <<_ACEOF
18615 #line $LINENO "configure"
18616 #include "confdefs.h"
18618 #define AUTOCONF_TEST 1
18619 #define USE_SETREUID 1
18620 #include "confdefs.h"
18621 #include "${srcdir-.}/lib/util_sec.c"
18623 rm -f conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625 (eval $ac_link) 2>&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 samba_cv_USE_SETREUID=yes
18636 echo "$as_me: program exited with status $ac_status" >&5
18637 echo "$as_me: failed program was:" >&5
18638 cat conftest.$ac_ext >&5
18639 ( exit $ac_status )
18640 samba_cv_USE_SETREUID=no
18642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18645 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
18646 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
18647 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
18649 cat >>confdefs.h <<\_ACEOF
18650 #define USE_SETREUID 1
18656 if test $seteuid = no; then
18657 echo "$as_me:$LINENO: checking for seteuid" >&5
18658 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
18659 if test "${samba_cv_USE_SETEUID+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18663 if test "$cross_compiling" = yes; then
18664 samba_cv_USE_SETEUID=cross
18666 cat >conftest.$ac_ext <<_ACEOF
18667 #line $LINENO "configure"
18668 #include "confdefs.h"
18670 #define AUTOCONF_TEST 1
18671 #define USE_SETEUID 1
18672 #include "confdefs.h"
18673 #include "${srcdir-.}/lib/util_sec.c"
18675 rm -f conftest$ac_exeext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18677 (eval $ac_link) 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18682 (eval $ac_try) 2>&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); }; }; then
18686 samba_cv_USE_SETEUID=yes
18688 echo "$as_me: program exited with status $ac_status" >&5
18689 echo "$as_me: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18691 ( exit $ac_status )
18692 samba_cv_USE_SETEUID=no
18694 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18697 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
18698 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
18699 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
18701 cat >>confdefs.h <<\_ACEOF
18702 #define USE_SETEUID 1
18708 if test $seteuid = no; then
18709 echo "$as_me:$LINENO: checking for setuidx" >&5
18710 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
18711 if test "${samba_cv_USE_SETUIDX+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 if test "$cross_compiling" = yes; then
18716 samba_cv_USE_SETUIDX=cross
18718 cat >conftest.$ac_ext <<_ACEOF
18719 #line $LINENO "configure"
18720 #include "confdefs.h"
18722 #define AUTOCONF_TEST 1
18723 #define USE_SETUIDX 1
18724 #include "confdefs.h"
18725 #include "${srcdir-.}/lib/util_sec.c"
18727 rm -f conftest$ac_exeext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729 (eval $ac_link) 2>&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 samba_cv_USE_SETUIDX=yes
18740 echo "$as_me: program exited with status $ac_status" >&5
18741 echo "$as_me: failed program was:" >&5
18742 cat conftest.$ac_ext >&5
18743 ( exit $ac_status )
18744 samba_cv_USE_SETUIDX=no
18746 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18749 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
18750 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
18751 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
18753 cat >>confdefs.h <<\_ACEOF
18754 #define USE_SETUIDX 1
18761 echo "$as_me:$LINENO: checking for working mmap" >&5
18762 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
18763 if test "${samba_cv_HAVE_MMAP+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18767 if test "$cross_compiling" = yes; then
18768 samba_cv_HAVE_MMAP=cross
18770 cat >conftest.$ac_ext <<_ACEOF
18771 #line $LINENO "configure"
18772 #include "confdefs.h"
18773 #include "${srcdir-.}/tests/shared_mmap.c"
18775 rm -f conftest$ac_exeext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18777 (eval $ac_link) 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18782 (eval $ac_try) 2>&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); }; }; then
18786 samba_cv_HAVE_MMAP=yes
18788 echo "$as_me: program exited with status $ac_status" >&5
18789 echo "$as_me: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18791 ( exit $ac_status )
18792 samba_cv_HAVE_MMAP=no
18794 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18797 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
18798 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
18799 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
18801 cat >>confdefs.h <<\_ACEOF
18802 #define HAVE_MMAP 1
18807 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
18808 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
18809 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 if test "$cross_compiling" = yes; then
18814 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
18816 cat >conftest.$ac_ext <<_ACEOF
18817 #line $LINENO "configure"
18818 #include "confdefs.h"
18819 #include "${srcdir-.}/tests/ftruncroot.c"
18821 rm -f conftest$ac_exeext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18823 (eval $ac_link) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
18834 echo "$as_me: program exited with status $ac_status" >&5
18835 echo "$as_me: failed program was:" >&5
18836 cat conftest.$ac_ext >&5
18837 ( exit $ac_status )
18838 samba_cv_FTRUNCATE_NEEDS_ROOT=no
18840 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18843 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
18844 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
18845 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define FTRUNCATE_NEEDS_ROOT 1
18853 echo "$as_me:$LINENO: checking for fcntl locking" >&5
18854 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
18855 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 if test "$cross_compiling" = yes; then
18860 samba_cv_HAVE_FCNTL_LOCK=cross
18862 cat >conftest.$ac_ext <<_ACEOF
18863 #line $LINENO "configure"
18864 #include "confdefs.h"
18865 #include "${srcdir-.}/tests/fcntl_lock.c"
18867 rm -f conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869 (eval $ac_link) 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 samba_cv_HAVE_FCNTL_LOCK=yes
18880 echo "$as_me: program exited with status $ac_status" >&5
18881 echo "$as_me: failed program was:" >&5
18882 cat conftest.$ac_ext >&5
18883 ( exit $ac_status )
18884 samba_cv_HAVE_FCNTL_LOCK=no
18886 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18889 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
18890 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
18891 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE_FCNTL_LOCK 1
18899 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
18900 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
18901 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 if test "$cross_compiling" = yes; then
18906 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
18908 cat >conftest.$ac_ext <<_ACEOF
18909 #line $LINENO "configure"
18910 #include "confdefs.h"
18911 #include "${srcdir-.}/tests/fcntl_lock64.c"
18913 rm -f conftest$ac_exeext
18914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18915 (eval $ac_link) 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
18926 echo "$as_me: program exited with status $ac_status" >&5
18927 echo "$as_me: failed program was:" >&5
18928 cat conftest.$ac_ext >&5
18929 ( exit $ac_status )
18930 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
18932 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18935 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
18936 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
18937 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE_BROKEN_FCNTL64_LOCKS 1
18947 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
18948 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
18949 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 if test "$cross_compiling" = yes; then
18954 samba_cv_HAVE_STRUCT_FLOCK64=cross
18956 cat >conftest.$ac_ext <<_ACEOF
18957 #line $LINENO "configure"
18958 #include "confdefs.h"
18960 #if defined(HAVE_UNISTD_H)
18961 #include <unistd.h>
18964 #include <stdlib.h>
18966 #ifdef HAVE_FCNTL_H
18970 #ifdef HAVE_SYS_FCNTL_H
18971 #include <sys/fcntl.h>
18973 main() { struct flock64 fl64;
18974 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
18981 rm -f conftest$ac_exeext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983 (eval $ac_link) 2>&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 samba_cv_HAVE_STRUCT_FLOCK64=yes
18994 echo "$as_me: program exited with status $ac_status" >&5
18995 echo "$as_me: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
18997 ( exit $ac_status )
18998 samba_cv_HAVE_STRUCT_FLOCK64=no
19000 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19003 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
19004 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
19006 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
19008 cat >>confdefs.h <<\_ACEOF
19009 #define HAVE_STRUCT_FLOCK64 1
19015 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
19016 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
19017 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 cat >conftest.$ac_ext <<_ACEOF
19022 #line $LINENO "configure"
19023 #include "confdefs.h"
19024 #include <sys/types.h>
19025 #include <sys/stat.h>
19026 #include <unistd.h>
19030 struct stat st; st.st_blocks = 0;
19035 rm -f conftest.$ac_objext
19036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19037 (eval $ac_compile) 2>&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -s conftest.$ac_objext'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 samba_cv_HAVE_STAT_ST_BLOCKS=yes
19049 echo "$as_me: failed program was:" >&5
19050 cat conftest.$ac_ext >&5
19051 samba_cv_HAVE_STAT_ST_BLOCKS=no
19053 rm -f conftest.$ac_objext conftest.$ac_ext
19055 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
19056 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
19057 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE_STAT_ST_BLOCKS 1
19065 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
19066 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
19067 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 cat >conftest.$ac_ext <<_ACEOF
19072 #line $LINENO "configure"
19073 #include "confdefs.h"
19074 #include <sys/types.h>
19075 #include <sys/stat.h>
19076 #include <unistd.h>
19080 struct stat st; st.st_blksize = 0;
19085 rm -f conftest.$ac_objext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087 (eval $ac_compile) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -s conftest.$ac_objext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
19099 echo "$as_me: failed program was:" >&5
19100 cat conftest.$ac_ext >&5
19101 samba_cv_HAVE_STAT_ST_BLKSIZE=no
19103 rm -f conftest.$ac_objext conftest.$ac_ext
19105 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
19106 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
19107 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_STAT_ST_BLKSIZE 1
19117 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
19118 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
19119 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19125 #include "confdefs.h"
19127 #ifdef HAVE_SYS_VFS_H
19128 #include <sys/vfs.h>
19130 #ifdef HAVE_SYS_CAPABILITY_H
19131 #include <sys/capability.h>
19142 rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144 (eval $ac_compile) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -s conftest.$ac_objext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
19156 echo "$as_me: failed program was:" >&5
19157 cat conftest.$ac_ext >&5
19158 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
19160 rm -f conftest.$ac_objext conftest.$ac_ext
19162 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
19163 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
19164 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
19166 cat >>confdefs.h <<\_ACEOF
19167 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
19174 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
19175 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
19176 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19182 #include "confdefs.h"
19183 #include <sys/acl.h>
19184 #if defined(HAVE_RPCSVC_NIS_H)
19185 #include <rpcsvc/nis.h>
19195 rm -f conftest.$ac_objext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19197 (eval $ac_compile) 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); } &&
19201 { ac_try='test -s conftest.$ac_objext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19207 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
19209 echo "$as_me: failed program was:" >&5
19210 cat conftest.$ac_ext >&5
19211 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
19213 rm -f conftest.$ac_objext conftest.$ac_ext
19215 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
19216 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
19217 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
19219 cat >>confdefs.h <<\_ACEOF
19220 #define BROKEN_NISPLUS_INCLUDE_FILES 1
19226 #################################################
19227 # check for smbwrapper support
19228 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
19229 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
19231 # Check whether --with-smbwrapper or --without-smbwrapper was given.
19232 if test "${with_smbwrapper+set}" = set; then
19233 withval="$with_smbwrapper"
19236 echo "$as_me:$LINENO: result: yes" >&5
19237 echo "${ECHO_T}yes" >&6
19239 cat >>confdefs.h <<\_ACEOF
19240 #define WITH_SMBWRAPPER 1
19243 WRAPPROG="bin/smbsh"
19244 WRAP="bin/smbwrapper.$SHLIBEXT"
19246 if test x$ATTEMPT_WRAP32_BUILD = x; then
19249 WRAP32=bin/smbwrapper.32.$SHLIBEXT
19252 # Conditions under which smbwrapper should not be built.
19254 if test x$PICFLAG = x; then
19255 echo No support for PIC code - disabling smbwrapper and smbsh
19259 elif test x$ac_cv_func_syscall = xno; then
19260 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
19261 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
19268 echo "$as_me:$LINENO: result: no" >&5
19269 echo "${ECHO_T}no" >&6
19273 echo "$as_me:$LINENO: result: no" >&5
19274 echo "${ECHO_T}no" >&6
19278 #################################################
19279 # check for AFS clear-text auth support
19280 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
19281 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
19283 # Check whether --with-afs or --without-afs was given.
19284 if test "${with_afs+set}" = set; then
19285 withval="$with_afs"
19288 echo "$as_me:$LINENO: result: yes" >&5
19289 echo "${ECHO_T}yes" >&6
19291 cat >>confdefs.h <<\_ACEOF
19297 echo "$as_me:$LINENO: result: no" >&5
19298 echo "${ECHO_T}no" >&6
19302 echo "$as_me:$LINENO: result: no" >&5
19303 echo "${ECHO_T}no" >&6
19308 #################################################
19309 # check for the DFS clear-text auth system
19310 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
19311 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
19313 # Check whether --with-dfs or --without-dfs was given.
19314 if test "${with_dfs+set}" = set; then
19315 withval="$with_dfs"
19318 echo "$as_me:$LINENO: result: yes" >&5
19319 echo "${ECHO_T}yes" >&6
19321 cat >>confdefs.h <<\_ACEOF
19327 echo "$as_me:$LINENO: result: no" >&5
19328 echo "${ECHO_T}no" >&6
19332 echo "$as_me:$LINENO: result: no" >&5
19333 echo "${ECHO_T}no" >&6
19337 #################################################
19338 # active directory support
19340 with_ads_support=yes
19341 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
19342 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
19345 # Check whether --with-ads or --without-ads was given.
19346 if test "${with_ads+set}" = set; then
19347 withval="$with_ads"
19350 with_ads_support=no
19355 if test x"$with_ads_support" = x"yes"; then
19357 cat >>confdefs.h <<\_ACEOF
19363 echo "$as_me:$LINENO: result: $with_ads_support" >&5
19364 echo "${ECHO_T}$with_ads_support" >&6
19367 if test x"$with_ads_support" = x"yes"; then
19369 #################################################
19370 # check for location of Kerberos 5 install
19371 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
19372 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
19374 # Check whether --with-krb5 or --without-krb5 was given.
19375 if test "${with_krb5+set}" = set; then
19376 withval="$with_krb5"
19379 echo "$as_me:$LINENO: result: no" >&5
19380 echo "${ECHO_T}no" >&6
19383 echo "$as_me:$LINENO: result: yes" >&5
19384 echo "${ECHO_T}yes" >&6
19385 LIBS="$LIBS -lkrb5"
19386 CFLAGS="$CFLAGS -I$withval/include"
19387 CPPFLAGS="$CPPFLAGS -I$withval/include"
19388 LDFLAGS="$LDFLAGS -L$withval/lib"
19393 echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6
19399 if test x$FOUND_KRB5 = x"no"; then
19400 #################################################
19401 # see if this box has the SuSE location for the heimdal kerberos implementation
19402 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
19403 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
19404 if test -d /usr/include/heimdal; then
19405 CFLAGS="$CFLAGS -I/usr/heimdal/include"
19406 CPPFLAGS="$CPPFLAGS -I/usr/heimdal/include"
19407 echo "$as_me:$LINENO: result: yes" >&5
19408 echo "${ECHO_T}yes" >&6
19410 echo "$as_me:$LINENO: result: no" >&5
19411 echo "${ECHO_T}no" >&6
19416 if test x$FOUND_KRB5 = x"no"; then
19417 #################################################
19418 # see if this box has the RedHat location for kerberos
19419 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
19420 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
19421 if test -d /usr/kerberos; then
19422 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
19423 CFLAGS="$CFLAGS -I/usr/kerberos/include"
19424 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
19425 echo "$as_me:$LINENO: result: yes" >&5
19426 echo "${ECHO_T}yes" >&6
19428 echo "$as_me:$LINENO: result: no" >&5
19429 echo "${ECHO_T}no" >&6
19434 # now check for krb5.h. Some systems have the libraries without the headers!
19435 # note that this check is done here to allow for different kerberos
19438 for ac_header in krb5.h
19440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19442 echo "$as_me:$LINENO: checking for $ac_header" >&5
19443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19450 # Is the header compilable?
19451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19454 #line $LINENO "configure"
19455 #include "confdefs.h"
19456 $ac_includes_default
19457 #include <$ac_header>
19459 rm -f conftest.$ac_objext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461 (eval $ac_compile) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -s conftest.$ac_objext'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; }; then
19471 ac_header_compiler=yes
19473 echo "$as_me: failed program was:" >&5
19474 cat conftest.$ac_ext >&5
19475 ac_header_compiler=no
19477 rm -f conftest.$ac_objext conftest.$ac_ext
19478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19479 echo "${ECHO_T}$ac_header_compiler" >&6
19481 # Is the header present?
19482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19484 cat >conftest.$ac_ext <<_ACEOF
19485 #line $LINENO "configure"
19486 #include "confdefs.h"
19487 #include <$ac_header>
19489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } >/dev/null; then
19497 if test -s conftest.err; then
19498 ac_cpp_err=$ac_c_preproc_warn_flag
19505 if test -z "$ac_cpp_err"; then
19506 ac_header_preproc=yes
19508 echo "$as_me: failed program was:" >&5
19509 cat conftest.$ac_ext >&5
19510 ac_header_preproc=no
19512 rm -f conftest.err conftest.$ac_ext
19513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19514 echo "${ECHO_T}$ac_header_preproc" >&6
19516 # So? What about this header?
19517 case $ac_header_compiler:$ac_header_preproc in
19519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19531 echo "$as_me:$LINENO: checking for $ac_header" >&5
19532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19536 eval "$as_ac_Header=$ac_header_preproc"
19538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19543 cat >>confdefs.h <<_ACEOF
19544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19552 # now check for gssapi headers. This is also done here to allow for
19553 # different kerberos include paths
19556 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
19558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19568 # Is the header compilable?
19569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19571 cat >conftest.$ac_ext <<_ACEOF
19572 #line $LINENO "configure"
19573 #include "confdefs.h"
19574 $ac_includes_default
19575 #include <$ac_header>
19577 rm -f conftest.$ac_objext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579 (eval $ac_compile) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_header_compiler=yes
19591 echo "$as_me: failed program was:" >&5
19592 cat conftest.$ac_ext >&5
19593 ac_header_compiler=no
19595 rm -f conftest.$ac_objext conftest.$ac_ext
19596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19597 echo "${ECHO_T}$ac_header_compiler" >&6
19599 # Is the header present?
19600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19602 cat >conftest.$ac_ext <<_ACEOF
19603 #line $LINENO "configure"
19604 #include "confdefs.h"
19605 #include <$ac_header>
19607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19610 grep -v '^ *+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } >/dev/null; then
19615 if test -s conftest.err; then
19616 ac_cpp_err=$ac_c_preproc_warn_flag
19623 if test -z "$ac_cpp_err"; then
19624 ac_header_preproc=yes
19626 echo "$as_me: failed program was:" >&5
19627 cat conftest.$ac_ext >&5
19628 ac_header_preproc=no
19630 rm -f conftest.err conftest.$ac_ext
19631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19632 echo "${ECHO_T}$ac_header_preproc" >&6
19634 # So? What about this header?
19635 case $ac_header_compiler:$ac_header_preproc in
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19649 echo "$as_me:$LINENO: checking for $ac_header" >&5
19650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 eval "$as_ac_Header=$ac_header_preproc"
19656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19670 ##################################################################
19671 # we might need the k5crypto and com_err libraries on some systems
19672 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
19673 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
19674 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 ac_check_lib_save_LIBS=$LIBS
19678 LIBS="-lcom_err $LIBS"
19679 cat >conftest.$ac_ext <<_ACEOF
19680 #line $LINENO "configure"
19681 #include "confdefs.h"
19683 /* Override any gcc2 internal prototype to avoid an error. */
19687 /* We use char because int might match the return type of a gcc2
19688 builtin and then its argument prototype would still apply. */
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19700 (eval $ac_link) 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -s conftest$ac_exeext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_cv_lib_com_err__et_list=yes
19712 echo "$as_me: failed program was:" >&5
19713 cat conftest.$ac_ext >&5
19714 ac_cv_lib_com_err__et_list=no
19716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19717 LIBS=$ac_check_lib_save_LIBS
19719 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
19720 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
19721 if test $ac_cv_lib_com_err__et_list = yes; then
19722 LIBS="$LIBS -lcom_err"
19725 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
19726 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
19727 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 ac_check_lib_save_LIBS=$LIBS
19731 LIBS="-lk5crypto $LIBS"
19732 cat >conftest.$ac_ext <<_ACEOF
19733 #line $LINENO "configure"
19734 #include "confdefs.h"
19736 /* Override any gcc2 internal prototype to avoid an error. */
19740 /* We use char because int might match the return type of a gcc2
19741 builtin and then its argument prototype would still apply. */
19742 char krb5_encrypt_data ();
19746 krb5_encrypt_data ();
19751 rm -f conftest.$ac_objext conftest$ac_exeext
19752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753 (eval $ac_link) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
19757 { ac_try='test -s conftest$ac_exeext'
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
19765 echo "$as_me: failed program was:" >&5
19766 cat conftest.$ac_ext >&5
19767 ac_cv_lib_k5crypto_krb5_encrypt_data=no
19769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19770 LIBS=$ac_check_lib_save_LIBS
19772 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
19773 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
19774 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
19775 LIBS="$LIBS -lk5crypto"
19779 ########################################################
19780 # now see if we can find the krb5 libs in standard paths
19781 # or as specified above
19782 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
19783 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
19784 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lkrb5 $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19790 #line $LINENO "configure"
19791 #include "confdefs.h"
19793 /* Override any gcc2 internal prototype to avoid an error. */
19797 /* We use char because int might match the return type of a gcc2
19798 builtin and then its argument prototype would still apply. */
19799 char krb5_mk_req_extended ();
19803 krb5_mk_req_extended ();
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19810 (eval $ac_link) 2>&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -s conftest$ac_exeext'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_lib_krb5_krb5_mk_req_extended=yes
19822 echo "$as_me: failed program was:" >&5
19823 cat conftest.$ac_ext >&5
19824 ac_cv_lib_krb5_krb5_mk_req_extended=no
19826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19827 LIBS=$ac_check_lib_save_LIBS
19829 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
19830 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
19831 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
19832 LIBS="$LIBS -lkrb5";
19834 cat >>confdefs.h <<\_ACEOF
19835 #define HAVE_KRB5 1
19841 ########################################################
19842 # now see if we can find the gssapi libs in standard paths
19843 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
19844 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
19845 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lgssapi_krb5 $LIBS"
19850 cat >conftest.$ac_ext <<_ACEOF
19851 #line $LINENO "configure"
19852 #include "confdefs.h"
19854 /* Override any gcc2 internal prototype to avoid an error. */
19858 /* We use char because int might match the return type of a gcc2
19859 builtin and then its argument prototype would still apply. */
19860 char gss_display_status ();
19864 gss_display_status ();
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19871 (eval $ac_link) 2>&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -s conftest$ac_exeext'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; }; then
19881 ac_cv_lib_gssapi_krb5_gss_display_status=yes
19883 echo "$as_me: failed program was:" >&5
19884 cat conftest.$ac_ext >&5
19885 ac_cv_lib_gssapi_krb5_gss_display_status=no
19887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19888 LIBS=$ac_check_lib_save_LIBS
19890 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
19891 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
19892 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
19893 LIBS="$LIBS -lgssapi_krb5";
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_GSSAPI 1
19903 ########################################################
19904 # Compile with LDAP support?
19906 with_ldap_support=yes
19907 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
19908 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
19911 # Check whether --with-ldap or --without-ldap was given.
19912 if test "${with_ldap+set}" = set; then
19913 withval="$with_ldap"
19916 with_ldap_support=no
19921 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
19922 echo "${ECHO_T}$with_ldap_support" >&6
19924 if test x"$with_ldap_support" = x"yes"; then
19926 ##################################################################
19927 # we might need the lber lib on some systems. To avoid link errors
19928 # this test must be before the libldap test
19929 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
19930 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
19931 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 ac_check_lib_save_LIBS=$LIBS
19935 LIBS="-llber $LIBS"
19936 cat >conftest.$ac_ext <<_ACEOF
19937 #line $LINENO "configure"
19938 #include "confdefs.h"
19940 /* Override any gcc2 internal prototype to avoid an error. */
19944 /* We use char because int might match the return type of a gcc2
19945 builtin and then its argument prototype would still apply. */
19955 rm -f conftest.$ac_objext conftest$ac_exeext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19957 (eval $ac_link) 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } &&
19961 { ac_try='test -s conftest$ac_exeext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_lib_lber_ber_scanf=yes
19969 echo "$as_me: failed program was:" >&5
19970 cat conftest.$ac_ext >&5
19971 ac_cv_lib_lber_ber_scanf=no
19973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19976 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
19977 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
19978 if test $ac_cv_lib_lber_ber_scanf = yes; then
19979 LIBS="$LIBS -llber"
19983 ########################################################
19984 # now see if we can find the ldap libs in standard paths
19985 if test x$have_ldap != xyes; then
19986 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
19987 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
19988 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
19989 echo $ECHO_N "(cached) $ECHO_C" >&6
19991 ac_check_lib_save_LIBS=$LIBS
19992 LIBS="-lldap $LIBS"
19993 cat >conftest.$ac_ext <<_ACEOF
19994 #line $LINENO "configure"
19995 #include "confdefs.h"
19997 /* Override any gcc2 internal prototype to avoid an error. */
20001 /* We use char because int might match the return type of a gcc2
20002 builtin and then its argument prototype would still apply. */
20003 char ldap_domain2hostlist ();
20007 ldap_domain2hostlist ();
20012 rm -f conftest.$ac_objext conftest$ac_exeext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20014 (eval $ac_link) 2>&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -s conftest$ac_exeext'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
20024 ac_cv_lib_ldap_ldap_domain2hostlist=yes
20026 echo "$as_me: failed program was:" >&5
20027 cat conftest.$ac_ext >&5
20028 ac_cv_lib_ldap_ldap_domain2hostlist=no
20030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20031 LIBS=$ac_check_lib_save_LIBS
20033 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
20034 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
20035 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
20036 LIBS="$LIBS -lldap";
20038 cat >>confdefs.h <<\_ACEOF
20039 #define HAVE_LDAP 1
20045 ########################################################
20046 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
20047 # Check found in pam_ldap 145.
20049 for ac_func in ldap_set_rebind_proc
20051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20052 echo "$as_me:$LINENO: checking for $ac_func" >&5
20053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20054 if eval "test \"\${$as_ac_var+set}\" = set"; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20058 #line $LINENO "configure"
20059 #include "confdefs.h"
20060 /* System header to define __stub macros and hopefully few prototypes,
20061 which can conflict with char $ac_func (); below. */
20062 #include <assert.h>
20063 /* Override any gcc2 internal prototype to avoid an error. */
20067 /* We use char because int might match the return type of a gcc2
20068 builtin and then its argument prototype would still apply. */
20075 /* The GNU C library defines this for functions which it implements
20076 to always fail with ENOSYS. Some functions are actually named
20077 something starting with __ and the normal name is an alias. */
20078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090 (eval $ac_link) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -s conftest$ac_exeext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 eval "$as_ac_var=yes"
20102 echo "$as_me: failed program was:" >&5
20103 cat conftest.$ac_ext >&5
20104 eval "$as_ac_var=no"
20106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20110 if test `eval echo '${'$as_ac_var'}'` = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20118 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
20119 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
20120 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 cat >conftest.$ac_ext <<_ACEOF
20125 #line $LINENO "configure"
20126 #include "confdefs.h"
20133 ldap_set_rebind_proc(0, 0, 0);
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140 (eval $ac_compile) 2>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } &&
20144 { ac_try='test -s conftest.$ac_objext'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; }; then
20150 pam_ldap_cv_ldap_set_rebind_proc=3
20152 echo "$as_me: failed program was:" >&5
20153 cat conftest.$ac_ext >&5
20154 pam_ldap_cv_ldap_set_rebind_proc=2
20156 rm -f conftest.$ac_objext conftest.$ac_ext
20158 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
20159 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
20161 cat >>confdefs.h <<_ACEOF
20162 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
20168 ########################################################
20169 # Compile with MySQL support?
20171 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
20172 if test "${with_mysql_prefix+set}" = set; then
20173 withval="$with_mysql_prefix"
20174 mysql_prefix="$withval"
20179 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
20180 if test "${with_mysql_exec_prefix+set}" = set; then
20181 withval="$with_mysql_exec_prefix"
20182 mysql_exec_prefix="$withval"
20184 mysql_exec_prefix=""
20186 # Check whether --enable-mysqltest or --disable-mysqltest was given.
20187 if test "${enable_mysqltest+set}" = set; then
20188 enableval="$enable_mysqltest"
20191 enable_mysqltest=yes
20194 if test x$mysql_exec_prefix != x ; then
20195 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
20196 if test x${MYSQL_CONFIG+set} != xset ; then
20197 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
20200 if test x$mysql_prefix != x ; then
20201 mysql_args="$mysql_args --prefix=$mysql_prefix"
20202 if test x${MYSQL_CONFIG+set} != xset ; then
20203 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
20208 # Extract the first word of "mysql_config", so it can be a program name with args.
20209 set dummy mysql_config; ac_word=$2
20210 echo "$as_me:$LINENO: checking for $ac_word" >&5
20211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20212 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 case $MYSQL_CONFIG in
20217 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
20220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221 for as_dir in $PATH
20224 test -z "$as_dir" && as_dir=.
20225 for ac_exec_ext in '' $ac_executable_extensions; do
20226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20227 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20234 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
20238 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
20240 if test -n "$MYSQL_CONFIG"; then
20241 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
20242 echo "${ECHO_T}$MYSQL_CONFIG" >&6
20244 echo "$as_me:$LINENO: result: no" >&5
20245 echo "${ECHO_T}no" >&6
20248 min_mysql_version=0.11.0
20249 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
20250 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
20252 if test "$MYSQL_CONFIG" = "no" ; then
20255 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
20256 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
20258 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
20259 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20260 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
20261 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20262 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
20263 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20264 if test "x$enable_mysqltest" = "xyes" ; then
20265 ac_save_CFLAGS="$CFLAGS"
20266 ac_save_LIBS="$LIBS"
20267 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20268 LIBS="$LIBS $MYSQL_LIBS"
20269 rm -f conf.mysqltest
20270 if test "$cross_compiling" = yes; then
20271 echo $ac_n "cross compiling; assumed OK... $ac_c"
20273 cat >conftest.$ac_ext <<_ACEOF
20274 #line $LINENO "configure"
20275 #include "confdefs.h"
20278 #include <stdlib.h>
20279 #include <string.h>
20283 my_strdup (char *str)
20289 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
20290 strcpy (new_str, str);
20298 int main (int argc, char *argv[])
20300 int major, minor, micro;
20303 /* This hangs on some systems (?)
20304 system ("touch conf.mysqltest");
20306 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
20308 /* HP/UX 9 (%@#!) writes to sscanf strings */
20309 tmp_version = my_strdup("$min_mysql_version");
20310 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20311 printf("%s, bad version string\n", "$min_mysql_version");
20315 if (($mysql_major_version > major) ||
20316 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
20317 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
20323 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
20324 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
20325 printf("*** best to upgrade to the required version.\n");
20326 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
20327 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
20328 printf("*** config.cache before re-running configure\n");
20335 rm -f conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337 (eval $ac_link) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20348 echo "$as_me: program exited with status $ac_status" >&5
20349 echo "$as_me: failed program was:" >&5
20350 cat conftest.$ac_ext >&5
20351 ( exit $ac_status )
20354 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20356 CFLAGS="$ac_save_CFLAGS"
20357 LIBS="$ac_save_LIBS"
20360 if test "x$no_mysql" = x ; then
20361 echo "$as_me:$LINENO: result: yes" >&5
20362 echo "${ECHO_T}yes" >&6
20363 MODULE_PDB_MYSQL=bin/pdb_mysql.so
20365 echo "$as_me:$LINENO: result: no" >&5
20366 echo "${ECHO_T}no" >&6
20367 if test "$MYSQL_CONFIG" = "no" ; then
20368 echo "*** The mysql_config script installed by MYSQL could not be found"
20369 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
20370 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
20371 echo "*** full path to mysql_config."
20373 if test -f conf.mysqltest ; then
20376 echo "*** Could not run MYSQL test program, checking why..."
20377 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20378 LIBS="$LIBS $MYSQL_LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20380 #line $LINENO "configure"
20381 #include "confdefs.h"
20386 int main(int argc, char *argv[])
20389 #define main K_and_R_C_main
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20401 (eval $ac_link) 2>&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } &&
20405 { ac_try='test -s conftest$ac_exeext'
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; }; then
20411 echo "*** The test program compiled, but did not run. This usually means"
20412 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
20413 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
20414 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20415 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20416 echo "*** is required on your system"
20418 echo "*** If you have an old version installed, it is best to remove it, although"
20419 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20421 echo "$as_me: failed program was:" >&5
20422 cat conftest.$ac_ext >&5
20423 echo "*** The test program failed to compile or link. See the file config.log for the"
20424 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
20425 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
20426 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
20428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20429 CFLAGS="$ac_save_CFLAGS"
20430 LIBS="$ac_save_LIBS"
20439 rm -f conf.mysqltest
20441 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
20444 ########################################################
20445 # Compile with XML support?
20448 # Check whether --with-xml-prefix or --without-xml-prefix was given.
20449 if test "${with_xml_prefix+set}" = set; then
20450 withval="$with_xml_prefix"
20451 xml_config_prefix="$withval"
20453 xml_config_prefix=""
20456 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
20457 if test "${with_xml_exec_prefix+set}" = set; then
20458 withval="$with_xml_exec_prefix"
20459 xml_config_exec_prefix="$withval"
20461 xml_config_exec_prefix=""
20463 # Check whether --enable-xmltest or --disable-xmltest was given.
20464 if test "${enable_xmltest+set}" = set; then
20465 enableval="$enable_xmltest"
20471 if test x$xml_config_exec_prefix != x ; then
20472 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
20473 if test x${XML2_CONFIG+set} != xset ; then
20474 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
20477 if test x$xml_config_prefix != x ; then
20478 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
20479 if test x${XML2_CONFIG+set} != xset ; then
20480 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
20484 # Extract the first word of "xml2-config", so it can be a program name with args.
20485 set dummy xml2-config; ac_word=$2
20486 echo "$as_me:$LINENO: checking for $ac_word" >&5
20487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20488 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 case $XML2_CONFIG in
20493 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
20496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20497 for as_dir in $PATH
20500 test -z "$as_dir" && as_dir=.
20501 for ac_exec_ext in '' $ac_executable_extensions; do
20502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20503 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20510 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
20514 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
20516 if test -n "$XML2_CONFIG"; then
20517 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
20518 echo "${ECHO_T}$XML2_CONFIG" >&6
20520 echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6
20524 min_xml_version=2.0.0
20525 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
20526 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
20528 if test "$XML2_CONFIG" = "no" ; then
20531 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
20532 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
20533 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
20534 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20535 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
20536 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20537 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
20538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20539 if test "x$enable_xmltest" = "xyes" ; then
20540 ac_save_CFLAGS="$CFLAGS"
20541 ac_save_LIBS="$LIBS"
20542 CFLAGS="$CFLAGS $XML_CFLAGS"
20543 LIBS="$XML_LIBS $LIBS"
20545 if test "$cross_compiling" = yes; then
20546 echo $ac_n "cross compiling; assumed OK... $ac_c"
20548 cat >conftest.$ac_ext <<_ACEOF
20549 #line $LINENO "configure"
20550 #include "confdefs.h"
20552 #include <stdlib.h>
20554 #include <string.h>
20555 #include <libxml/xmlversion.h>
20560 int xml_major_version, xml_minor_version, xml_micro_version;
20561 int major, minor, micro;
20564 system("touch conf.xmltest");
20566 /* Capture xml2-config output via autoconf/configure variables */
20567 /* HP/UX 9 (%@#!) writes to sscanf strings */
20568 tmp_version = (char *)strdup("$min_xml_version");
20569 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20570 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
20575 /* Capture the version information from the header files */
20576 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
20577 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
20578 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
20583 /* Compare xml2-config output to the libxml headers */
20584 if ((xml_major_version != $xml_config_major_version) ||
20585 (xml_minor_version != $xml_config_minor_version) ||
20586 (xml_micro_version != $xml_config_micro_version))
20588 printf("*** libxml header files (version %d.%d.%d) do not match\n",
20589 xml_major_version, xml_minor_version, xml_micro_version);
20590 printf("*** xml2-config (version %d.%d.%d)\n",
20591 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
20594 /* Compare the headers to the library to make sure we match */
20595 /* Less than ideal -- doesn't provide us with return value feedback,
20596 * only exits if there's a serious mismatch between header and library.
20598 LIBXML_TEST_VERSION;
20600 /* Test that the library is greater than our minimum version */
20601 if ((xml_major_version > major) ||
20602 ((xml_major_version == major) && (xml_minor_version > minor)) ||
20603 ((xml_major_version == major) && (xml_minor_version == minor) &&
20604 (xml_micro_version >= micro)))
20610 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
20611 xml_major_version, xml_minor_version, xml_micro_version);
20612 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
20613 major, minor, micro);
20614 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
20616 printf("*** If you have already installed a sufficiently new version, this error\n");
20617 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
20618 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20619 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
20620 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
20621 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20622 printf("*** so that the correct libraries are found at run-time))\n");
20628 rm -f conftest$ac_exeext
20629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20630 (eval $ac_link) 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20641 echo "$as_me: program exited with status $ac_status" >&5
20642 echo "$as_me: failed program was:" >&5
20643 cat conftest.$ac_ext >&5
20644 ( exit $ac_status )
20647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20649 CFLAGS="$ac_save_CFLAGS"
20650 LIBS="$ac_save_LIBS"
20654 if test "x$no_xml" = x ; then
20655 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
20656 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
20657 MODULE_PDB_XML=bin/pdb_xml.so
20659 echo "$as_me:$LINENO: result: no" >&5
20660 echo "${ECHO_T}no" >&6
20661 if test "$XML2_CONFIG" = "no" ; then
20662 echo "*** The xml2-config script installed by LIBXML could not be found"
20663 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
20664 echo "*** your path, or set the XML2_CONFIG environment variable to the"
20665 echo "*** full path to xml2-config."
20667 if test -f conf.xmltest ; then
20670 echo "*** Could not run libxml test program, checking why..."
20671 CFLAGS="$CFLAGS $XML_CFLAGS"
20672 LIBS="$LIBS $XML_LIBS"
20673 cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20675 #include "confdefs.h"
20677 #include <libxml/xmlversion.h>
20683 LIBXML_TEST_VERSION; return 0;
20688 rm -f conftest.$ac_objext conftest$ac_exeext
20689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20690 (eval $ac_link) 2>&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
20694 { ac_try='test -s conftest$ac_exeext'
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 echo "*** The test program compiled, but did not run. This usually means"
20701 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
20702 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
20703 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20704 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20705 echo "*** is required on your system"
20707 echo "*** If you have an old version installed, it is best to remove it, although"
20708 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20710 echo "$as_me: failed program was:" >&5
20711 cat conftest.$ac_ext >&5
20712 echo "*** The test program failed to compile or link. See the file config.log for the"
20713 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
20714 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
20715 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
20717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20718 CFLAGS="$ac_save_CFLAGS"
20719 LIBS="$ac_save_LIBS"
20731 CFLAGS="$CFLAGS $XML_CFLAGS"
20734 #################################################
20735 # check for automount support
20736 echo "$as_me:$LINENO: checking whether to use AUTOMOUNT" >&5
20737 echo $ECHO_N "checking whether to use AUTOMOUNT... $ECHO_C" >&6
20739 # Check whether --with-automount or --without-automount was given.
20740 if test "${with_automount+set}" = set; then
20741 withval="$with_automount"
20744 echo "$as_me:$LINENO: result: yes" >&5
20745 echo "${ECHO_T}yes" >&6
20747 cat >>confdefs.h <<\_ACEOF
20748 #define WITH_AUTOMOUNT 1
20753 echo "$as_me:$LINENO: result: no" >&5
20754 echo "${ECHO_T}no" >&6
20758 echo "$as_me:$LINENO: result: no" >&5
20759 echo "${ECHO_T}no" >&6
20763 #################################################
20764 # check for smbmount support
20765 echo "$as_me:$LINENO: checking whether to use SMBMOUNT" >&5
20766 echo $ECHO_N "checking whether to use SMBMOUNT... $ECHO_C" >&6
20768 # Check whether --with-smbmount or --without-smbmount was given.
20769 if test "${with_smbmount+set}" = set; then
20770 withval="$with_smbmount"
20775 echo "$as_me:$LINENO: result: yes" >&5
20776 echo "${ECHO_T}yes" >&6
20778 cat >>confdefs.h <<\_ACEOF
20779 #define WITH_SMBMOUNT 1
20782 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
20785 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
20786 echo "$as_me: error: not on a linux system!" >&2;}
20787 { (exit 1); exit 1; }; }
20792 echo "$as_me:$LINENO: result: no" >&5
20793 echo "${ECHO_T}no" >&6
20798 echo "$as_me:$LINENO: result: no" >&5
20799 echo "${ECHO_T}no" >&6
20805 #################################################
20806 # check for a PAM clear-text auth, accounts, password and session support
20807 with_pam_for_crypt=no
20808 echo "$as_me:$LINENO: checking whether to use PAM" >&5
20809 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
20811 # Check whether --with-pam or --without-pam was given.
20812 if test "${with_pam+set}" = set; then
20813 withval="$with_pam"
20816 echo "$as_me:$LINENO: result: yes" >&5
20817 echo "${ECHO_T}yes" >&6
20819 cat >>confdefs.h <<\_ACEOF
20823 AUTHLIBS="$AUTHLIBS -lpam"
20824 with_pam_for_crypt=yes
20827 echo "$as_me:$LINENO: result: no" >&5
20828 echo "${ECHO_T}no" >&6
20832 echo "$as_me:$LINENO: result: no" >&5
20833 echo "${ECHO_T}no" >&6
20837 # we can't build a pam module if we don't have pam.
20838 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
20839 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
20840 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 ac_check_lib_save_LIBS=$LIBS
20845 cat >conftest.$ac_ext <<_ACEOF
20846 #line $LINENO "configure"
20847 #include "confdefs.h"
20849 /* Override any gcc2 internal prototype to avoid an error. */
20853 /* We use char because int might match the return type of a gcc2
20854 builtin and then its argument prototype would still apply. */
20855 char pam_get_data ();
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20866 (eval $ac_link) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } &&
20870 { ac_try='test -s conftest$ac_exeext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 ac_cv_lib_pam_pam_get_data=yes
20878 echo "$as_me: failed program was:" >&5
20879 cat conftest.$ac_ext >&5
20880 ac_cv_lib_pam_pam_get_data=no
20882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20883 LIBS=$ac_check_lib_save_LIBS
20885 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
20886 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
20887 if test $ac_cv_lib_pam_pam_get_data = yes; then
20889 cat >>confdefs.h <<\_ACEOF
20890 #define HAVE_LIBPAM 1
20896 #################################################
20897 # check for pam_smbpass support
20898 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
20899 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
20901 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
20902 if test "${with_pam_smbpass+set}" = set; then
20903 withval="$with_pam_smbpass"
20906 echo "$as_me:$LINENO: result: yes" >&5
20907 echo "${ECHO_T}yes" >&6
20909 # Conditions under which pam_smbpass should not be built.
20911 if test x$PICFLAG = x; then
20912 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
20913 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
20915 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
20916 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
20917 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
20920 PAM_MOD="bin/pam_smbpass.so"
20924 echo "$as_me:$LINENO: result: no" >&5
20925 echo "${ECHO_T}no" >&6
20929 echo "$as_me:$LINENO: result: no" >&5
20930 echo "${ECHO_T}no" >&6
20935 ###############################################
20936 # test for where we get crypt() from, but only
20938 if test x"$with_pam_for_crypt" = x"no"; then
20940 for ac_func in crypt
20942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20943 echo "$as_me:$LINENO: checking for $ac_func" >&5
20944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20945 if eval "test \"\${$as_ac_var+set}\" = set"; then
20946 echo $ECHO_N "(cached) $ECHO_C" >&6
20948 cat >conftest.$ac_ext <<_ACEOF
20949 #line $LINENO "configure"
20950 #include "confdefs.h"
20951 /* System header to define __stub macros and hopefully few prototypes,
20952 which can conflict with char $ac_func (); below. */
20953 #include <assert.h>
20954 /* Override any gcc2 internal prototype to avoid an error. */
20958 /* We use char because int might match the return type of a gcc2
20959 builtin and then its argument prototype would still apply. */
20966 /* The GNU C library defines this for functions which it implements
20967 to always fail with ENOSYS. Some functions are actually named
20968 something starting with __ and the normal name is an alias. */
20969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20979 rm -f conftest.$ac_objext conftest$ac_exeext
20980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20981 (eval $ac_link) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } &&
20985 { ac_try='test -s conftest$ac_exeext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 eval "$as_ac_var=yes"
20993 echo "$as_me: failed program was:" >&5
20994 cat conftest.$ac_ext >&5
20995 eval "$as_ac_var=no"
20997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21001 if test `eval echo '${'$as_ac_var'}'` = yes; then
21002 cat >>confdefs.h <<_ACEOF
21003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21009 if test x"$ac_cv_func_crypt" = x"no"; then
21010 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21011 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
21012 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 ac_check_lib_save_LIBS=$LIBS
21016 LIBS="-lcrypt $LIBS"
21017 cat >conftest.$ac_ext <<_ACEOF
21018 #line $LINENO "configure"
21019 #include "confdefs.h"
21021 /* Override any gcc2 internal prototype to avoid an error. */
21025 /* We use char because int might match the return type of a gcc2
21026 builtin and then its argument prototype would still apply. */
21036 rm -f conftest.$ac_objext conftest$ac_exeext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21038 (eval $ac_link) 2>&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
21042 { ac_try='test -s conftest$ac_exeext'
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; }; then
21048 ac_cv_lib_crypt_crypt=yes
21050 echo "$as_me: failed program was:" >&5
21051 cat conftest.$ac_ext >&5
21052 ac_cv_lib_crypt_crypt=no
21054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21058 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
21059 if test $ac_cv_lib_crypt_crypt = yes; then
21060 AUTHLIBS="$AUTHLIBS -lcrypt";
21062 cat >>confdefs.h <<\_ACEOF
21063 #define HAVE_CRYPT 1
21072 ## moved after the check for -lcrypt in order to
21073 ## ensure that the necessary libraries are included
21074 ## check checking for truncated salt. Wrapped by the
21075 ## $with_pam_for_crypt variable as above --jerry
21077 if test $with_pam_for_crypt = no; then
21078 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
21079 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
21080 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 LIBS="$AUTHLIBS $LIBS"
21086 if test "$cross_compiling" = yes; then
21087 samba_cv_HAVE_TRUNCATED_SALT=cross
21089 cat >conftest.$ac_ext <<_ACEOF
21090 #line $LINENO "configure"
21091 #include "confdefs.h"
21092 #include "${srcdir-.}/tests/crypttest.c"
21094 rm -f conftest$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096 (eval $ac_link) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 samba_cv_HAVE_TRUNCATED_SALT=no
21107 echo "$as_me: program exited with status $ac_status" >&5
21108 echo "$as_me: failed program was:" >&5
21109 cat conftest.$ac_ext >&5
21110 ( exit $ac_status )
21111 samba_cv_HAVE_TRUNCATED_SALT=yes
21113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21117 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
21118 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
21119 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_TRUNCATED_SALT 1
21128 # New experimental SAM system
21130 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
21131 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
21133 # Check whether --with-sam or --without-sam was given.
21134 if test "${with_sam+set}" = set; then
21135 withval="$with_sam"
21138 echo "$as_me:$LINENO: result: yes" >&5
21139 echo "${ECHO_T}yes" >&6
21141 cat >>confdefs.h <<\_ACEOF
21147 echo "$as_me:$LINENO: result: no" >&5
21148 echo "${ECHO_T}no" >&6
21152 echo "$as_me:$LINENO: result: no" >&5
21153 echo "${ECHO_T}no" >&6
21158 ########################################################################################
21160 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
21162 ########################################################################################
21164 #################################################
21165 # check for a LDAP password database configuration backwards compatibility
21166 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
21167 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
21169 # Check whether --with-ldapsam or --without-ldapsam was given.
21170 if test "${with_ldapsam+set}" = set; then
21171 withval="$with_ldapsam"
21174 echo "$as_me:$LINENO: result: yes" >&5
21175 echo "${ECHO_T}yes" >&6
21177 cat >>confdefs.h <<\_ACEOF
21178 #define WITH_LDAP_SAMCONFIG 1
21183 echo "$as_me:$LINENO: result: no" >&5
21184 echo "${ECHO_T}no" >&6
21188 echo "$as_me:$LINENO: result: no" >&5
21189 echo "${ECHO_T}no" >&6
21193 #################################################
21194 # check for a TDB password database
21195 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
21196 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
21198 # Check whether --with-tdbsam or --without-tdbsam was given.
21199 if test "${with_tdbsam+set}" = set; then
21200 withval="$with_tdbsam"
21203 echo "$as_me:$LINENO: result: yes" >&5
21204 echo "${ECHO_T}yes" >&6
21206 cat >>confdefs.h <<\_ACEOF
21207 #define WITH_TDB_SAM 1
21212 echo "$as_me:$LINENO: result: no" >&5
21213 echo "${ECHO_T}no" >&6
21217 echo "$as_me:$LINENO: result: no" >&5
21218 echo "${ECHO_T}no" >&6
21222 #################################################
21223 # check for a NISPLUS password database
21224 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
21225 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
21227 # Check whether --with-nisplussam or --without-nisplussam was given.
21228 if test "${with_nisplussam+set}" = set; then
21229 withval="$with_nisplussam"
21232 echo "$as_me:$LINENO: result: yes" >&5
21233 echo "${ECHO_T}yes" >&6
21235 cat >>confdefs.h <<\_ACEOF
21236 #define WITH_NISPLUS_SAM 1
21241 echo "$as_me:$LINENO: result: no" >&5
21242 echo "${ECHO_T}no" >&6
21246 echo "$as_me:$LINENO: result: no" >&5
21247 echo "${ECHO_T}no" >&6
21251 ########################################################################################
21253 ## END OF TESTS FOR SAM BACKENDS.
21255 ########################################################################################
21257 #################################################
21258 # check for a NISPLUS_HOME support
21259 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
21260 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
21262 # Check whether --with-nisplus-home or --without-nisplus-home was given.
21263 if test "${with_nisplus_home+set}" = set; then
21264 withval="$with_nisplus_home"
21267 echo "$as_me:$LINENO: result: yes" >&5
21268 echo "${ECHO_T}yes" >&6
21270 cat >>confdefs.h <<\_ACEOF
21271 #define WITH_NISPLUS_HOME 1
21276 echo "$as_me:$LINENO: result: no" >&5
21277 echo "${ECHO_T}no" >&6
21281 echo "$as_me:$LINENO: result: no" >&5
21282 echo "${ECHO_T}no" >&6
21286 #################################################
21287 # check for syslog logging
21288 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
21289 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
21291 # Check whether --with-syslog or --without-syslog was given.
21292 if test "${with_syslog+set}" = set; then
21293 withval="$with_syslog"
21296 echo "$as_me:$LINENO: result: yes" >&5
21297 echo "${ECHO_T}yes" >&6
21299 cat >>confdefs.h <<\_ACEOF
21300 #define WITH_SYSLOG 1
21305 echo "$as_me:$LINENO: result: no" >&5
21306 echo "${ECHO_T}no" >&6
21310 echo "$as_me:$LINENO: result: no" >&5
21311 echo "${ECHO_T}no" >&6
21315 #################################################
21316 # check for a shared memory profiling support
21317 echo "$as_me:$LINENO: checking whether to use profiling" >&5
21318 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
21320 # Check whether --with-profiling-data or --without-profiling-data was given.
21321 if test "${with_profiling_data+set}" = set; then
21322 withval="$with_profiling_data"
21325 echo "$as_me:$LINENO: result: yes" >&5
21326 echo "${ECHO_T}yes" >&6
21328 cat >>confdefs.h <<\_ACEOF
21329 #define WITH_PROFILE 1
21334 echo "$as_me:$LINENO: result: no" >&5
21335 echo "${ECHO_T}no" >&6
21339 echo "$as_me:$LINENO: result: no" >&5
21340 echo "${ECHO_T}no" >&6
21345 #################################################
21346 # check for experimental disk-quotas support
21347 QUOTAOBJS=smbd/noquotas.o
21349 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
21350 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
21352 # Check whether --with-quotas or --without-quotas was given.
21353 if test "${with_quotas+set}" = set; then
21354 withval="$with_quotas"
21357 echo "$as_me:$LINENO: result: yes" >&5
21358 echo "${ECHO_T}yes" >&6
21361 # Check for kernel 2.4.x quota braindamage...
21362 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
21363 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
21364 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 cat >conftest.$ac_ext <<_ACEOF
21369 #line $LINENO "configure"
21370 #include "confdefs.h"
21372 #include <sys/types.h>
21373 #include <asm/types.h>
21374 #include <linux/quota.h>
21375 #include <mntent.h>
21376 #include <linux/unistd.h>
21380 struct mem_dqblk D;
21385 rm -f conftest.$ac_objext
21386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21387 (eval $ac_compile) 2>&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
21391 { ac_try='test -s conftest.$ac_objext'
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; }; then
21397 samba_cv_linux_2_4_quota_braindamage=yes
21399 echo "$as_me: failed program was:" >&5
21400 cat conftest.$ac_ext >&5
21401 samba_cv_linux_2_4_quota_braindamage=no
21403 rm -f conftest.$ac_objext conftest.$ac_ext
21405 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
21406 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
21407 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
21409 cat >>confdefs.h <<\_ACEOF
21410 #define LINUX_QUOTAS_2 1
21415 cat >>confdefs.h <<\_ACEOF
21416 #define LINUX_QUOTAS_1 1
21424 QUOTAOBJS=smbd/quotas.o
21426 cat >>confdefs.h <<\_ACEOF
21427 #define WITH_QUOTAS 1
21432 echo "$as_me:$LINENO: result: no" >&5
21433 echo "${ECHO_T}no" >&6
21437 echo "$as_me:$LINENO: result: no" >&5
21438 echo "${ECHO_T}no" >&6
21443 #################################################
21444 # check for experimental utmp accounting
21446 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
21447 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
21449 # Check whether --with-utmp or --without-utmp was given.
21450 if test "${with_utmp+set}" = set; then
21451 withval="$with_utmp"
21454 echo "$as_me:$LINENO: result: yes" >&5
21455 echo "${ECHO_T}yes" >&6
21457 cat >>confdefs.h <<\_ACEOF
21458 #define WITH_UTMP 1
21463 echo "$as_me:$LINENO: result: no" >&5
21464 echo "${ECHO_T}no" >&6
21468 echo "$as_me:$LINENO: result: no" >&5
21469 echo "${ECHO_T}no" >&6
21473 #################################################
21474 # choose native language(s) of man pages
21475 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
21476 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
21478 # Check whether --with-manpages-langs or --without-manpages-langs was given.
21479 if test "${with_manpages_langs+set}" = set; then
21480 withval="$with_manpages_langs"
21483 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
21484 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
21488 manlangs="$withval"
21492 echo "$as_me:$LINENO: result: $manlangs" >&5
21493 echo "${ECHO_T}$manlangs" >&6
21494 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
21498 echo "$as_me:$LINENO: result: $manlangs" >&5
21499 echo "${ECHO_T}$manlangs" >&6
21504 #################################################
21505 # should we build libsmbclient?
21507 LIBSMBCLIENT_SHARED=
21509 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
21510 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
21512 # Check whether --with-libsmbclient or --without-libsmbclient was given.
21513 if test "${with_libsmbclient+set}" = set; then
21514 withval="$with_libsmbclient"
21517 echo "$as_me:$LINENO: result: no" >&5
21518 echo "${ECHO_T}no" >&6
21521 if test $BLDSHARED = true; then
21522 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
21523 LIBSMBCLIENT=libsmbclient
21524 echo "$as_me:$LINENO: result: yes" >&5
21525 echo "${ECHO_T}yes" >&6
21527 echo "$as_me:$LINENO: result: no shared library support" >&5
21528 echo "${ECHO_T}no shared library support" >&6
21533 echo "$as_me:$LINENO: result: yes" >&5
21534 echo "${ECHO_T}yes" >&6
21539 #################################################
21540 # these tests are taken from the GNU fileutils package
21541 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
21542 echo "$as_me: checking how to get filesystem space usage..." >&6;}
21545 # Test for statvfs64.
21546 if test $space = no; then
21548 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
21549 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
21550 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 if test "$cross_compiling" = yes; then
21554 fu_cv_sys_stat_statvfs64=cross
21556 cat >conftest.$ac_ext <<_ACEOF
21557 #line $LINENO "configure"
21558 #include "confdefs.h"
21560 #if defined(HAVE_UNISTD_H)
21561 #include <unistd.h>
21563 #include <sys/types.h>
21564 #include <sys/statvfs.h>
21567 struct statvfs64 fsd;
21568 exit (statvfs64 (".", &fsd));
21571 rm -f conftest$ac_exeext
21572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21573 (eval $ac_link) 2>&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 fu_cv_sys_stat_statvfs64=yes
21584 echo "$as_me: program exited with status $ac_status" >&5
21585 echo "$as_me: failed program was:" >&5
21586 cat conftest.$ac_ext >&5
21587 ( exit $ac_status )
21588 fu_cv_sys_stat_statvfs64=no
21590 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21593 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
21594 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
21595 if test $fu_cv_sys_stat_statvfs64 = yes; then
21598 cat >>confdefs.h <<\_ACEOF
21599 #define STAT_STATVFS64 1
21605 # Perform only the link test since it seems there are no variants of the
21606 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
21607 # because that got a false positive on SCO OSR5. Adding the declaration
21608 # of a `struct statvfs' causes this test to fail (as it should) on such
21609 # systems. That system is reported to work fine with STAT_STATFS4 which
21610 # is what it gets when this test fails.
21611 if test $space = no; then
21613 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
21614 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
21615 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21619 #line $LINENO "configure"
21620 #include "confdefs.h"
21621 #include <sys/types.h>
21622 #include <sys/statvfs.h>
21626 struct statvfs fsd; statvfs (0, &fsd);
21631 rm -f conftest.$ac_objext conftest$ac_exeext
21632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21633 (eval $ac_link) 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -s conftest$ac_exeext'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; }; then
21643 fu_cv_sys_stat_statvfs=yes
21645 echo "$as_me: failed program was:" >&5
21646 cat conftest.$ac_ext >&5
21647 fu_cv_sys_stat_statvfs=no
21649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21651 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
21652 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
21653 if test $fu_cv_sys_stat_statvfs = yes; then
21656 cat >>confdefs.h <<\_ACEOF
21657 #define STAT_STATVFS 1
21663 if test $space = no; then
21664 # DEC Alpha running OSF/1
21665 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
21666 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
21667 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 if test "$cross_compiling" = yes; then
21671 fu_cv_sys_stat_statfs3_osf1=no
21673 cat >conftest.$ac_ext <<_ACEOF
21674 #line $LINENO "configure"
21675 #include "confdefs.h"
21677 #include <sys/param.h>
21678 #include <sys/types.h>
21679 #include <sys/mount.h>
21684 exit (statfs (".", &fsd, sizeof (struct statfs)));
21687 rm -f conftest$ac_exeext
21688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21689 (eval $ac_link) 2>&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 fu_cv_sys_stat_statfs3_osf1=yes
21700 echo "$as_me: program exited with status $ac_status" >&5
21701 echo "$as_me: failed program was:" >&5
21702 cat conftest.$ac_ext >&5
21703 ( exit $ac_status )
21704 fu_cv_sys_stat_statfs3_osf1=no
21706 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21710 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
21711 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
21712 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
21715 cat >>confdefs.h <<\_ACEOF
21716 #define STAT_STATFS3_OSF1 1
21722 if test $space = no; then
21724 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
21725 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
21726 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 if test "$cross_compiling" = yes; then
21730 fu_cv_sys_stat_statfs2_bsize=no
21732 cat >conftest.$ac_ext <<_ACEOF
21733 #line $LINENO "configure"
21734 #include "confdefs.h"
21736 #ifdef HAVE_SYS_PARAM_H
21737 #include <sys/param.h>
21739 #ifdef HAVE_SYS_MOUNT_H
21740 #include <sys/mount.h>
21742 #ifdef HAVE_SYS_VFS_H
21743 #include <sys/vfs.h>
21749 exit (statfs (".", &fsd));
21752 rm -f conftest$ac_exeext
21753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21754 (eval $ac_link) 2>&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); }; }; then
21763 fu_cv_sys_stat_statfs2_bsize=yes
21765 echo "$as_me: program exited with status $ac_status" >&5
21766 echo "$as_me: failed program was:" >&5
21767 cat conftest.$ac_ext >&5
21768 ( exit $ac_status )
21769 fu_cv_sys_stat_statfs2_bsize=no
21771 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21775 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
21776 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
21777 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
21780 cat >>confdefs.h <<\_ACEOF
21781 #define STAT_STATFS2_BSIZE 1
21787 if test $space = no; then
21789 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
21790 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
21791 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21794 if test "$cross_compiling" = yes; then
21795 fu_cv_sys_stat_statfs4=no
21797 cat >conftest.$ac_ext <<_ACEOF
21798 #line $LINENO "configure"
21799 #include "confdefs.h"
21800 #include <sys/types.h>
21801 #include <sys/statfs.h>
21805 exit (statfs (".", &fsd, sizeof fsd, 0));
21808 rm -f conftest$ac_exeext
21809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21810 (eval $ac_link) 2>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 fu_cv_sys_stat_statfs4=yes
21821 echo "$as_me: program exited with status $ac_status" >&5
21822 echo "$as_me: failed program was:" >&5
21823 cat conftest.$ac_ext >&5
21824 ( exit $ac_status )
21825 fu_cv_sys_stat_statfs4=no
21827 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21831 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
21832 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
21833 if test $fu_cv_sys_stat_statfs4 = yes; then
21836 cat >>confdefs.h <<\_ACEOF
21837 #define STAT_STATFS4 1
21843 if test $space = no; then
21844 # 4.4BSD and NetBSD
21845 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
21846 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
21847 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 if test "$cross_compiling" = yes; then
21851 fu_cv_sys_stat_statfs2_fsize=no
21853 cat >conftest.$ac_ext <<_ACEOF
21854 #line $LINENO "configure"
21855 #include "confdefs.h"
21856 #include <sys/types.h>
21857 #ifdef HAVE_SYS_PARAM_H
21858 #include <sys/param.h>
21860 #ifdef HAVE_SYS_MOUNT_H
21861 #include <sys/mount.h>
21867 exit (statfs (".", &fsd));
21870 rm -f conftest$ac_exeext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21872 (eval $ac_link) 2>&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 fu_cv_sys_stat_statfs2_fsize=yes
21883 echo "$as_me: program exited with status $ac_status" >&5
21884 echo "$as_me: failed program was:" >&5
21885 cat conftest.$ac_ext >&5
21886 ( exit $ac_status )
21887 fu_cv_sys_stat_statfs2_fsize=no
21889 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21893 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
21894 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
21895 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
21898 cat >>confdefs.h <<\_ACEOF
21899 #define STAT_STATFS2_FSIZE 1
21905 if test $space = no; then
21907 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
21908 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
21909 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 if test "$cross_compiling" = yes; then
21913 fu_cv_sys_stat_fs_data=no
21915 cat >conftest.$ac_ext <<_ACEOF
21916 #line $LINENO "configure"
21917 #include "confdefs.h"
21918 #include <sys/types.h>
21919 #ifdef HAVE_SYS_PARAM_H
21920 #include <sys/param.h>
21922 #ifdef HAVE_SYS_MOUNT_H
21923 #include <sys/mount.h>
21925 #ifdef HAVE_SYS_FS_TYPES_H
21926 #include <sys/fs_types.h>
21930 struct fs_data fsd;
21931 /* Ultrix's statfs returns 1 for success,
21932 0 for not mounted, -1 for failure. */
21933 exit (statfs (".", &fsd) != 1);
21936 rm -f conftest$ac_exeext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21938 (eval $ac_link) 2>&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 fu_cv_sys_stat_fs_data=yes
21949 echo "$as_me: program exited with status $ac_status" >&5
21950 echo "$as_me: failed program was:" >&5
21951 cat conftest.$ac_ext >&5
21952 ( exit $ac_status )
21953 fu_cv_sys_stat_fs_data=no
21955 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
21960 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
21961 if test $fu_cv_sys_stat_fs_data = yes; then
21964 cat >>confdefs.h <<\_ACEOF
21965 #define STAT_STATFS2_FS_DATA 1
21972 # As a gating factor for large file support, in order to
21973 # use <4GB files we must have the following minimal support
21975 # long long, and a 64 bit off_t or off64_t.
21976 # If we don't have all of these then disable large
21979 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
21980 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
21981 cat >conftest.$ac_ext <<_ACEOF
21982 #line $LINENO "configure"
21983 #include "confdefs.h"
21985 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
21986 #include <sys/types.h>
21999 rm -f conftest.$ac_objext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22001 (eval $ac_compile) 2>&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } &&
22005 { ac_try='test -s conftest.$ac_objext'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
22013 echo "$as_me: failed program was:" >&5
22014 cat conftest.$ac_ext >&5
22015 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
22017 rm -f conftest.$ac_objext conftest.$ac_ext
22018 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
22020 cat >>confdefs.h <<\_ACEOF
22021 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
22025 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
22026 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
22029 # Check whether --with-spinlocks or --without-spinlocks was given.
22030 if test "${with_spinlocks+set}" = set; then
22031 withval="$with_spinlocks"
22034 if test "x$with_spinlocks" = "xyes"; then
22036 cat >>confdefs.h <<\_ACEOF
22037 #define USE_SPINLOCKS 1
22041 case "$host_cpu" in
22044 cat >>confdefs.h <<\_ACEOF
22045 #define SPARC_SPINLOCKS 1
22050 i386|i486|i586|i686)
22052 cat >>confdefs.h <<\_ACEOF
22053 #define INTEL_SPINLOCKS 1
22060 cat >>confdefs.h <<\_ACEOF
22061 #define MIPS_SPINLOCKS 1
22068 cat >>confdefs.h <<\_ACEOF
22069 #define POWERPC_SPINLOCKS 1
22076 #################################################
22077 # check for ACL support
22079 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
22080 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
22082 # Check whether --with-acl-support or --without-acl-support was given.
22083 if test "${with_acl_support+set}" = set; then
22084 withval="$with_acl_support"
22090 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
22091 echo "${ECHO_T}Using UnixWare ACLs" >&6
22093 cat >>confdefs.h <<\_ACEOF
22094 #define HAVE_UNIXWARE_ACLS 1
22099 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
22100 echo "${ECHO_T}Using solaris ACLs" >&6
22102 cat >>confdefs.h <<\_ACEOF
22103 #define HAVE_SOLARIS_ACLS 1
22108 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
22109 echo "${ECHO_T}Using HPUX ACLs" >&6
22111 cat >>confdefs.h <<\_ACEOF
22112 #define HAVE_HPUX_ACLS 1
22117 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
22118 echo "${ECHO_T}Using IRIX ACLs" >&6
22120 cat >>confdefs.h <<\_ACEOF
22121 #define HAVE_IRIX_ACLS 1
22126 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
22127 echo "${ECHO_T}Using AIX ACLs" >&6
22129 cat >>confdefs.h <<\_ACEOF
22130 #define HAVE_AIX_ACLS 1
22135 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
22136 echo "${ECHO_T}Using Tru64 ACLs" >&6
22138 cat >>confdefs.h <<\_ACEOF
22139 #define HAVE_TRU64_ACLS 1
22142 LIBS="$LIBS -lpacl"
22146 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22147 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22148 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 ac_check_lib_save_LIBS=$LIBS
22153 cat >conftest.$ac_ext <<_ACEOF
22154 #line $LINENO "configure"
22155 #include "confdefs.h"
22157 /* Override any gcc2 internal prototype to avoid an error. */
22161 /* We use char because int might match the return type of a gcc2
22162 builtin and then its argument prototype would still apply. */
22163 char acl_get_file ();
22172 rm -f conftest.$ac_objext conftest$ac_exeext
22173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22174 (eval $ac_link) 2>&5
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); } &&
22178 { ac_try='test -s conftest$ac_exeext'
22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }; then
22184 ac_cv_lib_acl_acl_get_file=yes
22186 echo "$as_me: failed program was:" >&5
22187 cat conftest.$ac_ext >&5
22188 ac_cv_lib_acl_acl_get_file=no
22190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22191 LIBS=$ac_check_lib_save_LIBS
22193 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22194 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22195 if test $ac_cv_lib_acl_acl_get_file = yes; then
22196 cat >>confdefs.h <<_ACEOF
22197 #define HAVE_LIBACL 1
22204 echo "$as_me:$LINENO: checking for ACL support" >&5
22205 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
22206 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 cat >conftest.$ac_ext <<_ACEOF
22211 #line $LINENO "configure"
22212 #include "confdefs.h"
22213 #include <sys/types.h>
22214 #include <sys/acl.h>
22218 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
22223 rm -f conftest.$ac_objext conftest$ac_exeext
22224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22225 (eval $ac_link) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } &&
22229 { ac_try='test -s conftest$ac_exeext'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 samba_cv_HAVE_POSIX_ACLS=yes
22237 echo "$as_me: failed program was:" >&5
22238 cat conftest.$ac_ext >&5
22239 samba_cv_HAVE_POSIX_ACLS=no
22241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22243 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
22244 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
22245 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
22246 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
22247 echo "${ECHO_T}Using posix ACLs" >&6
22249 cat >>confdefs.h <<\_ACEOF
22250 #define HAVE_POSIX_ACLS 1
22253 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
22254 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
22255 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 cat >conftest.$ac_ext <<_ACEOF
22260 #line $LINENO "configure"
22261 #include "confdefs.h"
22262 #include <sys/types.h>
22263 #include <sys/acl.h>
22267 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
22272 rm -f conftest.$ac_objext conftest$ac_exeext
22273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22274 (eval $ac_link) 2>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280 (eval $ac_try) 2>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; }; then
22284 samba_cv_HAVE_ACL_GET_PERM_NP=yes
22286 echo "$as_me: failed program was:" >&5
22287 cat conftest.$ac_ext >&5
22288 samba_cv_HAVE_ACL_GET_PERM_NP=no
22290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22292 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
22293 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
22294 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
22296 cat >>confdefs.h <<\_ACEOF
22297 #define HAVE_ACL_GET_PERM_NP 1
22306 echo "$as_me:$LINENO: result: no" >&5
22307 echo "${ECHO_T}no" >&6
22309 cat >>confdefs.h <<\_ACEOF
22310 #define HAVE_NO_ACLS 1
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_NO_ACLS 1
22321 echo "$as_me:$LINENO: result: no" >&5
22322 echo "${ECHO_T}no" >&6
22326 #################################################
22327 # check for sendfile support
22329 with_sendfile_support=yes
22330 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
22331 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
22333 # Check whether --with-sendfile-support or --without-sendfile-support was given.
22334 if test "${with_sendfile_support+set}" = set; then
22335 withval="$with_sendfile_support"
22339 echo "$as_me:$LINENO: result: yes" >&5
22340 echo "${ECHO_T}yes" >&6;
22344 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
22345 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
22346 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 cat >conftest.$ac_ext <<_ACEOF
22351 #line $LINENO "configure"
22352 #include "confdefs.h"
22353 #include <sys/sendfile.h>
22361 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369 (eval $ac_link) 2>&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } &&
22373 { ac_try='test -s conftest$ac_exeext'
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; }; then
22379 samba_cv_HAVE_SENDFILE64=yes
22381 echo "$as_me: failed program was:" >&5
22382 cat conftest.$ac_ext >&5
22383 samba_cv_HAVE_SENDFILE64=no
22385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22387 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22388 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22390 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
22391 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
22392 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 cat >conftest.$ac_ext <<_ACEOF
22397 #line $LINENO "configure"
22398 #include "confdefs.h"
22399 #include <sys/sendfile.h>
22407 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22413 rm -f conftest.$ac_objext conftest$ac_exeext
22414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22415 (eval $ac_link) 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } &&
22419 { ac_try='test -s conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 samba_cv_HAVE_SENDFILE=yes
22427 echo "$as_me: failed program was:" >&5
22428 cat conftest.$ac_ext >&5
22429 samba_cv_HAVE_SENDFILE=no
22431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22433 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22434 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22436 # Try and cope with broken Linux sendfile....
22437 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
22438 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
22439 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 cat >conftest.$ac_ext <<_ACEOF
22444 #line $LINENO "configure"
22445 #include "confdefs.h"
22447 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
22448 #undef _FILE_OFFSET_BITS
22450 #include <sys/sendfile.h>
22458 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22466 (eval $ac_link) 2>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -s conftest$ac_exeext'
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
22478 echo "$as_me: failed program was:" >&5
22479 cat conftest.$ac_ext >&5
22480 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
22482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22484 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
22485 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
22487 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22489 cat >>confdefs.h <<\_ACEOF
22490 #define HAVE_SENDFILE64 1
22494 cat >>confdefs.h <<\_ACEOF
22495 #define LINUX_SENDFILE_API 1
22499 cat >>confdefs.h <<\_ACEOF
22500 #define WITH_SENDFILE 1
22503 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22505 cat >>confdefs.h <<\_ACEOF
22506 #define HAVE_SENDFILE 1
22510 cat >>confdefs.h <<\_ACEOF
22511 #define LINUX_SENDFILE_API 1
22515 cat >>confdefs.h <<\_ACEOF
22516 #define WITH_SENDFILE 1
22519 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
22521 cat >>confdefs.h <<\_ACEOF
22522 #define LINUX_BROKEN_SENDFILE_API 1
22526 cat >>confdefs.h <<\_ACEOF
22527 #define WITH_SENDFILE 1
22531 echo "$as_me:$LINENO: result: no" >&5
22532 echo "${ECHO_T}no" >&6;
22537 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
22538 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
22539 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22540 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 cat >conftest.$ac_ext <<_ACEOF
22544 #line $LINENO "configure"
22545 #include "confdefs.h"
22547 #include <sys/types.h>
22548 #include <sys/socket.h>
22549 #include <sys/uio.h>
22555 off_t offset, nwritten;
22556 struct sf_hdtr hdr;
22557 struct iovec hdtrl;
22558 hdr->headers = &hdtrl;
22560 hdr->trailers = NULL;
22562 hdtrl.iov_base = NULL;
22564 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
22570 rm -f conftest.$ac_objext conftest$ac_exeext
22571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22572 (eval $ac_link) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
22576 { ac_try='test -s conftest$ac_exeext'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }; then
22582 samba_cv_HAVE_SENDFILE=yes
22584 echo "$as_me: failed program was:" >&5
22585 cat conftest.$ac_ext >&5
22586 samba_cv_HAVE_SENDFILE=no
22588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22590 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22591 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22593 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22595 cat >>confdefs.h <<\_ACEOF
22596 #define HAVE_SENDFILE 1
22600 cat >>confdefs.h <<\_ACEOF
22601 #define FREEBSD_SENDFILE_API 1
22605 cat >>confdefs.h <<\_ACEOF
22606 #define WITH_SENDFILE 1
22610 echo "$as_me:$LINENO: result: no" >&5
22611 echo "${ECHO_T}no" >&6;
22616 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
22617 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
22618 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 cat >conftest.$ac_ext <<_ACEOF
22623 #line $LINENO "configure"
22624 #include "confdefs.h"
22626 #include <sys/socket.h>
22627 #include <sys/uio.h>
22634 struct iovec hdtrl[2];
22638 hdtrl[0].iov_base = 0;
22639 hdtrl[0].iov_len = 0;
22641 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
22647 rm -f conftest.$ac_objext conftest$ac_exeext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22649 (eval $ac_link) 2>&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } &&
22653 { ac_try='test -s conftest$ac_exeext'
22654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655 (eval $ac_try) 2>&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; }; then
22659 samba_cv_HAVE_SENDFILE64=yes
22661 echo "$as_me: failed program was:" >&5
22662 cat conftest.$ac_ext >&5
22663 samba_cv_HAVE_SENDFILE64=no
22665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22667 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
22668 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
22669 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
22671 cat >>confdefs.h <<\_ACEOF
22672 #define HAVE_SENDFILE64 1
22676 cat >>confdefs.h <<\_ACEOF
22677 #define HPUX_SENDFILE_API 1
22681 cat >>confdefs.h <<\_ACEOF
22682 #define WITH_SENDFILE 1
22686 echo "$as_me:$LINENO: result: no" >&5
22687 echo "${ECHO_T}no" >&6;
22690 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
22691 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
22692 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22696 cat >conftest.$ac_ext <<_ACEOF
22697 #line $LINENO "configure"
22698 #include "confdefs.h"
22700 #include <sys/socket.h>
22701 #include <sys/uio.h>
22708 struct iovec hdtrl[2];
22712 hdtrl[0].iov_base = 0;
22713 hdtrl[0].iov_len = 0;
22715 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22723 (eval $ac_link) 2>&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
22727 { ac_try='test -s conftest$ac_exeext'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }; then
22733 samba_cv_HAVE_SENDFILE=yes
22735 echo "$as_me: failed program was:" >&5
22736 cat conftest.$ac_ext >&5
22737 samba_cv_HAVE_SENDFILE=no
22739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22741 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
22742 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
22743 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
22745 cat >>confdefs.h <<\_ACEOF
22746 #define HAVE_SENDFILE 1
22750 cat >>confdefs.h <<\_ACEOF
22751 #define HPUX_SENDFILE_API 1
22755 cat >>confdefs.h <<\_ACEOF
22756 #define WITH_SENDFILE 1
22760 echo "$as_me:$LINENO: result: no" >&5
22761 echo "${ECHO_T}no" >&6;
22766 LIBS="$LIBS -lsendfile"
22767 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
22768 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
22769 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 cat >conftest.$ac_ext <<_ACEOF
22774 #line $LINENO "configure"
22775 #include "confdefs.h"
22777 #include <sys/sendfile.h>
22784 struct sendfilevec vec[2];
22790 vec[0].sfv_fd = SFV_FD_SELF;
22791 vec[0].sfv_flag = 0;
22792 vec[0].sfv_off = 0;
22793 vec[0].sfv_len = 0;
22796 vec[1].sfv_flag = 0;
22797 vec[1].sfv_off = 0;
22798 vec[1].sfv_len = 0;
22799 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
22805 rm -f conftest.$ac_objext conftest$ac_exeext
22806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22807 (eval $ac_link) 2>&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } &&
22811 { ac_try='test -s conftest$ac_exeext'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; }; then
22817 samba_cv_HAVE_SENDFILEV64=yes
22819 echo "$as_me: failed program was:" >&5
22820 cat conftest.$ac_ext >&5
22821 samba_cv_HAVE_SENDFILEV64=no
22823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22825 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
22826 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
22828 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
22830 cat >>confdefs.h <<\_ACEOF
22831 #define HAVE_SENDFILEV64 1
22835 cat >>confdefs.h <<\_ACEOF
22836 #define SOLARIS_SENDFILE_API 1
22840 cat >>confdefs.h <<\_ACEOF
22841 #define WITH_SENDFILE 1
22845 echo "$as_me:$LINENO: result: no" >&5
22846 echo "${ECHO_T}no" >&6;
22849 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
22850 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
22851 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 cat >conftest.$ac_ext <<_ACEOF
22856 #line $LINENO "configure"
22857 #include "confdefs.h"
22859 #include <sys/sendfile.h>
22866 struct sendfilevec vec[2];
22872 vec[0].sfv_fd = SFV_FD_SELF;
22873 vec[0].sfv_flag = 0;
22874 vec[0].sfv_off = 0;
22875 vec[0].sfv_len = 0;
22878 vec[1].sfv_flag = 0;
22879 vec[1].sfv_off = 0;
22880 vec[1].sfv_len = 0;
22881 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22889 (eval $ac_link) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } &&
22893 { ac_try='test -s conftest$ac_exeext'
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; }; then
22899 samba_cv_HAVE_SENDFILEV=yes
22901 echo "$as_me: failed program was:" >&5
22902 cat conftest.$ac_ext >&5
22903 samba_cv_HAVE_SENDFILEV=no
22905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22907 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
22908 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
22910 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
22912 cat >>confdefs.h <<\_ACEOF
22913 #define HAVE_SENDFILEV 1
22917 cat >>confdefs.h <<\_ACEOF
22918 #define SOLARIS_SENDFILE_API 1
22922 cat >>confdefs.h <<\_ACEOF
22923 #define WITH_SENDFILE 1
22927 echo "$as_me:$LINENO: result: no" >&5
22928 echo "${ECHO_T}no" >&6;
22937 echo "$as_me:$LINENO: result: no" >&5
22938 echo "${ECHO_T}no" >&6
22942 echo "$as_me:$LINENO: result: yes" >&5
22943 echo "${ECHO_T}yes" >&6
22948 #################################################
22949 # Check whether winbind is supported on this platform. If so we need to
22950 # build and install client programs (WINBIND_TARGETS), sbin programs
22951 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
22953 echo "$as_me:$LINENO: checking whether to build winbind" >&5
22954 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
22956 # Initially, the value of $host_os decides whether winbind is supported
22964 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22965 WINBIND_NSS_EXTRA_LIBS="-lsocket"
22969 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
22973 winbind_no_reason=", unsupported on $host_os"
22977 # Check the setting of --with-winbindd
22980 # Check whether --with-winbind or --without-winbind was given.
22981 if test "${with_winbind+set}" = set; then
22982 withval="$with_winbind"
22995 # We need unix domain sockets for winbind
22997 if test x"$HAVE_WINBIND" = x"yes"; then
22998 if test x"$samba_cv_unixsocket" = x"no"; then
22999 winbind_no_reason=", no unix domain socket support on $host_os"
23004 # Display test results
23007 WINBIND_STARGETS=""
23008 WINBIND_LTARGETS=""
23009 WINBIND_PAM_PROGS=""
23011 if test x"$HAVE_WINBIND" = x"yes"; then
23012 echo "$as_me:$LINENO: result: yes" >&5
23013 echo "${ECHO_T}yes" >&6
23015 cat >>confdefs.h <<\_ACEOF
23016 #define WITH_WINBIND 1
23020 WINBIND_TARGETS="bin/wbinfo"
23021 WINBIND_STARGETS="bin/winbindd"
23022 if test x"$BLDSHARED" = x"true"; then
23023 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
23024 if test x"$with_pam" = x"yes"; then
23025 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
23029 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
23030 echo "${ECHO_T}no$winbind_no_reason" >&6
23034 # Substitution time!
23043 # Solaris has some extra fields in struct passwd that need to be
23044 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
23045 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
23048 #AC_CHECK_MEMBER(struct passwd.pw_comment,
23049 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
23050 # [#include <pwd.h>])
23052 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
23053 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
23054 if test "${samba_cv_passwd_pw_comment+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23058 cat >conftest.$ac_ext <<_ACEOF
23059 #line $LINENO "configure"
23060 #include "confdefs.h"
23065 struct passwd p; p.pw_comment;
23070 rm -f conftest.$ac_objext
23071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23072 (eval $ac_compile) 2>&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } &&
23076 { ac_try='test -s conftest.$ac_objext'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; }; then
23082 samba_cv_passwd_pw_comment=yes
23084 echo "$as_me: failed program was:" >&5
23085 cat conftest.$ac_ext >&5
23086 samba_cv_passwd_pw_comment=no
23088 rm -f conftest.$ac_objext conftest.$ac_ext
23090 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
23091 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
23092 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
23094 cat >>confdefs.h <<\_ACEOF
23095 #define HAVE_PASSWD_PW_COMMENT 1
23100 #AC_CHECK_MEMBER(struct passwd.pw_age,
23101 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
23102 # [#include <pwd.h>])
23104 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
23105 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
23106 if test "${samba_cv_passwd_pw_age+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 cat >conftest.$ac_ext <<_ACEOF
23111 #line $LINENO "configure"
23112 #include "confdefs.h"
23117 struct passwd p; p.pw_age;
23122 rm -f conftest.$ac_objext
23123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23124 (eval $ac_compile) 2>&5
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } &&
23128 { ac_try='test -s conftest.$ac_objext'
23129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23130 (eval $ac_try) 2>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; }; then
23134 samba_cv_passwd_pw_age=yes
23136 echo "$as_me: failed program was:" >&5
23137 cat conftest.$ac_ext >&5
23138 samba_cv_passwd_pw_age=no
23140 rm -f conftest.$ac_objext conftest.$ac_ext
23142 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
23143 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
23144 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_PASSWD_PW_AGE 1
23152 #################################################
23153 # Check to see if we should use the included popt
23156 # Check whether --with-included-popt or --without-included-popt was given.
23157 if test "${with_included_popt+set}" = set; then
23158 withval="$with_included_popt"
23169 if test x"$INCLUDED_POPT" != x"yes"; then
23170 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
23171 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
23172 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 ac_check_lib_save_LIBS=$LIBS
23176 LIBS="-lpopt $LIBS"
23177 cat >conftest.$ac_ext <<_ACEOF
23178 #line $LINENO "configure"
23179 #include "confdefs.h"
23181 /* Override any gcc2 internal prototype to avoid an error. */
23185 /* We use char because int might match the return type of a gcc2
23186 builtin and then its argument prototype would still apply. */
23187 char poptGetContext ();
23196 rm -f conftest.$ac_objext conftest$ac_exeext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23198 (eval $ac_link) 2>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } &&
23202 { ac_try='test -s conftest$ac_exeext'
23203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204 (eval $ac_try) 2>&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); }; }; then
23208 ac_cv_lib_popt_poptGetContext=yes
23210 echo "$as_me: failed program was:" >&5
23211 cat conftest.$ac_ext >&5
23212 ac_cv_lib_popt_poptGetContext=no
23214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23215 LIBS=$ac_check_lib_save_LIBS
23217 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
23218 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
23219 if test $ac_cv_lib_popt_poptGetContext = yes; then
23227 echo "$as_me:$LINENO: checking whether to use included popt" >&5
23228 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
23229 if test x"$INCLUDED_POPT" = x"yes"; then
23230 echo "$as_me:$LINENO: result: yes" >&5
23231 echo "${ECHO_T}yes" >&6
23232 BUILD_POPT='$(POPT_OBJS)'
23233 FLAGS1="-I$srcdir/popt"
23235 echo "$as_me:$LINENO: result: no" >&5
23236 echo "${ECHO_T}no" >&6
23237 LIBS="$LIBS -lpopt"
23242 #################################################
23243 # Check if the user wants Python
23245 # At the moment, you can use this to set which Python binary to link
23246 # against. (Libraries built for Python2.2 can't be used by 2.1,
23247 # though they can coexist in different directories.) In the future
23248 # this might make the Python stuff be built by default.
23251 # Check whether --with-python or --without-python was given.
23252 if test "${with_python+set}" = set; then
23253 withval="$with_python"
23254 case "${withval-python}" in
23259 PYTHON=${withval-python}
23265 #################################################
23266 # do extra things if we are running insure
23268 if test "${ac_cv_prog_CC}" = "insure"; then
23269 CPPFLAGS="$CPPFLAGS -D__INSURE__"
23272 #################################################
23273 # final configure stuff
23275 echo "$as_me:$LINENO: checking configure summary" >&5
23276 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
23277 if test "$cross_compiling" = yes; then
23278 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
23279 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
23281 cat >conftest.$ac_ext <<_ACEOF
23282 #line $LINENO "configure"
23283 #include "confdefs.h"
23284 #include "${srcdir-.}/tests/summary.c"
23286 rm -f conftest$ac_exeext
23287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23288 (eval $ac_link) 2>&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }; then
23297 echo "$as_me:$LINENO: result: yes" >&5
23298 echo "${ECHO_T}yes" >&6
23300 echo "$as_me: program exited with status $ac_status" >&5
23301 echo "$as_me: failed program was:" >&5
23302 cat conftest.$ac_ext >&5
23303 ( exit $ac_status )
23304 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
23305 echo "$as_me: error: summary failure. Aborting config" >&2;}
23306 { (exit 1); exit 1; }; }; exit 1;
23308 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23314 # I added make files that are outside /source directory.
23315 # I know this is not a good solution, will work out a better
23316 # solution soon. --simo
23317 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb ../examples/sam/Makefile"
23318 cat >confcache <<\_ACEOF
23319 # This file is a shell script that caches the results of configure
23320 # tests run on this system so they can be shared between configure
23321 # scripts and configure runs, see configure's option --config-cache.
23322 # It is not useful on other systems. If it contains results you don't
23323 # want to keep, you may remove or edit it.
23325 # config.status only pays attention to the cache file if you give it
23326 # the --recheck option to rerun configure.
23328 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23329 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23330 # following values.
23334 # The following way of writing the cache mishandles newlines in values,
23335 # but we know of no workaround that is simple, portable, and efficient.
23336 # So, don't put newlines in cache variables' values.
23337 # Ultrix sh set writes to stderr and can't be redirected directly,
23338 # and sets the high bit in the cache file unless we assign to the vars.
23341 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23343 # `set' does not quote correctly, so add quotes (double-quote
23344 # substitution turns \\\\ into \\, and sed turns \\ into \).
23347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23350 # `set' quotes correctly as required by POSIX, so do not add quotes.
23352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23361 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23363 if cmp -s $cache_file confcache; then :; else
23364 if test -w $cache_file; then
23365 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23366 cat confcache >$cache_file
23368 echo "not updating unwritable cache $cache_file"
23373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23374 # Let make expand exec_prefix.
23375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23377 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23378 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23379 # trailing colons and then remove the whole line if VPATH becomes empty
23380 # (actually we leave an empty line to preserve line numbers).
23381 if test "x$srcdir" = x.; then
23382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23383 s/:*\$(srcdir):*/:/;
23384 s/:*\${srcdir}:*/:/;
23386 s/^\([^=]*=[ ]*\):*/\1/;
23392 DEFS=-DHAVE_CONFIG_H
23396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23397 # 1. Remove the extension, and $U if already installed.
23398 ac_i=`echo "$ac_i" |
23399 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23401 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23402 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23404 LIBOBJS=$ac_libobjs
23406 LTLIBOBJS=$ac_ltlibobjs
23410 : ${CONFIG_STATUS=./config.status}
23411 ac_clean_files_save=$ac_clean_files
23412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23415 cat >$CONFIG_STATUS <<_ACEOF
23417 # Generated by $as_me.
23418 # Run this file to recreate the current configuration.
23419 # Compiler output produced by configure, useful for debugging
23420 # configure, is in config.log if it exists.
23423 SHELL=\${CONFIG_SHELL-$SHELL}
23426 cat >>$CONFIG_STATUS <<\_ACEOF
23427 ## --------------------- ##
23428 ## M4sh Initialization. ##
23429 ## --------------------- ##
23431 # Be Bourne compatible
23432 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23435 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23436 # is contrary to our usage. Disable this feature.
23437 alias -g '${1+"$@"}'='"$@"'
23438 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23442 # Support unset when possible.
23443 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23450 # Work around bugs in pre-3.0 UWIN ksh.
23451 $as_unset ENV MAIL MAILPATH
23457 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
23459 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23460 eval $as_var=C; export $as_var
23466 # Required to use basename.
23467 if expr a : '\(a\)' >/dev/null 2>&1; then
23473 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23474 as_basename=basename
23480 # Name of the executable.
23481 as_me=`$as_basename "$0" ||
23482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23483 X"$0" : 'X\(//\)$' \| \
23484 X"$0" : 'X\(/\)$' \| \
23485 . : '\(.\)' 2>/dev/null ||
23487 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23488 /^X\/\(\/\/\)$/{ s//\1/; q; }
23489 /^X\/\(\/\).*/{ s//\1/; q; }
23493 # PATH needs CR, and LINENO needs CR and PATH.
23494 # Avoid depending upon Character Ranges.
23495 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23496 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23497 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23498 as_cr_digits='0123456789'
23499 as_cr_alnum=$as_cr_Letters$as_cr_digits
23501 # The user is always right.
23502 if test "${PATH_SEPARATOR+set}" != set; then
23503 echo "#! /bin/sh" >conftest.sh
23504 echo "exit 0" >>conftest.sh
23505 chmod +x conftest.sh
23506 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
23515 as_lineno_1=$LINENO
23516 as_lineno_2=$LINENO
23517 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23518 test "x$as_lineno_1" != "x$as_lineno_2" &&
23519 test "x$as_lineno_3" = "x$as_lineno_2" || {
23520 # Find who we are. Look in the path if we contain no path at all
23523 *[\\/]* ) as_myself=$0 ;;
23524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23525 for as_dir in $PATH
23528 test -z "$as_dir" && as_dir=.
23529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23534 # We did not find ourselves, most probably we were run as `sh COMMAND'
23535 # in which case we are not to be found in the path.
23536 if test "x$as_myself" = x; then
23539 if test ! -f "$as_myself"; then
23540 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23541 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23542 { (exit 1); exit 1; }; }
23544 case $CONFIG_SHELL in
23546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23547 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23550 test -z "$as_dir" && as_dir=.
23551 for as_base in sh bash ksh sh5; do
23554 if ("$as_dir/$as_base" -c '
23555 as_lineno_1=$LINENO
23556 as_lineno_2=$LINENO
23557 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23558 test "x$as_lineno_1" != "x$as_lineno_2" &&
23559 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23560 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23561 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23562 CONFIG_SHELL=$as_dir/$as_base
23563 export CONFIG_SHELL
23564 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23573 # uniformly replaced by the line number. The first 'sed' inserts a
23574 # line-number line before each line; the second 'sed' does the real
23575 # work. The second script uses 'N' to pair each line-number line
23576 # with the numbered line, and appends trailing '-' during
23577 # substitution so that $LINENO is not a special case at line end.
23578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23579 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23580 sed '=' <$as_myself |
23585 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23588 s,^['$as_cr_digits']*\n,,
23589 ' >$as_me.lineno &&
23590 chmod +x $as_me.lineno ||
23591 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23592 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23593 { (exit 1); exit 1; }; }
23595 # Don't try to exec as it changes $[0], causing all sort of problems
23596 # (the dirname of $[0] is not the place where we might find the
23597 # original and so on. Autoconf is especially sensible to this).
23599 # Exit status is that of the last command.
23604 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23605 *c*,-n*) ECHO_N= ECHO_C='
23607 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23608 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23611 if expr a : '\(a\)' >/dev/null 2>&1; then
23617 rm -f conf$$ conf$$.exe conf$$.file
23619 if ln -s conf$$.file conf$$ 2>/dev/null; then
23620 # We could just check for DJGPP; but this test a) works b) is more generic
23621 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23622 if test -f conf$$.exe; then
23623 # Don't use ln at all; we don't have any links
23628 elif ln conf$$.file conf$$ 2>/dev/null; then
23633 rm -f conf$$ conf$$.exe conf$$.file
23635 if mkdir -p . 2>/dev/null; then
23641 as_executable_p="test -f"
23643 # Sed expression to map a string onto a valid CPP name.
23644 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23646 # Sed expression to map a string onto a valid variable name.
23647 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23651 # We need space, tab and new line, in precisely that order.
23661 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23662 # report actual input values of CONFIG_FILES etc. instead of their
23663 # values after options handling. Logging --version etc. is OK.
23667 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23668 ## Running $as_me. ##
23673 This file was extended by $as_me, which was
23674 generated by GNU Autoconf 2.54. Invocation command line was
23676 CONFIG_FILES = $CONFIG_FILES
23677 CONFIG_HEADERS = $CONFIG_HEADERS
23678 CONFIG_LINKS = $CONFIG_LINKS
23679 CONFIG_COMMANDS = $CONFIG_COMMANDS
23683 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23687 # Files that config.status was made for.
23688 if test -n "$ac_config_files"; then
23689 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23692 if test -n "$ac_config_headers"; then
23693 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23696 if test -n "$ac_config_links"; then
23697 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23700 if test -n "$ac_config_commands"; then
23701 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23704 cat >>$CONFIG_STATUS <<\_ACEOF
23707 \`$as_me' instantiates files from templates according to the
23708 current configuration.
23710 Usage: $0 [OPTIONS] [FILE]...
23712 -h, --help print this help, then exit
23713 -V, --version print version number, then exit
23714 -d, --debug don't remove temporary files
23715 --recheck update $as_me by reconfiguring in the same conditions
23716 --file=FILE[:TEMPLATE]
23717 instantiate the configuration file FILE
23718 --header=FILE[:TEMPLATE]
23719 instantiate the configuration header FILE
23721 Configuration files:
23724 Configuration headers:
23727 Report bugs to <bug-autoconf@gnu.org>."
23730 cat >>$CONFIG_STATUS <<_ACEOF
23733 configured by $0, generated by GNU Autoconf 2.54,
23734 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23736 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23737 Free Software Foundation, Inc.
23738 This config.status script is free software; the Free Software Foundation
23739 gives unlimited permission to copy, distribute and modify it."
23744 cat >>$CONFIG_STATUS <<\_ACEOF
23745 # If no file are specified by the user, then we need to provide default
23746 # value. By we need to know if files were specified by the user.
23752 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23753 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23761 *) # This is not an option, so the user has probably given explicit
23764 ac_need_defaults=false;;
23768 # Handling of the options.
23770 cat >>$CONFIG_STATUS <<_ACEOF
23771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23772 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23773 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23775 cat >>$CONFIG_STATUS <<\_ACEOF
23776 --version | --vers* | -V )
23777 echo "$ac_cs_version"; exit 0 ;;
23779 # Conflict between --help and --header
23780 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23781 Try \`$0 --help' for more information." >&5
23782 echo "$as_me: error: ambiguous option: $1
23783 Try \`$0 --help' for more information." >&2;}
23784 { (exit 1); exit 1; }; };;
23785 --help | --hel | -h )
23786 echo "$ac_cs_usage"; exit 0 ;;
23787 --debug | --d* | -d )
23789 --file | --fil | --fi | --f )
23791 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23792 ac_need_defaults=false;;
23793 --header | --heade | --head | --hea )
23795 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23796 ac_need_defaults=false;;
23798 # This is an error.
23799 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23800 Try \`$0 --help' for more information." >&5
23801 echo "$as_me: error: unrecognized option: $1
23802 Try \`$0 --help' for more information." >&2;}
23803 { (exit 1); exit 1; }; } ;;
23805 *) ac_config_targets="$ac_config_targets $1" ;;
23817 cat >>$CONFIG_STATUS <<\_ACEOF
23818 for ac_config_target in $ac_config_targets
23820 case "$ac_config_target" in
23821 # Handling of arguments.
23822 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
23823 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23824 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
23825 "../examples/sam/Makefile" ) CONFIG_FILES="$CONFIG_FILES ../examples/sam/Makefile" ;;
23826 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
23827 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23828 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23829 { (exit 1); exit 1; }; };;
23833 # If the user did not use the arguments to specify the items to instantiate,
23834 # then the envvar interface is used. Set only those that are not.
23835 # We use the long form for the default assignment because of an extremely
23836 # bizarre bug on SunOS 4.1.3.
23837 if $ac_need_defaults; then
23838 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23839 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23842 # Create a temporary directory, and hook for its removal unless debugging.
23845 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23846 trap '{ (exit 1); exit 1; }' 1 2 13 15
23849 # Create a (secure) tmp directory for tmp files.
23852 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23853 test -n "$tmp" && test -d "$tmp"
23856 tmp=$TMPDIR/cs$$-$RANDOM
23857 (umask 077 && mkdir $tmp)
23860 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23861 { (exit 1); exit 1; }
23866 cat >>$CONFIG_STATUS <<_ACEOF
23869 # CONFIG_FILES section.
23872 # No need to generate the scripts if there are no CONFIG_FILES.
23873 # This happens for instance when ./config.status config.h
23874 if test -n "\$CONFIG_FILES"; then
23875 # Protect against being on the right side of a sed subst in config.status.
23876 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23877 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23878 s,@SHELL@,$SHELL,;t t
23879 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23880 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23881 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23882 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23883 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23884 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23885 s,@exec_prefix@,$exec_prefix,;t t
23886 s,@prefix@,$prefix,;t t
23887 s,@program_transform_name@,$program_transform_name,;t t
23888 s,@bindir@,$bindir,;t t
23889 s,@sbindir@,$sbindir,;t t
23890 s,@libexecdir@,$libexecdir,;t t
23891 s,@datadir@,$datadir,;t t
23892 s,@sysconfdir@,$sysconfdir,;t t
23893 s,@sharedstatedir@,$sharedstatedir,;t t
23894 s,@localstatedir@,$localstatedir,;t t
23895 s,@libdir@,$libdir,;t t
23896 s,@includedir@,$includedir,;t t
23897 s,@oldincludedir@,$oldincludedir,;t t
23898 s,@infodir@,$infodir,;t t
23899 s,@mandir@,$mandir,;t t
23900 s,@build_alias@,$build_alias,;t t
23901 s,@host_alias@,$host_alias,;t t
23902 s,@target_alias@,$target_alias,;t t
23903 s,@DEFS@,$DEFS,;t t
23904 s,@ECHO_C@,$ECHO_C,;t t
23905 s,@ECHO_N@,$ECHO_N,;t t
23906 s,@ECHO_T@,$ECHO_T,;t t
23907 s,@LIBS@,$LIBS,;t t
23908 s,@configdir@,$configdir,;t t
23909 s,@lockdir@,$lockdir,;t t
23910 s,@piddir@,$piddir,;t t
23911 s,@logfilebase@,$logfilebase,;t t
23912 s,@privatedir@,$privatedir,;t t
23913 s,@swatdir@,$swatdir,;t t
23914 s,@RUNPROG@,$RUNPROG,;t t
23915 s,@MPROGS@,$MPROGS,;t t
23916 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
23917 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
23918 s,@SHLD@,$SHLD,;t t
23919 s,@HOST_OS@,$HOST_OS,;t t
23920 s,@PAM_MOD@,$PAM_MOD,;t t
23921 s,@WRAP@,$WRAP,;t t
23922 s,@WRAP32@,$WRAP32,;t t
23923 s,@WRAPPROG@,$WRAPPROG,;t t
23924 s,@PICFLAG@,$PICFLAG,;t t
23925 s,@PICSUFFIX@,$PICSUFFIX,;t t
23926 s,@POBAD_CC@,$POBAD_CC,;t t
23927 s,@SHLIBEXT@,$SHLIBEXT,;t t
23928 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
23929 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
23930 s,@PRINTLIBS@,$PRINTLIBS,;t t
23931 s,@AUTHLIBS@,$AUTHLIBS,;t t
23933 s,@CFLAGS@,$CFLAGS,;t t
23934 s,@LDFLAGS@,$LDFLAGS,;t t
23935 s,@CPPFLAGS@,$CPPFLAGS,;t t
23936 s,@ac_ct_CC@,$ac_ct_CC,;t t
23937 s,@EXEEXT@,$EXEEXT,;t t
23938 s,@OBJEXT@,$OBJEXT,;t t
23939 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23940 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23941 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23943 s,@BROKEN_CC@,$BROKEN_CC,;t t
23944 s,@build@,$build,;t t
23945 s,@build_cpu@,$build_cpu,;t t
23946 s,@build_vendor@,$build_vendor,;t t
23947 s,@build_os@,$build_os,;t t
23948 s,@host@,$host,;t t
23949 s,@host_cpu@,$host_cpu,;t t
23950 s,@host_vendor@,$host_vendor,;t t
23951 s,@host_os@,$host_os,;t t
23952 s,@target@,$target,;t t
23953 s,@target_cpu@,$target_cpu,;t t
23954 s,@target_vendor@,$target_vendor,;t t
23955 s,@target_os@,$target_os,;t t
23957 s,@EGREP@,$EGREP,;t t
23958 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
23959 s,@LIBOBJS@,$LIBOBJS,;t t
23960 s,@TERMLIBS@,$TERMLIBS,;t t
23961 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
23962 s,@ROFF@,$ROFF,;t t
23963 s,@DYNEXP@,$DYNEXP,;t t
23964 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
23965 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
23966 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
23967 s,@MODULE_PDB_MYSQL@,$MODULE_PDB_MYSQL,;t t
23968 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
23969 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
23970 s,@XML_LIBS@,$XML_LIBS,;t t
23971 s,@MODULE_PDB_XML@,$MODULE_PDB_XML,;t t
23972 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
23973 s,@manlangs@,$manlangs,;t t
23974 s,@WINBIND_TARGETS@,$WINBIND_TARGETS,;t t
23975 s,@WINBIND_STARGETS@,$WINBIND_STARGETS,;t t
23976 s,@WINBIND_LTARGETS@,$WINBIND_LTARGETS,;t t
23977 s,@WINBIND_PAM_TARGETS@,$WINBIND_PAM_TARGETS,;t t
23978 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
23979 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
23980 s,@BUILD_POPT@,$BUILD_POPT,;t t
23981 s,@FLAGS1@,$FLAGS1,;t t
23982 s,@PYTHON@,$PYTHON,;t t
23983 s,@builddir@,$builddir,;t t
23984 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23989 cat >>$CONFIG_STATUS <<\_ACEOF
23990 # Split the substitutions into bite-sized pieces for seds with
23991 # small command number limits, like on Digital OSF/1 and HP-UX.
23992 ac_max_sed_lines=48
23993 ac_sed_frag=1 # Number of current file.
23994 ac_beg=1 # First line for current file.
23995 ac_end=$ac_max_sed_lines # Line after last line for current file.
23998 while $ac_more_lines; do
23999 if test $ac_beg -gt 1; then
24000 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24002 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24004 if test ! -s $tmp/subs.frag; then
24005 ac_more_lines=false
24007 # The purpose of the label and of the branching condition is to
24008 # speed up the sed processing (if there are no `@' at all, there
24009 # is no need to browse any of the substitutions).
24010 # These are the two extra sed commands mentioned above.
24012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24013 if test -z "$ac_sed_cmds"; then
24014 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24016 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24018 ac_sed_frag=`expr $ac_sed_frag + 1`
24020 ac_end=`expr $ac_end + $ac_max_sed_lines`
24023 if test -z "$ac_sed_cmds"; then
24026 fi # test -n "$CONFIG_FILES"
24029 cat >>$CONFIG_STATUS <<\_ACEOF
24030 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24031 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24033 - | *:- | *:-:* ) # input from stdin
24035 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24037 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24039 * ) ac_file_in=$ac_file.in ;;
24042 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24043 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24045 X"$ac_file" : 'X\(//\)[^/]' \| \
24046 X"$ac_file" : 'X\(//\)$' \| \
24047 X"$ac_file" : 'X\(/\)' \| \
24048 . : '\(.\)' 2>/dev/null ||
24050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24052 /^X\(\/\/\)$/{ s//\1/; q; }
24053 /^X\(\/\).*/{ s//\1/; q; }
24055 { if $as_mkdir_p; then
24060 while test ! -d "$as_dir"; do
24061 as_dirs="$as_dir $as_dirs"
24062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064 X"$as_dir" : 'X\(//\)[^/]' \| \
24065 X"$as_dir" : 'X\(//\)$' \| \
24066 X"$as_dir" : 'X\(/\)' \| \
24067 . : '\(.\)' 2>/dev/null ||
24069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24071 /^X\(\/\/\)$/{ s//\1/; q; }
24072 /^X\(\/\).*/{ s//\1/; q; }
24075 test ! -n "$as_dirs" || mkdir $as_dirs
24076 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24077 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24078 { (exit 1); exit 1; }; }; }
24082 if test "$ac_dir" != .; then
24083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24084 # A "../" for each directory in $ac_dir_suffix.
24085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24087 ac_dir_suffix= ac_top_builddir=
24091 .) # No --srcdir option. We are building in place.
24093 if test -z "$ac_top_builddir"; then
24096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24098 [\\/]* | ?:[\\/]* ) # Absolute path.
24099 ac_srcdir=$srcdir$ac_dir_suffix;
24100 ac_top_srcdir=$srcdir ;;
24101 *) # Relative path.
24102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24115 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24118 if test x"$ac_file" != x-; then
24119 { echo "$as_me:$LINENO: creating $ac_file" >&5
24120 echo "$as_me: creating $ac_file" >&6;}
24123 # Let's still pretend it is `configure' which instantiates (i.e., don't
24124 # use $as_me), people would be surprised to read:
24125 # /* config.h. Generated by config.status. */
24126 if test x"$ac_file" = x-; then
24129 configure_input="$ac_file. "
24131 configure_input=$configure_input"Generated from `echo $ac_file_in |
24132 sed 's,.*/,,'` by configure."
24134 # First look for the input files in the build tree, otherwise in the
24136 ac_file_inputs=`IFS=:
24137 for f in $ac_file_in; do
24139 -) echo $tmp/stdin ;;
24141 # Absolute (can't be DOS-style, as IFS=:)
24142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24143 echo "$as_me: error: cannot find input file: $f" >&2;}
24144 { (exit 1); exit 1; }; }
24147 if test -f "$f"; then
24150 elif test -f "$srcdir/$f"; then
24155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24156 echo "$as_me: error: cannot find input file: $f" >&2;}
24157 { (exit 1); exit 1; }; }
24160 done` || { (exit 1); exit 1; }
24162 cat >>$CONFIG_STATUS <<_ACEOF
24166 cat >>$CONFIG_STATUS <<\_ACEOF
24168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24169 s,@configure_input@,$configure_input,;t t
24170 s,@srcdir@,$ac_srcdir,;t t
24171 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24172 s,@top_srcdir@,$ac_top_srcdir,;t t
24173 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24174 s,@builddir@,$ac_builddir,;t t
24175 s,@abs_builddir@,$ac_abs_builddir,;t t
24176 s,@top_builddir@,$ac_top_builddir,;t t
24177 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24178 s,@INSTALL@,$ac_INSTALL,;t t
24179 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24181 if test x"$ac_file" != x-; then
24182 mv $tmp/out $ac_file
24190 cat >>$CONFIG_STATUS <<\_ACEOF
24193 # CONFIG_HEADER section.
24196 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24197 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24199 # ac_d sets the value in "#define NAME VALUE" lines.
24200 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24201 ac_dB='[ ].*$,\1#\2'
24204 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24205 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24206 ac_uB='$,\1#\2define\3'
24210 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24213 - | *:- | *:-:* ) # input from stdin
24215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24219 * ) ac_file_in=$ac_file.in ;;
24222 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24223 echo "$as_me: creating $ac_file" >&6;}
24225 # First look for the input files in the build tree, otherwise in the
24227 ac_file_inputs=`IFS=:
24228 for f in $ac_file_in; do
24230 -) echo $tmp/stdin ;;
24232 # Absolute (can't be DOS-style, as IFS=:)
24233 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24234 echo "$as_me: error: cannot find input file: $f" >&2;}
24235 { (exit 1); exit 1; }; }
24238 if test -f "$f"; then
24241 elif test -f "$srcdir/$f"; then
24246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24247 echo "$as_me: error: cannot find input file: $f" >&2;}
24248 { (exit 1); exit 1; }; }
24251 done` || { (exit 1); exit 1; }
24252 # Remove the trailing spaces.
24253 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24257 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24258 # `conftest.undefs', that substitutes the proper values into
24259 # config.h.in to produce config.h. The first handles `#define'
24260 # templates, and the second `#undef' templates.
24261 # And first: Protect against being on the right side of a sed subst in
24262 # config.status. Protect against being in an unquoted here document
24263 # in config.status.
24264 rm -f conftest.defines conftest.undefs
24265 # Using a here document instead of a string reduces the quoting nightmare.
24266 # Putting comments in sed scripts is not portable.
24268 # `end' is used to avoid that the second main sed command (meant for
24269 # 0-ary CPP macros) applies to n-ary macro definitions.
24270 # See the Autoconf documentation for `clear'.
24271 cat >confdef2sed.sed <<\_ACEOF
24276 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24278 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24281 # If some macros were called several times there might be several times
24282 # the same #defines, which is useless. Nevertheless, we may not want to
24283 # sort them, since we want the *last* AC-DEFINE to be honored.
24284 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24285 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24286 rm -f confdef2sed.sed
24288 # This sed command replaces #undef with comments. This is necessary, for
24289 # example, in the case of _POSIX_SOURCE, which is predefined and required
24290 # on some systems where configure will not decide to define it.
24291 cat >>conftest.undefs <<\_ACEOF
24292 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24295 # Break up conftest.defines because some shells have a limit on the size
24296 # of here documents, and old seds have small limits too (100 cmds).
24297 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24298 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24299 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24300 echo ' :' >>$CONFIG_STATUS
24301 rm -f conftest.tail
24302 while grep . conftest.defines >/dev/null
24304 # Write a limited-size here document to $tmp/defines.sed.
24305 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24306 # Speed up: don't consider the non `#define' lines.
24307 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24308 # Work around the forget-to-reset-the-flag bug.
24309 echo 't clr' >>$CONFIG_STATUS
24310 echo ': clr' >>$CONFIG_STATUS
24311 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24313 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24315 mv $tmp/out $tmp/in
24317 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24318 rm -f conftest.defines
24319 mv conftest.tail conftest.defines
24321 rm -f conftest.defines
24322 echo ' fi # grep' >>$CONFIG_STATUS
24323 echo >>$CONFIG_STATUS
24325 # Break up conftest.undefs because some shells have a limit on the size
24326 # of here documents, and old seds have small limits too (100 cmds).
24327 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24328 rm -f conftest.tail
24329 while grep . conftest.undefs >/dev/null
24331 # Write a limited-size here document to $tmp/undefs.sed.
24332 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24333 # Speed up: don't consider the non `#undef'
24334 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24335 # Work around the forget-to-reset-the-flag bug.
24336 echo 't clr' >>$CONFIG_STATUS
24337 echo ': clr' >>$CONFIG_STATUS
24338 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24340 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24342 mv $tmp/out $tmp/in
24344 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24345 rm -f conftest.undefs
24346 mv conftest.tail conftest.undefs
24348 rm -f conftest.undefs
24350 cat >>$CONFIG_STATUS <<\_ACEOF
24351 # Let's still pretend it is `configure' which instantiates (i.e., don't
24352 # use $as_me), people would be surprised to read:
24353 # /* config.h. Generated by config.status. */
24354 if test x"$ac_file" = x-; then
24355 echo "/* Generated by configure. */" >$tmp/config.h
24357 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24359 cat $tmp/in >>$tmp/config.h
24361 if test x"$ac_file" != x-; then
24362 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24363 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24364 echo "$as_me: $ac_file is unchanged" >&6;}
24366 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24368 X"$ac_file" : 'X\(//\)[^/]' \| \
24369 X"$ac_file" : 'X\(//\)$' \| \
24370 X"$ac_file" : 'X\(/\)' \| \
24371 . : '\(.\)' 2>/dev/null ||
24373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24375 /^X\(\/\/\)$/{ s//\1/; q; }
24376 /^X\(\/\).*/{ s//\1/; q; }
24378 { if $as_mkdir_p; then
24383 while test ! -d "$as_dir"; do
24384 as_dirs="$as_dir $as_dirs"
24385 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24387 X"$as_dir" : 'X\(//\)[^/]' \| \
24388 X"$as_dir" : 'X\(//\)$' \| \
24389 X"$as_dir" : 'X\(/\)' \| \
24390 . : '\(.\)' 2>/dev/null ||
24392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24394 /^X\(\/\/\)$/{ s//\1/; q; }
24395 /^X\(\/\).*/{ s//\1/; q; }
24398 test ! -n "$as_dirs" || mkdir $as_dirs
24399 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24401 { (exit 1); exit 1; }; }; }
24404 mv $tmp/config.h $ac_file
24408 rm -f $tmp/config.h
24413 cat >>$CONFIG_STATUS <<\_ACEOF
24415 { (exit 0); exit 0; }
24417 chmod +x $CONFIG_STATUS
24418 ac_clean_files=$ac_clean_files_save
24421 # configure is writing to config.log, and then calls config.status.
24422 # config.status does its own redirection, appending to config.log.
24423 # Unfortunately, on DOS this fails, as config.log is still kept open
24424 # by configure, so config.status won't be able to write to it; its
24425 # output is simply discarded. So we exec the FD to /dev/null,
24426 # effectively closing config.log, so it can be properly (re)opened and
24427 # appended to by config.status. When coming back to configure, we
24428 # need to make the FD available again.
24429 if test "$no_create" != yes; then
24432 $SHELL $CONFIG_STATUS || ac_cs_success=false
24434 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24435 # would make configure fail if this is the last instruction.
24436 $ac_cs_success || { (exit 1); exit 1; }
24440 #################################################
24441 # Print very concise instructions on building/use
24442 if test "x$enable_dmalloc" = xyes
24444 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
24445 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
24446 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
24447 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6