2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^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=".;."; 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 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="include/includes.h"
262 ac_default_prefix=/usr/local/samba
263 # Factoring default headers for most tests.
264 ac_includes_default="\
267 # include <sys/types.h>
270 # include <sys/stat.h>
281 # if !STDC_HEADERS && HAVE_MEMORY_H
287 # include <strings.h>
290 # include <inttypes.h>
301 # Initialize some variables set by options.
303 ac_init_version=false
304 # The variables have the same names as the options, with
305 # dashes changed to underlines.
313 program_transform_name=s,x,x,
321 # Installation directory options.
322 # These are left unexpanded so users can "make install exec_prefix=/foo"
323 # and all the variables that are supposed to be based on exec_prefix
324 # by default will actually change.
325 # Use braces instead of parens because sh, perl, etc. also accept them.
326 bindir='${exec_prefix}/bin'
327 sbindir='${exec_prefix}/sbin'
328 libexecdir='${exec_prefix}/libexec'
329 datadir='${prefix}/share'
330 sysconfdir='${prefix}/etc'
331 sharedstatedir='${prefix}/com'
332 localstatedir='${prefix}/var'
333 libdir='${exec_prefix}/lib'
334 includedir='${prefix}/include'
335 oldincludedir='/usr/include'
336 infodir='${prefix}/info'
337 mandir='${prefix}/man'
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
349 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351 # Accept the important Cygnus configure options, so we can diagnose typos.
355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
360 -build | --build | --buil | --bui | --bu)
361 ac_prev=build_alias ;;
362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
363 build_alias=$ac_optarg ;;
365 -cache-file | --cache-file | --cache-fil | --cache-fi \
366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
367 ac_prev=cache_file ;;
368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
370 cache_file=$ac_optarg ;;
373 cache_file=config.cache ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir=$ac_optarg ;;
381 -disable-* | --disable-*)
382 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
383 # Reject names that are not valid shell variable names.
384 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
385 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
386 { (exit 1); exit 1; }; }
387 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
388 eval "enable_$ac_feature=no" ;;
390 -enable-* | --enable-*)
391 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
392 # Reject names that are not valid shell variable names.
393 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
394 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
395 { (exit 1); exit 1; }; }
396 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
401 eval "enable_$ac_feature='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev=exec_prefix ;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix=$ac_optarg ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he | -h)
418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
419 ac_init_help=recursive ;;
420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
421 ac_init_help=short ;;
423 -host | --host | --hos | --ho)
424 ac_prev=host_alias ;;
425 -host=* | --host=* | --hos=* | --ho=*)
426 host_alias=$ac_optarg ;;
428 -includedir | --includedir | --includedi | --included | --include \
429 | --includ | --inclu | --incl | --inc)
430 ac_prev=includedir ;;
431 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
432 | --includ=* | --inclu=* | --incl=* | --inc=*)
433 includedir=$ac_optarg ;;
435 -infodir | --infodir | --infodi | --infod | --info | --inf)
437 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
438 infodir=$ac_optarg ;;
440 -libdir | --libdir | --libdi | --libd)
442 -libdir=* | --libdir=* | --libdi=* | --libd=*)
445 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
446 | --libexe | --libex | --libe)
447 ac_prev=libexecdir ;;
448 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
449 | --libexe=* | --libex=* | --libe=*)
450 libexecdir=$ac_optarg ;;
452 -localstatedir | --localstatedir | --localstatedi | --localstated \
453 | --localstate | --localstat | --localsta | --localst \
454 | --locals | --local | --loca | --loc | --lo)
455 ac_prev=localstatedir ;;
456 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
457 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
458 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
459 localstatedir=$ac_optarg ;;
461 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
467 # Obsolete; use --without-fp.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c | -n)
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
478 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
479 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
480 | --oldin | --oldi | --old | --ol | --o)
481 ac_prev=oldincludedir ;;
482 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
483 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
484 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
485 oldincludedir=$ac_optarg ;;
487 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
492 -program-prefix | --program-prefix | --program-prefi | --program-pref \
493 | --program-pre | --program-pr | --program-p)
494 ac_prev=program_prefix ;;
495 -program-prefix=* | --program-prefix=* | --program-prefi=* \
496 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
497 program_prefix=$ac_optarg ;;
499 -program-suffix | --program-suffix | --program-suffi | --program-suff \
500 | --program-suf | --program-su | --program-s)
501 ac_prev=program_suffix ;;
502 -program-suffix=* | --program-suffix=* | --program-suffi=* \
503 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
504 program_suffix=$ac_optarg ;;
506 -program-transform-name | --program-transform-name \
507 | --program-transform-nam | --program-transform-na \
508 | --program-transform-n | --program-transform- \
509 | --program-transform | --program-transfor \
510 | --program-transfo | --program-transf \
511 | --program-trans | --program-tran \
512 | --progr-tra | --program-tr | --program-t)
513 ac_prev=program_transform_name ;;
514 -program-transform-name=* | --program-transform-name=* \
515 | --program-transform-nam=* | --program-transform-na=* \
516 | --program-transform-n=* | --program-transform-=* \
517 | --program-transform=* | --program-transfor=* \
518 | --program-transfo=* | --program-transf=* \
519 | --program-trans=* | --program-tran=* \
520 | --progr-tra=* | --program-tr=* | --program-t=*)
521 program_transform_name=$ac_optarg ;;
523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
524 | -silent | --silent | --silen | --sile | --sil)
527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531 sbindir=$ac_optarg ;;
533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
535 | --sharedst | --shareds | --shared | --share | --shar \
537 ac_prev=sharedstatedir ;;
538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542 sharedstatedir=$ac_optarg ;;
544 -site | --site | --sit)
546 -site=* | --site=* | --sit=*)
549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
555 | --syscon | --sysco | --sysc | --sys | --sy)
556 ac_prev=sysconfdir ;;
557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
559 sysconfdir=$ac_optarg ;;
561 -target | --target | --targe | --targ | --tar | --ta | --t)
562 ac_prev=target_alias ;;
563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
564 target_alias=$ac_optarg ;;
566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
569 -version | --version | --versio | --versi | --vers | -V)
573 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
574 # Reject names that are not valid shell variable names.
575 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576 { echo "$as_me: error: invalid package name: $ac_package" >&2
577 { (exit 1); exit 1; }; }
578 ac_package=`echo $ac_package| sed 's/-/_/g'`
580 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583 eval "with_$ac_package='$ac_optarg'" ;;
585 -without-* | --without-*)
586 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package | sed 's/-/_/g'`
592 eval "with_$ac_package=no" ;;
595 # Obsolete; use --with-x.
598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
599 | --x-incl | --x-inc | --x-in | --x-i)
600 ac_prev=x_includes ;;
601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
603 x_includes=$ac_optarg ;;
605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
607 ac_prev=x_libraries ;;
608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
610 x_libraries=$ac_optarg ;;
612 -*) { echo "$as_me: error: unrecognized option: $ac_option
613 Try \`$0 --help' for more information." >&2
614 { (exit 1); exit 1; }; }
618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
619 # Reject names that are not valid shell variable names.
620 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
621 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
622 { (exit 1); exit 1; }; }
623 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
624 eval "$ac_envvar='$ac_optarg'"
628 # FIXME: should be removed in autoconf 3.0.
629 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
631 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
632 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
638 if test -n "$ac_prev"; then
639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
640 { echo "$as_me: error: missing argument to $ac_option" >&2
641 { (exit 1); exit 1; }; }
644 # Be sure to have absolute paths.
645 for ac_var in exec_prefix prefix
647 eval ac_val=$`echo $ac_var`
649 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
650 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
651 { (exit 1); exit 1; }; };;
655 # Be sure to have absolute paths.
656 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
657 localstatedir libdir includedir oldincludedir infodir mandir
659 eval ac_val=$`echo $ac_var`
661 [\\/$]* | ?:[\\/]* ) ;;
662 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
663 { (exit 1); exit 1; }; };;
667 # There might be people who depend on the old broken behavior: `$host'
668 # used to hold the argument of --host etc.
669 # FIXME: To remove some day.
674 # FIXME: To remove some day.
675 if test "x$host_alias" != x; then
676 if test "x$build_alias" = x; then
677 cross_compiling=maybe
678 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
679 If a cross compiler is detected then cross compile mode will be used." >&2
680 elif test "x$build_alias" != "x$host_alias"; then
686 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688 test "$silent" = yes && exec 6>/dev/null
691 # Find the source files, if location was not specified.
692 if test -z "$srcdir"; then
693 ac_srcdir_defaulted=yes
694 # Try the directory containing this script, then its parent.
695 ac_confdir=`(dirname "$0") 2>/dev/null ||
696 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
697 X"$0" : 'X\(//\)[^/]' \| \
698 X"$0" : 'X\(//\)$' \| \
699 X"$0" : 'X\(/\)' \| \
700 . : '\(.\)' 2>/dev/null ||
702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
704 /^X\(\/\/\)$/{ s//\1/; q; }
705 /^X\(\/\).*/{ s//\1/; q; }
708 if test ! -r $srcdir/$ac_unique_file; then
712 ac_srcdir_defaulted=no
714 if test ! -r $srcdir/$ac_unique_file; then
715 if test "$ac_srcdir_defaulted" = yes; then
716 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
717 { (exit 1); exit 1; }; }
719 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
720 { (exit 1); exit 1; }; }
723 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
724 ac_env_build_alias_set=${build_alias+set}
725 ac_env_build_alias_value=$build_alias
726 ac_cv_env_build_alias_set=${build_alias+set}
727 ac_cv_env_build_alias_value=$build_alias
728 ac_env_host_alias_set=${host_alias+set}
729 ac_env_host_alias_value=$host_alias
730 ac_cv_env_host_alias_set=${host_alias+set}
731 ac_cv_env_host_alias_value=$host_alias
732 ac_env_target_alias_set=${target_alias+set}
733 ac_env_target_alias_value=$target_alias
734 ac_cv_env_target_alias_set=${target_alias+set}
735 ac_cv_env_target_alias_value=$target_alias
736 ac_env_CC_set=${CC+set}
738 ac_cv_env_CC_set=${CC+set}
739 ac_cv_env_CC_value=$CC
740 ac_env_CFLAGS_set=${CFLAGS+set}
741 ac_env_CFLAGS_value=$CFLAGS
742 ac_cv_env_CFLAGS_set=${CFLAGS+set}
743 ac_cv_env_CFLAGS_value=$CFLAGS
744 ac_env_LDFLAGS_set=${LDFLAGS+set}
745 ac_env_LDFLAGS_value=$LDFLAGS
746 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
747 ac_cv_env_LDFLAGS_value=$LDFLAGS
748 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
749 ac_env_CPPFLAGS_value=$CPPFLAGS
750 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
751 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
752 ac_env_CPP_set=${CPP+set}
753 ac_env_CPP_value=$CPP
754 ac_cv_env_CPP_set=${CPP+set}
755 ac_cv_env_CPP_value=$CPP
758 # Report the --help message.
760 if test "$ac_init_help" = "long"; then
761 # Omit some internal or obsolete options to make the list less imposing.
762 # This message is too long to be a string in the A/UX 3.1 sh.
764 \`configure' configures this package to adapt to many kinds of systems.
766 Usage: $0 [OPTION]... [VAR=VALUE]...
768 To assign environment variables (e.g., CC, CFLAGS...), specify them as
769 VAR=VALUE. See below for descriptions of some of the useful variables.
771 Defaults for the options are specified in brackets.
774 -h, --help display this help and exit
775 --help=short display options specific to this package
776 --help=recursive display the short help of all the included packages
777 -V, --version display version information and exit
778 -q, --quiet, --silent do not print \`checking...' messages
779 --cache-file=FILE cache test results in FILE [disabled]
780 -C, --config-cache alias for \`--cache-file=config.cache'
781 -n, --no-create do not create output files
782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
787 Installation directories:
788 --prefix=PREFIX install architecture-independent files in PREFIX
790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
793 By default, \`make install' will install all the files in
794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
796 for instance \`--prefix=\$HOME'.
798 For better control, use the options below.
800 Fine tuning of the installation directories:
801 --bindir=DIR user executables [EPREFIX/bin]
802 --sbindir=DIR system admin executables [EPREFIX/sbin]
803 --libexecdir=DIR program executables [EPREFIX/libexec]
804 --datadir=DIR read-only architecture-independent data [PREFIX/share]
805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
808 --libdir=DIR object code libraries [EPREFIX/lib]
809 --includedir=DIR C header files [PREFIX/include]
810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
811 --infodir=DIR info documentation [PREFIX/info]
812 --mandir=DIR man documentation [PREFIX/man]
818 --build=BUILD configure for building on BUILD [guessed]
819 --host=HOST cross-compile to build programs to run on HOST [BUILD]
820 --target=TARGET configure for building compilers for TARGET [HOST]
824 if test -n "$ac_init_help"; then
829 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 --enable-debug Turn on compiler debugging information (default=no)
832 --enable-developer Turn on developer warnings and debugging (default=no)
833 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
834 --enable-dmalloc Enable heap debugging default=no
835 --enable-cups Turn on CUPS support (default=auto)
836 --disable-mysqltest Do not try to compile and run a test MYSQL program
837 --disable-xmltest Do not try to compile and run a test LIBXML program
840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
842 --with-fhs Use FHS-compliant paths (default=no)
843 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
844 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
845 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
846 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
847 --with-configdir=DIR Where to put configuration files (\$libdir)
848 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
849 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
850 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
851 --with-smbwrapper Include SMB wrapper support (default=no)
852 --with-afs Include AFS clear-text auth support (default=no)
853 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
854 --with-ads Active Directory support (default yes)
855 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
856 --with-ldap LDAP support (default yes)
857 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
858 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
859 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
860 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
861 --with-automount Include automount support (default=no)
862 --with-smbmount Include smbmount (Linux only) support (default=no)
863 --with-pam Include PAM support (default=no)
864 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
865 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
866 --with-tdbsam Include experimental TDB SAM support (default=no)
867 --with-nisplussam Include NISPLUS SAM support (default=no)
868 --with-nisplus-home Include NISPLUS_HOME support (default=no)
869 --with-syslog Include experimental SYSLOG support (default=no)
870 --with-profiling-data Include gathering source code profile information (default=no)
871 --with-quotas Include experimental disk-quota support (default=no)
872 --with-utmp Include experimental utmp accounting (default=no)
873 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
874 --with-libsmbclient Build the libsmbclient shared library (default=yes)
875 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
876 --with-acl-support Include ACL support (default=no)
877 --with-sendfile-support Check for sendfile support (default=yes)
878 --with-winbind Build winbind (default, if supported by OS)
879 --with-included-popt use bundled popt library, not from system
880 --with-python=PYTHONNAME build Python libraries
882 Some influential environment variables:
883 CC C compiler command
884 CFLAGS C compiler flags
885 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
886 nonstandard directory <lib dir>
887 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
888 headers in a nonstandard directory <include dir>
891 Use these variables to override the choices made by `configure' or to help
892 it to find libraries and programs with nonstandard names/locations.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935 # Check for guested configure; otherwise get Cygnus style configure.
936 if test -f $ac_srcdir/configure.gnu; then
938 $SHELL $ac_srcdir/configure.gnu --help=recursive
939 elif test -f $ac_srcdir/configure; then
941 $SHELL $ac_srcdir/configure --help=recursive
942 elif test -f $ac_srcdir/configure.ac ||
943 test -f $ac_srcdir/configure.in; then
947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958 Free Software Foundation, Inc.
959 This configure script is free software; the Free Software Foundation
960 gives unlimited permission to copy, distribute and modify it.
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by $as_me, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1239 ac_config_headers="$ac_config_headers include/config.h"
1242 #################################################
1243 # Directory handling stuff to support both the
1244 # legacy SAMBA directories and FHS compliant
1249 # Check whether --with-fhs or --without-fhs was given.
1250 if test "${with_fhs+set}" = set; then
1252 configdir="${sysconfdir}/samba"
1253 lockdir="\${VARDIR}/cache/samba"
1254 piddir="\${VARDIR}/run/samba"
1255 logfilebase="\${VARDIR}/log/samba"
1256 privatedir="\${CONFIGDIR}/private"
1257 libdir="\${prefix}/lib/samba"
1258 swatdir="\${DATADIR}/samba/swat"
1260 configdir="\${LIBDIR}"
1261 logfilebase="\${VARDIR}"
1262 lockdir="\${VARDIR}/locks"
1263 piddir="\${VARDIR}/locks"
1264 privatedir="\${prefix}/private"
1265 swatdir="\${prefix}/swat"
1268 #################################################
1269 # set private directory location
1271 # Check whether --with-privatedir or --without-privatedir was given.
1272 if test "${with_privatedir+set}" = set; then
1273 withval="$with_privatedir"
1277 # Just in case anybody calls it without argument
1279 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1280 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1283 privatedir="$withval"
1288 #################################################
1289 # set lock directory location
1291 # Check whether --with-lockdir or --without-lockdir was given.
1292 if test "${with_lockdir+set}" = set; then
1293 withval="$with_lockdir"
1297 # Just in case anybody calls it without argument
1299 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1300 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1308 #################################################
1309 # set pid directory location
1311 # Check whether --with-piddir or --without-piddir was given.
1312 if test "${with_piddir+set}" = set; then
1313 withval="$with_piddir"
1317 # Just in case anybody calls it without argument
1319 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1320 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1328 #################################################
1329 # set SWAT directory location
1331 # Check whether --with-swatdir or --without-swatdir was given.
1332 if test "${with_swatdir+set}" = set; then
1333 withval="$with_swatdir"
1337 # Just in case anybody does it
1339 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1340 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1348 #################################################
1349 # set configuration directory location
1351 # Check whether --with-configdir or --without-configdir was given.
1352 if test "${with_configdir+set}" = set; then
1353 withval="$with_configdir"
1357 # Just in case anybody does it
1359 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1360 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1363 configdir="$withval"
1368 #################################################
1369 # set log directory location
1371 # Check whether --with-logfilebase or --without-logfilebase was given.
1372 if test "${with_logfilebase+set}" = set; then
1373 withval="$with_logfilebase"
1377 # Just in case anybody does it
1379 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1380 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1383 logfilebase="$withval"
1416 # compile with optimization and without debugging by default
1417 CFLAGS="-O ${CFLAGS}"
1419 # Check whether --enable-debug or --disable-debug was given.
1420 if test "${enable_debug+set}" = set; then
1421 enableval="$enable_debug"
1422 if eval "test x$enable_debug = xyes"; then
1423 CFLAGS="${CFLAGS} -g"
1427 # Check whether --enable-developer or --disable-developer was given.
1428 if test "${enable_developer+set}" = set; then
1429 enableval="$enable_developer"
1430 if eval "test x$enable_developer = xyes"; then
1431 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1435 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1436 if test "${enable_krb5developer+set}" = set; then
1437 enableval="$enable_krb5developer"
1438 if eval "test x$enable_krb5developer = xyes"; then
1439 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1443 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1444 if test "${enable_dmalloc+set}" = set; then
1445 enableval="$enable_dmalloc"
1449 if test "x$enable_dmalloc" = xyes
1452 cat >>confdefs.h <<\_ACEOF
1453 #define ENABLE_DMALLOC 1
1457 cat >>confdefs.h <<\_ACEOF
1458 #define DMALLOC_FUNC_CHECK 1
1461 LIBS="$LIBS -ldmalloc"
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1508 # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="gcc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1548 if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_CC="${ac_tool_prefix}cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 if test -n "$CC"; then
1578 echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1586 if test -z "$ac_cv_prog_CC"; then
1588 # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1629 if test -z "$CC"; then
1630 # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649 ac_prog_rejected=yes
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659 if test $ac_prog_rejected = yes; then
1660 # We found a bogon in the path, so make sure we never use it.
1661 set dummy $ac_cv_prog_CC
1663 if test $# != 0; then
1664 # We chose a different compiler from the bogus one.
1665 # However, it has the same basename, so the bogon will be chosen
1666 # first if we set CC to just the basename; use the full file name.
1668 set dummy "$as_dir/$ac_word" ${1+"$@"}
1676 if test -n "$CC"; then
1677 echo "$as_me:$LINENO: result: $CC" >&5
1678 echo "${ECHO_T}$CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1685 if test -z "$CC"; then
1686 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1690 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 if test -n "$CC"; then
1717 echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 test -n "$CC" && break
1727 if test -z "$CC"; then
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo "$as_me:$LINENO: checking for $ac_word" >&5
1734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1738 if test -n "$ac_ct_CC"; then
1739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1748 ac_cv_prog_ac_ct_CC="$ac_prog"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1758 if test -n "$ac_ct_CC"; then
1759 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1760 echo "${ECHO_T}$ac_ct_CC" >&6
1762 echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1766 test -n "$ac_ct_CC" && break
1775 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1777 { (exit 1); exit 1; }; }
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781 "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784 (eval $ac_compiler --version </dev/null >&5) 2>&5
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789 (eval $ac_compiler -v </dev/null >&5) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794 (eval $ac_compiler -V </dev/null >&5) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1799 cat >conftest.$ac_ext <<_ACEOF
1800 #line $LINENO "configure"
1801 #include "confdefs.h"
1803 #ifdef F77_DUMMY_MAIN
1807 int F77_DUMMY_MAIN() { return 1; }
1817 ac_clean_files_save=$ac_clean_files
1818 ac_clean_files="$ac_clean_files a.out a.exe"
1819 # Try to create an executable without -o first, disregard a.out.
1820 # It will help us diagnose broken compilers, and finding out an intuition
1822 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1823 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826 (eval $ac_link_default) 2>&5
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 # Find the output, starting from the most likely. This scheme is
1831 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # Be careful to initialize this variable, since it used to be cached.
1835 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1838 ls a.out conftest 2>/dev/null;
1839 ls a.* conftest.* 2>/dev/null`; do
1841 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1842 a.out ) # We found the default executable, but exeext='' is most
1845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1853 echo "$as_me: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1856 echo "$as_me: error: C compiler cannot create executables" >&2;}
1857 { (exit 77); exit 77; }; }
1860 ac_exeext=$ac_cv_exeext
1861 echo "$as_me:$LINENO: result: $ac_file" >&5
1862 echo "${ECHO_T}$ac_file" >&6
1864 # Check the compiler produces executables we can run. If not, either
1865 # the compiler is broken, or we cross compile.
1866 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1867 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1868 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1869 # If not cross compiling, check that we can run a simple program.
1870 if test "$cross_compiling" != yes; then
1871 if { ac_try='./$ac_file'
1872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }; }; then
1879 if test "$cross_compiling" = maybe; then
1882 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1883 If you meant to cross compile, use \`--host'." >&5
1884 echo "$as_me: error: cannot run C compiled programs.
1885 If you meant to cross compile, use \`--host'." >&2;}
1886 { (exit 1); exit 1; }; }
1890 echo "$as_me:$LINENO: result: yes" >&5
1891 echo "${ECHO_T}yes" >&6
1893 rm -f a.out a.exe conftest$ac_cv_exeext
1894 ac_clean_files=$ac_clean_files_save
1895 # Check the compiler produces executables we can run. If not, either
1896 # the compiler is broken, or we cross compile.
1897 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1898 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1899 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1900 echo "${ECHO_T}$cross_compiling" >&6
1902 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1903 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1905 (eval $ac_link) 2>&5
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }; then
1909 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1910 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1911 # work properly (i.e., refer to `conftest.exe'), while it won't with
1913 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1915 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1923 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1924 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1925 { (exit 1); exit 1; }; }
1928 rm -f conftest$ac_cv_exeext
1929 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1930 echo "${ECHO_T}$ac_cv_exeext" >&6
1932 rm -f conftest.$ac_ext
1933 EXEEXT=$ac_cv_exeext
1935 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1936 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1937 if test "${ac_cv_objext+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 cat >conftest.$ac_ext <<_ACEOF
1941 #line $LINENO "configure"
1942 #include "confdefs.h"
1944 #ifdef F77_DUMMY_MAIN
1948 int F77_DUMMY_MAIN() { return 1; }
1958 rm -f conftest.o conftest.obj
1959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1960 (eval $ac_compile) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; then
1964 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1972 echo "$as_me: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1975 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1976 { (exit 1); exit 1; }; }
1979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1981 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1982 echo "${ECHO_T}$ac_cv_objext" >&6
1983 OBJEXT=$ac_cv_objext
1985 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1986 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1987 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 cat >conftest.$ac_ext <<_ACEOF
1991 #line $LINENO "configure"
1992 #include "confdefs.h"
1994 #ifdef F77_DUMMY_MAIN
1998 int F77_DUMMY_MAIN() { return 1; }
2011 rm -f conftest.$ac_objext
2012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2013 (eval $ac_compile) 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); } &&
2017 { ac_try='test -s conftest.$ac_objext'
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; }; then
2025 echo "$as_me: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2029 rm -f conftest.$ac_objext conftest.$ac_ext
2030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2033 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2034 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2035 GCC=`test $ac_compiler_gnu = yes && echo yes`
2036 ac_test_CFLAGS=${CFLAGS+set}
2037 ac_save_CFLAGS=$CFLAGS
2039 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2040 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2041 if test "${ac_cv_prog_cc_g+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 cat >conftest.$ac_ext <<_ACEOF
2045 #line $LINENO "configure"
2046 #include "confdefs.h"
2048 #ifdef F77_DUMMY_MAIN
2052 int F77_DUMMY_MAIN() { return 1; }
2062 rm -f conftest.$ac_objext
2063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2064 (eval $ac_compile) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2076 echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2080 rm -f conftest.$ac_objext conftest.$ac_ext
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2093 if test "$GCC" = yes; then
2099 # Some people use a C++ compiler to compile C. Since we use `exit',
2100 # in C++ we need to declare it. In case someone uses the same compiler
2101 # for both compiling C and C++ we need to have the C++ compiler decide
2102 # the declaration of exit, since it's the most demanding environment.
2103 cat >conftest.$ac_ext <<_ACEOF
2108 rm -f conftest.$ac_objext
2109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2110 (eval $ac_compile) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 for ac_declaration in \
2122 '#include <stdlib.h>' \
2123 'extern "C" void std::exit (int) throw (); using std::exit;' \
2124 'extern "C" void std::exit (int); using std::exit;' \
2125 'extern "C" void exit (int) throw ();' \
2126 'extern "C" void exit (int);' \
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 #include "confdefs.h"
2134 #ifdef F77_DUMMY_MAIN
2138 int F77_DUMMY_MAIN() { return 1; }
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -s conftest.$ac_objext'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; }; then
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2166 rm -f conftest.$ac_objext conftest.$ac_ext
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2171 #ifdef F77_DUMMY_MAIN
2175 int F77_DUMMY_MAIN() { return 1; }
2185 rm -f conftest.$ac_objext
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
2191 { ac_try='test -s conftest.$ac_objext'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2199 echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2205 if test -n "$ac_declaration"; then
2206 echo '#ifdef __cplusplus' >>confdefs.h
2207 echo $ac_declaration >>confdefs.h
2208 echo '#endif' >>confdefs.h
2212 echo "$as_me: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2224 if test -f $ac_dir/install-sh; then
2226 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 elif test -f $ac_dir/install.sh; then
2230 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 elif test -f $ac_dir/shtool; then
2234 ac_install_sh="$ac_aux_dir/shtool install -c"
2238 if test -z "$ac_aux_dir"; then
2239 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2240 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2241 { (exit 1); exit 1; }; }
2243 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2244 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2245 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2247 # Find a good install program. We prefer a C program (faster),
2248 # so one script is as good as another. But avoid the broken or
2249 # incompatible versions:
2250 # SysV /etc/install, /usr/sbin/install
2251 # SunOS /usr/etc/install
2252 # IRIX /sbin/install
2254 # AmigaOS /C/install, which installs bootblocks on floppy discs
2255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2258 # ./install, which can be erroneously created by make from ./install.sh.
2259 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2260 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2261 if test -z "$INSTALL"; then
2262 if test "${ac_cv_path_install+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 # Account for people who put trailing slashes in PATH elements.
2272 ./ | .// | /cC/* | \
2273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276 # OSF1 and SCO ODT 3.0 have their own names for install.
2277 # Don't use installbsd from OSF since it installs stuff as root
2279 for ac_prog in ginstall scoinst install; do
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2282 if test $ac_prog = install &&
2283 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284 # AIX install. It has an incompatible calling convention.
2286 elif test $ac_prog = install &&
2287 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288 # program-specific install script used by HP pwplus--don't use.
2291 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303 if test "${ac_cv_path_install+set}" = set; then
2304 INSTALL=$ac_cv_path_install
2306 # As a last resort, use the slow shell script. We don't cache a
2307 # path for INSTALL within a source directory, because that will
2308 # break other packages using the cache if that directory is
2309 # removed, or if the path is relative.
2310 INSTALL=$ac_install_sh
2313 echo "$as_me:$LINENO: result: $INSTALL" >&5
2314 echo "${ECHO_T}$INSTALL" >&6
2316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317 # It thinks the first close brace ends the variable substitution.
2318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2324 for ac_prog in gawk mawk nawk awk
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2330 if test "${ac_cv_prog_AWK+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$AWK"; then
2334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2343 ac_cv_prog_AWK="$ac_prog"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 if test -n "$AWK"; then
2354 echo "$as_me:$LINENO: result: $AWK" >&5
2355 echo "${ECHO_T}$AWK" >&6
2357 echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6
2361 test -n "$AWK" && break
2366 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2367 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2368 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2372 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2373 ac_cv_prog_gnu_ld=yes
2375 ac_cv_prog_gnu_ld=no
2378 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2379 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2383 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2384 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2385 if test "${ac_cv_search_strerror+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 ac_func_search_save_LIBS=$LIBS
2389 ac_cv_search_strerror=no
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2394 /* Override any gcc2 internal prototype to avoid an error. */
2398 /* We use char because int might match the return type of a gcc2
2399 builtin and then its argument prototype would still apply. */
2401 #ifdef F77_DUMMY_MAIN
2405 int F77_DUMMY_MAIN() { return 1; }
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2417 (eval $ac_link) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -s conftest$ac_exeext'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2427 ac_cv_search_strerror="none required"
2429 echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2433 if test "$ac_cv_search_strerror" = no; then
2434 for ac_lib in cposix; do
2435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2436 cat >conftest.$ac_ext <<_ACEOF
2437 #line $LINENO "configure"
2438 #include "confdefs.h"
2440 /* Override any gcc2 internal prototype to avoid an error. */
2444 /* We use char because int might match the return type of a gcc2
2445 builtin and then its argument prototype would still apply. */
2447 #ifdef F77_DUMMY_MAIN
2451 int F77_DUMMY_MAIN() { return 1; }
2461 rm -f conftest.$ac_objext conftest$ac_exeext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2463 (eval $ac_link) 2>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2476 echo "$as_me: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2482 LIBS=$ac_func_search_save_LIBS
2484 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486 if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2494 if test "x$CC" != xcc; then
2495 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2496 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2498 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2499 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2501 set dummy $CC; ac_cc=`echo $2 |
2502 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2503 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 #include "confdefs.h"
2510 #ifdef F77_DUMMY_MAIN
2514 int F77_DUMMY_MAIN() { return 1; }
2524 # Make sure it works both with $CC and with simple cc.
2525 # We do the test twice because some compilers refuse to overwrite an
2526 # existing .o file with -o, though they will create one.
2527 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2528 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); };
2539 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2540 if test "x$CC" != xcc; then
2541 # Test first that cc exists at all.
2542 if { ac_try='cc -c conftest.$ac_ext >&5'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2549 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); };
2563 # cc exists but doesn't like -o.
2564 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2569 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2574 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2581 cat >>confdefs.h <<\_ACEOF
2582 #define NO_MINUS_C_MINUS_O 1
2587 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2594 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2595 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2596 if test "${samba_cv_volatile+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 cat >conftest.$ac_ext <<_ACEOF
2601 #line $LINENO "configure"
2602 #include "confdefs.h"
2603 #include <sys/types.h>
2604 #ifdef F77_DUMMY_MAIN
2608 int F77_DUMMY_MAIN() { return 1; }
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 samba_cv_volatile=yes
2632 echo "$as_me: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 samba_cv_volatile=no
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2638 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2639 echo "${ECHO_T}$samba_cv_volatile" >&6
2640 if test x"$samba_cv_volatile" = x"yes"; then
2642 cat >>confdefs.h <<\_ACEOF
2643 #define HAVE_VOLATILE 1
2649 # Make sure we can run config.sub.
2650 $ac_config_sub sun4 >/dev/null 2>&1 ||
2651 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2653 { (exit 1); exit 1; }; }
2655 echo "$as_me:$LINENO: checking build system type" >&5
2656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2657 if test "${ac_cv_build+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 ac_cv_build_alias=$build_alias
2661 test -z "$ac_cv_build_alias" &&
2662 ac_cv_build_alias=`$ac_config_guess`
2663 test -z "$ac_cv_build_alias" &&
2664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2666 { (exit 1); exit 1; }; }
2667 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2670 { (exit 1); exit 1; }; }
2673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2674 echo "${ECHO_T}$ac_cv_build" >&6
2676 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2677 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2678 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2681 echo "$as_me:$LINENO: checking host system type" >&5
2682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2683 if test "${ac_cv_host+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 ac_cv_host_alias=$host_alias
2687 test -z "$ac_cv_host_alias" &&
2688 ac_cv_host_alias=$ac_cv_build_alias
2689 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2692 { (exit 1); exit 1; }; }
2695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2696 echo "${ECHO_T}$ac_cv_host" >&6
2698 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2699 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2700 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2703 echo "$as_me:$LINENO: checking target system type" >&5
2704 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2705 if test "${ac_cv_target+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 ac_cv_target_alias=$target_alias
2709 test "x$ac_cv_target_alias" = "x" &&
2710 ac_cv_target_alias=$ac_cv_host_alias
2711 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2712 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2713 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2714 { (exit 1); exit 1; }; }
2717 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2718 echo "${ECHO_T}$ac_cv_target" >&6
2719 target=$ac_cv_target
2720 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2721 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2722 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2725 # The aliases save the names the user supplied, while $host etc.
2726 # will get canonicalized.
2727 test -n "$target_alias" &&
2728 test "$program_prefix$program_suffix$program_transform_name" = \
2730 program_prefix=${target_alias}-
2733 *irix6*) cat >> confdefs.h <<\EOF
2734 #include <standards.h>
2742 echo "$as_me:$LINENO: checking config.cache system type" >&5
2743 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2744 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2745 test x"$ac_cv_host_system_type" != x"$host"; } ||
2746 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2747 test x"$ac_cv_build_system_type" != x"$build"; } ||
2748 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2749 test x"$ac_cv_target_system_type" != x"$target"; }; then
2750 echo "$as_me:$LINENO: result: different" >&5
2751 echo "${ECHO_T}different" >&6
2752 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2753 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2754 { (exit 1); exit 1; }; }
2756 echo "$as_me:$LINENO: result: same" >&5
2757 echo "${ECHO_T}same" >&6
2759 ac_cv_host_system_type="$host"
2760 ac_cv_build_system_type="$build"
2761 ac_cv_target_system_type="$target"
2767 # Config CPPFLAG settings for strange OS's that must be set
2768 # before other tests.
2771 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2774 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2775 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2776 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 echo 'void f(){}' > conftest.c
2780 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2781 ac_cv_prog_cc_Ae=yes
2788 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2790 # mmap on HPUX is completely broken...
2792 cat >>confdefs.h <<\_ACEOF
2793 #define MMAP_BLACKLIST 1
2796 if test $ac_cv_prog_cc_Ae = yes; then
2797 CPPFLAGS="$CPPFLAGS -Ae"
2800 # Defines needed for HPUX support.
2801 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2802 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2806 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2808 cat >>confdefs.h <<\_ACEOF
2809 #define USE_BOTH_CRYPT_CALLS 1
2813 cat >>confdefs.h <<\_ACEOF
2814 #define _HPUX_SOURCE 1
2818 cat >>confdefs.h <<\_ACEOF
2819 #define _POSIX_SOURCE 1
2823 cat >>confdefs.h <<\_ACEOF
2824 #define _ALIGNMENT_REQUIRED 1
2828 cat >>confdefs.h <<\_ACEOF
2829 #define _MAX_ALIGNMENT 4
2834 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2836 cat >>confdefs.h <<\_ACEOF
2837 #define USE_BOTH_CRYPT_CALLS 1
2841 cat >>confdefs.h <<\_ACEOF
2842 #define _HPUX_SOURCE 1
2846 cat >>confdefs.h <<\_ACEOF
2847 #define _POSIX_SOURCE 1
2851 cat >>confdefs.h <<\_ACEOF
2852 #define _LARGEFILE64_SOURCE 1
2856 cat >>confdefs.h <<\_ACEOF
2857 #define _ALIGNMENT_REQUIRED 1
2861 cat >>confdefs.h <<\_ACEOF
2862 #define _MAX_ALIGNMENT 4
2871 # CRAY Unicos has broken const handling
2873 echo "$as_me:$LINENO: result: disabling const" >&5
2874 echo "${ECHO_T}disabling const" >&6
2875 CPPFLAGS="$CPPFLAGS -Dconst="
2879 # AIX4.x doesn't even admit to having large
2880 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2883 echo "$as_me:$LINENO: result: enabling large file support" >&5
2884 echo "${ECHO_T}enabling large file support" >&6
2885 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2887 cat >>confdefs.h <<\_ACEOF
2888 #define _LARGE_FILES 1
2893 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2894 # to the existance of large files..
2895 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2896 # recommendations on large file support, however it makes the
2897 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2898 # recommendation makes the compile fail on gcc2.7. JRA.
2902 5.0*|5.1*|5.2*|5.3*|5.5*)
2903 echo "$as_me:$LINENO: result: no large file support" >&5
2904 echo "${ECHO_T}no large file support" >&6
2907 echo "$as_me:$LINENO: result: enabling large file support" >&5
2908 echo "${ECHO_T}enabling large file support" >&6
2909 if test "$ac_cv_c_compiler_gnu" = yes; then
2910 ${CC-cc} -v >conftest.c 2>&1
2911 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2913 case "$ac_cv_gcc_compiler_version_number" in
2914 *"gcc version 2.6"*|*"gcc version 2.7"*)
2915 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2917 cat >>confdefs.h <<\_ACEOF
2918 #define _LARGEFILE64_SOURCE 1
2923 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2925 cat >>confdefs.h <<\_ACEOF
2926 #define _LARGEFILE64_SOURCE 1
2930 cat >>confdefs.h <<\_ACEOF
2931 #define _FILE_OFFSET_BITS 64
2937 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2939 cat >>confdefs.h <<\_ACEOF
2940 #define _LARGEFILE64_SOURCE 1
2944 cat >>confdefs.h <<\_ACEOF
2945 #define _FILE_OFFSET_BITS 64
2953 # Tests needed for SINIX large file support.
2956 if test $host = mips-sni-sysv4 ; then
2957 echo "$as_me:$LINENO: checking for LFS support" >&5
2958 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
2959 old_CPPFLAGS="$CPPFLAGS"
2960 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
2961 if test "$cross_compiling" = yes; then
2962 SINIX_LFS_SUPPORT=cross
2964 cat >conftest.$ac_ext <<_ACEOF
2965 #line $LINENO "configure"
2966 #include "confdefs.h"
2970 #if _LFS64_LARGEFILE == 1
2977 rm -f conftest$ac_exeext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2979 (eval $ac_link) 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 SINIX_LFS_SUPPORT=yes
2990 echo "$as_me: program exited with status $ac_status" >&5
2991 echo "$as_me: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 SINIX_LFS_SUPPORT=no
2996 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2998 CPPFLAGS="$old_CPPFLAGS"
2999 if test x$SINIX_LFS_SUPPORT = xyes ; then
3000 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3002 cat >>confdefs.h <<\_ACEOF
3003 #define _LARGEFILE64_SOURCE 1
3006 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3007 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3008 LIBS="`getconf LFS64_LIBS` $LIBS"
3010 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3011 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3015 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3018 echo "$as_me:$LINENO: checking for LFS support" >&5
3019 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3020 old_CPPFLAGS="$CPPFLAGS"
3021 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3022 if test "$cross_compiling" = yes; then
3023 LINUX_LFS_SUPPORT=cross
3025 cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 #include "confdefs.h"
3030 #include <sys/utsname.h>
3032 #if _LFS64_LARGEFILE == 1
3037 /* Ensure this is glibc 2.2 or higher */
3038 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3039 int libc_major = __GLIBC__;
3040 int libc_minor = __GLIBC_MINOR__;
3048 /* Ensure this is kernel 2.4 or higher */
3051 release = uts.release;
3052 major = atoi(strsep(&release, "."));
3053 minor = atoi(strsep(&release, "."));
3055 if (major > 2 || (major == 2 && minor > 3))
3064 rm -f conftest$ac_exeext
3065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066 (eval $ac_link) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 LINUX_LFS_SUPPORT=yes
3077 echo "$as_me: program exited with status $ac_status" >&5
3078 echo "$as_me: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 LINUX_LFS_SUPPORT=no
3083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3085 CPPFLAGS="$old_CPPFLAGS"
3086 if test x$LINUX_LFS_SUPPORT = xyes ; then
3087 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3089 cat >>confdefs.h <<\_ACEOF
3090 #define _LARGEFILE64_SOURCE 1
3094 cat >>confdefs.h <<\_ACEOF
3095 #define _FILE_OFFSET_BITS 64
3099 cat >>confdefs.h <<\_ACEOF
3100 #define _GNU_SOURCE 1
3104 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3105 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3109 echo "$as_me:$LINENO: checking for LFS support" >&5
3110 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3111 old_CPPFLAGS="$CPPFLAGS"
3112 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3113 if test "$cross_compiling" = yes; then
3114 GLIBC_LFS_SUPPORT=cross
3116 cat >conftest.$ac_ext <<_ACEOF
3117 #line $LINENO "configure"
3118 #include "confdefs.h"
3122 #if _LFS64_LARGEFILE == 1
3129 rm -f conftest$ac_exeext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131 (eval $ac_link) 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 GLIBC_LFS_SUPPORT=yes
3142 echo "$as_me: program exited with status $ac_status" >&5
3143 echo "$as_me: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 GLIBC_LFS_SUPPORT=no
3148 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3150 CPPFLAGS="$old_CPPFLAGS"
3151 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3152 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3154 cat >>confdefs.h <<\_ACEOF
3155 #define _LARGEFILE64_SOURCE 1
3159 cat >>confdefs.h <<\_ACEOF
3160 #define _GNU_SOURCE 1
3164 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3165 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3170 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3171 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 ac_cv_prog_cc_stdc=no
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line $LINENO "configure"
3179 #include "confdefs.h"
3182 #include <sys/types.h>
3183 #include <sys/stat.h>
3184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3185 struct buf { int x; };
3186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3187 static char *e (p, i)
3193 static char *f (char * (*g) (char **, int), char **p, ...)
3198 s = g (p, va_arg (v,int));
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3208 #ifdef F77_DUMMY_MAIN
3212 int F77_DUMMY_MAIN() { return 1; }
3217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 # Don't try gcc -ansi; that turns off useful extensions and
3223 # breaks some systems' header files.
3224 # AIX -qlanglvl=ansi
3225 # Ultrix and OSF/1 -std1
3226 # HP-UX 10.20 and later -Ae
3227 # HP-UX older versions -Aa -D_HPUX_SOURCE
3228 # SVR4 -Xc -D__EXTENSIONS__
3229 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3231 CC="$ac_save_CC $ac_arg"
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 ac_cv_prog_cc_stdc=$ac_arg
3247 echo "$as_me: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 rm -f conftest.$ac_objext
3252 rm -f conftest.$ac_ext conftest.$ac_objext
3257 case "x$ac_cv_prog_cc_stdc" in
3259 echo "$as_me:$LINENO: result: none needed" >&5
3260 echo "${ECHO_T}none needed" >&6 ;;
3262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3264 CC="$CC $ac_cv_prog_cc_stdc" ;;
3267 echo "$as_me:$LINENO: checking for inline" >&5
3268 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3269 if test "${ac_cv_c_inline+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 for ac_kw in inline __inline__ __inline; do
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 #include "confdefs.h"
3278 static $ac_kw int static_foo () {return 0; }
3279 $ac_kw int foo () {return 0; }
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_c_inline=$ac_kw; break
3297 echo "$as_me: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 rm -f conftest.$ac_objext conftest.$ac_ext
3304 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3305 echo "${ECHO_T}$ac_cv_c_inline" >&6
3306 case $ac_cv_c_inline in
3309 cat >>confdefs.h <<\_ACEOF
3313 *) cat >>confdefs.h <<_ACEOF
3314 #define inline $ac_cv_c_inline
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3325 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3326 # On Suns, sometimes $CPP names a directory.
3327 if test -n "$CPP" && test -d "$CPP"; then
3330 if test -z "$CPP"; then
3331 if test "${ac_cv_prog_CPP+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 # Double quotes because CPP needs to be expanded
3335 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3338 for ac_c_preproc_warn_flag in '' yes
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # On the NeXT, cc -E runs the code through the compiler's parser,
3343 # not just through cpp. "Syntax error" is here to catch this case.
3344 cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 #include "confdefs.h"
3350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 egrep -v '^ *\+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } >/dev/null; then
3358 if test -s conftest.err; then
3359 ac_cpp_err=$ac_c_preproc_warn_flag
3366 if test -z "$ac_cpp_err"; then
3369 echo "$as_me: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3371 # Broken: fails on valid input.
3374 rm -f conftest.err conftest.$ac_ext
3376 # OK, works on sane cases. Now check whether non-existent headers
3377 # can be detected and how.
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 #include <ac_nonexistent.h>
3383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3386 egrep -v '^ *\+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null; then
3391 if test -s conftest.err; then
3392 ac_cpp_err=$ac_c_preproc_warn_flag
3399 if test -z "$ac_cpp_err"; then
3400 # Broken: success on invalid input.
3403 echo "$as_me: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405 # Passes both tests.
3409 rm -f conftest.err conftest.$ac_ext
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3426 echo "$as_me:$LINENO: result: $CPP" >&5
3427 echo "${ECHO_T}$CPP" >&6
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 #include "confdefs.h"
3441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3444 egrep -v '^ *\+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_c_preproc_warn_flag
3457 if test -z "$ac_cpp_err"; then
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 # Broken: fails on valid input.
3465 rm -f conftest.err conftest.$ac_ext
3467 # OK, works on sane cases. Now check whether non-existent headers
3468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470 #line $LINENO "configure"
3471 #include "confdefs.h"
3472 #include <ac_nonexistent.h>
3474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 egrep -v '^ *\+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_c_preproc_warn_flag
3490 if test -z "$ac_cpp_err"; then
3491 # Broken: success on invalid input.
3494 echo "$as_me: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3496 # Passes both tests.
3500 rm -f conftest.err conftest.$ac_ext
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3508 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3509 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3510 { (exit 1); exit 1; }; }
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3522 if test "${ac_cv_header_stdc+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 cat >conftest.$ac_ext <<_ACEOF
3526 #line $LINENO "configure"
3527 #include "confdefs.h"
3534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3537 egrep -v '^ *\+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3550 if test -z "$ac_cpp_err"; then
3551 ac_cv_header_stdc=yes
3553 echo "$as_me: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3555 ac_cv_header_stdc=no
3557 rm -f conftest.err conftest.$ac_ext
3559 if test $ac_cv_header_stdc = yes; then
3560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3561 cat >conftest.$ac_ext <<_ACEOF
3562 #line $LINENO "configure"
3563 #include "confdefs.h"
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 egrep "memchr" >/dev/null 2>&1; then
3571 ac_cv_header_stdc=no
3577 if test $ac_cv_header_stdc = yes; then
3578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3579 cat >conftest.$ac_ext <<_ACEOF
3580 #line $LINENO "configure"
3581 #include "confdefs.h"
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 egrep "free" >/dev/null 2>&1; then
3589 ac_cv_header_stdc=no
3595 if test $ac_cv_header_stdc = yes; then
3596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3597 if test "$cross_compiling" = yes; then
3600 cat >conftest.$ac_ext <<_ACEOF
3601 #line $LINENO "configure"
3602 #include "confdefs.h"
3604 #if ((' ' & 0x0FF) == 0x020)
3605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3608 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3609 || ('j' <= (c) && (c) <= 'r') \
3610 || ('s' <= (c) && (c) <= 'z'))
3611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3619 for (i = 0; i < 256; i++)
3620 if (XOR (islower (i), ISLOWER (i))
3621 || toupper (i) != TOUPPER (i))
3626 rm -f conftest$ac_exeext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628 (eval $ac_link) 2>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 echo "$as_me: program exited with status $ac_status" >&5
3640 echo "$as_me: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3643 ac_cv_header_stdc=no
3645 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3651 if test $ac_cv_header_stdc = yes; then
3653 cat >>confdefs.h <<\_ACEOF
3654 #define STDC_HEADERS 1
3665 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3666 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3667 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3668 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.$ac_ext <<_ACEOF
3673 #line $LINENO "configure"
3674 #include "confdefs.h"
3675 #include <sys/types.h>
3678 #ifdef F77_DUMMY_MAIN
3682 int F77_DUMMY_MAIN() { return 1; }
3693 rm -f conftest.$ac_objext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -s conftest.$ac_objext'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 eval "$as_ac_Header=yes"
3707 echo "$as_me: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3709 eval "$as_ac_Header=no"
3711 rm -f conftest.$ac_objext conftest.$ac_ext
3713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3716 cat >>confdefs.h <<_ACEOF
3717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3720 ac_header_dirent=$ac_hdr; break
3724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3725 if test $ac_header_dirent = dirent.h; then
3726 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3728 if test "${ac_cv_search_opendir+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 ac_func_search_save_LIBS=$LIBS
3732 ac_cv_search_opendir=no
3733 cat >conftest.$ac_ext <<_ACEOF
3734 #line $LINENO "configure"
3735 #include "confdefs.h"
3737 /* Override any gcc2 internal prototype to avoid an error. */
3741 /* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3744 #ifdef F77_DUMMY_MAIN
3748 int F77_DUMMY_MAIN() { return 1; }
3758 rm -f conftest.$ac_objext conftest$ac_exeext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760 (eval $ac_link) 2>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -s conftest$ac_exeext'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; }; then
3770 ac_cv_search_opendir="none required"
3772 echo "$as_me: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3776 if test "$ac_cv_search_opendir" = no; then
3777 for ac_lib in dir; do
3778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3779 cat >conftest.$ac_ext <<_ACEOF
3780 #line $LINENO "configure"
3781 #include "confdefs.h"
3783 /* Override any gcc2 internal prototype to avoid an error. */
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3790 #ifdef F77_DUMMY_MAIN
3794 int F77_DUMMY_MAIN() { return 1; }
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -s conftest$ac_exeext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_cv_search_opendir="-l$ac_lib"
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3825 LIBS=$ac_func_search_save_LIBS
3827 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3828 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3829 if test "$ac_cv_search_opendir" != no; then
3830 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3835 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3836 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3837 if test "${ac_cv_search_opendir+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 ac_func_search_save_LIBS=$LIBS
3841 ac_cv_search_opendir=no
3842 cat >conftest.$ac_ext <<_ACEOF
3843 #line $LINENO "configure"
3844 #include "confdefs.h"
3846 /* Override any gcc2 internal prototype to avoid an error. */
3850 /* We use char because int might match the return type of a gcc2
3851 builtin and then its argument prototype would still apply. */
3853 #ifdef F77_DUMMY_MAIN
3857 int F77_DUMMY_MAIN() { return 1; }
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869 (eval $ac_link) 2>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_search_opendir="none required"
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3885 if test "$ac_cv_search_opendir" = no; then
3887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line $LINENO "configure"
3890 #include "confdefs.h"
3892 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3899 #ifdef F77_DUMMY_MAIN
3903 int F77_DUMMY_MAIN() { return 1; }
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } &&
3919 { ac_try='test -s conftest$ac_exeext'
3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 ac_cv_search_opendir="-l$ac_lib"
3928 echo "$as_me: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3934 LIBS=$ac_func_search_save_LIBS
3936 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3937 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3938 if test "$ac_cv_search_opendir" != no; then
3939 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3945 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3947 if test "${ac_cv_header_time+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 #include "confdefs.h"
3953 #include <sys/types.h>
3954 #include <sys/time.h>
3957 #ifdef F77_DUMMY_MAIN
3961 int F77_DUMMY_MAIN() { return 1; }
3966 if ((struct tm *) 0)
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_cv_header_time=yes
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 ac_cv_header_time=no
3990 rm -f conftest.$ac_objext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3993 echo "${ECHO_T}$ac_cv_header_time" >&6
3994 if test $ac_cv_header_time = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define TIME_WITH_SYS_TIME 1
4002 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4003 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4004 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.$ac_ext <<_ACEOF
4008 #line $LINENO "configure"
4009 #include "confdefs.h"
4010 #include <sys/types.h>
4011 #include <sys/wait.h>
4013 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4016 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4019 #ifdef F77_DUMMY_MAIN
4023 int F77_DUMMY_MAIN() { return 1; }
4030 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 ac_cv_header_sys_wait_h=yes
4049 echo "$as_me: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 ac_cv_header_sys_wait_h=no
4053 rm -f conftest.$ac_objext conftest.$ac_ext
4055 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4056 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4057 if test $ac_cv_header_sys_wait_h = yes; then
4059 cat >>confdefs.h <<\_ACEOF
4060 #define HAVE_SYS_WAIT_H 1
4065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4075 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4076 inttypes.h stdint.h unistd.h
4078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4079 echo "$as_me:$LINENO: checking for $ac_header" >&5
4080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.$ac_ext <<_ACEOF
4085 #line $LINENO "configure"
4086 #include "confdefs.h"
4087 $ac_includes_default
4089 #include <$ac_header>
4091 rm -f conftest.$ac_objext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 eval "$as_ac_Header=yes"
4105 echo "$as_me: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4107 eval "$as_ac_Header=no"
4109 rm -f conftest.$ac_objext conftest.$ac_ext
4111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4114 cat >>confdefs.h <<_ACEOF
4115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 for ac_header in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
4131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4133 echo "$as_me:$LINENO: checking for $ac_header" >&5
4134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4141 # Is the header compilable?
4142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4144 cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 $ac_includes_default
4148 #include <$ac_header>
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_header_compiler=yes
4164 echo "$as_me: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4166 ac_header_compiler=no
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4170 echo "${ECHO_T}$ac_header_compiler" >&6
4172 # Is the header present?
4173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4175 cat >conftest.$ac_ext <<_ACEOF
4176 #line $LINENO "configure"
4177 #include "confdefs.h"
4178 #include <$ac_header>
4180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4183 egrep -v '^ *\+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } >/dev/null; then
4188 if test -s conftest.err; then
4189 ac_cpp_err=$ac_c_preproc_warn_flag
4196 if test -z "$ac_cpp_err"; then
4197 ac_header_preproc=yes
4199 echo "$as_me: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 ac_header_preproc=no
4203 rm -f conftest.err conftest.$ac_ext
4204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4205 echo "${ECHO_T}$ac_header_preproc" >&6
4207 # So? What about this header?
4208 case $ac_header_compiler:$ac_header_preproc in
4210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4222 echo "$as_me:$LINENO: checking for $ac_header" >&5
4223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 eval "$as_ac_Header=$ac_header_preproc"
4229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4234 cat >>confdefs.h <<_ACEOF
4235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 for ac_header in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
4251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4253 echo "$as_me:$LINENO: checking for $ac_header" >&5
4254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4261 # Is the header compilable?
4262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4265 #line $LINENO "configure"
4266 #include "confdefs.h"
4267 $ac_includes_default
4268 #include <$ac_header>
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 ac_header_compiler=yes
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4286 ac_header_compiler=no
4288 rm -f conftest.$ac_objext conftest.$ac_ext
4289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4290 echo "${ECHO_T}$ac_header_compiler" >&6
4292 # Is the header present?
4293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4295 cat >conftest.$ac_ext <<_ACEOF
4296 #line $LINENO "configure"
4297 #include "confdefs.h"
4298 #include <$ac_header>
4300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4303 egrep -v '^ *\+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4316 if test -z "$ac_cpp_err"; then
4317 ac_header_preproc=yes
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 ac_header_preproc=no
4323 rm -f conftest.err conftest.$ac_ext
4324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4325 echo "${ECHO_T}$ac_header_preproc" >&6
4327 # So? What about this header?
4328 case $ac_header_compiler:$ac_header_preproc in
4330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4342 echo "$as_me:$LINENO: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 eval "$as_ac_Header=$ac_header_preproc"
4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4354 cat >>confdefs.h <<_ACEOF
4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367 for ac_header in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4371 echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4379 # Is the header compilable?
4380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 #line $LINENO "configure"
4384 #include "confdefs.h"
4385 $ac_includes_default
4386 #include <$ac_header>
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_header_compiler=yes
4402 echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 ac_header_compiler=no
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4408 echo "${ECHO_T}$ac_header_compiler" >&6
4410 # Is the header present?
4411 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line $LINENO "configure"
4415 #include "confdefs.h"
4416 #include <$ac_header>
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4421 egrep -v '^ *\+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null; then
4426 if test -s conftest.err; then
4427 ac_cpp_err=$ac_c_preproc_warn_flag
4434 if test -z "$ac_cpp_err"; then
4435 ac_header_preproc=yes
4437 echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ac_header_preproc=no
4441 rm -f conftest.err conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4443 echo "${ECHO_T}$ac_header_preproc" >&6
4445 # So? What about this header?
4446 case $ac_header_compiler:$ac_header_preproc in
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4460 echo "$as_me:$LINENO: checking for $ac_header" >&5
4461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 eval "$as_ac_Header=$ac_header_preproc"
4467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF
4473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4487 for ac_header in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
4489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo "$as_me:$LINENO: checking for $ac_header" >&5
4492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4499 # Is the header compilable?
4500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4502 cat >conftest.$ac_ext <<_ACEOF
4503 #line $LINENO "configure"
4504 #include "confdefs.h"
4505 $ac_includes_default
4506 #include <$ac_header>
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_header_compiler=yes
4522 echo "$as_me: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4524 ac_header_compiler=no
4526 rm -f conftest.$ac_objext conftest.$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4528 echo "${ECHO_T}$ac_header_compiler" >&6
4530 # Is the header present?
4531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4534 #line $LINENO "configure"
4535 #include "confdefs.h"
4536 #include <$ac_header>
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4541 egrep -v '^ *\+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } >/dev/null; then
4546 if test -s conftest.err; then
4547 ac_cpp_err=$ac_c_preproc_warn_flag
4554 if test -z "$ac_cpp_err"; then
4555 ac_header_preproc=yes
4557 echo "$as_me: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4559 ac_header_preproc=no
4561 rm -f conftest.err conftest.$ac_ext
4562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4563 echo "${ECHO_T}$ac_header_preproc" >&6
4565 # So? What about this header?
4566 case $ac_header_compiler:$ac_header_preproc in
4568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4580 echo "$as_me:$LINENO: checking for $ac_header" >&5
4581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 eval "$as_ac_Header=$ac_header_preproc"
4587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4608 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
4610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4612 echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620 # Is the header compilable?
4621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4623 cat >conftest.$ac_ext <<_ACEOF
4624 #line $LINENO "configure"
4625 #include "confdefs.h"
4626 $ac_includes_default
4627 #include <$ac_header>
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_header_compiler=yes
4643 echo "$as_me: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 ac_header_compiler=no
4647 rm -f conftest.$ac_objext conftest.$ac_ext
4648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4649 echo "${ECHO_T}$ac_header_compiler" >&6
4651 # Is the header present?
4652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4657 #include <$ac_header>
4659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4662 egrep -v '^ *\+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } >/dev/null; then
4667 if test -s conftest.err; then
4668 ac_cpp_err=$ac_c_preproc_warn_flag
4675 if test -z "$ac_cpp_err"; then
4676 ac_header_preproc=yes
4678 echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_header_preproc=no
4682 rm -f conftest.err conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4684 echo "${ECHO_T}$ac_header_preproc" >&6
4686 # So? What about this header?
4687 case $ac_header_compiler:$ac_header_preproc in
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4701 echo "$as_me:$LINENO: checking for $ac_header" >&5
4702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 eval "$as_ac_Header=$ac_header_preproc"
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4713 cat >>confdefs.h <<_ACEOF
4714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4727 for ac_header in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
4729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731 echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4739 # Is the header compilable?
4740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 #include "confdefs.h"
4745 $ac_includes_default
4746 #include <$ac_header>
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_header_compiler=yes
4762 echo "$as_me: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 ac_header_compiler=no
4766 rm -f conftest.$ac_objext conftest.$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4768 echo "${ECHO_T}$ac_header_compiler" >&6
4770 # Is the header present?
4771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4773 cat >conftest.$ac_ext <<_ACEOF
4774 #line $LINENO "configure"
4775 #include "confdefs.h"
4776 #include <$ac_header>
4778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4781 egrep -v '^ *\+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } >/dev/null; then
4786 if test -s conftest.err; then
4787 ac_cpp_err=$ac_c_preproc_warn_flag
4794 if test -z "$ac_cpp_err"; then
4795 ac_header_preproc=yes
4797 echo "$as_me: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4799 ac_header_preproc=no
4801 rm -f conftest.err conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4803 echo "${ECHO_T}$ac_header_preproc" >&6
4805 # So? What about this header?
4806 case $ac_header_compiler:$ac_header_preproc in
4808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4820 echo "$as_me:$LINENO: checking for $ac_header" >&5
4821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 eval "$as_ac_Header=$ac_header_preproc"
4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4832 cat >>confdefs.h <<_ACEOF
4833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 for ac_header in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
4848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4858 # Is the header compilable?
4859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4863 #include "confdefs.h"
4864 $ac_includes_default
4865 #include <$ac_header>
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -s conftest.$ac_objext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 ac_header_compiler=yes
4881 echo "$as_me: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4883 ac_header_compiler=no
4885 rm -f conftest.$ac_objext conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4887 echo "${ECHO_T}$ac_header_compiler" >&6
4889 # Is the header present?
4890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4894 #include "confdefs.h"
4895 #include <$ac_header>
4897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4900 egrep -v '^ *\+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev/null; then
4905 if test -s conftest.err; then
4906 ac_cpp_err=$ac_c_preproc_warn_flag
4913 if test -z "$ac_cpp_err"; then
4914 ac_header_preproc=yes
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 ac_header_preproc=no
4920 rm -f conftest.err conftest.$ac_ext
4921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4922 echo "${ECHO_T}$ac_header_preproc" >&6
4924 # So? What about this header?
4925 case $ac_header_compiler:$ac_header_preproc in
4927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4939 echo "$as_me:$LINENO: checking for $ac_header" >&5
4940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 eval "$as_ac_Header=$ac_header_preproc"
4946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4951 cat >>confdefs.h <<_ACEOF
4952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4964 for ac_header in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
4966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968 echo "$as_me:$LINENO: checking for $ac_header" >&5
4969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4976 # Is the header compilable?
4977 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line $LINENO "configure"
4981 #include "confdefs.h"
4982 $ac_includes_default
4983 #include <$ac_header>
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_header_compiler=yes
4999 echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 ac_header_compiler=no
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5005 echo "${ECHO_T}$ac_header_compiler" >&6
5007 # Is the header present?
5008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 #include "confdefs.h"
5013 #include <$ac_header>
5015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5018 egrep -v '^ *\+' conftest.er1 >conftest.err
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } >/dev/null; then
5023 if test -s conftest.err; then
5024 ac_cpp_err=$ac_c_preproc_warn_flag
5031 if test -z "$ac_cpp_err"; then
5032 ac_header_preproc=yes
5034 echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_header_preproc=no
5038 rm -f conftest.err conftest.$ac_ext
5039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5040 echo "${ECHO_T}$ac_header_preproc" >&6
5042 # So? What about this header?
5043 case $ac_header_compiler:$ac_header_preproc in
5045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5057 echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 eval "$as_ac_Header=$ac_header_preproc"
5064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5079 for ac_header in sys/syslog.h syslog.h
5081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5083 echo "$as_me:$LINENO: checking for $ac_header" >&5
5084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5091 # Is the header compilable?
5092 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 #include "confdefs.h"
5097 $ac_includes_default
5098 #include <$ac_header>
5100 rm -f conftest.$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -s conftest.$ac_objext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 ac_header_compiler=yes
5114 echo "$as_me: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5116 ac_header_compiler=no
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 #include "confdefs.h"
5128 #include <$ac_header>
5130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133 egrep -v '^ *\+' conftest.er1 >conftest.err
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } >/dev/null; then
5138 if test -s conftest.err; then
5139 ac_cpp_err=$ac_c_preproc_warn_flag
5146 if test -z "$ac_cpp_err"; then
5147 ac_header_preproc=yes
5149 echo "$as_me: failed program was:" >&5
5150 cat conftest.$ac_ext >&5
5151 ac_header_preproc=no
5153 rm -f conftest.err conftest.$ac_ext
5154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5155 echo "${ECHO_T}$ac_header_preproc" >&6
5157 # So? What about this header?
5158 case $ac_header_compiler:$ac_header_preproc in
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5172 echo "$as_me:$LINENO: checking for $ac_header" >&5
5173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 eval "$as_ac_Header=$ac_header_preproc"
5179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5184 cat >>confdefs.h <<_ACEOF
5185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5194 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5195 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5199 cat >conftest.$ac_ext <<_ACEOF
5200 #line $LINENO "configure"
5201 #include "confdefs.h"
5203 #ifdef F77_DUMMY_MAIN
5207 int F77_DUMMY_MAIN() { return 1; }
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_header_shadow_h=yes
5231 echo "$as_me: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5233 ac_cv_header_shadow_h=no
5235 rm -f conftest.$ac_objext conftest.$ac_ext
5236 if test x"$ac_cv_header_shadow_h" = x"yes"; then
5238 cat >>confdefs.h <<\_ACEOF
5239 #define HAVE_SHADOW_H 1
5250 for ac_header in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
5252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254 echo "$as_me:$LINENO: checking for $ac_header" >&5
5255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5262 # Is the header compilable?
5263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5267 #include "confdefs.h"
5268 $ac_includes_default
5269 #include <$ac_header>
5271 rm -f conftest.$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_header_compiler=yes
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 ac_header_compiler=no
5289 rm -f conftest.$ac_objext conftest.$ac_ext
5290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5291 echo "${ECHO_T}$ac_header_compiler" >&6
5293 # Is the header present?
5294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 #include "confdefs.h"
5299 #include <$ac_header>
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 egrep -v '^ *\+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } >/dev/null; then
5309 if test -s conftest.err; then
5310 ac_cpp_err=$ac_c_preproc_warn_flag
5317 if test -z "$ac_cpp_err"; then
5318 ac_header_preproc=yes
5320 echo "$as_me: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5322 ac_header_preproc=no
5324 rm -f conftest.err conftest.$ac_ext
5325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5326 echo "${ECHO_T}$ac_header_preproc" >&6
5328 # So? What about this header?
5329 case $ac_header_compiler:$ac_header_preproc in
5331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5343 echo "$as_me:$LINENO: checking for $ac_header" >&5
5344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 eval "$as_ac_Header=$ac_header_preproc"
5350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5355 cat >>confdefs.h <<_ACEOF
5356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 for ac_header in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
5371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5381 # Is the header compilable?
5382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line $LINENO "configure"
5386 #include "confdefs.h"
5387 $ac_includes_default
5388 #include <$ac_header>
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5402 ac_header_compiler=yes
5404 echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5406 ac_header_compiler=no
5408 rm -f conftest.$ac_objext conftest.$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5410 echo "${ECHO_T}$ac_header_compiler" >&6
5412 # Is the header present?
5413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5416 #line $LINENO "configure"
5417 #include "confdefs.h"
5418 #include <$ac_header>
5420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5423 egrep -v '^ *\+' conftest.er1 >conftest.err
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null; then
5428 if test -s conftest.err; then
5429 ac_cpp_err=$ac_c_preproc_warn_flag
5436 if test -z "$ac_cpp_err"; then
5437 ac_header_preproc=yes
5439 echo "$as_me: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 ac_header_preproc=no
5443 rm -f conftest.err conftest.$ac_ext
5444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5445 echo "${ECHO_T}$ac_header_preproc" >&6
5447 # So? What about this header?
5448 case $ac_header_compiler:$ac_header_preproc in
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5462 echo "$as_me:$LINENO: checking for $ac_header" >&5
5463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 eval "$as_ac_Header=$ac_header_preproc"
5469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5474 cat >>confdefs.h <<_ACEOF
5475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484 for ac_header in stropts.h poll.h
5486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488 echo "$as_me:$LINENO: checking for $ac_header" >&5
5489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5496 # Is the header compilable?
5497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 #include "confdefs.h"
5502 $ac_includes_default
5503 #include <$ac_header>
5505 rm -f conftest.$ac_objext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5507 (eval $ac_compile) 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
5511 { ac_try='test -s conftest.$ac_objext'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; }; then
5517 ac_header_compiler=yes
5519 echo "$as_me: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 ac_header_compiler=no
5523 rm -f conftest.$ac_objext conftest.$ac_ext
5524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5525 echo "${ECHO_T}$ac_header_compiler" >&6
5527 # Is the header present?
5528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5530 cat >conftest.$ac_ext <<_ACEOF
5531 #line $LINENO "configure"
5532 #include "confdefs.h"
5533 #include <$ac_header>
5535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5538 egrep -v '^ *\+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null; then
5543 if test -s conftest.err; then
5544 ac_cpp_err=$ac_c_preproc_warn_flag
5551 if test -z "$ac_cpp_err"; then
5552 ac_header_preproc=yes
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 ac_header_preproc=no
5558 rm -f conftest.err conftest.$ac_ext
5559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5560 echo "${ECHO_T}$ac_header_preproc" >&6
5562 # So? What about this header?
5563 case $ac_header_compiler:$ac_header_preproc in
5565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5577 echo "$as_me:$LINENO: checking for $ac_header" >&5
5578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 eval "$as_ac_Header=$ac_header_preproc"
5584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589 cat >>confdefs.h <<_ACEOF
5590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600 for ac_header in sys/capability.h syscall.h sys/syscall.h
5602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 # Is the header compilable?
5613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 #include "confdefs.h"
5618 $ac_includes_default
5619 #include <$ac_header>
5621 rm -f conftest.$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_header_compiler=yes
5635 echo "$as_me: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5637 ac_header_compiler=no
5639 rm -f conftest.$ac_objext conftest.$ac_ext
5640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5641 echo "${ECHO_T}$ac_header_compiler" >&6
5643 # Is the header present?
5644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 #include "confdefs.h"
5649 #include <$ac_header>
5651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5654 egrep -v '^ *\+' conftest.er1 >conftest.err
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } >/dev/null; then
5659 if test -s conftest.err; then
5660 ac_cpp_err=$ac_c_preproc_warn_flag
5667 if test -z "$ac_cpp_err"; then
5668 ac_header_preproc=yes
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5672 ac_header_preproc=no
5674 rm -f conftest.err conftest.$ac_ext
5675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5676 echo "${ECHO_T}$ac_header_preproc" >&6
5678 # So? What about this header?
5679 case $ac_header_compiler:$ac_header_preproc in
5681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5693 echo "$as_me:$LINENO: checking for $ac_header" >&5
5694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 eval "$as_ac_Header=$ac_header_preproc"
5700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5701 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5716 for ac_header in sys/acl.h sys/cdefs.h glob.h
5718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720 echo "$as_me:$LINENO: checking for $ac_header" >&5
5721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5728 # Is the header compilable?
5729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5731 cat >conftest.$ac_ext <<_ACEOF
5732 #line $LINENO "configure"
5733 #include "confdefs.h"
5734 $ac_includes_default
5735 #include <$ac_header>
5737 rm -f conftest.$ac_objext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_header_compiler=yes
5751 echo "$as_me: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 ac_header_compiler=no
5755 rm -f conftest.$ac_objext conftest.$ac_ext
5756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5757 echo "${ECHO_T}$ac_header_compiler" >&6
5759 # Is the header present?
5760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 #line $LINENO "configure"
5764 #include "confdefs.h"
5765 #include <$ac_header>
5767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5770 egrep -v '^ *\+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } >/dev/null; then
5775 if test -s conftest.err; then
5776 ac_cpp_err=$ac_c_preproc_warn_flag
5783 if test -z "$ac_cpp_err"; then
5784 ac_header_preproc=yes
5786 echo "$as_me: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5788 ac_header_preproc=no
5790 rm -f conftest.err conftest.$ac_ext
5791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5792 echo "${ECHO_T}$ac_header_preproc" >&6
5794 # So? What about this header?
5795 case $ac_header_compiler:$ac_header_preproc in
5797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 eval "$as_ac_Header=$ac_header_preproc"
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821 cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830 # For experimental utmp support (lastlog on some BSD-like systems)
5834 for ac_header in utmp.h utmpx.h lastlog.h
5836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5838 echo "$as_me:$LINENO: checking for $ac_header" >&5
5839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5846 # Is the header compilable?
5847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5849 cat >conftest.$ac_ext <<_ACEOF
5850 #line $LINENO "configure"
5851 #include "confdefs.h"
5852 $ac_includes_default
5853 #include <$ac_header>
5855 rm -f conftest.$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -s conftest.$ac_objext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 ac_header_compiler=yes
5869 echo "$as_me: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5871 ac_header_compiler=no
5873 rm -f conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5875 echo "${ECHO_T}$ac_header_compiler" >&6
5877 # Is the header present?
5878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 #include "confdefs.h"
5883 #include <$ac_header>
5885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888 egrep -v '^ *\+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } >/dev/null; then
5893 if test -s conftest.err; then
5894 ac_cpp_err=$ac_c_preproc_warn_flag
5901 if test -z "$ac_cpp_err"; then
5902 ac_header_preproc=yes
5904 echo "$as_me: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5906 ac_header_preproc=no
5908 rm -f conftest.err conftest.$ac_ext
5909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5910 echo "${ECHO_T}$ac_header_preproc" >&6
5912 # So? What about this header?
5913 case $ac_header_compiler:$ac_header_preproc in
5915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5927 echo "$as_me:$LINENO: checking for $ac_header" >&5
5928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 eval "$as_ac_Header=$ac_header_preproc"
5934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5948 # For quotas on Veritas VxFS filesystems
5950 for ac_header in sys/fs/vx_quota.h
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5962 # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5967 #include "confdefs.h"
5968 $ac_includes_default
5969 #include <$ac_header>
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_header_compiler=yes
5985 echo "$as_me: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5987 ac_header_compiler=no
5989 rm -f conftest.$ac_objext conftest.$ac_ext
5990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5991 echo "${ECHO_T}$ac_header_compiler" >&6
5993 # Is the header present?
5994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line $LINENO "configure"
5998 #include "confdefs.h"
5999 #include <$ac_header>
6001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6004 egrep -v '^ *\+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } >/dev/null; then
6009 if test -s conftest.err; then
6010 ac_cpp_err=$ac_c_preproc_warn_flag
6017 if test -z "$ac_cpp_err"; then
6018 ac_header_preproc=yes
6020 echo "$as_me: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 ac_header_preproc=no
6024 rm -f conftest.err conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6026 echo "${ECHO_T}$ac_header_preproc" >&6
6028 # So? What about this header?
6029 case $ac_header_compiler:$ac_header_preproc in
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6043 echo "$as_me:$LINENO: checking for $ac_header" >&5
6044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 eval "$as_ac_Header=$ac_header_preproc"
6050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6055 cat >>confdefs.h <<_ACEOF
6056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 # For quotas on Linux XFS filesystems
6066 for ac_header in linux/xqm.h
6068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6070 echo "$as_me:$LINENO: checking for $ac_header" >&5
6071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078 # Is the header compilable?
6079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6084 $ac_includes_default
6085 #include <$ac_header>
6087 rm -f conftest.$ac_objext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6089 (eval $ac_compile) 2>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -s conftest.$ac_objext'
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 ac_header_compiler=yes
6101 echo "$as_me: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 ac_header_compiler=no
6105 rm -f conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107 echo "${ECHO_T}$ac_header_compiler" >&6
6109 # Is the header present?
6110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6113 #line $LINENO "configure"
6114 #include "confdefs.h"
6115 #include <$ac_header>
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 egrep -v '^ *\+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } >/dev/null; then
6125 if test -s conftest.err; then
6126 ac_cpp_err=$ac_c_preproc_warn_flag
6133 if test -z "$ac_cpp_err"; then
6134 ac_header_preproc=yes
6136 echo "$as_me: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6138 ac_header_preproc=no
6140 rm -f conftest.err conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142 echo "${ECHO_T}$ac_header_preproc" >&6
6144 # So? What about this header?
6145 case $ac_header_compiler:$ac_header_preproc in
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6159 echo "$as_me:$LINENO: checking for $ac_header" >&5
6160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 eval "$as_ac_Header=$ac_header_preproc"
6166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6171 cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6180 for ac_header in xfs/xqm.h
6182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo "$as_me:$LINENO: checking for $ac_header" >&5
6185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6192 # Is the header compilable?
6193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6196 #line $LINENO "configure"
6197 #include "confdefs.h"
6198 $ac_includes_default
6199 #include <$ac_header>
6201 rm -f conftest.$ac_objext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_header_compiler=yes
6215 echo "$as_me: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6217 ac_header_compiler=no
6219 rm -f conftest.$ac_objext conftest.$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6221 echo "${ECHO_T}$ac_header_compiler" >&6
6223 # Is the header present?
6224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line $LINENO "configure"
6228 #include "confdefs.h"
6229 #include <$ac_header>
6231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6234 egrep -v '^ *\+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } >/dev/null; then
6239 if test -s conftest.err; then
6240 ac_cpp_err=$ac_c_preproc_warn_flag
6247 if test -z "$ac_cpp_err"; then
6248 ac_header_preproc=yes
6250 echo "$as_me: failed program was:" >&5
6251 cat conftest.$ac_ext >&5
6252 ac_header_preproc=no
6254 rm -f conftest.err conftest.$ac_ext
6255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6256 echo "${ECHO_T}$ac_header_preproc" >&6
6258 # So? What about this header?
6259 case $ac_header_compiler:$ac_header_preproc in
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6273 echo "$as_me:$LINENO: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 eval "$as_ac_Header=$ac_header_preproc"
6280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6294 echo "$as_me:$LINENO: checking for int" >&5
6295 echo $ECHO_N "checking for int... $ECHO_C" >&6
6296 if test "${ac_cv_type_int+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 #include "confdefs.h"
6302 $ac_includes_default
6303 #ifdef F77_DUMMY_MAIN
6307 int F77_DUMMY_MAIN() { return 1; }
6320 rm -f conftest.$ac_objext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322 (eval $ac_compile) 2>&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6334 echo "$as_me: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6338 rm -f conftest.$ac_objext conftest.$ac_ext
6340 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6341 echo "${ECHO_T}$ac_cv_type_int" >&6
6343 echo "$as_me:$LINENO: checking size of int" >&5
6344 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6345 if test "${ac_cv_sizeof_int+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 if test "$ac_cv_type_int" = yes; then
6349 # The cast to unsigned long works around a bug in the HP C Compiler
6350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6352 # This bug is HP SR number 8606223364.
6353 if test "$cross_compiling" = yes; then
6354 # Depending upon the size, compute the lo and hi bounds.
6355 cat >conftest.$ac_ext <<_ACEOF
6356 #line $LINENO "configure"
6357 #include "confdefs.h"
6358 $ac_includes_default
6359 #ifdef F77_DUMMY_MAIN
6363 int F77_DUMMY_MAIN() { return 1; }
6368 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } &&
6381 { ac_try='test -s conftest.$ac_objext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 #include "confdefs.h"
6392 $ac_includes_default
6393 #ifdef F77_DUMMY_MAIN
6397 int F77_DUMMY_MAIN() { return 1; }
6402 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6409 rm -f conftest.$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_hi=$ac_mid; break
6423 echo "$as_me: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 ac_lo=`expr $ac_mid + 1`
6426 if test $ac_lo -le $ac_mid; then
6430 ac_mid=`expr 2 '*' $ac_mid + 1`
6432 rm -f conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6440 $ac_includes_default
6441 #ifdef F77_DUMMY_MAIN
6445 int F77_DUMMY_MAIN() { return 1; }
6450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459 (eval $ac_compile) 2>&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6471 cat >conftest.$ac_ext <<_ACEOF
6472 #line $LINENO "configure"
6473 #include "confdefs.h"
6474 $ac_includes_default
6475 #ifdef F77_DUMMY_MAIN
6479 int F77_DUMMY_MAIN() { return 1; }
6484 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6491 rm -f conftest.$ac_objext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493 (eval $ac_compile) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -s conftest.$ac_objext'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_lo=$ac_mid; break
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_hi=`expr '(' $ac_mid ')' - 1`
6508 if test $ac_mid -le $ac_hi; then
6512 ac_mid=`expr 2 '*' $ac_mid`
6514 rm -f conftest.$ac_objext conftest.$ac_ext
6517 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6521 rm -f conftest.$ac_objext conftest.$ac_ext
6523 rm -f conftest.$ac_objext conftest.$ac_ext
6524 # Binary search between lo and hi bounds.
6525 while test "x$ac_lo" != "x$ac_hi"; do
6526 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 #include "confdefs.h"
6530 $ac_includes_default
6531 #ifdef F77_DUMMY_MAIN
6535 int F77_DUMMY_MAIN() { return 1; }
6540 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6547 rm -f conftest.$ac_objext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6549 (eval $ac_compile) 2>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6561 echo "$as_me: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6563 ac_lo=`expr '(' $ac_mid ')' + 1`
6565 rm -f conftest.$ac_objext conftest.$ac_ext
6568 ?*) ac_cv_sizeof_int=$ac_lo;;
6569 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6570 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6571 { (exit 1); exit 1; }; } ;;
6574 if test "$cross_compiling" = yes; then
6575 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6576 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6577 { (exit 1); exit 1; }; }
6579 cat >conftest.$ac_ext <<_ACEOF
6580 #line $LINENO "configure"
6581 #include "confdefs.h"
6582 $ac_includes_default
6583 long longval () { return (long) (sizeof (int)); }
6584 unsigned long ulongval () { return (long) (sizeof (int)); }
6587 #ifdef F77_DUMMY_MAIN
6591 int F77_DUMMY_MAIN() { return 1; }
6597 FILE *f = fopen ("conftest.val", "w");
6600 if (((long) (sizeof (int))) < 0)
6602 long i = longval ();
6603 if (i != ((long) (sizeof (int))))
6605 fprintf (f, "%ld\n", i);
6609 unsigned long i = ulongval ();
6610 if (i != ((long) (sizeof (int))))
6612 fprintf (f, "%lu\n", i);
6614 exit (ferror (f) || fclose (f) != 0);
6620 rm -f conftest$ac_exeext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6622 (eval $ac_link) 2>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_cv_sizeof_int=`cat conftest.val`
6633 echo "$as_me: program exited with status $ac_status" >&5
6634 echo "$as_me: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6638 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6639 { (exit 1); exit 1; }; }
6641 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6649 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6650 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6651 cat >>confdefs.h <<_ACEOF
6652 #define SIZEOF_INT $ac_cv_sizeof_int
6656 echo "$as_me:$LINENO: checking for long" >&5
6657 echo $ECHO_N "checking for long... $ECHO_C" >&6
6658 if test "${ac_cv_type_long+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664 $ac_includes_default
6665 #ifdef F77_DUMMY_MAIN
6669 int F77_DUMMY_MAIN() { return 1; }
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6696 echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6703 echo "${ECHO_T}$ac_cv_type_long" >&6
6705 echo "$as_me:$LINENO: checking size of long" >&5
6706 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6707 if test "${ac_cv_sizeof_long+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 if test "$ac_cv_type_long" = yes; then
6711 # The cast to unsigned long works around a bug in the HP C Compiler
6712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6714 # This bug is HP SR number 8606223364.
6715 if test "$cross_compiling" = yes; then
6716 # Depending upon the size, compute the lo and hi bounds.
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6720 $ac_includes_default
6721 #ifdef F77_DUMMY_MAIN
6725 int F77_DUMMY_MAIN() { return 1; }
6730 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6737 rm -f conftest.$ac_objext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6753 #include "confdefs.h"
6754 $ac_includes_default
6755 #ifdef F77_DUMMY_MAIN
6759 int F77_DUMMY_MAIN() { return 1; }
6764 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6771 rm -f conftest.$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -s conftest.$ac_objext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_hi=$ac_mid; break
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6787 ac_lo=`expr $ac_mid + 1`
6788 if test $ac_lo -le $ac_mid; then
6792 ac_mid=`expr 2 '*' $ac_mid + 1`
6794 rm -f conftest.$ac_objext conftest.$ac_ext
6797 echo "$as_me: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6802 $ac_includes_default
6803 #ifdef F77_DUMMY_MAIN
6807 int F77_DUMMY_MAIN() { return 1; }
6812 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6819 rm -f conftest.$ac_objext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821 (eval $ac_compile) 2>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6833 cat >conftest.$ac_ext <<_ACEOF
6834 #line $LINENO "configure"
6835 #include "confdefs.h"
6836 $ac_includes_default
6837 #ifdef F77_DUMMY_MAIN
6841 int F77_DUMMY_MAIN() { return 1; }
6846 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6865 ac_lo=$ac_mid; break
6867 echo "$as_me: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6869 ac_hi=`expr '(' $ac_mid ')' - 1`
6870 if test $ac_mid -le $ac_hi; then
6874 ac_mid=`expr 2 '*' $ac_mid`
6876 rm -f conftest.$ac_objext conftest.$ac_ext
6879 echo "$as_me: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6885 rm -f conftest.$ac_objext conftest.$ac_ext
6886 # Binary search between lo and hi bounds.
6887 while test "x$ac_lo" != "x$ac_hi"; do
6888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6892 $ac_includes_default
6893 #ifdef F77_DUMMY_MAIN
6897 int F77_DUMMY_MAIN() { return 1; }
6902 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6923 echo "$as_me: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6925 ac_lo=`expr '(' $ac_mid ')' + 1`
6927 rm -f conftest.$ac_objext conftest.$ac_ext
6930 ?*) ac_cv_sizeof_long=$ac_lo;;
6931 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
6932 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
6933 { (exit 1); exit 1; }; } ;;
6936 if test "$cross_compiling" = yes; then
6937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6938 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6939 { (exit 1); exit 1; }; }
6941 cat >conftest.$ac_ext <<_ACEOF
6942 #line $LINENO "configure"
6943 #include "confdefs.h"
6944 $ac_includes_default
6945 long longval () { return (long) (sizeof (long)); }
6946 unsigned long ulongval () { return (long) (sizeof (long)); }
6949 #ifdef F77_DUMMY_MAIN
6953 int F77_DUMMY_MAIN() { return 1; }
6959 FILE *f = fopen ("conftest.val", "w");
6962 if (((long) (sizeof (long))) < 0)
6964 long i = longval ();
6965 if (i != ((long) (sizeof (long))))
6967 fprintf (f, "%ld\n", i);
6971 unsigned long i = ulongval ();
6972 if (i != ((long) (sizeof (long))))
6974 fprintf (f, "%lu\n", i);
6976 exit (ferror (f) || fclose (f) != 0);
6982 rm -f conftest$ac_exeext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984 (eval $ac_link) 2>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; }; then
6993 ac_cv_sizeof_long=`cat conftest.val`
6995 echo "$as_me: program exited with status $ac_status" >&5
6996 echo "$as_me: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7000 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7001 { (exit 1); exit 1; }; }
7003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7011 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7012 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7013 cat >>confdefs.h <<_ACEOF
7014 #define SIZEOF_LONG $ac_cv_sizeof_long
7018 echo "$as_me:$LINENO: checking for short" >&5
7019 echo $ECHO_N "checking for short... $ECHO_C" >&6
7020 if test "${ac_cv_type_short+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 cat >conftest.$ac_ext <<_ACEOF
7024 #line $LINENO "configure"
7025 #include "confdefs.h"
7026 $ac_includes_default
7027 #ifdef F77_DUMMY_MAIN
7031 int F77_DUMMY_MAIN() { return 1; }
7044 rm -f conftest.$ac_objext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046 (eval $ac_compile) 2>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -s conftest.$ac_objext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_type_short=yes
7058 echo "$as_me: failed program was:" >&5
7059 cat conftest.$ac_ext >&5
7062 rm -f conftest.$ac_objext conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7065 echo "${ECHO_T}$ac_cv_type_short" >&6
7067 echo "$as_me:$LINENO: checking size of short" >&5
7068 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7069 if test "${ac_cv_sizeof_short+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 if test "$ac_cv_type_short" = yes; then
7073 # The cast to unsigned long works around a bug in the HP C Compiler
7074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7076 # This bug is HP SR number 8606223364.
7077 if test "$cross_compiling" = yes; then
7078 # Depending upon the size, compute the lo and hi bounds.
7079 cat >conftest.$ac_ext <<_ACEOF
7080 #line $LINENO "configure"
7081 #include "confdefs.h"
7082 $ac_includes_default
7083 #ifdef F77_DUMMY_MAIN
7087 int F77_DUMMY_MAIN() { return 1; }
7092 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7099 rm -f conftest.$ac_objext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7113 cat >conftest.$ac_ext <<_ACEOF
7114 #line $LINENO "configure"
7115 #include "confdefs.h"
7116 $ac_includes_default
7117 #ifdef F77_DUMMY_MAIN
7121 int F77_DUMMY_MAIN() { return 1; }
7126 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7133 rm -f conftest.$ac_objext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135 (eval $ac_compile) 2>&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -s conftest.$ac_objext'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_hi=$ac_mid; break
7147 echo "$as_me: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 ac_lo=`expr $ac_mid + 1`
7150 if test $ac_lo -le $ac_mid; then
7154 ac_mid=`expr 2 '*' $ac_mid + 1`
7156 rm -f conftest.$ac_objext conftest.$ac_ext
7159 echo "$as_me: failed program was:" >&5
7160 cat conftest.$ac_ext >&5
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line $LINENO "configure"
7163 #include "confdefs.h"
7164 $ac_includes_default
7165 #ifdef F77_DUMMY_MAIN
7169 int F77_DUMMY_MAIN() { return 1; }
7174 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183 (eval $ac_compile) 2>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try='test -s conftest.$ac_objext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7195 cat >conftest.$ac_ext <<_ACEOF
7196 #line $LINENO "configure"
7197 #include "confdefs.h"
7198 $ac_includes_default
7199 #ifdef F77_DUMMY_MAIN
7203 int F77_DUMMY_MAIN() { return 1; }
7208 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -s conftest.$ac_objext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 ac_lo=$ac_mid; break
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7231 ac_hi=`expr '(' $ac_mid ')' - 1`
7232 if test $ac_mid -le $ac_hi; then
7236 ac_mid=`expr 2 '*' $ac_mid`
7238 rm -f conftest.$ac_objext conftest.$ac_ext
7241 echo "$as_me: failed program was:" >&5
7242 cat conftest.$ac_ext >&5
7245 rm -f conftest.$ac_objext conftest.$ac_ext
7247 rm -f conftest.$ac_objext conftest.$ac_ext
7248 # Binary search between lo and hi bounds.
7249 while test "x$ac_lo" != "x$ac_hi"; do
7250 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7251 cat >conftest.$ac_ext <<_ACEOF
7252 #line $LINENO "configure"
7253 #include "confdefs.h"
7254 $ac_includes_default
7255 #ifdef F77_DUMMY_MAIN
7259 int F77_DUMMY_MAIN() { return 1; }
7264 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7271 rm -f conftest.$ac_objext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7273 (eval $ac_compile) 2>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7285 echo "$as_me: failed program was:" >&5
7286 cat conftest.$ac_ext >&5
7287 ac_lo=`expr '(' $ac_mid ')' + 1`
7289 rm -f conftest.$ac_objext conftest.$ac_ext
7292 ?*) ac_cv_sizeof_short=$ac_lo;;
7293 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7294 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7295 { (exit 1); exit 1; }; } ;;
7298 if test "$cross_compiling" = yes; then
7299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7300 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7301 { (exit 1); exit 1; }; }
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 long longval () { return (long) (sizeof (short)); }
7308 unsigned long ulongval () { return (long) (sizeof (short)); }
7311 #ifdef F77_DUMMY_MAIN
7315 int F77_DUMMY_MAIN() { return 1; }
7321 FILE *f = fopen ("conftest.val", "w");
7324 if (((long) (sizeof (short))) < 0)
7326 long i = longval ();
7327 if (i != ((long) (sizeof (short))))
7329 fprintf (f, "%ld\n", i);
7333 unsigned long i = ulongval ();
7334 if (i != ((long) (sizeof (short))))
7336 fprintf (f, "%lu\n", i);
7338 exit (ferror (f) || fclose (f) != 0);
7344 rm -f conftest$ac_exeext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7346 (eval $ac_link) 2>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 ac_cv_sizeof_short=`cat conftest.val`
7357 echo "$as_me: program exited with status $ac_status" >&5
7358 echo "$as_me: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7362 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7363 { (exit 1); exit 1; }; }
7365 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7370 ac_cv_sizeof_short=0
7373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7374 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7375 cat >>confdefs.h <<_ACEOF
7376 #define SIZEOF_SHORT $ac_cv_sizeof_short
7381 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7382 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7383 if test "${ac_cv_c_const+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 #include "confdefs.h"
7390 #ifdef F77_DUMMY_MAIN
7394 int F77_DUMMY_MAIN() { return 1; }
7399 /* FIXME: Include the comments suggested by Paul. */
7401 /* Ultrix mips cc rejects this. */
7402 typedef int charset[2];
7404 /* SunOS 4.1.1 cc rejects this. */
7405 char const *const *ccp;
7407 /* NEC SVR4.0.2 mips cc rejects this. */
7408 struct point {int x, y;};
7409 static struct point const zero = {0,0};
7410 /* AIX XL C 1.02.0.0 rejects this.
7411 It does not let you subtract one const X* pointer from another in
7412 an arm of an if-expression whose if-part is not a constant
7414 const char *g = "string";
7415 ccp = &g + (g ? g-g : 0);
7416 /* HPUX 7.0 cc rejects these. */
7419 ccp = (char const *const *) p;
7420 { /* SCO 3.2v4 cc rejects this. */
7422 char const *s = 0 ? (char *) 0 : (char const *) 0;
7426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7428 const int *foo = &x[0];
7431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7432 typedef const int *iptr;
7436 { /* AIX XL C 1.02.0.0 rejects this saying
7437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7438 struct s { int j; const int *ap[3]; };
7439 struct s *b; b->j = 5;
7441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7464 echo "$as_me: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7468 rm -f conftest.$ac_objext conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7471 echo "${ECHO_T}$ac_cv_c_const" >&6
7472 if test $ac_cv_c_const = no; then
7474 cat >>confdefs.h <<\_ACEOF
7480 echo "$as_me:$LINENO: checking for inline" >&5
7481 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7482 if test "${ac_cv_c_inline+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 for ac_kw in inline __inline__ __inline; do
7487 cat >conftest.$ac_ext <<_ACEOF
7488 #line $LINENO "configure"
7489 #include "confdefs.h"
7491 static $ac_kw int static_foo () {return 0; }
7492 $ac_kw int foo () {return 0; }
7496 rm -f conftest.$ac_objext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7498 (eval $ac_compile) 2>&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -s conftest.$ac_objext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_cv_c_inline=$ac_kw; break
7510 echo "$as_me: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7513 rm -f conftest.$ac_objext conftest.$ac_ext
7517 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7518 echo "${ECHO_T}$ac_cv_c_inline" >&6
7519 case $ac_cv_c_inline in
7522 cat >>confdefs.h <<\_ACEOF
7526 *) cat >>confdefs.h <<_ACEOF
7527 #define inline $ac_cv_c_inline
7532 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7533 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7534 if test "${ac_cv_c_bigendian+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 # See if sys/param.h defines the BYTE_ORDER macro.
7538 cat >conftest.$ac_ext <<_ACEOF
7539 #line $LINENO "configure"
7540 #include "confdefs.h"
7541 #include <sys/types.h>
7542 #include <sys/param.h>
7544 #ifdef F77_DUMMY_MAIN
7548 int F77_DUMMY_MAIN() { return 1; }
7553 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7561 rm -f conftest.$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -s conftest.$ac_objext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 # It does; now see whether it defined to BIG_ENDIAN or not.
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 #include "confdefs.h"
7577 #include <sys/types.h>
7578 #include <sys/param.h>
7580 #ifdef F77_DUMMY_MAIN
7584 int F77_DUMMY_MAIN() { return 1; }
7589 #if BYTE_ORDER != BIG_ENDIAN
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7609 ac_cv_c_bigendian=yes
7611 echo "$as_me: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7613 ac_cv_c_bigendian=no
7615 rm -f conftest.$ac_objext conftest.$ac_ext
7617 echo "$as_me: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 # It does not; compile a test program.
7620 if test "$cross_compiling" = yes; then
7621 # try to guess the endianess by grep'ing values into an object file
7622 ac_cv_c_bigendian=unknown
7623 cat >conftest.$ac_ext <<_ACEOF
7624 #line $LINENO "configure"
7625 #include "confdefs.h"
7626 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7627 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7628 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7629 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7630 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7631 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7632 #ifdef F77_DUMMY_MAIN
7636 int F77_DUMMY_MAIN() { return 1; }
7641 _ascii (); _ebcdic ();
7646 rm -f conftest.$ac_objext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -s conftest.$ac_objext'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; }; then
7658 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7659 ac_cv_c_bigendian=yes
7661 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7662 if test "$ac_cv_c_bigendian" = unknown; then
7663 ac_cv_c_bigendian=no
7665 # finding both strings is unlikely to happen, but who knows?
7666 ac_cv_c_bigendian=unknown
7670 echo "$as_me: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7673 rm -f conftest.$ac_objext conftest.$ac_ext
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7681 /* Are we little or big endian? From Harbison&Steele. */
7685 char c[sizeof (long)];
7688 exit (u.c[sizeof (long) - 1] == 1);
7691 rm -f conftest$ac_exeext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_c_bigendian=no
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7708 ac_cv_c_bigendian=yes
7710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7713 rm -f conftest.$ac_objext conftest.$ac_ext
7715 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7716 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7717 case $ac_cv_c_bigendian in
7720 cat >>confdefs.h <<\_ACEOF
7721 #define WORDS_BIGENDIAN 1
7727 { { echo "$as_me:$LINENO: error: unknown endianess
7728 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7729 echo "$as_me: error: unknown endianess
7730 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7731 { (exit 1); exit 1; }; } ;;
7735 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7736 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7737 if test "${ac_cv_c_char_unsigned+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 cat >conftest.$ac_ext <<_ACEOF
7741 #line $LINENO "configure"
7742 #include "confdefs.h"
7743 $ac_includes_default
7744 #ifdef F77_DUMMY_MAIN
7748 int F77_DUMMY_MAIN() { return 1; }
7753 static int test_array [1 - 2 * !(((char) -1) < 0)];
7760 rm -f conftest.$ac_objext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7762 (eval $ac_compile) 2>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -s conftest.$ac_objext'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_cv_c_char_unsigned=no
7774 echo "$as_me: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7776 ac_cv_c_char_unsigned=yes
7778 rm -f conftest.$ac_objext conftest.$ac_ext
7780 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7781 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7782 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define __CHAR_UNSIGNED__ 1
7790 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7791 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7792 if test "${ac_cv_type_signal+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7796 #line $LINENO "configure"
7797 #include "confdefs.h"
7798 #include <sys/types.h>
7804 extern "C" void (*signal (int, void (*)(int)))(int);
7806 void (*signal ()) ();
7809 #ifdef F77_DUMMY_MAIN
7813 int F77_DUMMY_MAIN() { return 1; }
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -s conftest.$ac_objext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_cv_type_signal=void
7837 echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_type_signal=int
7841 rm -f conftest.$ac_objext conftest.$ac_ext
7843 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7844 echo "${ECHO_T}$ac_cv_type_signal" >&6
7846 cat >>confdefs.h <<_ACEOF
7847 #define RETSIGTYPE $ac_cv_type_signal
7851 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7852 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7853 if test "${ac_cv_type_uid_t+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.$ac_ext <<_ACEOF
7857 #line $LINENO "configure"
7858 #include "confdefs.h"
7859 #include <sys/types.h>
7862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7863 egrep "uid_t" >/dev/null 2>&1; then
7864 ac_cv_type_uid_t=yes
7871 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7872 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7873 if test $ac_cv_type_uid_t = no; then
7875 cat >>confdefs.h <<\_ACEOF
7880 cat >>confdefs.h <<\_ACEOF
7886 echo "$as_me:$LINENO: checking for mode_t" >&5
7887 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7888 if test "${ac_cv_type_mode_t+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line $LINENO "configure"
7893 #include "confdefs.h"
7894 $ac_includes_default
7895 #ifdef F77_DUMMY_MAIN
7899 int F77_DUMMY_MAIN() { return 1; }
7906 if (sizeof (mode_t))
7912 rm -f conftest.$ac_objext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7914 (eval $ac_compile) 2>&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -s conftest.$ac_objext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_type_mode_t=yes
7926 echo "$as_me: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 ac_cv_type_mode_t=no
7930 rm -f conftest.$ac_objext conftest.$ac_ext
7932 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7933 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7934 if test $ac_cv_type_mode_t = yes; then
7938 cat >>confdefs.h <<_ACEOF
7944 echo "$as_me:$LINENO: checking for off_t" >&5
7945 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7946 if test "${ac_cv_type_off_t+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7950 #line $LINENO "configure"
7951 #include "confdefs.h"
7952 $ac_includes_default
7953 #ifdef F77_DUMMY_MAIN
7957 int F77_DUMMY_MAIN() { return 1; }
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_cv_type_off_t=yes
7984 echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7988 rm -f conftest.$ac_objext conftest.$ac_ext
7990 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7991 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7992 if test $ac_cv_type_off_t = yes; then
7996 cat >>confdefs.h <<_ACEOF
8002 echo "$as_me:$LINENO: checking for size_t" >&5
8003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8004 if test "${ac_cv_type_size_t+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8009 #include "confdefs.h"
8010 $ac_includes_default
8011 #ifdef F77_DUMMY_MAIN
8015 int F77_DUMMY_MAIN() { return 1; }
8022 if (sizeof (size_t))
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_type_size_t=yes
8042 echo "$as_me: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 ac_cv_type_size_t=no
8046 rm -f conftest.$ac_objext conftest.$ac_ext
8048 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8049 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8050 if test $ac_cv_type_size_t = yes; then
8054 cat >>confdefs.h <<_ACEOF
8055 #define size_t unsigned
8060 echo "$as_me:$LINENO: checking for pid_t" >&5
8061 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8062 if test "${ac_cv_type_pid_t+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8067 #include "confdefs.h"
8068 $ac_includes_default
8069 #ifdef F77_DUMMY_MAIN
8073 int F77_DUMMY_MAIN() { return 1; }
8086 rm -f conftest.$ac_objext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088 (eval $ac_compile) 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 ac_cv_type_pid_t=yes
8100 echo "$as_me: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8104 rm -f conftest.$ac_objext conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8107 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8108 if test $ac_cv_type_pid_t = yes; then
8112 cat >>confdefs.h <<_ACEOF
8119 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8120 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8121 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 $ac_includes_default
8128 #ifdef F77_DUMMY_MAIN
8132 int F77_DUMMY_MAIN() { return 1; }
8137 static struct stat ac_aggr;
8138 if (ac_aggr.st_rdev)
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -s conftest.$ac_objext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_cv_member_struct_stat_st_rdev=yes
8158 echo "$as_me: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 ac_cv_member_struct_stat_st_rdev=no
8162 rm -f conftest.$ac_objext conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8165 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8166 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8168 cat >>confdefs.h <<_ACEOF
8169 #define HAVE_STRUCT_STAT_ST_RDEV 1
8173 cat >>confdefs.h <<\_ACEOF
8174 #define HAVE_ST_RDEV 1
8180 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8181 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8182 if test "${ac_cv_dirent_d_off+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8190 #include <sys/types.h>
8192 #ifdef F77_DUMMY_MAIN
8196 int F77_DUMMY_MAIN() { return 1; }
8201 struct dirent d; d.d_off;
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208 (eval $ac_compile) 2>&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -s conftest.$ac_objext'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 ac_cv_dirent_d_off=yes
8220 echo "$as_me: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8222 ac_cv_dirent_d_off=no
8224 rm -f conftest.$ac_objext conftest.$ac_ext
8226 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8227 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8228 if test $ac_cv_dirent_d_off = yes; then
8230 cat >>confdefs.h <<\_ACEOF
8231 #define HAVE_DIRENT_D_OFF 1
8236 echo "$as_me:$LINENO: checking for ino_t" >&5
8237 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8238 if test "${ac_cv_type_ino_t+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 cat >conftest.$ac_ext <<_ACEOF
8242 #line $LINENO "configure"
8243 #include "confdefs.h"
8244 $ac_includes_default
8245 #ifdef F77_DUMMY_MAIN
8249 int F77_DUMMY_MAIN() { return 1; }
8262 rm -f conftest.$ac_objext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264 (eval $ac_compile) 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -s conftest.$ac_objext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_type_ino_t=yes
8276 echo "$as_me: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8280 rm -f conftest.$ac_objext conftest.$ac_ext
8282 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8283 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8284 if test $ac_cv_type_ino_t = yes; then
8288 cat >>confdefs.h <<_ACEOF
8289 #define ino_t unsigned
8294 echo "$as_me:$LINENO: checking for loff_t" >&5
8295 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8296 if test "${ac_cv_type_loff_t+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 cat >conftest.$ac_ext <<_ACEOF
8300 #line $LINENO "configure"
8301 #include "confdefs.h"
8302 $ac_includes_default
8303 #ifdef F77_DUMMY_MAIN
8307 int F77_DUMMY_MAIN() { return 1; }
8314 if (sizeof (loff_t))
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322 (eval $ac_compile) 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_type_loff_t=yes
8334 echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 ac_cv_type_loff_t=no
8338 rm -f conftest.$ac_objext conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8341 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8342 if test $ac_cv_type_loff_t = yes; then
8346 cat >>confdefs.h <<_ACEOF
8347 #define loff_t off_t
8352 echo "$as_me:$LINENO: checking for offset_t" >&5
8353 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8354 if test "${ac_cv_type_offset_t+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360 $ac_includes_default
8361 #ifdef F77_DUMMY_MAIN
8365 int F77_DUMMY_MAIN() { return 1; }
8372 if (sizeof (offset_t))
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8380 (eval $ac_compile) 2>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8390 ac_cv_type_offset_t=yes
8392 echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8394 ac_cv_type_offset_t=no
8396 rm -f conftest.$ac_objext conftest.$ac_ext
8398 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8399 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8400 if test $ac_cv_type_offset_t = yes; then
8404 cat >>confdefs.h <<_ACEOF
8405 #define offset_t loff_t
8410 echo "$as_me:$LINENO: checking for ssize_t" >&5
8411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8412 if test "${ac_cv_type_ssize_t+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 #include "confdefs.h"
8418 $ac_includes_default
8419 #ifdef F77_DUMMY_MAIN
8423 int F77_DUMMY_MAIN() { return 1; }
8430 if (sizeof (ssize_t))
8436 rm -f conftest.$ac_objext
8437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438 (eval $ac_compile) 2>&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_type_ssize_t=yes
8450 echo "$as_me: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8452 ac_cv_type_ssize_t=no
8454 rm -f conftest.$ac_objext conftest.$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8457 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8458 if test $ac_cv_type_ssize_t = yes; then
8462 cat >>confdefs.h <<_ACEOF
8468 echo "$as_me:$LINENO: checking for wchar_t" >&5
8469 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8470 if test "${ac_cv_type_wchar_t+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8474 #line $LINENO "configure"
8475 #include "confdefs.h"
8476 $ac_includes_default
8477 #ifdef F77_DUMMY_MAIN
8481 int F77_DUMMY_MAIN() { return 1; }
8488 if (sizeof (wchar_t))
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 ac_cv_type_wchar_t=yes
8508 echo "$as_me: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8510 ac_cv_type_wchar_t=no
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8515 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8516 if test $ac_cv_type_wchar_t = yes; then
8520 cat >>confdefs.h <<_ACEOF
8521 #define wchar_t unsigned short
8527 ############################################
8528 # for cups support we need libcups, and a handful of header files
8530 # Check whether --enable-cups or --disable-cups was given.
8531 if test "${enable_cups+set}" = set; then
8532 enableval="$enable_cups"
8536 if test x$enable_cups != xno; then
8537 # Extract the first word of "cups-config", so it can be a program name with args.
8538 set dummy cups-config; ac_word=$2
8539 echo "$as_me:$LINENO: checking for $ac_word" >&5
8540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8541 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 case $CUPS_CONFIG in
8546 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556 ac_cv_path_CUPS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 CUPS_CONFIG=$ac_cv_path_CUPS_CONFIG
8568 if test -n "$CUPS_CONFIG"; then
8569 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8570 echo "${ECHO_T}$CUPS_CONFIG" >&6
8572 echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6
8577 if test "x$CUPS_CONFIG" != x; then
8579 cat >>confdefs.h <<\_ACEOF
8583 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
8584 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8585 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
8589 ############################################
8590 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8592 for ac_func in dlopen
8594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8595 echo "$as_me:$LINENO: checking for $ac_func" >&5
8596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_var+set}\" = set"; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8602 #include "confdefs.h"
8603 /* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char $ac_func (); below. */
8606 /* Override any gcc2 internal prototype to avoid an error. */
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8615 #ifdef F77_DUMMY_MAIN
8619 int F77_DUMMY_MAIN() { return 1; }
8624 /* The GNU C library defines this for functions which it implements
8625 to always fail with ENOSYS. Some functions are actually named
8626 something starting with __ and the normal name is an alias. */
8627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 eval "$as_ac_var=yes"
8651 echo "$as_me: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8653 eval "$as_ac_var=no"
8655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8659 if test `eval echo '${'$as_ac_var'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8667 if test x"$ac_cv_func_dlopen" = x"no"; then
8668 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 ac_check_lib_save_LIBS=$LIBS
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8679 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8686 #ifdef F77_DUMMY_MAIN
8690 int F77_DUMMY_MAIN() { return 1; }
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8702 (eval $ac_link) 2>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_lib_dl_dlopen=yes
8714 echo "$as_me: failed program was:" >&5
8715 cat conftest.$ac_ext >&5
8716 ac_cv_lib_dl_dlopen=no
8718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8719 LIBS=$ac_check_lib_save_LIBS
8721 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8722 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8723 if test $ac_cv_lib_dl_dlopen = yes; then
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_DLOPEN 1
8733 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8735 ############################################
8736 # check if the compiler can do immediate structures
8737 echo "$as_me:$LINENO: checking for immediate structures" >&5
8738 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8739 if test "${samba_cv_immediate_structures+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 #line $LINENO "configure"
8745 #include "confdefs.h"
8748 #ifdef F77_DUMMY_MAIN
8752 int F77_DUMMY_MAIN() { return 1; }
8758 typedef struct {unsigned x;} FOOBAR;
8759 #define X_FOOBAR(x) ((FOOBAR) { x })
8760 #define FOO_ONE X_FOOBAR(1)
8772 rm -f conftest.$ac_objext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8774 (eval $ac_compile) 2>&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 samba_cv_immediate_structures=yes
8786 echo "$as_me: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 samba_cv_immediate_structures=no
8790 rm -f conftest.$ac_objext conftest.$ac_ext
8792 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8793 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8794 if test x"$samba_cv_immediate_structures" = x"yes"; then
8796 cat >>confdefs.h <<\_ACEOF
8797 #define HAVE_IMMEDIATE_STRUCTURES 1
8802 ############################################
8803 # check for unix domain sockets
8804 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8805 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8806 if test "${samba_cv_unixsocket+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8814 #include <sys/types.h>
8817 #include <sys/socket.h>
8819 #ifdef F77_DUMMY_MAIN
8823 int F77_DUMMY_MAIN() { return 1; }
8829 struct sockaddr_un sunaddr;
8830 sunaddr.sun_family = AF_UNIX;
8836 rm -f conftest.$ac_objext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838 (eval $ac_compile) 2>&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); } &&
8842 { ac_try='test -s conftest.$ac_objext'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; }; then
8848 samba_cv_unixsocket=yes
8850 echo "$as_me: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8852 samba_cv_unixsocket=no
8854 rm -f conftest.$ac_objext conftest.$ac_ext
8856 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8857 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8858 if test x"$samba_cv_unixsocket" = x"yes"; then
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_UNIXSOCKET 1
8867 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8868 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8869 if test "${samba_cv_socklen_t+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8875 #include "confdefs.h"
8877 #include <sys/types.h>
8882 #include <sys/socket.h>
8883 #ifdef F77_DUMMY_MAIN
8887 int F77_DUMMY_MAIN() { return 1; }
8897 rm -f conftest.$ac_objext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899 (eval $ac_compile) 2>&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -s conftest.$ac_objext'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 samba_cv_socklen_t=yes
8911 echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 samba_cv_socklen_t=no
8915 rm -f conftest.$ac_objext conftest.$ac_ext
8917 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8918 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8919 if test x"$samba_cv_socklen_t" = x"yes"; then
8921 cat >>confdefs.h <<\_ACEOF
8922 #define HAVE_SOCKLEN_T_TYPE 1
8927 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8928 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8929 if test "${samba_cv_sig_atomic_t+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 cat >conftest.$ac_ext <<_ACEOF
8934 #line $LINENO "configure"
8935 #include "confdefs.h"
8937 #include <sys/types.h>
8943 #ifdef F77_DUMMY_MAIN
8947 int F77_DUMMY_MAIN() { return 1; }
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -s conftest.$ac_objext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 samba_cv_sig_atomic_t=yes
8971 echo "$as_me: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8973 samba_cv_sig_atomic_t=no
8975 rm -f conftest.$ac_objext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
8978 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
8979 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
8981 cat >>confdefs.h <<\_ACEOF
8982 #define HAVE_SIG_ATOMIC_T_TYPE 1
8987 # stupid headers have the functions but no declaration. grrrr.
8989 echo "$as_me:$LINENO: checking for errno declaration" >&5
8990 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
8991 if test "${ac_cv_have_errno_decl+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8996 #line $LINENO "configure"
8997 #include "confdefs.h"
8999 #ifdef F77_DUMMY_MAIN
9003 int F77_DUMMY_MAIN() { return 1; }
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -s conftest.$ac_objext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_have_errno_decl=yes
9027 echo "$as_me: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9029 ac_cv_have_errno_decl=no
9031 rm -f conftest.$ac_objext conftest.$ac_ext
9033 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9034 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9035 if test x"$ac_cv_have_errno_decl" = x"yes"; then
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_ERRNO_DECL 1
9044 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9045 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9046 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line $LINENO "configure"
9052 #include "confdefs.h"
9054 #ifdef F77_DUMMY_MAIN
9058 int F77_DUMMY_MAIN() { return 1; }
9063 int i = (int)setresuid
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 (eval $ac_compile) 2>&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -s conftest.$ac_objext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_cv_have_setresuid_decl=yes
9082 echo "$as_me: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084 ac_cv_have_setresuid_decl=no
9086 rm -f conftest.$ac_objext conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9089 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9090 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_SETRESUID_DECL 1
9099 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9100 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9101 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 #include "confdefs.h"
9109 #ifdef F77_DUMMY_MAIN
9113 int F77_DUMMY_MAIN() { return 1; }
9118 int i = (int)setresgid
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -s conftest.$ac_objext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_have_setresgid_decl=yes
9137 echo "$as_me: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 ac_cv_have_setresgid_decl=no
9141 rm -f conftest.$ac_objext conftest.$ac_ext
9143 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9144 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9145 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
9147 cat >>confdefs.h <<\_ACEOF
9148 #define HAVE_SETRESGID_DECL 1
9154 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9155 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9156 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 cat >conftest.$ac_ext <<_ACEOF
9161 #line $LINENO "configure"
9162 #include "confdefs.h"
9164 #ifdef F77_DUMMY_MAIN
9168 int F77_DUMMY_MAIN() { return 1; }
9173 int i = (int)asprintf
9178 rm -f conftest.$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } &&
9184 { ac_try='test -s conftest.$ac_objext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
9190 ac_cv_have_asprintf_decl=yes
9192 echo "$as_me: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9194 ac_cv_have_asprintf_decl=no
9196 rm -f conftest.$ac_objext conftest.$ac_ext
9198 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9199 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9200 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
9202 cat >>confdefs.h <<\_ACEOF
9203 #define HAVE_ASPRINTF_DECL 1
9209 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9210 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9211 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 #include "confdefs.h"
9219 #ifdef F77_DUMMY_MAIN
9223 int F77_DUMMY_MAIN() { return 1; }
9228 int i = (int)vasprintf
9233 rm -f conftest.$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } &&
9239 { ac_try='test -s conftest.$ac_objext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_cv_have_vasprintf_decl=yes
9247 echo "$as_me: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 ac_cv_have_vasprintf_decl=no
9251 rm -f conftest.$ac_objext conftest.$ac_ext
9253 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9254 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9255 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
9257 cat >>confdefs.h <<\_ACEOF
9258 #define HAVE_VASPRINTF_DECL 1
9264 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9265 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9266 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9274 #ifdef F77_DUMMY_MAIN
9278 int F77_DUMMY_MAIN() { return 1; }
9283 int i = (int)vsnprintf
9288 rm -f conftest.$ac_objext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -s conftest.$ac_objext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 ac_cv_have_vsnprintf_decl=yes
9302 echo "$as_me: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 ac_cv_have_vsnprintf_decl=no
9306 rm -f conftest.$ac_objext conftest.$ac_ext
9308 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9309 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9310 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
9312 cat >>confdefs.h <<\_ACEOF
9313 #define HAVE_VSNPRINTF_DECL 1
9319 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9320 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9321 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9329 #ifdef F77_DUMMY_MAIN
9333 int F77_DUMMY_MAIN() { return 1; }
9338 int i = (int)snprintf
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_cv_have_snprintf_decl=yes
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 ac_cv_have_snprintf_decl=no
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9364 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9365 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_SNPRINTF_DECL 1
9374 # and glibc has setresuid under linux but the function does
9375 # nothing until kernel 2.1.44! very dumb.
9376 echo "$as_me:$LINENO: checking for real setresuid" >&5
9377 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9378 if test "${samba_cv_have_setresuid+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9382 if test "$cross_compiling" = yes; then
9383 samba_cv_have_setresuid=cross
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 #include "confdefs.h"
9389 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
9391 rm -f conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 samba_cv_have_setresuid=yes
9404 echo "$as_me: program exited with status $ac_status" >&5
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9408 samba_cv_have_setresuid=no
9410 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: $samba_cv_have_setresuid" >&5
9414 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9415 if test x"$samba_cv_have_setresuid" = x"yes"; then
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_SETRESUID 1
9423 # Do the same check for setresguid...
9425 echo "$as_me:$LINENO: checking for real setresgid" >&5
9426 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9427 if test "${samba_cv_have_setresgid+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 if test "$cross_compiling" = yes; then
9432 samba_cv_have_setresgid=cross
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 #include "confdefs.h"
9439 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9441 rm -f conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 samba_cv_have_setresgid=yes
9454 echo "$as_me: program exited with status $ac_status" >&5
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9458 samba_cv_have_setresgid=no
9460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9464 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9465 if test x"$samba_cv_have_setresgid" = x"yes"; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_SETRESGID 1
9473 echo "$as_me:$LINENO: checking for working memcmp" >&5
9474 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9475 if test "${ac_cv_func_memcmp_working+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 if test "$cross_compiling" = yes; then
9479 ac_cv_func_memcmp_working=no
9481 cat >conftest.$ac_ext <<_ACEOF
9482 #line $LINENO "configure"
9483 #include "confdefs.h"
9485 #ifdef F77_DUMMY_MAIN
9489 int F77_DUMMY_MAIN() { return 1; }
9495 /* Some versions of memcmp are not 8-bit clean. */
9496 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9497 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9500 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9501 or more and with at least one buffer not starting on a 4-byte boundary.
9502 William Lewis provided this test program. */
9507 for (i = 0; i < 4; i++)
9511 strcpy (a, "--------01111111");
9512 strcpy (b, "--------10000000");
9513 if (memcmp (a, b, 16) >= 0)
9523 rm -f conftest$ac_exeext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_func_memcmp_working=yes
9536 echo "$as_me: program exited with status $ac_status" >&5
9537 echo "$as_me: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9540 ac_cv_func_memcmp_working=no
9542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9545 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9546 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9547 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9550 ###############################################
9551 # test for where we get crypt() from
9553 for ac_func in crypt
9555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9556 echo "$as_me:$LINENO: checking for $ac_func" >&5
9557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9558 if eval "test \"\${$as_ac_var+set}\" = set"; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 #line $LINENO "configure"
9563 #include "confdefs.h"
9564 /* System header to define __stub macros and hopefully few prototypes,
9565 which can conflict with char $ac_func (); below. */
9567 /* Override any gcc2 internal prototype to avoid an error. */
9571 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */
9576 #ifdef F77_DUMMY_MAIN
9580 int F77_DUMMY_MAIN() { return 1; }
9585 /* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 eval "$as_ac_var=yes"
9612 echo "$as_me: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 eval "$as_ac_var=no"
9616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9620 if test `eval echo '${'$as_ac_var'}'` = yes; then
9621 cat >>confdefs.h <<_ACEOF
9622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 if test x"$ac_cv_func_crypt" = x"no"; then
9629 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
9630 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
9631 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-lcrypt $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9638 #include "confdefs.h"
9640 /* Override any gcc2 internal prototype to avoid an error. */
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9647 #ifdef F77_DUMMY_MAIN
9651 int F77_DUMMY_MAIN() { return 1; }
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; }; then
9673 ac_cv_lib_crypt_crypt=yes
9675 echo "$as_me: failed program was:" >&5
9676 cat conftest.$ac_ext >&5
9677 ac_cv_lib_crypt_crypt=no
9679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9682 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
9683 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
9684 if test $ac_cv_lib_crypt_crypt = yes; then
9685 AUTHLIBS="$AUTHLIBS -lcrypt";
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_CRYPT 1
9696 ###############################################
9697 # Readline included by default unless explicitly asked not to
9698 test "${with_readline+set}" != "set" && with_readline=yes
9700 # test for where we get readline() from
9701 echo "$as_me:$LINENO: checking whether to use readline" >&5
9702 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9704 # Check whether --with-readline or --without-readline was given.
9705 if test "${with_readline+set}" = set; then
9706 withval="$with_readline"
9707 case "$with_readline" in
9709 echo "$as_me:$LINENO: result: yes" >&5
9710 echo "${ECHO_T}yes" >&6
9715 for ac_header in readline.h history.h readline/readline.h
9717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9727 # Is the header compilable?
9728 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line $LINENO "configure"
9732 #include "confdefs.h"
9733 $ac_includes_default
9734 #include <$ac_header>
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -s conftest.$ac_objext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 ac_header_compiler=yes
9750 echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9752 ac_header_compiler=no
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9756 echo "${ECHO_T}$ac_header_compiler" >&6
9758 # Is the header present?
9759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9763 #include "confdefs.h"
9764 #include <$ac_header>
9766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9769 egrep -v '^ *\+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } >/dev/null; then
9774 if test -s conftest.err; then
9775 ac_cpp_err=$ac_c_preproc_warn_flag
9782 if test -z "$ac_cpp_err"; then
9783 ac_header_preproc=yes
9785 echo "$as_me: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9787 ac_header_preproc=no
9789 rm -f conftest.err conftest.$ac_ext
9790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9791 echo "${ECHO_T}$ac_header_preproc" >&6
9793 # So? What about this header?
9794 case $ac_header_compiler:$ac_header_preproc in
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9808 echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 eval "$as_ac_Header=$ac_header_preproc"
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9829 for ac_header in readline/history.h
9831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9833 echo "$as_me:$LINENO: checking for $ac_header" >&5
9834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9841 # Is the header compilable?
9842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9845 #line $LINENO "configure"
9846 #include "confdefs.h"
9847 $ac_includes_default
9848 #include <$ac_header>
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest.$ac_objext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 ac_header_compiler=yes
9864 echo "$as_me: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 ac_header_compiler=no
9868 rm -f conftest.$ac_objext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870 echo "${ECHO_T}$ac_header_compiler" >&6
9872 # Is the header present?
9873 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9876 #line $LINENO "configure"
9877 #include "confdefs.h"
9878 #include <$ac_header>
9880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9883 egrep -v '^ *\+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev/null; then
9888 if test -s conftest.err; then
9889 ac_cpp_err=$ac_c_preproc_warn_flag
9896 if test -z "$ac_cpp_err"; then
9897 ac_header_preproc=yes
9899 echo "$as_me: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 ac_header_preproc=no
9903 rm -f conftest.err conftest.$ac_ext
9904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9905 echo "${ECHO_T}$ac_header_preproc" >&6
9907 # So? What about this header?
9908 case $ac_header_compiler:$ac_header_preproc in
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9922 echo "$as_me:$LINENO: checking for $ac_header" >&5
9923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 eval "$as_ac_Header=$ac_header_preproc"
9929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9945 for ac_header in readline.h readline/readline.h
9947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo "$as_me:$LINENO: checking for $ac_header" >&5
9950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957 # Is the header compilable?
9958 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9962 #include "confdefs.h"
9963 $ac_includes_default
9964 #include <$ac_header>
9966 rm -f conftest.$ac_objext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9968 (eval $ac_compile) 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -s conftest.$ac_objext'
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_header_compiler=yes
9980 echo "$as_me: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9982 ac_header_compiler=no
9984 rm -f conftest.$ac_objext conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9986 echo "${ECHO_T}$ac_header_compiler" >&6
9988 # Is the header present?
9989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line $LINENO "configure"
9993 #include "confdefs.h"
9994 #include <$ac_header>
9996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9999 egrep -v '^ *\+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } >/dev/null; then
10004 if test -s conftest.err; then
10005 ac_cpp_err=$ac_c_preproc_warn_flag
10012 if test -z "$ac_cpp_err"; then
10013 ac_header_preproc=yes
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_header_preproc=no
10019 rm -f conftest.err conftest.$ac_ext
10020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10021 echo "${ECHO_T}$ac_header_preproc" >&6
10023 # So? What about this header?
10024 case $ac_header_compiler:$ac_header_preproc in
10026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10038 echo "$as_me:$LINENO: checking for $ac_header" >&5
10039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 eval "$as_ac_Header=$ac_header_preproc"
10045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10050 cat >>confdefs.h <<_ACEOF
10051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10054 for termlib in ncurses curses termcap terminfo termlib; do
10055 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10056 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10057 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10061 ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-l${termlib} $LIBS"
10063 cat >conftest.$ac_ext <<_ACEOF
10064 #line $LINENO "configure"
10065 #include "confdefs.h"
10067 /* Override any gcc2 internal prototype to avoid an error. */
10071 /* We use char because int might match the return type of a gcc2
10072 builtin and then its argument prototype would still apply. */
10074 #ifdef F77_DUMMY_MAIN
10075 # ifdef __cplusplus
10078 int F77_DUMMY_MAIN() { return 1; }
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10090 (eval $ac_link) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 eval "$as_ac_Lib=yes"
10102 echo "$as_me: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 eval "$as_ac_Lib=no"
10106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10110 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10111 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10112 TERMLIBS="-l${termlib}"; break
10116 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10117 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10118 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lreadline $TERMLIBS $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 #line $LINENO "configure"
10125 #include "confdefs.h"
10127 /* Override any gcc2 internal prototype to avoid an error. */
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10133 char rl_callback_handler_install ();
10134 #ifdef F77_DUMMY_MAIN
10135 # ifdef __cplusplus
10138 int F77_DUMMY_MAIN() { return 1; }
10143 rl_callback_handler_install ();
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
10154 { ac_try='test -s conftest$ac_exeext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_cv_lib_readline_rl_callback_handler_install=yes
10162 echo "$as_me: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10164 ac_cv_lib_readline_rl_callback_handler_install=no
10166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10169 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10170 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10171 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10172 TERMLIBS="-lreadline $TERMLIBS"
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_LIBREADLINE 1
10189 echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6
10193 echo "$as_me:$LINENO: result: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10196 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10197 # alternate readline path
10198 _ldflags=${LDFLAGS}
10199 _cppflags=${CPPFLAGS}
10201 # Add additional search path
10202 LDFLAGS="-L$with_readline/lib $LDFLAGS"
10203 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10208 for ac_header in readline.h history.h readline/readline.h
10210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10212 echo "$as_me:$LINENO: checking for $ac_header" >&5
10213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10220 # Is the header compilable?
10221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 #include "confdefs.h"
10226 $ac_includes_default
10227 #include <$ac_header>
10229 rm -f conftest.$ac_objext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10231 (eval $ac_compile) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 ac_header_compiler=yes
10243 echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 ac_header_compiler=no
10247 rm -f conftest.$ac_objext conftest.$ac_ext
10248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10249 echo "${ECHO_T}$ac_header_compiler" >&6
10251 # Is the header present?
10252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line $LINENO "configure"
10256 #include "confdefs.h"
10257 #include <$ac_header>
10259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10262 egrep -v '^ *\+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } >/dev/null; then
10267 if test -s conftest.err; then
10268 ac_cpp_err=$ac_c_preproc_warn_flag
10275 if test -z "$ac_cpp_err"; then
10276 ac_header_preproc=yes
10278 echo "$as_me: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 ac_header_preproc=no
10282 rm -f conftest.err conftest.$ac_ext
10283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10284 echo "${ECHO_T}$ac_header_preproc" >&6
10286 # So? What about this header?
10287 case $ac_header_compiler:$ac_header_preproc in
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10301 echo "$as_me:$LINENO: checking for $ac_header" >&5
10302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 eval "$as_ac_Header=$ac_header_preproc"
10308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10313 cat >>confdefs.h <<_ACEOF
10314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10322 for ac_header in readline/history.h
10324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10326 echo "$as_me:$LINENO: checking for $ac_header" >&5
10327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10334 # Is the header compilable?
10335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10337 cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 #include "confdefs.h"
10340 $ac_includes_default
10341 #include <$ac_header>
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345 (eval $ac_compile) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } &&
10349 { ac_try='test -s conftest.$ac_objext'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_header_compiler=yes
10357 echo "$as_me: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10359 ac_header_compiler=no
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10363 echo "${ECHO_T}$ac_header_compiler" >&6
10365 # Is the header present?
10366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10369 #line $LINENO "configure"
10370 #include "confdefs.h"
10371 #include <$ac_header>
10373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10376 egrep -v '^ *\+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } >/dev/null; then
10381 if test -s conftest.err; then
10382 ac_cpp_err=$ac_c_preproc_warn_flag
10389 if test -z "$ac_cpp_err"; then
10390 ac_header_preproc=yes
10392 echo "$as_me: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 ac_header_preproc=no
10396 rm -f conftest.err conftest.$ac_ext
10397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10398 echo "${ECHO_T}$ac_header_preproc" >&6
10400 # So? What about this header?
10401 case $ac_header_compiler:$ac_header_preproc in
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10415 echo "$as_me:$LINENO: checking for $ac_header" >&5
10416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 eval "$as_ac_Header=$ac_header_preproc"
10422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438 for ac_header in readline.h readline/readline.h
10440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo "$as_me:$LINENO: checking for $ac_header" >&5
10443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10450 # Is the header compilable?
10451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10453 cat >conftest.$ac_ext <<_ACEOF
10454 #line $LINENO "configure"
10455 #include "confdefs.h"
10456 $ac_includes_default
10457 #include <$ac_header>
10459 rm -f conftest.$ac_objext
10460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461 (eval $ac_compile) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -s conftest.$ac_objext'
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 ac_header_compiler=yes
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10475 ac_header_compiler=no
10477 rm -f conftest.$ac_objext conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10479 echo "${ECHO_T}$ac_header_compiler" >&6
10481 # Is the header present?
10482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10484 cat >conftest.$ac_ext <<_ACEOF
10485 #line $LINENO "configure"
10486 #include "confdefs.h"
10487 #include <$ac_header>
10489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10492 egrep -v '^ *\+' conftest.er1 >conftest.err
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } >/dev/null; then
10497 if test -s conftest.err; then
10498 ac_cpp_err=$ac_c_preproc_warn_flag
10505 if test -z "$ac_cpp_err"; then
10506 ac_header_preproc=yes
10508 echo "$as_me: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10510 ac_header_preproc=no
10512 rm -f conftest.err conftest.$ac_ext
10513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10514 echo "${ECHO_T}$ac_header_preproc" >&6
10516 # So? What about this header?
10517 case $ac_header_compiler:$ac_header_preproc in
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 eval "$as_ac_Header=$ac_header_preproc"
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543 cat >>confdefs.h <<_ACEOF
10544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10547 for termlib in ncurses curses termcap terminfo termlib; do
10548 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10549 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10550 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10551 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-l${termlib} $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 #line $LINENO "configure"
10558 #include "confdefs.h"
10560 /* Override any gcc2 internal prototype to avoid an error. */
10564 /* We use char because int might match the return type of a gcc2
10565 builtin and then its argument prototype would still apply. */
10567 #ifdef F77_DUMMY_MAIN
10568 # ifdef __cplusplus
10571 int F77_DUMMY_MAIN() { return 1; }
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583 (eval $ac_link) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } &&
10587 { ac_try='test -s conftest$ac_exeext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 eval "$as_ac_Lib=yes"
10595 echo "$as_me: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 eval "$as_ac_Lib=no"
10599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10603 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10604 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10605 TERMLIBS="-l${termlib}"; break
10609 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10610 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10611 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10614 ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-lreadline $TERMLIBS $LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 #line $LINENO "configure"
10618 #include "confdefs.h"
10620 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char rl_callback_handler_install ();
10627 #ifdef F77_DUMMY_MAIN
10628 # ifdef __cplusplus
10631 int F77_DUMMY_MAIN() { return 1; }
10636 rl_callback_handler_install ();
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10643 (eval $ac_link) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -s conftest$ac_exeext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_lib_readline_rl_callback_handler_install=yes
10655 echo "$as_me: failed program was:" >&5
10656 cat conftest.$ac_ext >&5
10657 ac_cv_lib_readline_rl_callback_handler_install=no
10659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 LIBS=$ac_check_lib_save_LIBS
10662 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10663 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10664 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10665 TERMLDFLAGS="-L$with_readline/lib"
10666 TERMCPPFLAGS="-I$with_readline/include"
10667 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
10668 TERMLIBS="-lreadline $TERMLIBS"
10670 cat >>confdefs.h <<\_ACEOF
10671 #define HAVE_LIBREADLINE 1
10676 TERMLIBS= CPPFLAGS=$_cppflags
10688 echo "$as_me:$LINENO: result: no" >&5
10689 echo "${ECHO_T}no" >&6
10695 # The readline API changed slightly from readline3 to readline4, so
10696 # code will generate warnings on one of them unless we have a few
10698 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10699 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10700 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-lreadline $TERMLIBS $LIBS"
10705 cat >conftest.$ac_ext <<_ACEOF
10706 #line $LINENO "configure"
10707 #include "confdefs.h"
10709 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10715 char rl_completion_matches ();
10716 #ifdef F77_DUMMY_MAIN
10717 # ifdef __cplusplus
10720 int F77_DUMMY_MAIN() { return 1; }
10725 rl_completion_matches ();
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732 (eval $ac_link) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 ac_cv_lib_readline_rl_completion_matches=yes
10744 echo "$as_me: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10746 ac_cv_lib_readline_rl_completion_matches=no
10748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10751 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10752 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10753 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10755 cat >>confdefs.h <<\_ACEOF
10756 #define HAVE_NEW_LIBREADLINE 1
10762 # The following test taken from the cvs sources
10763 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10764 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10765 # libsocket.so which has a bad implementation of gethostbyname (it
10766 # only looks in /etc/hosts), so we only look for -lsocket if we need
10769 for ac_func in connect
10771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10772 echo "$as_me:$LINENO: checking for $ac_func" >&5
10773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10774 if eval "test \"\${$as_ac_var+set}\" = set"; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 cat >conftest.$ac_ext <<_ACEOF
10778 #line $LINENO "configure"
10779 #include "confdefs.h"
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func (); below. */
10782 #include <assert.h>
10783 /* Override any gcc2 internal prototype to avoid an error. */
10787 /* We use char because int might match the return type of a gcc2
10788 builtin and then its argument prototype would still apply. */
10792 #ifdef F77_DUMMY_MAIN
10793 # ifdef __cplusplus
10796 int F77_DUMMY_MAIN() { return 1; }
10801 /* The GNU C library defines this for functions which it implements
10802 to always fail with ENOSYS. Some functions are actually named
10803 something starting with __ and the normal name is an alias. */
10804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -s conftest$ac_exeext'
10821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822 (eval $ac_try) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 eval "$as_ac_var=yes"
10828 echo "$as_me: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 eval "$as_ac_var=no"
10832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10836 if test `eval echo '${'$as_ac_var'}'` = yes; then
10837 cat >>confdefs.h <<_ACEOF
10838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10844 if test x"$ac_cv_func_connect" = x"no"; then
10848 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10849 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10850 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 ac_check_lib_save_LIBS=$LIBS
10854 LIBS="-lnsl_s $LIBS"
10855 cat >conftest.$ac_ext <<_ACEOF
10856 #line $LINENO "configure"
10857 #include "confdefs.h"
10859 /* Override any gcc2 internal prototype to avoid an error. */
10863 /* We use char because int might match the return type of a gcc2
10864 builtin and then its argument prototype would still apply. */
10866 #ifdef F77_DUMMY_MAIN
10867 # ifdef __cplusplus
10870 int F77_DUMMY_MAIN() { return 1; }
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882 (eval $ac_link) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -s conftest$ac_exeext'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
10892 ac_cv_lib_nsl_s_printf=yes
10894 echo "$as_me: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 ac_cv_lib_nsl_s_printf=no
10898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10901 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10902 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10903 if test $ac_cv_lib_nsl_s_printf = yes; then
10904 cat >>confdefs.h <<_ACEOF
10905 #define HAVE_LIBNSL_S 1
10908 LIBS="-lnsl_s $LIBS"
10916 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10917 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10918 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10921 ac_check_lib_save_LIBS=$LIBS
10923 cat >conftest.$ac_ext <<_ACEOF
10924 #line $LINENO "configure"
10925 #include "confdefs.h"
10927 /* Override any gcc2 internal prototype to avoid an error. */
10931 /* We use char because int might match the return type of a gcc2
10932 builtin and then its argument prototype would still apply. */
10934 #ifdef F77_DUMMY_MAIN
10935 # ifdef __cplusplus
10938 int F77_DUMMY_MAIN() { return 1; }
10948 rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10950 (eval $ac_link) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 ac_cv_lib_nsl_printf=yes
10962 echo "$as_me: failed program was:" >&5
10963 cat conftest.$ac_ext >&5
10964 ac_cv_lib_nsl_printf=no
10966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10970 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10971 if test $ac_cv_lib_nsl_printf = yes; then
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_LIBNSL 1
10984 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10985 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10986 if test "${ac_cv_lib_socket_connect+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lsocket $LIBS"
10991 cat >conftest.$ac_ext <<_ACEOF
10992 #line $LINENO "configure"
10993 #include "confdefs.h"
10995 /* Override any gcc2 internal prototype to avoid an error. */
10999 /* We use char because int might match the return type of a gcc2
11000 builtin and then its argument prototype would still apply. */
11002 #ifdef F77_DUMMY_MAIN
11003 # ifdef __cplusplus
11006 int F77_DUMMY_MAIN() { return 1; }
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_cv_lib_socket_connect=yes
11030 echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 ac_cv_lib_socket_connect=no
11034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11035 LIBS=$ac_check_lib_save_LIBS
11037 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11038 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11039 if test $ac_cv_lib_socket_connect = yes; then
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_LIBSOCKET 1
11044 LIBS="-lsocket $LIBS"
11052 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11053 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11054 if test "${ac_cv_lib_inet_connect+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 ac_check_lib_save_LIBS=$LIBS
11058 LIBS="-linet $LIBS"
11059 cat >conftest.$ac_ext <<_ACEOF
11060 #line $LINENO "configure"
11061 #include "confdefs.h"
11063 /* Override any gcc2 internal prototype to avoid an error. */
11067 /* We use char because int might match the return type of a gcc2
11068 builtin and then its argument prototype would still apply. */
11070 #ifdef F77_DUMMY_MAIN
11071 # ifdef __cplusplus
11074 int F77_DUMMY_MAIN() { return 1; }
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11086 (eval $ac_link) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } &&
11090 { ac_try='test -s conftest$ac_exeext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 ac_cv_lib_inet_connect=yes
11098 echo "$as_me: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11100 ac_cv_lib_inet_connect=no
11102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11103 LIBS=$ac_check_lib_save_LIBS
11105 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11106 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11107 if test $ac_cv_lib_inet_connect = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define HAVE_LIBINET 1
11112 LIBS="-linet $LIBS"
11117 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
11118 test x"$ac_cv_lib_inet_connect" = x"yes"; then
11119 # ac_cv_func_connect=yes
11120 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_CONNECT 1
11129 ###############################################
11130 # test for where we get get_yp_default_domain() from
11132 for ac_func in yp_get_default_domain
11134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11135 echo "$as_me:$LINENO: checking for $ac_func" >&5
11136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11137 if eval "test \"\${$as_ac_var+set}\" = set"; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 cat >conftest.$ac_ext <<_ACEOF
11141 #line $LINENO "configure"
11142 #include "confdefs.h"
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below. */
11145 #include <assert.h>
11146 /* Override any gcc2 internal prototype to avoid an error. */
11150 /* We use char because int might match the return type of a gcc2
11151 builtin and then its argument prototype would still apply. */
11155 #ifdef F77_DUMMY_MAIN
11156 # ifdef __cplusplus
11159 int F77_DUMMY_MAIN() { return 1; }
11164 /* The GNU C library defines this for functions which it implements
11165 to always fail with ENOSYS. Some functions are actually named
11166 something starting with __ and the normal name is an alias. */
11167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11177 rm -f conftest.$ac_objext conftest$ac_exeext
11178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11179 (eval $ac_link) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest$ac_exeext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 eval "$as_ac_var=yes"
11191 echo "$as_me: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 eval "$as_ac_var=no"
11195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11199 if test `eval echo '${'$as_ac_var'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11207 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
11208 echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
11209 echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
11210 if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 ac_check_lib_save_LIBS=$LIBS
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 #include "confdefs.h"
11219 /* Override any gcc2 internal prototype to avoid an error. */
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char yp_get_default_domain ();
11226 #ifdef F77_DUMMY_MAIN
11227 # ifdef __cplusplus
11230 int F77_DUMMY_MAIN() { return 1; }
11235 yp_get_default_domain ();
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 ac_cv_lib_nsl_yp_get_default_domain=yes
11254 echo "$as_me: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 ac_cv_lib_nsl_yp_get_default_domain=no
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
11262 echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
11263 if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
11264 LIBS="$LIBS -lnsl";
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
11274 # Check if we have execl, if not we need to compile smbrun.
11276 for ac_func in execl
11278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11279 echo "$as_me:$LINENO: checking for $ac_func" >&5
11280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11281 if eval "test \"\${$as_ac_var+set}\" = set"; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 cat >conftest.$ac_ext <<_ACEOF
11285 #line $LINENO "configure"
11286 #include "confdefs.h"
11287 /* System header to define __stub macros and hopefully few prototypes,
11288 which can conflict with char $ac_func (); below. */
11289 #include <assert.h>
11290 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */
11299 #ifdef F77_DUMMY_MAIN
11300 # ifdef __cplusplus
11303 int F77_DUMMY_MAIN() { return 1; }
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -s conftest$ac_exeext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 eval "$as_ac_var=yes"
11335 echo "$as_me: failed program was:" >&5
11336 cat conftest.$ac_ext >&5
11337 eval "$as_ac_var=no"
11339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11343 if test `eval echo '${'$as_ac_var'}'` = yes; then
11344 cat >>confdefs.h <<_ACEOF
11345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11351 if test x"$ac_cv_func_execl" = x"no"; then
11352 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
11374 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
11376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 echo "$as_me:$LINENO: checking for $ac_func" >&5
11378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11379 if eval "test \"\${$as_ac_var+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line $LINENO "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func (); below. */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11397 #ifdef F77_DUMMY_MAIN
11398 # ifdef __cplusplus
11401 int F77_DUMMY_MAIN() { return 1; }
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11421 (eval $ac_link) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -s conftest$ac_exeext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 eval "$as_ac_var=yes"
11433 echo "$as_me: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11435 eval "$as_ac_var=no"
11437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11441 if test `eval echo '${'$as_ac_var'}'` = yes; then
11442 cat >>confdefs.h <<_ACEOF
11443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11463 echo "$as_me:$LINENO: checking for $ac_func" >&5
11464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11465 if eval "test \"\${$as_ac_var+set}\" = set"; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 #include "confdefs.h"
11471 /* System header to define __stub macros and hopefully few prototypes,
11472 which can conflict with char $ac_func (); below. */
11473 #include <assert.h>
11474 /* Override any gcc2 internal prototype to avoid an error. */
11478 /* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11483 #ifdef F77_DUMMY_MAIN
11484 # ifdef __cplusplus
11487 int F77_DUMMY_MAIN() { return 1; }
11492 /* The GNU C library defines this for functions which it implements
11493 to always fail with ENOSYS. Some functions are actually named
11494 something starting with __ and the normal name is an alias. */
11495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11507 (eval $ac_link) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 eval "$as_ac_var=yes"
11519 echo "$as_me: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11527 if test `eval echo '${'$as_ac_var'}'` = yes; then
11528 cat >>confdefs.h <<_ACEOF
11529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11546 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11549 echo "$as_me:$LINENO: checking for $ac_func" >&5
11550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11551 if eval "test \"\${$as_ac_var+set}\" = set"; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 cat >conftest.$ac_ext <<_ACEOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below. */
11559 #include <assert.h>
11560 /* Override any gcc2 internal prototype to avoid an error. */
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11569 #ifdef F77_DUMMY_MAIN
11570 # ifdef __cplusplus
11573 int F77_DUMMY_MAIN() { return 1; }
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
11597 { ac_try='test -s conftest$ac_exeext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 eval "$as_ac_var=yes"
11605 echo "$as_me: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11607 eval "$as_ac_var=no"
11609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11613 if test `eval echo '${'$as_ac_var'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11630 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11633 echo "$as_me:$LINENO: checking for $ac_func" >&5
11634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11635 if eval "test \"\${$as_ac_var+set}\" = set"; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 cat >conftest.$ac_ext <<_ACEOF
11639 #line $LINENO "configure"
11640 #include "confdefs.h"
11641 /* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char $ac_func (); below. */
11643 #include <assert.h>
11644 /* Override any gcc2 internal prototype to avoid an error. */
11648 /* We use char because int might match the return type of a gcc2
11649 builtin and then its argument prototype would still apply. */
11653 #ifdef F77_DUMMY_MAIN
11654 # ifdef __cplusplus
11657 int F77_DUMMY_MAIN() { return 1; }
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 eval "$as_ac_var=yes"
11689 echo "$as_me: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 eval "$as_ac_var=no"
11693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11697 if test `eval echo '${'$as_ac_var'}'` = yes; then
11698 cat >>confdefs.h <<_ACEOF
11699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11713 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
11715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11716 echo "$as_me:$LINENO: checking for $ac_func" >&5
11717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11718 if eval "test \"\${$as_ac_var+set}\" = set"; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11722 #line $LINENO "configure"
11723 #include "confdefs.h"
11724 /* System header to define __stub macros and hopefully few prototypes,
11725 which can conflict with char $ac_func (); below. */
11726 #include <assert.h>
11727 /* Override any gcc2 internal prototype to avoid an error. */
11731 /* We use char because int might match the return type of a gcc2
11732 builtin and then its argument prototype would still apply. */
11736 #ifdef F77_DUMMY_MAIN
11737 # ifdef __cplusplus
11740 int F77_DUMMY_MAIN() { return 1; }
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11758 rm -f conftest.$ac_objext conftest$ac_exeext
11759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11760 (eval $ac_link) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } &&
11764 { ac_try='test -s conftest$ac_exeext'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 eval "$as_ac_var=yes"
11772 echo "$as_me: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 eval "$as_ac_var=no"
11776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11780 if test `eval echo '${'$as_ac_var'}'` = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11801 echo "$as_me:$LINENO: checking for $ac_func" >&5
11802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11803 if eval "test \"\${$as_ac_var+set}\" = set"; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11807 #line $LINENO "configure"
11808 #include "confdefs.h"
11809 /* System header to define __stub macros and hopefully few prototypes,
11810 which can conflict with char $ac_func (); below. */
11811 #include <assert.h>
11812 /* Override any gcc2 internal prototype to avoid an error. */
11816 /* We use char because int might match the return type of a gcc2
11817 builtin and then its argument prototype would still apply. */
11821 #ifdef F77_DUMMY_MAIN
11822 # ifdef __cplusplus
11825 int F77_DUMMY_MAIN() { return 1; }
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845 (eval $ac_link) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 eval "$as_ac_var=yes"
11857 echo "$as_me: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 eval "$as_ac_var=no"
11861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11865 if test `eval echo '${'$as_ac_var'}'` = yes; then
11866 cat >>confdefs.h <<_ACEOF
11867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11881 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11884 echo "$as_me:$LINENO: checking for $ac_func" >&5
11885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11886 if eval "test \"\${$as_ac_var+set}\" = set"; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 cat >conftest.$ac_ext <<_ACEOF
11890 #line $LINENO "configure"
11891 #include "confdefs.h"
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below. */
11894 #include <assert.h>
11895 /* Override any gcc2 internal prototype to avoid an error. */
11899 /* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11904 #ifdef F77_DUMMY_MAIN
11905 # ifdef __cplusplus
11908 int F77_DUMMY_MAIN() { return 1; }
11913 /* The GNU C library defines this for functions which it implements
11914 to always fail with ENOSYS. Some functions are actually named
11915 something starting with __ and the normal name is an alias. */
11916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11928 (eval $ac_link) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11940 echo "$as_me: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 eval "$as_ac_var=no"
11944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11948 if test `eval echo '${'$as_ac_var'}'` = yes; then
11949 cat >>confdefs.h <<_ACEOF
11950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11963 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975 which can conflict with char $ac_func (); below. */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11986 #ifdef F77_DUMMY_MAIN
11987 # ifdef __cplusplus
11990 int F77_DUMMY_MAIN() { return 1; }
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 eval "$as_ac_var=yes"
12022 echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12060 /* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below. */
12062 #include <assert.h>
12063 /* Override any gcc2 internal prototype to avoid an error. */
12067 /* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12072 #ifdef F77_DUMMY_MAIN
12073 # ifdef __cplusplus
12076 int F77_DUMMY_MAIN() { return 1; }
12081 /* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12094 rm -f conftest.$ac_objext conftest$ac_exeext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12096 (eval $ac_link) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 eval "$as_ac_var=yes"
12108 echo "$as_me: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12116 if test `eval echo '${'$as_ac_var'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128 for ac_func in syslog vsyslog getgrouplist timegm
12130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131 echo "$as_me:$LINENO: checking for $ac_func" >&5
12132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12133 if eval "test \"\${$as_ac_var+set}\" = set"; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 #include "confdefs.h"
12139 /* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below. */
12141 #include <assert.h>
12142 /* Override any gcc2 internal prototype to avoid an error. */
12146 /* We use char because int might match the return type of a gcc2
12147 builtin and then its argument prototype would still apply. */
12151 #ifdef F77_DUMMY_MAIN
12152 # ifdef __cplusplus
12155 int F77_DUMMY_MAIN() { return 1; }
12160 /* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
12163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12175 (eval $ac_link) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 eval "$as_ac_var=yes"
12187 echo "$as_me: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12195 if test `eval echo '${'$as_ac_var'}'` = yes; then
12196 cat >>confdefs.h <<_ACEOF
12197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12203 # setbuffer, shmget, shm_open are needed for smbtorture
12207 for ac_func in setbuffer shmget shm_open
12209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $ac_func" >&5
12211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_var+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 #include "confdefs.h"
12218 /* System header to define __stub macros and hopefully few prototypes,
12219 which can conflict with char $ac_func (); below. */
12220 #include <assert.h>
12221 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12230 #ifdef F77_DUMMY_MAIN
12231 # ifdef __cplusplus
12234 int F77_DUMMY_MAIN() { return 1; }
12239 /* The GNU C library defines this for functions which it implements
12240 to always fail with ENOSYS. Some functions are actually named
12241 something starting with __ and the normal name is an alias. */
12242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254 (eval $ac_link) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 eval "$as_ac_var=yes"
12266 echo "$as_me: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12268 eval "$as_ac_var=no"
12270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12274 if test `eval echo '${'$as_ac_var'}'` = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12283 # syscall() is needed for smbwrapper.
12285 for ac_func in syscall
12287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12288 echo "$as_me:$LINENO: checking for $ac_func" >&5
12289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12290 if eval "test \"\${$as_ac_var+set}\" = set"; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 cat >conftest.$ac_ext <<_ACEOF
12294 #line $LINENO "configure"
12295 #include "confdefs.h"
12296 /* System header to define __stub macros and hopefully few prototypes,
12297 which can conflict with char $ac_func (); below. */
12298 #include <assert.h>
12299 /* Override any gcc2 internal prototype to avoid an error. */
12303 /* We use char because int might match the return type of a gcc2
12304 builtin and then its argument prototype would still apply. */
12308 #ifdef F77_DUMMY_MAIN
12309 # ifdef __cplusplus
12312 int F77_DUMMY_MAIN() { return 1; }
12317 /* The GNU C library defines this for functions which it implements
12318 to always fail with ENOSYS. Some functions are actually named
12319 something starting with __ and the normal name is an alias. */
12320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -s conftest$ac_exeext'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 eval "$as_ac_var=yes"
12344 echo "$as_me: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 eval "$as_ac_var=no"
12348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12352 if test `eval echo '${'$as_ac_var'}'` = yes; then
12353 cat >>confdefs.h <<_ACEOF
12354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12368 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 #include "confdefs.h"
12379 /* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char $ac_func (); below. */
12381 #include <assert.h>
12382 /* Override any gcc2 internal prototype to avoid an error. */
12386 /* We use char because int might match the return type of a gcc2
12387 builtin and then its argument prototype would still apply. */
12391 #ifdef F77_DUMMY_MAIN
12392 # ifdef __cplusplus
12395 int F77_DUMMY_MAIN() { return 1; }
12400 /* The GNU C library defines this for functions which it implements
12401 to always fail with ENOSYS. Some functions are actually named
12402 something starting with __ and the normal name is an alias. */
12403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415 (eval $ac_link) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
12419 { ac_try='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 eval "$as_ac_var=yes"
12427 echo "$as_me: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 eval "$as_ac_var=no"
12431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12435 if test `eval echo '${'$as_ac_var'}'` = yes; then
12436 cat >>confdefs.h <<_ACEOF
12437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12450 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12453 echo "$as_me:$LINENO: checking for $ac_func" >&5
12454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12455 if eval "test \"\${$as_ac_var+set}\" = set"; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12460 #include "confdefs.h"
12461 /* System header to define __stub macros and hopefully few prototypes,
12462 which can conflict with char $ac_func (); below. */
12463 #include <assert.h>
12464 /* Override any gcc2 internal prototype to avoid an error. */
12468 /* We use char because int might match the return type of a gcc2
12469 builtin and then its argument prototype would still apply. */
12473 #ifdef F77_DUMMY_MAIN
12474 # ifdef __cplusplus
12477 int F77_DUMMY_MAIN() { return 1; }
12482 /* The GNU C library defines this for functions which it implements
12483 to always fail with ENOSYS. Some functions are actually named
12484 something starting with __ and the normal name is an alias. */
12485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 eval "$as_ac_var=yes"
12509 echo "$as_me: failed program was:" >&5
12510 cat conftest.$ac_ext >&5
12511 eval "$as_ac_var=no"
12513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12517 if test `eval echo '${'$as_ac_var'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF
12519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12527 for ac_func in __getcwd _getcwd
12529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12530 echo "$as_me:$LINENO: checking for $ac_func" >&5
12531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12532 if eval "test \"\${$as_ac_var+set}\" = set"; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 cat >conftest.$ac_ext <<_ACEOF
12536 #line $LINENO "configure"
12537 #include "confdefs.h"
12538 /* System header to define __stub macros and hopefully few prototypes,
12539 which can conflict with char $ac_func (); below. */
12540 #include <assert.h>
12541 /* Override any gcc2 internal prototype to avoid an error. */
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12550 #ifdef F77_DUMMY_MAIN
12551 # ifdef __cplusplus
12554 int F77_DUMMY_MAIN() { return 1; }
12559 /* The GNU C library defines this for functions which it implements
12560 to always fail with ENOSYS. Some functions are actually named
12561 something starting with __ and the normal name is an alias. */
12562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12572 rm -f conftest.$ac_objext conftest$ac_exeext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574 (eval $ac_link) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 eval "$as_ac_var=yes"
12586 echo "$as_me: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12594 if test `eval echo '${'$as_ac_var'}'` = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 for ac_func in __xstat __fxstat __lxstat
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_var+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12616 /* System header to define __stub macros and hopefully few prototypes,
12617 which can conflict with char $ac_func (); below. */
12618 #include <assert.h>
12619 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12628 #ifdef F77_DUMMY_MAIN
12629 # ifdef __cplusplus
12632 int F77_DUMMY_MAIN() { return 1; }
12637 /* The GNU C library defines this for functions which it implements
12638 to always fail with ENOSYS. Some functions are actually named
12639 something starting with __ and the normal name is an alias. */
12640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12664 echo "$as_me: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 eval "$as_ac_var=no"
12668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673 cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12686 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
12688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689 echo "$as_me:$LINENO: checking for $ac_func" >&5
12690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12691 if eval "test \"\${$as_ac_var+set}\" = set"; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12696 #include "confdefs.h"
12697 /* System header to define __stub macros and hopefully few prototypes,
12698 which can conflict with char $ac_func (); below. */
12699 #include <assert.h>
12700 /* Override any gcc2 internal prototype to avoid an error. */
12704 /* We use char because int might match the return type of a gcc2
12705 builtin and then its argument prototype would still apply. */
12709 #ifdef F77_DUMMY_MAIN
12710 # ifdef __cplusplus
12713 int F77_DUMMY_MAIN() { return 1; }
12718 /* The GNU C library defines this for functions which it implements
12719 to always fail with ENOSYS. Some functions are actually named
12720 something starting with __ and the normal name is an alias. */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12733 (eval $ac_link) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -s conftest$ac_exeext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 eval "$as_ac_var=yes"
12745 echo "$as_me: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12747 eval "$as_ac_var=no"
12749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12753 if test `eval echo '${'$as_ac_var'}'` = yes; then
12754 cat >>confdefs.h <<_ACEOF
12755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12769 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
12771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12772 echo "$as_me:$LINENO: checking for $ac_func" >&5
12773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_var+set}\" = set"; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 #include "confdefs.h"
12780 /* System header to define __stub macros and hopefully few prototypes,
12781 which can conflict with char $ac_func (); below. */
12782 #include <assert.h>
12783 /* Override any gcc2 internal prototype to avoid an error. */
12787 /* We use char because int might match the return type of a gcc2
12788 builtin and then its argument prototype would still apply. */
12792 #ifdef F77_DUMMY_MAIN
12793 # ifdef __cplusplus
12796 int F77_DUMMY_MAIN() { return 1; }
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816 (eval $ac_link) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -s conftest$ac_exeext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 eval "$as_ac_var=yes"
12828 echo "$as_me: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 eval "$as_ac_var=no"
12832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12836 if test `eval echo '${'$as_ac_var'}'` = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12850 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
12852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12853 echo "$as_me:$LINENO: checking for $ac_func" >&5
12854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12855 if eval "test \"\${$as_ac_var+set}\" = set"; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 cat >conftest.$ac_ext <<_ACEOF
12859 #line $LINENO "configure"
12860 #include "confdefs.h"
12861 /* System header to define __stub macros and hopefully few prototypes,
12862 which can conflict with char $ac_func (); below. */
12863 #include <assert.h>
12864 /* Override any gcc2 internal prototype to avoid an error. */
12868 /* We use char because int might match the return type of a gcc2
12869 builtin and then its argument prototype would still apply. */
12873 #ifdef F77_DUMMY_MAIN
12874 # ifdef __cplusplus
12877 int F77_DUMMY_MAIN() { return 1; }
12882 /* The GNU C library defines this for functions which it implements
12883 to always fail with ENOSYS. Some functions are actually named
12884 something starting with __ and the normal name is an alias. */
12885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12897 (eval $ac_link) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 eval "$as_ac_var=yes"
12909 echo "$as_me: failed program was:" >&5
12910 cat conftest.$ac_ext >&5
12911 eval "$as_ac_var=no"
12913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12917 if test `eval echo '${'$as_ac_var'}'` = yes; then
12918 cat >>confdefs.h <<_ACEOF
12919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12932 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
12934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12935 echo "$as_me:$LINENO: checking for $ac_func" >&5
12936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12937 if eval "test \"\${$as_ac_var+set}\" = set"; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12941 #line $LINENO "configure"
12942 #include "confdefs.h"
12943 /* System header to define __stub macros and hopefully few prototypes,
12944 which can conflict with char $ac_func (); below. */
12945 #include <assert.h>
12946 /* Override any gcc2 internal prototype to avoid an error. */
12950 /* We use char because int might match the return type of a gcc2
12951 builtin and then its argument prototype would still apply. */
12955 #ifdef F77_DUMMY_MAIN
12956 # ifdef __cplusplus
12959 int F77_DUMMY_MAIN() { return 1; }
12964 /* The GNU C library defines this for functions which it implements
12965 to always fail with ENOSYS. Some functions are actually named
12966 something starting with __ and the normal name is an alias. */
12967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979 (eval $ac_link) 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest$ac_exeext'
12984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12985 (eval $ac_try) 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 eval "$as_ac_var=yes"
12991 echo "$as_me: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12993 eval "$as_ac_var=no"
12995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12999 if test `eval echo '${'$as_ac_var'}'` = yes; then
13000 cat >>confdefs.h <<_ACEOF
13001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13011 for ac_func in _write __write _fork __fork
13013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13014 echo "$as_me:$LINENO: checking for $ac_func" >&5
13015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13016 if eval "test \"\${$as_ac_var+set}\" = set"; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line $LINENO "configure"
13021 #include "confdefs.h"
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char $ac_func (); below. */
13024 #include <assert.h>
13025 /* Override any gcc2 internal prototype to avoid an error. */
13029 /* We use char because int might match the return type of a gcc2
13030 builtin and then its argument prototype would still apply. */
13034 #ifdef F77_DUMMY_MAIN
13035 # ifdef __cplusplus
13038 int F77_DUMMY_MAIN() { return 1; }
13043 /* The GNU C library defines this for functions which it implements
13044 to always fail with ENOSYS. Some functions are actually named
13045 something starting with __ and the normal name is an alias. */
13046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } &&
13062 { ac_try='test -s conftest$ac_exeext'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068 eval "$as_ac_var=yes"
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 eval "$as_ac_var=no"
13074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13078 if test `eval echo '${'$as_ac_var'}'` = yes; then
13079 cat >>confdefs.h <<_ACEOF
13080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13092 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13095 echo "$as_me:$LINENO: checking for $ac_func" >&5
13096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13097 if eval "test \"\${$as_ac_var+set}\" = set"; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 cat >conftest.$ac_ext <<_ACEOF
13101 #line $LINENO "configure"
13102 #include "confdefs.h"
13103 /* System header to define __stub macros and hopefully few prototypes,
13104 which can conflict with char $ac_func (); below. */
13105 #include <assert.h>
13106 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13115 #ifdef F77_DUMMY_MAIN
13116 # ifdef __cplusplus
13119 int F77_DUMMY_MAIN() { return 1; }
13124 /* The GNU C library defines this for functions which it implements
13125 to always fail with ENOSYS. Some functions are actually named
13126 something starting with __ and the normal name is an alias. */
13127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 eval "$as_ac_var=yes"
13151 echo "$as_me: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 eval "$as_ac_var=no"
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13159 if test `eval echo '${'$as_ac_var'}'` = yes; then
13160 cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13174 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13177 echo "$as_me:$LINENO: checking for $ac_func" >&5
13178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13179 if eval "test \"\${$as_ac_var+set}\" = set"; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 cat >conftest.$ac_ext <<_ACEOF
13183 #line $LINENO "configure"
13184 #include "confdefs.h"
13185 /* System header to define __stub macros and hopefully few prototypes,
13186 which can conflict with char $ac_func (); below. */
13187 #include <assert.h>
13188 /* Override any gcc2 internal prototype to avoid an error. */
13192 /* We use char because int might match the return type of a gcc2
13193 builtin and then its argument prototype would still apply. */
13197 #ifdef F77_DUMMY_MAIN
13198 # ifdef __cplusplus
13201 int F77_DUMMY_MAIN() { return 1; }
13206 /* The GNU C library defines this for functions which it implements
13207 to always fail with ENOSYS. Some functions are actually named
13208 something starting with __ and the normal name is an alias. */
13209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13221 (eval $ac_link) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -s conftest$ac_exeext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 eval "$as_ac_var=yes"
13233 echo "$as_me: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13235 eval "$as_ac_var=no"
13237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13241 if test `eval echo '${'$as_ac_var'}'` = yes; then
13242 cat >>confdefs.h <<_ACEOF
13243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13255 for ac_func in pread _pread __pread pread64 _pread64 __pread64
13257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13258 echo "$as_me:$LINENO: checking for $ac_func" >&5
13259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13260 if eval "test \"\${$as_ac_var+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13263 cat >conftest.$ac_ext <<_ACEOF
13264 #line $LINENO "configure"
13265 #include "confdefs.h"
13266 /* System header to define __stub macros and hopefully few prototypes,
13267 which can conflict with char $ac_func (); below. */
13268 #include <assert.h>
13269 /* Override any gcc2 internal prototype to avoid an error. */
13273 /* We use char because int might match the return type of a gcc2
13274 builtin and then its argument prototype would still apply. */
13278 #ifdef F77_DUMMY_MAIN
13279 # ifdef __cplusplus
13282 int F77_DUMMY_MAIN() { return 1; }
13287 /* The GNU C library defines this for functions which it implements
13288 to always fail with ENOSYS. Some functions are actually named
13289 something starting with __ and the normal name is an alias. */
13290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13300 rm -f conftest.$ac_objext conftest$ac_exeext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302 (eval $ac_link) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -s conftest$ac_exeext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 eval "$as_ac_var=yes"
13314 echo "$as_me: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 eval "$as_ac_var=no"
13318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13322 if test `eval echo '${'$as_ac_var'}'` = yes; then
13323 cat >>confdefs.h <<_ACEOF
13324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13339 echo "$as_me:$LINENO: checking for $ac_func" >&5
13340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_var+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 cat >conftest.$ac_ext <<_ACEOF
13345 #line $LINENO "configure"
13346 #include "confdefs.h"
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char $ac_func (); below. */
13349 #include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error. */
13354 /* We use char because int might match the return type of a gcc2
13355 builtin and then its argument prototype would still apply. */
13359 #ifdef F77_DUMMY_MAIN
13360 # ifdef __cplusplus
13363 int F77_DUMMY_MAIN() { return 1; }
13368 /* The GNU C library defines this for functions which it implements
13369 to always fail with ENOSYS. Some functions are actually named
13370 something starting with __ and the normal name is an alias. */
13371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13381 rm -f conftest.$ac_objext conftest$ac_exeext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13383 (eval $ac_link) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -s conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 eval "$as_ac_var=yes"
13395 echo "$as_me: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 eval "$as_ac_var=no"
13399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13403 if test `eval echo '${'$as_ac_var'}'` = yes; then
13404 cat >>confdefs.h <<_ACEOF
13405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13415 for ac_func in open64 _open64 __open64 creat64
13417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13418 echo "$as_me:$LINENO: checking for $ac_func" >&5
13419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13420 if eval "test \"\${$as_ac_var+set}\" = set"; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13425 #include "confdefs.h"
13426 /* System header to define __stub macros and hopefully few prototypes,
13427 which can conflict with char $ac_func (); below. */
13428 #include <assert.h>
13429 /* Override any gcc2 internal prototype to avoid an error. */
13433 /* We use char because int might match the return type of a gcc2
13434 builtin and then its argument prototype would still apply. */
13438 #ifdef F77_DUMMY_MAIN
13439 # ifdef __cplusplus
13442 int F77_DUMMY_MAIN() { return 1; }
13447 /* The GNU C library defines this for functions which it implements
13448 to always fail with ENOSYS. Some functions are actually named
13449 something starting with __ and the normal name is an alias. */
13450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -s conftest$ac_exeext'
13467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468 (eval $ac_try) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); }; }; then
13472 eval "$as_ac_var=yes"
13474 echo "$as_me: failed program was:" >&5
13475 cat conftest.$ac_ext >&5
13476 eval "$as_ac_var=no"
13478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13482 if test `eval echo '${'$as_ac_var'}'` = yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13492 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13495 if test x$ac_cv_func_stat64 = xno ; then
13496 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13497 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13498 cat >conftest.$ac_ext <<_ACEOF
13499 #line $LINENO "configure"
13500 #include "confdefs.h"
13502 #if defined(HAVE_UNISTD_H)
13503 #include <unistd.h>
13505 #include <sys/stat.h>
13507 #ifdef F77_DUMMY_MAIN
13508 # ifdef __cplusplus
13511 int F77_DUMMY_MAIN() { return 1; }
13516 struct stat64 st64; exit(stat64(".",&st64));
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_cv_func_stat64=yes
13535 echo "$as_me: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13539 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13540 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13541 if test x$ac_cv_func_stat64 = xyes ; then
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_STAT64 1
13550 if test x$ac_cv_func_lstat64 = xno ; then
13551 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13552 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13553 cat >conftest.$ac_ext <<_ACEOF
13554 #line $LINENO "configure"
13555 #include "confdefs.h"
13557 #if defined(HAVE_UNISTD_H)
13558 #include <unistd.h>
13560 #include <sys/stat.h>
13562 #ifdef F77_DUMMY_MAIN
13563 # ifdef __cplusplus
13566 int F77_DUMMY_MAIN() { return 1; }
13571 struct stat64 st64; exit(lstat64(".",&st64));
13576 rm -f conftest.$ac_objext conftest$ac_exeext
13577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578 (eval $ac_link) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } &&
13582 { ac_try='test -s conftest$ac_exeext'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; }; then
13588 ac_cv_func_lstat64=yes
13590 echo "$as_me: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13595 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13596 if test x$ac_cv_func_lstat64 = xyes ; then
13597 cat >>confdefs.h <<\_ACEOF
13598 #define HAVE_LSTAT64 Whether lstat64() is available
13604 if test x$ac_cv_func_fstat64 = xno ; then
13605 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13606 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13607 cat >conftest.$ac_ext <<_ACEOF
13608 #line $LINENO "configure"
13609 #include "confdefs.h"
13611 #if defined(HAVE_UNISTD_H)
13612 #include <unistd.h>
13614 #include <sys/stat.h>
13616 #ifdef F77_DUMMY_MAIN
13617 # ifdef __cplusplus
13620 int F77_DUMMY_MAIN() { return 1; }
13625 struct stat64 st64; exit(fstat64(0,&st64));
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -s conftest$ac_exeext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_func_fstat64=yes
13644 echo "$as_me: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13648 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13649 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13650 if test x$ac_cv_func_fstat64 = xyes ; then
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_FSTAT64 1
13659 #####################################
13660 # we might need the resolv library on some systems
13662 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13663 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13664 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-lresolv $LIBS"
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 #include "confdefs.h"
13673 /* Override any gcc2 internal prototype to avoid an error. */
13677 /* We use char because int might match the return type of a gcc2
13678 builtin and then its argument prototype would still apply. */
13680 #ifdef F77_DUMMY_MAIN
13681 # ifdef __cplusplus
13684 int F77_DUMMY_MAIN() { return 1; }
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696 (eval $ac_link) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -s conftest$ac_exeext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706 ac_cv_lib_resolv_dn_expand=yes
13708 echo "$as_me: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 ac_cv_lib_resolv_dn_expand=no
13712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13715 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13716 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13717 if test $ac_cv_lib_resolv_dn_expand = yes; then
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_LIBRESOLV 1
13722 LIBS="-lresolv $LIBS"
13728 # Check for the functions putprpwnam, set_auth_parameters,
13729 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13730 # Needed for OSF1 and HPUX.
13735 for ac_func in putprpwnam
13737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13738 echo "$as_me:$LINENO: checking for $ac_func" >&5
13739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_var+set}\" = set"; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 cat >conftest.$ac_ext <<_ACEOF
13744 #line $LINENO "configure"
13745 #include "confdefs.h"
13746 /* System header to define __stub macros and hopefully few prototypes,
13747 which can conflict with char $ac_func (); below. */
13748 #include <assert.h>
13749 /* Override any gcc2 internal prototype to avoid an error. */
13753 /* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13758 #ifdef F77_DUMMY_MAIN
13759 # ifdef __cplusplus
13762 int F77_DUMMY_MAIN() { return 1; }
13767 /* The GNU C library defines this for functions which it implements
13768 to always fail with ENOSYS. Some functions are actually named
13769 something starting with __ and the normal name is an alias. */
13770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13782 (eval $ac_link) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 eval "$as_ac_var=yes"
13794 echo "$as_me: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 eval "$as_ac_var=no"
13798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13802 if test `eval echo '${'$as_ac_var'}'` = yes; then
13803 cat >>confdefs.h <<_ACEOF
13804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13811 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13812 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13813 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-lsecurity $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13819 #line $LINENO "configure"
13820 #include "confdefs.h"
13822 /* Override any gcc2 internal prototype to avoid an error. */
13826 /* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13828 char putprpwnam ();
13829 #ifdef F77_DUMMY_MAIN
13830 # ifdef __cplusplus
13833 int F77_DUMMY_MAIN() { return 1; }
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13845 (eval $ac_link) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -s conftest$ac_exeext'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 ac_cv_lib_security_putprpwnam=yes
13857 echo "$as_me: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13859 ac_cv_lib_security_putprpwnam=no
13861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13865 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13866 if test $ac_cv_lib_security_putprpwnam = yes; then
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_LIBSECURITY 1
13871 LIBS="-lsecurity $LIBS"
13876 for ac_func in putprpwnam
13878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 echo "$as_me:$LINENO: checking for $ac_func" >&5
13880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13881 if eval "test \"\${$as_ac_var+set}\" = set"; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 cat >conftest.$ac_ext <<_ACEOF
13885 #line $LINENO "configure"
13886 #include "confdefs.h"
13887 /* System header to define __stub macros and hopefully few prototypes,
13888 which can conflict with char $ac_func (); below. */
13889 #include <assert.h>
13890 /* Override any gcc2 internal prototype to avoid an error. */
13894 /* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13899 #ifdef F77_DUMMY_MAIN
13900 # ifdef __cplusplus
13903 int F77_DUMMY_MAIN() { return 1; }
13908 /* The GNU C library defines this for functions which it implements
13909 to always fail with ENOSYS. Some functions are actually named
13910 something starting with __ and the normal name is an alias. */
13911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 eval "$as_ac_var=yes"
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 eval "$as_ac_var=no"
13939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13943 if test `eval echo '${'$as_ac_var'}'` = yes; then
13944 cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13956 for ac_func in putprpwnam
13958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13959 echo "$as_me:$LINENO: checking for $ac_func" >&5
13960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_var+set}\" = set"; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13966 #include "confdefs.h"
13967 /* System header to define __stub macros and hopefully few prototypes,
13968 which can conflict with char $ac_func (); below. */
13969 #include <assert.h>
13970 /* Override any gcc2 internal prototype to avoid an error. */
13974 /* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13979 #ifdef F77_DUMMY_MAIN
13980 # ifdef __cplusplus
13983 int F77_DUMMY_MAIN() { return 1; }
13988 /* The GNU C library defines this for functions which it implements
13989 to always fail with ENOSYS. Some functions are actually named
13990 something starting with __ and the normal name is an alias. */
13991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -s conftest$ac_exeext'
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 eval "$as_ac_var=yes"
14015 echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 eval "$as_ac_var=no"
14019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14023 if test `eval echo '${'$as_ac_var'}'` = yes; then
14024 cat >>confdefs.h <<_ACEOF
14025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14032 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14033 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14034 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 ac_check_lib_save_LIBS=$LIBS
14039 cat >conftest.$ac_ext <<_ACEOF
14040 #line $LINENO "configure"
14041 #include "confdefs.h"
14043 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char putprpwnam ();
14050 #ifdef F77_DUMMY_MAIN
14051 # ifdef __cplusplus
14054 int F77_DUMMY_MAIN() { return 1; }
14064 rm -f conftest.$ac_objext conftest$ac_exeext
14065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14066 (eval $ac_link) 2>&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -s conftest$ac_exeext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
14076 ac_cv_lib_sec_putprpwnam=yes
14078 echo "$as_me: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14080 ac_cv_lib_sec_putprpwnam=no
14082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14086 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14087 if test $ac_cv_lib_sec_putprpwnam = yes; then
14088 cat >>confdefs.h <<_ACEOF
14089 #define HAVE_LIBSEC 1
14097 for ac_func in putprpwnam
14099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14100 echo "$as_me:$LINENO: checking for $ac_func" >&5
14101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_var+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 cat >conftest.$ac_ext <<_ACEOF
14106 #line $LINENO "configure"
14107 #include "confdefs.h"
14108 /* System header to define __stub macros and hopefully few prototypes,
14109 which can conflict with char $ac_func (); below. */
14110 #include <assert.h>
14111 /* Override any gcc2 internal prototype to avoid an error. */
14115 /* We use char because int might match the return type of a gcc2
14116 builtin and then its argument prototype would still apply. */
14120 #ifdef F77_DUMMY_MAIN
14121 # ifdef __cplusplus
14124 int F77_DUMMY_MAIN() { return 1; }
14129 /* The GNU C library defines this for functions which it implements
14130 to always fail with ENOSYS. Some functions are actually named
14131 something starting with __ and the normal name is an alias. */
14132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14142 rm -f conftest.$ac_objext conftest$ac_exeext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14144 (eval $ac_link) 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -s conftest$ac_exeext'
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 eval "$as_ac_var=yes"
14156 echo "$as_me: failed program was:" >&5
14157 cat conftest.$ac_ext >&5
14158 eval "$as_ac_var=no"
14160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14164 if test `eval echo '${'$as_ac_var'}'` = yes; then
14165 cat >>confdefs.h <<_ACEOF
14166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14178 for ac_func in set_auth_parameters
14180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14181 echo "$as_me:$LINENO: checking for $ac_func" >&5
14182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_var+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 cat >conftest.$ac_ext <<_ACEOF
14187 #line $LINENO "configure"
14188 #include "confdefs.h"
14189 /* System header to define __stub macros and hopefully few prototypes,
14190 which can conflict with char $ac_func (); below. */
14191 #include <assert.h>
14192 /* Override any gcc2 internal prototype to avoid an error. */
14196 /* We use char because int might match the return type of a gcc2
14197 builtin and then its argument prototype would still apply. */
14201 #ifdef F77_DUMMY_MAIN
14202 # ifdef __cplusplus
14205 int F77_DUMMY_MAIN() { return 1; }
14210 /* The GNU C library defines this for functions which it implements
14211 to always fail with ENOSYS. Some functions are actually named
14212 something starting with __ and the normal name is an alias. */
14213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14223 rm -f conftest.$ac_objext conftest$ac_exeext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14225 (eval $ac_link) 2>&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } &&
14229 { ac_try='test -s conftest$ac_exeext'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 eval "$as_ac_var=yes"
14237 echo "$as_me: failed program was:" >&5
14238 cat conftest.$ac_ext >&5
14239 eval "$as_ac_var=no"
14241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14245 if test `eval echo '${'$as_ac_var'}'` = yes; then
14246 cat >>confdefs.h <<_ACEOF
14247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14254 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14255 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14256 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 ac_check_lib_save_LIBS=$LIBS
14260 LIBS="-lsecurity $LIBS"
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14263 #include "confdefs.h"
14265 /* Override any gcc2 internal prototype to avoid an error. */
14269 /* We use char because int might match the return type of a gcc2
14270 builtin and then its argument prototype would still apply. */
14271 char set_auth_parameters ();
14272 #ifdef F77_DUMMY_MAIN
14273 # ifdef __cplusplus
14276 int F77_DUMMY_MAIN() { return 1; }
14281 set_auth_parameters ();
14286 rm -f conftest.$ac_objext conftest$ac_exeext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14288 (eval $ac_link) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -s conftest$ac_exeext'
14293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14298 ac_cv_lib_security_set_auth_parameters=yes
14300 echo "$as_me: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 ac_cv_lib_security_set_auth_parameters=no
14304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14308 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14309 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_LIBSECURITY 1
14314 LIBS="-lsecurity $LIBS"
14319 for ac_func in set_auth_parameters
14321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14322 echo "$as_me:$LINENO: checking for $ac_func" >&5
14323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14324 if eval "test \"\${$as_ac_var+set}\" = set"; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14328 #line $LINENO "configure"
14329 #include "confdefs.h"
14330 /* System header to define __stub macros and hopefully few prototypes,
14331 which can conflict with char $ac_func (); below. */
14332 #include <assert.h>
14333 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14342 #ifdef F77_DUMMY_MAIN
14343 # ifdef __cplusplus
14346 int F77_DUMMY_MAIN() { return 1; }
14351 /* The GNU C library defines this for functions which it implements
14352 to always fail with ENOSYS. Some functions are actually named
14353 something starting with __ and the normal name is an alias. */
14354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366 (eval $ac_link) 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -s conftest$ac_exeext'
14371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372 (eval $ac_try) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 eval "$as_ac_var=yes"
14378 echo "$as_me: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 eval "$as_ac_var=no"
14382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14386 if test `eval echo '${'$as_ac_var'}'` = yes; then
14387 cat >>confdefs.h <<_ACEOF
14388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14399 for ac_func in set_auth_parameters
14401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14402 echo "$as_me:$LINENO: checking for $ac_func" >&5
14403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14404 if eval "test \"\${$as_ac_var+set}\" = set"; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14408 #line $LINENO "configure"
14409 #include "confdefs.h"
14410 /* System header to define __stub macros and hopefully few prototypes,
14411 which can conflict with char $ac_func (); below. */
14412 #include <assert.h>
14413 /* Override any gcc2 internal prototype to avoid an error. */
14417 /* We use char because int might match the return type of a gcc2
14418 builtin and then its argument prototype would still apply. */
14422 #ifdef F77_DUMMY_MAIN
14423 # ifdef __cplusplus
14426 int F77_DUMMY_MAIN() { return 1; }
14431 /* The GNU C library defines this for functions which it implements
14432 to always fail with ENOSYS. Some functions are actually named
14433 something starting with __ and the normal name is an alias. */
14434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14446 (eval $ac_link) 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 eval "$as_ac_var=yes"
14458 echo "$as_me: failed program was:" >&5
14459 cat conftest.$ac_ext >&5
14460 eval "$as_ac_var=no"
14462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14466 if test `eval echo '${'$as_ac_var'}'` = yes; then
14467 cat >>confdefs.h <<_ACEOF
14468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14475 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14476 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14477 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 ac_check_lib_save_LIBS=$LIBS
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 #include "confdefs.h"
14486 /* Override any gcc2 internal prototype to avoid an error. */
14490 /* We use char because int might match the return type of a gcc2
14491 builtin and then its argument prototype would still apply. */
14492 char set_auth_parameters ();
14493 #ifdef F77_DUMMY_MAIN
14494 # ifdef __cplusplus
14497 int F77_DUMMY_MAIN() { return 1; }
14502 set_auth_parameters ();
14507 rm -f conftest.$ac_objext conftest$ac_exeext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14509 (eval $ac_link) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 ac_cv_lib_sec_set_auth_parameters=yes
14521 echo "$as_me: failed program was:" >&5
14522 cat conftest.$ac_ext >&5
14523 ac_cv_lib_sec_set_auth_parameters=no
14525 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14526 LIBS=$ac_check_lib_save_LIBS
14528 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14529 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14530 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14531 cat >>confdefs.h <<_ACEOF
14532 #define HAVE_LIBSEC 1
14540 for ac_func in set_auth_parameters
14542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14543 echo "$as_me:$LINENO: checking for $ac_func" >&5
14544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14545 if eval "test \"\${$as_ac_var+set}\" = set"; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551 /* System header to define __stub macros and hopefully few prototypes,
14552 which can conflict with char $ac_func (); below. */
14553 #include <assert.h>
14554 /* Override any gcc2 internal prototype to avoid an error. */
14558 /* We use char because int might match the return type of a gcc2
14559 builtin and then its argument prototype would still apply. */
14563 #ifdef F77_DUMMY_MAIN
14564 # ifdef __cplusplus
14567 int F77_DUMMY_MAIN() { return 1; }
14572 /* The GNU C library defines this for functions which it implements
14573 to always fail with ENOSYS. Some functions are actually named
14574 something starting with __ and the normal name is an alias. */
14575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14587 (eval $ac_link) 2>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -s conftest$ac_exeext'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14597 eval "$as_ac_var=yes"
14599 echo "$as_me: failed program was:" >&5
14600 cat conftest.$ac_ext >&5
14601 eval "$as_ac_var=no"
14603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14607 if test `eval echo '${'$as_ac_var'}'` = yes; then
14608 cat >>confdefs.h <<_ACEOF
14609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14619 # UnixWare 7.x has its getspnam in -lgen
14622 for ac_func in getspnam
14624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14625 echo "$as_me:$LINENO: checking for $ac_func" >&5
14626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14627 if eval "test \"\${$as_ac_var+set}\" = set"; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14631 #line $LINENO "configure"
14632 #include "confdefs.h"
14633 /* System header to define __stub macros and hopefully few prototypes,
14634 which can conflict with char $ac_func (); below. */
14635 #include <assert.h>
14636 /* Override any gcc2 internal prototype to avoid an error. */
14640 /* We use char because int might match the return type of a gcc2
14641 builtin and then its argument prototype would still apply. */
14645 #ifdef F77_DUMMY_MAIN
14646 # ifdef __cplusplus
14649 int F77_DUMMY_MAIN() { return 1; }
14654 /* The GNU C library defines this for functions which it implements
14655 to always fail with ENOSYS. Some functions are actually named
14656 something starting with __ and the normal name is an alias. */
14657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -s conftest$ac_exeext'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 eval "$as_ac_var=yes"
14681 echo "$as_me: failed program was:" >&5
14682 cat conftest.$ac_ext >&5
14683 eval "$as_ac_var=no"
14685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14689 if test `eval echo '${'$as_ac_var'}'` = yes; then
14690 cat >>confdefs.h <<_ACEOF
14691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14698 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14699 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14700 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 ac_check_lib_save_LIBS=$LIBS
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14707 #include "confdefs.h"
14709 /* Override any gcc2 internal prototype to avoid an error. */
14713 /* We use char because int might match the return type of a gcc2
14714 builtin and then its argument prototype would still apply. */
14716 #ifdef F77_DUMMY_MAIN
14717 # ifdef __cplusplus
14720 int F77_DUMMY_MAIN() { return 1; }
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_lib_gen_getspnam=yes
14744 echo "$as_me: failed program was:" >&5
14745 cat conftest.$ac_ext >&5
14746 ac_cv_lib_gen_getspnam=no
14748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14751 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14752 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14753 if test $ac_cv_lib_gen_getspnam = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define HAVE_LIBGEN 1
14763 for ac_func in getspnam
14765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14766 echo "$as_me:$LINENO: checking for $ac_func" >&5
14767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14768 if eval "test \"\${$as_ac_var+set}\" = set"; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 cat >conftest.$ac_ext <<_ACEOF
14772 #line $LINENO "configure"
14773 #include "confdefs.h"
14774 /* System header to define __stub macros and hopefully few prototypes,
14775 which can conflict with char $ac_func (); below. */
14776 #include <assert.h>
14777 /* Override any gcc2 internal prototype to avoid an error. */
14781 /* We use char because int might match the return type of a gcc2
14782 builtin and then its argument prototype would still apply. */
14786 #ifdef F77_DUMMY_MAIN
14787 # ifdef __cplusplus
14790 int F77_DUMMY_MAIN() { return 1; }
14795 /* The GNU C library defines this for functions which it implements
14796 to always fail with ENOSYS. Some functions are actually named
14797 something starting with __ and the normal name is an alias. */
14798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810 (eval $ac_link) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -s conftest$ac_exeext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 eval "$as_ac_var=yes"
14822 echo "$as_me: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 eval "$as_ac_var=no"
14826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14830 if test `eval echo '${'$as_ac_var'}'` = yes; then
14831 cat >>confdefs.h <<_ACEOF
14832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14844 for ac_func in getspnam
14846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14847 echo "$as_me:$LINENO: checking for $ac_func" >&5
14848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14849 if eval "test \"\${$as_ac_var+set}\" = set"; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 #include "confdefs.h"
14855 /* System header to define __stub macros and hopefully few prototypes,
14856 which can conflict with char $ac_func (); below. */
14857 #include <assert.h>
14858 /* Override any gcc2 internal prototype to avoid an error. */
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14867 #ifdef F77_DUMMY_MAIN
14868 # ifdef __cplusplus
14871 int F77_DUMMY_MAIN() { return 1; }
14876 /* The GNU C library defines this for functions which it implements
14877 to always fail with ENOSYS. Some functions are actually named
14878 something starting with __ and the normal name is an alias. */
14879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14889 rm -f conftest.$ac_objext conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } &&
14895 { ac_try='test -s conftest$ac_exeext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 eval "$as_ac_var=yes"
14903 echo "$as_me: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14905 eval "$as_ac_var=no"
14907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14911 if test `eval echo '${'$as_ac_var'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14920 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14921 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14922 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 ac_check_lib_save_LIBS=$LIBS
14926 LIBS="-lsecurity $LIBS"
14927 cat >conftest.$ac_ext <<_ACEOF
14928 #line $LINENO "configure"
14929 #include "confdefs.h"
14931 /* Override any gcc2 internal prototype to avoid an error. */
14935 /* We use char because int might match the return type of a gcc2
14936 builtin and then its argument prototype would still apply. */
14938 #ifdef F77_DUMMY_MAIN
14939 # ifdef __cplusplus
14942 int F77_DUMMY_MAIN() { return 1; }
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14954 (eval $ac_link) 2>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -s conftest$ac_exeext'
14959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960 (eval $ac_try) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_cv_lib_security_getspnam=yes
14966 echo "$as_me: failed program was:" >&5
14967 cat conftest.$ac_ext >&5
14968 ac_cv_lib_security_getspnam=no
14970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14973 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
14974 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
14975 if test $ac_cv_lib_security_getspnam = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977 #define HAVE_LIBSECURITY 1
14980 LIBS="-lsecurity $LIBS"
14985 for ac_func in getspnam
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14990 if eval "test \"\${$as_ac_var+set}\" = set"; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 cat >conftest.$ac_ext <<_ACEOF
14994 #line $LINENO "configure"
14995 #include "confdefs.h"
14996 /* System header to define __stub macros and hopefully few prototypes,
14997 which can conflict with char $ac_func (); below. */
14998 #include <assert.h>
14999 /* Override any gcc2 internal prototype to avoid an error. */
15003 /* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15008 #ifdef F77_DUMMY_MAIN
15009 # ifdef __cplusplus
15012 int F77_DUMMY_MAIN() { return 1; }
15017 /* The GNU C library defines this for functions which it implements
15018 to always fail with ENOSYS. Some functions are actually named
15019 something starting with __ and the normal name is an alias. */
15020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15032 (eval $ac_link) 2>&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try='test -s conftest$ac_exeext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 eval "$as_ac_var=yes"
15044 echo "$as_me: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15046 eval "$as_ac_var=no"
15048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15052 if test `eval echo '${'$as_ac_var'}'` = yes; then
15053 cat >>confdefs.h <<_ACEOF
15054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15065 for ac_func in getspnam
15067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15068 echo "$as_me:$LINENO: checking for $ac_func" >&5
15069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15070 if eval "test \"\${$as_ac_var+set}\" = set"; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 #include "confdefs.h"
15076 /* System header to define __stub macros and hopefully few prototypes,
15077 which can conflict with char $ac_func (); below. */
15078 #include <assert.h>
15079 /* Override any gcc2 internal prototype to avoid an error. */
15083 /* We use char because int might match the return type of a gcc2
15084 builtin and then its argument prototype would still apply. */
15088 #ifdef F77_DUMMY_MAIN
15089 # ifdef __cplusplus
15092 int F77_DUMMY_MAIN() { return 1; }
15097 /* The GNU C library defines this for functions which it implements
15098 to always fail with ENOSYS. Some functions are actually named
15099 something starting with __ and the normal name is an alias. */
15100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 eval "$as_ac_var=yes"
15124 echo "$as_me: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15126 eval "$as_ac_var=no"
15128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15132 if test `eval echo '${'$as_ac_var'}'` = yes; then
15133 cat >>confdefs.h <<_ACEOF
15134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15141 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15142 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15143 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 ac_check_lib_save_LIBS=$LIBS
15148 cat >conftest.$ac_ext <<_ACEOF
15149 #line $LINENO "configure"
15150 #include "confdefs.h"
15152 /* Override any gcc2 internal prototype to avoid an error. */
15156 /* We use char because int might match the return type of a gcc2
15157 builtin and then its argument prototype would still apply. */
15159 #ifdef F77_DUMMY_MAIN
15160 # ifdef __cplusplus
15163 int F77_DUMMY_MAIN() { return 1; }
15173 rm -f conftest.$ac_objext conftest$ac_exeext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15175 (eval $ac_link) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -s conftest$ac_exeext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 ac_cv_lib_sec_getspnam=yes
15187 echo "$as_me: failed program was:" >&5
15188 cat conftest.$ac_ext >&5
15189 ac_cv_lib_sec_getspnam=no
15191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15194 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15195 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15196 if test $ac_cv_lib_sec_getspnam = yes; then
15197 cat >>confdefs.h <<_ACEOF
15198 #define HAVE_LIBSEC 1
15206 for ac_func in getspnam
15208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15209 echo "$as_me:$LINENO: checking for $ac_func" >&5
15210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15211 if eval "test \"\${$as_ac_var+set}\" = set"; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 cat >conftest.$ac_ext <<_ACEOF
15215 #line $LINENO "configure"
15216 #include "confdefs.h"
15217 /* System header to define __stub macros and hopefully few prototypes,
15218 which can conflict with char $ac_func (); below. */
15219 #include <assert.h>
15220 /* Override any gcc2 internal prototype to avoid an error. */
15224 /* We use char because int might match the return type of a gcc2
15225 builtin and then its argument prototype would still apply. */
15229 #ifdef F77_DUMMY_MAIN
15230 # ifdef __cplusplus
15233 int F77_DUMMY_MAIN() { return 1; }
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 eval "$as_ac_var=yes"
15265 echo "$as_me: failed program was:" >&5
15266 cat conftest.$ac_ext >&5
15267 eval "$as_ac_var=no"
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15273 if test `eval echo '${'$as_ac_var'}'` = yes; then
15274 cat >>confdefs.h <<_ACEOF
15275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15287 for ac_func in bigcrypt
15289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15290 echo "$as_me:$LINENO: checking for $ac_func" >&5
15291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15292 if eval "test \"\${$as_ac_var+set}\" = set"; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 cat >conftest.$ac_ext <<_ACEOF
15296 #line $LINENO "configure"
15297 #include "confdefs.h"
15298 /* System header to define __stub macros and hopefully few prototypes,
15299 which can conflict with char $ac_func (); below. */
15300 #include <assert.h>
15301 /* Override any gcc2 internal prototype to avoid an error. */
15305 /* We use char because int might match the return type of a gcc2
15306 builtin and then its argument prototype would still apply. */
15310 #ifdef F77_DUMMY_MAIN
15311 # ifdef __cplusplus
15314 int F77_DUMMY_MAIN() { return 1; }
15319 /* The GNU C library defines this for functions which it implements
15320 to always fail with ENOSYS. Some functions are actually named
15321 something starting with __ and the normal name is an alias. */
15322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334 (eval $ac_link) 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest$ac_exeext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 eval "$as_ac_var=yes"
15346 echo "$as_me: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 eval "$as_ac_var=no"
15350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15354 if test `eval echo '${'$as_ac_var'}'` = yes; then
15355 cat >>confdefs.h <<_ACEOF
15356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15363 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15364 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15365 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 ac_check_lib_save_LIBS=$LIBS
15369 LIBS="-lsecurity $LIBS"
15370 cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15374 /* Override any gcc2 internal prototype to avoid an error. */
15378 /* We use char because int might match the return type of a gcc2
15379 builtin and then its argument prototype would still apply. */
15381 #ifdef F77_DUMMY_MAIN
15382 # ifdef __cplusplus
15385 int F77_DUMMY_MAIN() { return 1; }
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15397 (eval $ac_link) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -s conftest$ac_exeext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_cv_lib_security_bigcrypt=yes
15409 echo "$as_me: failed program was:" >&5
15410 cat conftest.$ac_ext >&5
15411 ac_cv_lib_security_bigcrypt=no
15413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15414 LIBS=$ac_check_lib_save_LIBS
15416 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15417 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15418 if test $ac_cv_lib_security_bigcrypt = yes; then
15419 cat >>confdefs.h <<_ACEOF
15420 #define HAVE_LIBSECURITY 1
15423 LIBS="-lsecurity $LIBS"
15428 for ac_func in bigcrypt
15430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15431 echo "$as_me:$LINENO: checking for $ac_func" >&5
15432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15433 if eval "test \"\${$as_ac_var+set}\" = set"; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15438 #include "confdefs.h"
15439 /* System header to define __stub macros and hopefully few prototypes,
15440 which can conflict with char $ac_func (); below. */
15441 #include <assert.h>
15442 /* Override any gcc2 internal prototype to avoid an error. */
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15451 #ifdef F77_DUMMY_MAIN
15452 # ifdef __cplusplus
15455 int F77_DUMMY_MAIN() { return 1; }
15460 /* The GNU C library defines this for functions which it implements
15461 to always fail with ENOSYS. Some functions are actually named
15462 something starting with __ and the normal name is an alias. */
15463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15475 (eval $ac_link) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -s conftest$ac_exeext'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 eval "$as_ac_var=yes"
15487 echo "$as_me: failed program was:" >&5
15488 cat conftest.$ac_ext >&5
15489 eval "$as_ac_var=no"
15491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15495 if test `eval echo '${'$as_ac_var'}'` = yes; then
15496 cat >>confdefs.h <<_ACEOF
15497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15508 for ac_func in bigcrypt
15510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15511 echo "$as_me:$LINENO: checking for $ac_func" >&5
15512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15513 if eval "test \"\${$as_ac_var+set}\" = set"; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15516 cat >conftest.$ac_ext <<_ACEOF
15517 #line $LINENO "configure"
15518 #include "confdefs.h"
15519 /* System header to define __stub macros and hopefully few prototypes,
15520 which can conflict with char $ac_func (); below. */
15521 #include <assert.h>
15522 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15531 #ifdef F77_DUMMY_MAIN
15532 # ifdef __cplusplus
15535 int F77_DUMMY_MAIN() { return 1; }
15540 /* The GNU C library defines this for functions which it implements
15541 to always fail with ENOSYS. Some functions are actually named
15542 something starting with __ and the normal name is an alias. */
15543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15555 (eval $ac_link) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
15559 { ac_try='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 eval "$as_ac_var=yes"
15567 echo "$as_me: failed program was:" >&5
15568 cat conftest.$ac_ext >&5
15569 eval "$as_ac_var=no"
15571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15575 if test `eval echo '${'$as_ac_var'}'` = yes; then
15576 cat >>confdefs.h <<_ACEOF
15577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15584 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15585 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15586 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 ac_check_lib_save_LIBS=$LIBS
15591 cat >conftest.$ac_ext <<_ACEOF
15592 #line $LINENO "configure"
15593 #include "confdefs.h"
15595 /* Override any gcc2 internal prototype to avoid an error. */
15599 /* We use char because int might match the return type of a gcc2
15600 builtin and then its argument prototype would still apply. */
15602 #ifdef F77_DUMMY_MAIN
15603 # ifdef __cplusplus
15606 int F77_DUMMY_MAIN() { return 1; }
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15618 (eval $ac_link) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_lib_sec_bigcrypt=yes
15630 echo "$as_me: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15632 ac_cv_lib_sec_bigcrypt=no
15634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15635 LIBS=$ac_check_lib_save_LIBS
15637 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15638 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15639 if test $ac_cv_lib_sec_bigcrypt = yes; then
15640 cat >>confdefs.h <<_ACEOF
15641 #define HAVE_LIBSEC 1
15649 for ac_func in bigcrypt
15651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15652 echo "$as_me:$LINENO: checking for $ac_func" >&5
15653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15654 if eval "test \"\${$as_ac_var+set}\" = set"; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 cat >conftest.$ac_ext <<_ACEOF
15658 #line $LINENO "configure"
15659 #include "confdefs.h"
15660 /* System header to define __stub macros and hopefully few prototypes,
15661 which can conflict with char $ac_func (); below. */
15662 #include <assert.h>
15663 /* Override any gcc2 internal prototype to avoid an error. */
15667 /* We use char because int might match the return type of a gcc2
15668 builtin and then its argument prototype would still apply. */
15672 #ifdef F77_DUMMY_MAIN
15673 # ifdef __cplusplus
15676 int F77_DUMMY_MAIN() { return 1; }
15681 /* The GNU C library defines this for functions which it implements
15682 to always fail with ENOSYS. Some functions are actually named
15683 something starting with __ and the normal name is an alias. */
15684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15696 (eval $ac_link) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -s conftest$ac_exeext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 eval "$as_ac_var=yes"
15708 echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 eval "$as_ac_var=no"
15712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15716 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15730 for ac_func in getprpwnam
15732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15733 echo "$as_me:$LINENO: checking for $ac_func" >&5
15734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15735 if eval "test \"\${$as_ac_var+set}\" = set"; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 cat >conftest.$ac_ext <<_ACEOF
15739 #line $LINENO "configure"
15740 #include "confdefs.h"
15741 /* System header to define __stub macros and hopefully few prototypes,
15742 which can conflict with char $ac_func (); below. */
15743 #include <assert.h>
15744 /* Override any gcc2 internal prototype to avoid an error. */
15748 /* We use char because int might match the return type of a gcc2
15749 builtin and then its argument prototype would still apply. */
15753 #ifdef F77_DUMMY_MAIN
15754 # ifdef __cplusplus
15757 int F77_DUMMY_MAIN() { return 1; }
15762 /* The GNU C library defines this for functions which it implements
15763 to always fail with ENOSYS. Some functions are actually named
15764 something starting with __ and the normal name is an alias. */
15765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15777 (eval $ac_link) 2>&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -s conftest$ac_exeext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 eval "$as_ac_var=yes"
15789 echo "$as_me: failed program was:" >&5
15790 cat conftest.$ac_ext >&5
15791 eval "$as_ac_var=no"
15793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15797 if test `eval echo '${'$as_ac_var'}'` = yes; then
15798 cat >>confdefs.h <<_ACEOF
15799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15806 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15807 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15808 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-lsecurity $LIBS"
15813 cat >conftest.$ac_ext <<_ACEOF
15814 #line $LINENO "configure"
15815 #include "confdefs.h"
15817 /* Override any gcc2 internal prototype to avoid an error. */
15821 /* We use char because int might match the return type of a gcc2
15822 builtin and then its argument prototype would still apply. */
15823 char getprpwnam ();
15824 #ifdef F77_DUMMY_MAIN
15825 # ifdef __cplusplus
15828 int F77_DUMMY_MAIN() { return 1; }
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15840 (eval $ac_link) 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
15844 { ac_try='test -s conftest$ac_exeext'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15850 ac_cv_lib_security_getprpwnam=yes
15852 echo "$as_me: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15854 ac_cv_lib_security_getprpwnam=no
15856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15859 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15860 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15861 if test $ac_cv_lib_security_getprpwnam = yes; then
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_LIBSECURITY 1
15866 LIBS="-lsecurity $LIBS"
15871 for ac_func in getprpwnam
15873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15874 echo "$as_me:$LINENO: checking for $ac_func" >&5
15875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_var+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15880 #line $LINENO "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883 which can conflict with char $ac_func (); below. */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error. */
15889 /* We use char because int might match the return type of a gcc2
15890 builtin and then its argument prototype would still apply. */
15894 #ifdef F77_DUMMY_MAIN
15895 # ifdef __cplusplus
15898 int F77_DUMMY_MAIN() { return 1; }
15903 /* The GNU C library defines this for functions which it implements
15904 to always fail with ENOSYS. Some functions are actually named
15905 something starting with __ and the normal name is an alias. */
15906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15918 (eval $ac_link) 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -s conftest$ac_exeext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 eval "$as_ac_var=yes"
15930 echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 eval "$as_ac_var=no"
15934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15938 if test `eval echo '${'$as_ac_var'}'` = yes; then
15939 cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15951 for ac_func in getprpwnam
15953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15954 echo "$as_me:$LINENO: checking for $ac_func" >&5
15955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15956 if eval "test \"\${$as_ac_var+set}\" = set"; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 cat >conftest.$ac_ext <<_ACEOF
15960 #line $LINENO "configure"
15961 #include "confdefs.h"
15962 /* System header to define __stub macros and hopefully few prototypes,
15963 which can conflict with char $ac_func (); below. */
15964 #include <assert.h>
15965 /* Override any gcc2 internal prototype to avoid an error. */
15969 /* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15974 #ifdef F77_DUMMY_MAIN
15975 # ifdef __cplusplus
15978 int F77_DUMMY_MAIN() { return 1; }
15983 /* The GNU C library defines this for functions which it implements
15984 to always fail with ENOSYS. Some functions are actually named
15985 something starting with __ and the normal name is an alias. */
15986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15996 rm -f conftest.$ac_objext 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); } &&
16002 { ac_try='test -s conftest$ac_exeext'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008 eval "$as_ac_var=yes"
16010 echo "$as_me: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 eval "$as_ac_var=no"
16014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16018 if test `eval echo '${'$as_ac_var'}'` = yes; then
16019 cat >>confdefs.h <<_ACEOF
16020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16027 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16028 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16029 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 ac_check_lib_save_LIBS=$LIBS
16034 cat >conftest.$ac_ext <<_ACEOF
16035 #line $LINENO "configure"
16036 #include "confdefs.h"
16038 /* Override any gcc2 internal prototype to avoid an error. */
16042 /* We use char because int might match the return type of a gcc2
16043 builtin and then its argument prototype would still apply. */
16044 char getprpwnam ();
16045 #ifdef F77_DUMMY_MAIN
16046 # ifdef __cplusplus
16049 int F77_DUMMY_MAIN() { return 1; }
16059 rm -f conftest.$ac_objext conftest$ac_exeext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061 (eval $ac_link) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -s conftest$ac_exeext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_cv_lib_sec_getprpwnam=yes
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 ac_cv_lib_sec_getprpwnam=no
16077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16078 LIBS=$ac_check_lib_save_LIBS
16080 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16081 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16082 if test $ac_cv_lib_sec_getprpwnam = yes; then
16083 cat >>confdefs.h <<_ACEOF
16084 #define HAVE_LIBSEC 1
16092 for ac_func in getprpwnam
16094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16095 echo "$as_me:$LINENO: checking for $ac_func" >&5
16096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16097 if eval "test \"\${$as_ac_var+set}\" = set"; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 cat >conftest.$ac_ext <<_ACEOF
16101 #line $LINENO "configure"
16102 #include "confdefs.h"
16103 /* System header to define __stub macros and hopefully few prototypes,
16104 which can conflict with char $ac_func (); below. */
16105 #include <assert.h>
16106 /* Override any gcc2 internal prototype to avoid an error. */
16110 /* We use char because int might match the return type of a gcc2
16111 builtin and then its argument prototype would still apply. */
16115 #ifdef F77_DUMMY_MAIN
16116 # ifdef __cplusplus
16119 int F77_DUMMY_MAIN() { return 1; }
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139 (eval $ac_link) 2>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -s conftest$ac_exeext'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; }; then
16149 eval "$as_ac_var=yes"
16151 echo "$as_me: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16153 eval "$as_ac_var=no"
16155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16159 if test `eval echo '${'$as_ac_var'}'` = yes; then
16160 cat >>confdefs.h <<_ACEOF
16161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16171 # this bit needs to be modified for each OS that is suported by
16172 # smbwrapper. You need to specify how to created a shared library and
16173 # how to compile C code to produce PIC object files
16175 # these are the defaults, good for lots of systems
16177 LDSHFLAGS="-shared"
16184 # Assume non-shared by default and override below
16186 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16187 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16189 # and these are for particular systems
16192 cat >>confdefs.h <<\_ACEOF
16197 LDSHFLAGS="-shared"
16198 DYNEXP="-Wl,--export-dynamic"
16200 SONAMEFLAG="-Wl,-soname="
16201 cat >>confdefs.h <<\_ACEOF
16202 #define STAT_ST_BLOCKSIZE 512
16207 cat >>confdefs.h <<\_ACEOF
16214 if test "${GCC}" = "yes"; then
16216 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16221 ## ${CFLAGS} added for building 64-bit shared
16222 ## libs using Sun's Compiler
16223 LDSHFLAGS="-G \${CFLAGS}"
16228 cat >>confdefs.h <<\_ACEOF
16229 #define STAT_ST_BLOCKSIZE 512
16234 cat >>confdefs.h <<\_ACEOF
16240 SONAMEFLAG="-Wl,-h,"
16241 PICFLAG="-KPIC" # Is this correct for SunOS
16242 cat >>confdefs.h <<\_ACEOF
16243 #define STAT_ST_BLOCKSIZE 512
16247 *freebsd*) BLDSHARED="true"
16248 LDSHFLAGS="-shared"
16249 DYNEXP="-Wl,--export-dynamic"
16250 SONAMEFLAG="-Wl,-soname,"
16251 PICFLAG="-fPIC -DPIC"
16253 cat >>confdefs.h <<\_ACEOF
16254 #define STAT_ST_BLOCKSIZE 512
16258 *openbsd*) BLDSHARED="true"
16259 LDSHFLAGS="-shared"
16260 DYNEXP="-Wl,-Bdynamic"
16261 SONAMEFLAG="-Wl,-soname,"
16264 cat >>confdefs.h <<\_ACEOF
16265 #define STAT_ST_BLOCKSIZE 512
16270 cat >>confdefs.h <<\_ACEOF
16276 cat >>confdefs.h <<\_ACEOF
16282 ATTEMPT_WRAP32_BUILD=yes
16284 LDSHFLAGS="-set_version sgi1.0 -shared"
16285 SONAMEFLAG="-soname "
16287 if test "${GCC}" = "yes"; then
16293 cat >>confdefs.h <<\_ACEOF
16294 #define STAT_ST_BLOCKSIZE 512
16299 cat >>confdefs.h <<\_ACEOF
16304 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
16305 DYNEXP="-Wl,-brtl,-bexpall"
16307 if test "${GCC}" != "yes"; then
16308 ## for funky AIX compiler using strncpy()
16309 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16313 cat >>confdefs.h <<\_ACEOF
16314 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16319 cat >>confdefs.h <<\_ACEOF
16324 # Use special PIC flags for the native HP-UX compiler.
16325 if test $ac_cv_prog_cc_Ae = yes; then
16328 LDSHFLAGS="-B symbolic -b -z"
16334 cat >>confdefs.h <<\_ACEOF
16335 #define STAT_ST_BLOCKSIZE 8192
16340 cat >>confdefs.h <<\_ACEOF
16344 cat >>confdefs.h <<\_ACEOF
16345 #define STAT_ST_BLOCKSIZE 512
16350 cat >>confdefs.h <<\_ACEOF
16355 LDSHFLAGS="-shared"
16356 SONAMEFLAG="-Wl,-soname,"
16358 cat >>confdefs.h <<\_ACEOF
16359 #define STAT_ST_BLOCKSIZE 512
16364 cat >>confdefs.h <<\_ACEOF
16368 cat >>confdefs.h <<\_ACEOF
16369 #define STAT_ST_BLOCKSIZE 512
16374 cat >>confdefs.h <<\_ACEOF
16379 LDSHFLAGS="-shared"
16380 SONAMEFLAG="-Wl,-soname,"
16382 cat >>confdefs.h <<\_ACEOF
16383 #define STAT_ST_BLOCKSIZE 512
16388 cat >>confdefs.h <<\_ACEOF
16392 cat >>confdefs.h <<\_ACEOF
16393 #define STAT_ST_BLOCKSIZE 512
16397 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
16398 set dummy groff; ac_word=$2
16399 echo "$as_me:$LINENO: checking for $ac_word" >&5
16400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16401 if test "${ac_cv_prog_ROFF+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 if test -n "$ROFF"; then
16405 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
16407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16408 for as_dir in $PATH
16411 test -z "$as_dir" && as_dir=.
16412 for ac_exec_ext in '' $ac_executable_extensions; do
16413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16414 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
16415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16423 ROFF=$ac_cv_prog_ROFF
16424 if test -n "$ROFF"; then
16425 echo "$as_me:$LINENO: result: $ROFF" >&5
16426 echo "${ECHO_T}$ROFF" >&6
16428 echo "$as_me:$LINENO: result: no" >&5
16429 echo "${ECHO_T}no" >&6
16432 cat >>confdefs.h <<\_ACEOF
16433 #define STAT_ST_BLOCKSIZE 512
16438 cat >>confdefs.h <<\_ACEOF
16443 *-univel-*) if test "$GCC" != yes ; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_MEMSET 1
16454 cat >>confdefs.h <<\_ACEOF
16455 #define RELIANTUNIX 1
16459 cat >>confdefs.h <<\_ACEOF
16460 #define STAT_ST_BLOCKSIZE 512
16466 cat >>confdefs.h <<\_ACEOF
16470 if test "$GCC" != yes ; then
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_MEMSET 1
16478 cat >>confdefs.h <<\_ACEOF
16479 #define STAT_ST_BLOCKSIZE 512
16484 cat >>confdefs.h <<\_ACEOF
16485 #define STAT_ST_BLOCKSIZE 512
16491 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16492 echo "${ECHO_T}$BLDSHARED" >&6
16493 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16494 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16495 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16496 echo "${ECHO_T}$LDSHFLAGS" >&6
16497 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16498 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16499 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16500 echo "${ECHO_T}$PICFLAGS" >&6
16502 #######################################################
16503 # test whether building a shared library actually works
16504 if test $BLDSHARED = true; then
16505 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16506 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16507 if test "${ac_cv_shlib_works+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_cv_shlib_works=no
16512 # try building a trivial shared library
16513 if test "$PICSUFFIX" = "po"; then
16514 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
16515 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16516 ac_cv_shlib_works=yes
16518 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
16519 mv shlib.$PICSUFFIX shlib.po &&
16520 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
16521 ac_cv_shlib_works=yes
16523 rm -f shlib.so shlib.po
16526 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16527 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16528 if test $ac_cv_shlib_works = no; then
16534 # this updates our target list if we can build shared libs
16535 if test $BLDSHARED = true; then
16536 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
16538 LIBSMBCLIENT_SHARED=
16543 echo "$as_me:$LINENO: checking for long long" >&5
16544 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16545 if test "${samba_cv_have_longlong+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 if test "$cross_compiling" = yes; then
16550 samba_cv_have_longlong=cross
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16554 #include "confdefs.h"
16556 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16558 rm -f conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 samba_cv_have_longlong=yes
16571 echo "$as_me: program exited with status $ac_status" >&5
16572 echo "$as_me: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16574 ( exit $ac_status )
16575 samba_cv_have_longlong=no
16577 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16580 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16581 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16582 if test x"$samba_cv_have_longlong" = x"yes"; then
16584 cat >>confdefs.h <<\_ACEOF
16585 #define HAVE_LONGLONG 1
16591 # Check if the compiler supports the LL prefix on long long integers.
16594 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16595 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16596 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16601 #line $LINENO "configure"
16602 #include "confdefs.h"
16604 #ifdef F77_DUMMY_MAIN
16605 # ifdef __cplusplus
16608 int F77_DUMMY_MAIN() { return 1; }
16613 long long i = 0x8000000000LL
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -s conftest.$ac_objext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 samba_cv_compiler_supports_ll=yes
16632 echo "$as_me: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16634 samba_cv_compiler_supports_ll=no
16636 rm -f conftest.$ac_objext conftest.$ac_ext
16638 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16639 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16640 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
16642 cat >>confdefs.h <<\_ACEOF
16643 #define COMPILER_SUPPORTS_LL 1
16649 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16650 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16651 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16655 if test "$cross_compiling" = yes; then
16656 samba_cv_SIZEOF_OFF_T=cross
16658 cat >conftest.$ac_ext <<_ACEOF
16659 #line $LINENO "configure"
16660 #include "confdefs.h"
16662 #include <sys/stat.h>
16663 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16665 rm -f conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667 (eval $ac_link) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 samba_cv_SIZEOF_OFF_T=yes
16678 echo "$as_me: program exited with status $ac_status" >&5
16679 echo "$as_me: failed program was:" >&5
16680 cat conftest.$ac_ext >&5
16681 ( exit $ac_status )
16682 samba_cv_SIZEOF_OFF_T=no
16684 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16687 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16688 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16689 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
16691 cat >>confdefs.h <<\_ACEOF
16692 #define SIZEOF_OFF_T 8
16697 echo "$as_me:$LINENO: checking for off64_t" >&5
16698 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16699 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 if test "$cross_compiling" = yes; then
16704 samba_cv_HAVE_OFF64_T=cross
16706 cat >conftest.$ac_ext <<_ACEOF
16707 #line $LINENO "configure"
16708 #include "confdefs.h"
16710 #if defined(HAVE_UNISTD_H)
16711 #include <unistd.h>
16714 #include <sys/stat.h>
16715 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16717 rm -f conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719 (eval $ac_link) 2>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 samba_cv_HAVE_OFF64_T=yes
16730 echo "$as_me: program exited with status $ac_status" >&5
16731 echo "$as_me: failed program was:" >&5
16732 cat conftest.$ac_ext >&5
16733 ( exit $ac_status )
16734 samba_cv_HAVE_OFF64_T=no
16736 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16739 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16740 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16741 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
16743 cat >>confdefs.h <<\_ACEOF
16744 #define HAVE_OFF64_T 1
16749 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16750 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16751 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 if test "$cross_compiling" = yes; then
16756 samba_cv_SIZEOF_INO_T=cross
16758 cat >conftest.$ac_ext <<_ACEOF
16759 #line $LINENO "configure"
16760 #include "confdefs.h"
16762 #include <sys/stat.h>
16763 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16765 rm -f conftest$ac_exeext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767 (eval $ac_link) 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 samba_cv_SIZEOF_INO_T=yes
16778 echo "$as_me: program exited with status $ac_status" >&5
16779 echo "$as_me: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16781 ( exit $ac_status )
16782 samba_cv_SIZEOF_INO_T=no
16784 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16787 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16788 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16789 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
16791 cat >>confdefs.h <<\_ACEOF
16792 #define SIZEOF_INO_T 8
16797 echo "$as_me:$LINENO: checking for ino64_t" >&5
16798 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16799 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 if test "$cross_compiling" = yes; then
16804 samba_cv_HAVE_INO64_T=cross
16806 cat >conftest.$ac_ext <<_ACEOF
16807 #line $LINENO "configure"
16808 #include "confdefs.h"
16810 #if defined(HAVE_UNISTD_H)
16811 #include <unistd.h>
16814 #include <sys/stat.h>
16815 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16817 rm -f conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819 (eval $ac_link) 2>&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828 samba_cv_HAVE_INO64_T=yes
16830 echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 cat conftest.$ac_ext >&5
16833 ( exit $ac_status )
16834 samba_cv_HAVE_INO64_T=no
16836 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16839 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16840 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16841 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
16843 cat >>confdefs.h <<\_ACEOF
16844 #define HAVE_INO64_T 1
16849 echo "$as_me:$LINENO: checking for dev64_t" >&5
16850 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16851 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16855 if test "$cross_compiling" = yes; then
16856 samba_cv_HAVE_DEV64_T=cross
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line $LINENO "configure"
16860 #include "confdefs.h"
16862 #if defined(HAVE_UNISTD_H)
16863 #include <unistd.h>
16866 #include <sys/stat.h>
16867 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16869 rm -f conftest$ac_exeext
16870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16871 (eval $ac_link) 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 samba_cv_HAVE_DEV64_T=yes
16882 echo "$as_me: program exited with status $ac_status" >&5
16883 echo "$as_me: failed program was:" >&5
16884 cat conftest.$ac_ext >&5
16885 ( exit $ac_status )
16886 samba_cv_HAVE_DEV64_T=no
16888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16891 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16892 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16893 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
16895 cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_DEV64_T 1
16901 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16902 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16903 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 cat >conftest.$ac_ext <<_ACEOF
16908 #line $LINENO "configure"
16909 #include "confdefs.h"
16911 #if defined(HAVE_UNISTD_H)
16912 #include <unistd.h>
16914 #include <sys/types.h>
16915 #include <dirent.h>
16916 #ifdef F77_DUMMY_MAIN
16917 # ifdef __cplusplus
16920 int F77_DUMMY_MAIN() { return 1; }
16925 struct dirent64 de;
16930 rm -f conftest.$ac_objext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16932 (eval $ac_compile) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } &&
16936 { ac_try='test -s conftest.$ac_objext'
16937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938 (eval $ac_try) 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; }; then
16942 samba_cv_HAVE_STRUCT_DIRENT64=yes
16944 echo "$as_me: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 samba_cv_HAVE_STRUCT_DIRENT64=no
16948 rm -f conftest.$ac_objext conftest.$ac_ext
16950 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
16951 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
16952 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
16954 cat >>confdefs.h <<\_ACEOF
16955 #define HAVE_STRUCT_DIRENT64 1
16960 echo "$as_me:$LINENO: checking for major macro" >&5
16961 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
16962 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 if test "$cross_compiling" = yes; then
16967 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
16969 cat >conftest.$ac_ext <<_ACEOF
16970 #line $LINENO "configure"
16971 #include "confdefs.h"
16973 #if defined(HAVE_UNISTD_H)
16974 #include <unistd.h>
16976 #include <sys/types.h>
16977 main() { dev_t dev; int i = major(dev); return 0; }
16979 rm -f conftest$ac_exeext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16981 (eval $ac_link) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
16992 echo "$as_me: program exited with status $ac_status" >&5
16993 echo "$as_me: failed program was:" >&5
16994 cat conftest.$ac_ext >&5
16995 ( exit $ac_status )
16996 samba_cv_HAVE_DEVICE_MAJOR_FN=no
16998 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17001 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
17002 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
17003 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
17005 cat >>confdefs.h <<\_ACEOF
17006 #define HAVE_DEVICE_MAJOR_FN 1
17011 echo "$as_me:$LINENO: checking for minor macro" >&5
17012 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
17013 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 if test "$cross_compiling" = yes; then
17018 samba_cv_HAVE_DEVICE_MINOR_FN=cross
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 #include "confdefs.h"
17024 #if defined(HAVE_UNISTD_H)
17025 #include <unistd.h>
17027 #include <sys/types.h>
17028 main() { dev_t dev; int i = minor(dev); return 0; }
17030 rm -f conftest$ac_exeext
17031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17032 (eval $ac_link) 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 samba_cv_HAVE_DEVICE_MINOR_FN=yes
17043 echo "$as_me: program exited with status $ac_status" >&5
17044 echo "$as_me: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17046 ( exit $ac_status )
17047 samba_cv_HAVE_DEVICE_MINOR_FN=no
17049 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17052 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17053 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17054 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
17056 cat >>confdefs.h <<\_ACEOF
17057 #define HAVE_DEVICE_MINOR_FN 1
17062 echo "$as_me:$LINENO: checking for unsigned char" >&5
17063 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17064 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17068 if test "$cross_compiling" = yes; then
17069 samba_cv_HAVE_UNSIGNED_CHAR=cross
17071 cat >conftest.$ac_ext <<_ACEOF
17072 #line $LINENO "configure"
17073 #include "confdefs.h"
17075 main() { char c; c=250; exit((c > 0)?0:1); }
17077 rm -f conftest$ac_exeext
17078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17079 (eval $ac_link) 2>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 samba_cv_HAVE_UNSIGNED_CHAR=yes
17090 echo "$as_me: program exited with status $ac_status" >&5
17091 echo "$as_me: failed program was:" >&5
17092 cat conftest.$ac_ext >&5
17093 ( exit $ac_status )
17094 samba_cv_HAVE_UNSIGNED_CHAR=no
17096 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17099 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17100 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17101 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
17103 cat >>confdefs.h <<\_ACEOF
17104 #define HAVE_UNSIGNED_CHAR 1
17109 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17110 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17111 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 cat >conftest.$ac_ext <<_ACEOF
17116 #line $LINENO "configure"
17117 #include "confdefs.h"
17118 #include <sys/types.h>
17119 #include <sys/socket.h>
17120 #include <netinet/in.h>
17121 #ifdef F77_DUMMY_MAIN
17122 # ifdef __cplusplus
17125 int F77_DUMMY_MAIN() { return 1; }
17130 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 samba_cv_HAVE_SOCK_SIN_LEN=yes
17149 echo "$as_me: failed program was:" >&5
17150 cat conftest.$ac_ext >&5
17151 samba_cv_HAVE_SOCK_SIN_LEN=no
17153 rm -f conftest.$ac_objext conftest.$ac_ext
17155 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17156 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17157 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
17159 cat >>confdefs.h <<\_ACEOF
17160 #define HAVE_SOCK_SIN_LEN 1
17165 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17166 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17167 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 cat >conftest.$ac_ext <<_ACEOF
17172 #line $LINENO "configure"
17173 #include "confdefs.h"
17174 #include <sys/types.h>
17175 #include <dirent.h>
17176 void seekdir(DIR *d, long loc) { return; }
17177 #ifdef F77_DUMMY_MAIN
17178 # ifdef __cplusplus
17181 int F77_DUMMY_MAIN() { return 1; }
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 samba_cv_SEEKDIR_RETURNS_VOID=yes
17205 echo "$as_me: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17207 samba_cv_SEEKDIR_RETURNS_VOID=no
17209 rm -f conftest.$ac_objext conftest.$ac_ext
17211 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17212 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17213 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
17215 cat >>confdefs.h <<\_ACEOF
17216 #define SEEKDIR_RETURNS_VOID 1
17221 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17222 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17223 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 cat >conftest.$ac_ext <<_ACEOF
17228 #line $LINENO "configure"
17229 #include "confdefs.h"
17231 #ifdef F77_DUMMY_MAIN
17232 # ifdef __cplusplus
17235 int F77_DUMMY_MAIN() { return 1; }
17240 printf("%s\n", __FUNCTION__);
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 samba_cv_HAVE_FUNCTION_MACRO=yes
17259 echo "$as_me: failed program was:" >&5
17260 cat conftest.$ac_ext >&5
17261 samba_cv_HAVE_FUNCTION_MACRO=no
17263 rm -f conftest.$ac_objext conftest.$ac_ext
17265 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17266 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17267 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
17269 cat >>confdefs.h <<\_ACEOF
17270 #define HAVE_FUNCTION_MACRO 1
17275 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17276 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17277 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17281 if test "$cross_compiling" = yes; then
17282 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
17284 cat >conftest.$ac_ext <<_ACEOF
17285 #line $LINENO "configure"
17286 #include "confdefs.h"
17288 #include <sys/time.h>
17289 #include <unistd.h>
17290 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17292 rm -f conftest$ac_exeext
17293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
17305 echo "$as_me: program exited with status $ac_status" >&5
17306 echo "$as_me: failed program was:" >&5
17307 cat conftest.$ac_ext >&5
17308 ( exit $ac_status )
17309 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
17311 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17314 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17315 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17316 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
17318 cat >>confdefs.h <<\_ACEOF
17319 #define HAVE_GETTIMEOFDAY_TZ 1
17324 echo "$as_me:$LINENO: checking for __va_copy" >&5
17325 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17326 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 cat >conftest.$ac_ext <<_ACEOF
17331 #line $LINENO "configure"
17332 #include "confdefs.h"
17333 #include <stdarg.h>
17335 #ifdef F77_DUMMY_MAIN
17336 # ifdef __cplusplus
17339 int F77_DUMMY_MAIN() { return 1; }
17344 __va_copy(ap1,ap2);
17349 rm -f conftest.$ac_objext conftest$ac_exeext
17350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17351 (eval $ac_link) 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -s conftest$ac_exeext'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; }; then
17361 samba_cv_HAVE_VA_COPY=yes
17363 echo "$as_me: failed program was:" >&5
17364 cat conftest.$ac_ext >&5
17365 samba_cv_HAVE_VA_COPY=no
17367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17369 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17370 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17371 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
17373 cat >>confdefs.h <<\_ACEOF
17374 #define HAVE_VA_COPY 1
17379 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17380 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17381 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 if test "$cross_compiling" = yes; then
17386 samba_cv_HAVE_C99_VSNPRINTF=cross
17388 cat >conftest.$ac_ext <<_ACEOF
17389 #line $LINENO "configure"
17390 #include "confdefs.h"
17392 #include <sys/types.h>
17393 #include <stdarg.h>
17394 void foo(const char *format, ...) {
17399 va_start(ap, format);
17400 len = vsnprintf(buf, 0, format, ap);
17402 if (len != 5) exit(1);
17404 va_start(ap, format);
17405 len = vsnprintf(0, 0, format, ap);
17407 if (len != 5) exit(1);
17409 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17413 main() { foo("hello"); }
17416 rm -f conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 samba_cv_HAVE_C99_VSNPRINTF=yes
17429 echo "$as_me: program exited with status $ac_status" >&5
17430 echo "$as_me: failed program was:" >&5
17431 cat conftest.$ac_ext >&5
17432 ( exit $ac_status )
17433 samba_cv_HAVE_C99_VSNPRINTF=no
17435 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17438 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17439 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17440 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_C99_VSNPRINTF 1
17448 echo "$as_me:$LINENO: checking for broken readdir" >&5
17449 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17450 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 if test "$cross_compiling" = yes; then
17455 samba_cv_HAVE_BROKEN_READDIR=cross
17457 cat >conftest.$ac_ext <<_ACEOF
17458 #line $LINENO "configure"
17459 #include "confdefs.h"
17460 #include <sys/types.h>
17461 #include <dirent.h>
17462 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17463 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17464 di->d_name[0] == 0) exit(0); exit(1);}
17466 rm -f conftest$ac_exeext
17467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17468 (eval $ac_link) 2>&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477 samba_cv_HAVE_BROKEN_READDIR=yes
17479 echo "$as_me: program exited with status $ac_status" >&5
17480 echo "$as_me: failed program was:" >&5
17481 cat conftest.$ac_ext >&5
17482 ( exit $ac_status )
17483 samba_cv_HAVE_BROKEN_READDIR=no
17485 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17488 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17489 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17490 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
17492 cat >>confdefs.h <<\_ACEOF
17493 #define HAVE_BROKEN_READDIR 1
17498 echo "$as_me:$LINENO: checking for utimbuf" >&5
17499 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17500 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 cat >conftest.$ac_ext <<_ACEOF
17505 #line $LINENO "configure"
17506 #include "confdefs.h"
17507 #include <sys/types.h>
17509 #ifdef F77_DUMMY_MAIN
17510 # ifdef __cplusplus
17513 int F77_DUMMY_MAIN() { return 1; }
17518 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } &&
17529 { ac_try='test -s conftest.$ac_objext'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; }; then
17535 samba_cv_HAVE_UTIMBUF=yes
17537 echo "$as_me: failed program was:" >&5
17538 cat conftest.$ac_ext >&5
17539 samba_cv_HAVE_UTIMBUF=no
17541 rm -f conftest.$ac_objext conftest.$ac_ext
17543 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17544 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17545 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
17547 cat >>confdefs.h <<\_ACEOF
17548 #define HAVE_UTIMBUF 1
17559 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
17561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17562 echo "$as_me:$LINENO: checking for $ac_func" >&5
17563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17564 if eval "test \"\${$as_ac_var+set}\" = set"; then
17565 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line $LINENO "configure"
17569 #include "confdefs.h"
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below. */
17572 #include <assert.h>
17573 /* Override any gcc2 internal prototype to avoid an error. */
17577 /* We use char because int might match the return type of a gcc2
17578 builtin and then its argument prototype would still apply. */
17582 #ifdef F77_DUMMY_MAIN
17583 # ifdef __cplusplus
17586 int F77_DUMMY_MAIN() { return 1; }
17591 /* The GNU C library defines this for functions which it implements
17592 to always fail with ENOSYS. Some functions are actually named
17593 something starting with __ and the normal name is an alias. */
17594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17606 (eval $ac_link) 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 eval "$as_ac_var=yes"
17618 echo "$as_me: failed program was:" >&5
17619 cat conftest.$ac_ext >&5
17620 eval "$as_ac_var=no"
17622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627 cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17635 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17636 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17637 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 cat >conftest.$ac_ext <<_ACEOF
17642 #line $LINENO "configure"
17643 #include "confdefs.h"
17644 #include <sys/types.h>
17646 #ifdef F77_DUMMY_MAIN
17647 # ifdef __cplusplus
17650 int F77_DUMMY_MAIN() { return 1; }
17655 struct utmp ut; ut.ut_name[0] = 'a';
17660 rm -f conftest.$ac_objext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 samba_cv_HAVE_UT_UT_NAME=yes
17674 echo "$as_me: failed program was:" >&5
17675 cat conftest.$ac_ext >&5
17676 samba_cv_HAVE_UT_UT_NAME=no
17678 rm -f conftest.$ac_objext conftest.$ac_ext
17680 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17681 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17682 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
17684 cat >>confdefs.h <<\_ACEOF
17685 #define HAVE_UT_UT_NAME 1
17690 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17691 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17692 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 cat >conftest.$ac_ext <<_ACEOF
17697 #line $LINENO "configure"
17698 #include "confdefs.h"
17699 #include <sys/types.h>
17701 #ifdef F77_DUMMY_MAIN
17702 # ifdef __cplusplus
17705 int F77_DUMMY_MAIN() { return 1; }
17710 struct utmp ut; ut.ut_user[0] = 'a';
17715 rm -f conftest.$ac_objext
17716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17717 (eval $ac_compile) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -s conftest.$ac_objext'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 samba_cv_HAVE_UT_UT_USER=yes
17729 echo "$as_me: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17731 samba_cv_HAVE_UT_UT_USER=no
17733 rm -f conftest.$ac_objext conftest.$ac_ext
17735 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17736 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17737 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
17739 cat >>confdefs.h <<\_ACEOF
17740 #define HAVE_UT_UT_USER 1
17745 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17746 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17747 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 cat >conftest.$ac_ext <<_ACEOF
17752 #line $LINENO "configure"
17753 #include "confdefs.h"
17754 #include <sys/types.h>
17756 #ifdef F77_DUMMY_MAIN
17757 # ifdef __cplusplus
17760 int F77_DUMMY_MAIN() { return 1; }
17765 struct utmp ut; ut.ut_id[0] = 'a';
17770 rm -f conftest.$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772 (eval $ac_compile) 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try='test -s conftest.$ac_objext'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 samba_cv_HAVE_UT_UT_ID=yes
17784 echo "$as_me: failed program was:" >&5
17785 cat conftest.$ac_ext >&5
17786 samba_cv_HAVE_UT_UT_ID=no
17788 rm -f conftest.$ac_objext conftest.$ac_ext
17790 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17791 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17792 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
17794 cat >>confdefs.h <<\_ACEOF
17795 #define HAVE_UT_UT_ID 1
17800 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17801 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17802 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17803 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line $LINENO "configure"
17808 #include "confdefs.h"
17809 #include <sys/types.h>
17811 #ifdef F77_DUMMY_MAIN
17812 # ifdef __cplusplus
17815 int F77_DUMMY_MAIN() { return 1; }
17820 struct utmp ut; ut.ut_host[0] = 'a';
17825 rm -f conftest.$ac_objext
17826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17827 (eval $ac_compile) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -s conftest.$ac_objext'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 samba_cv_HAVE_UT_UT_HOST=yes
17839 echo "$as_me: failed program was:" >&5
17840 cat conftest.$ac_ext >&5
17841 samba_cv_HAVE_UT_UT_HOST=no
17843 rm -f conftest.$ac_objext conftest.$ac_ext
17845 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17846 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17847 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
17849 cat >>confdefs.h <<\_ACEOF
17850 #define HAVE_UT_UT_HOST 1
17855 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17856 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17857 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 cat >conftest.$ac_ext <<_ACEOF
17862 #line $LINENO "configure"
17863 #include "confdefs.h"
17864 #include <sys/types.h>
17866 #ifdef F77_DUMMY_MAIN
17867 # ifdef __cplusplus
17870 int F77_DUMMY_MAIN() { return 1; }
17875 struct utmp ut; time_t t; ut.ut_time = t;
17880 rm -f conftest.$ac_objext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17882 (eval $ac_compile) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 samba_cv_HAVE_UT_UT_TIME=yes
17894 echo "$as_me: failed program was:" >&5
17895 cat conftest.$ac_ext >&5
17896 samba_cv_HAVE_UT_UT_TIME=no
17898 rm -f conftest.$ac_objext conftest.$ac_ext
17900 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17901 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17902 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
17904 cat >>confdefs.h <<\_ACEOF
17905 #define HAVE_UT_UT_TIME 1
17910 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17911 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17912 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 cat >conftest.$ac_ext <<_ACEOF
17917 #line $LINENO "configure"
17918 #include "confdefs.h"
17919 #include <sys/types.h>
17921 #ifdef F77_DUMMY_MAIN
17922 # ifdef __cplusplus
17925 int F77_DUMMY_MAIN() { return 1; }
17930 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -s conftest.$ac_objext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 samba_cv_HAVE_UT_UT_TV=yes
17949 echo "$as_me: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17951 samba_cv_HAVE_UT_UT_TV=no
17953 rm -f conftest.$ac_objext conftest.$ac_ext
17955 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
17956 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
17957 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
17959 cat >>confdefs.h <<\_ACEOF
17960 #define HAVE_UT_UT_TV 1
17965 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
17966 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
17967 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17972 #line $LINENO "configure"
17973 #include "confdefs.h"
17974 #include <sys/types.h>
17976 #ifdef F77_DUMMY_MAIN
17977 # ifdef __cplusplus
17980 int F77_DUMMY_MAIN() { return 1; }
17985 struct utmp ut; ut.ut_type = 0;
17990 rm -f conftest.$ac_objext
17991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17992 (eval $ac_compile) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -s conftest.$ac_objext'
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; }; then
18002 samba_cv_HAVE_UT_UT_TYPE=yes
18004 echo "$as_me: failed program was:" >&5
18005 cat conftest.$ac_ext >&5
18006 samba_cv_HAVE_UT_UT_TYPE=no
18008 rm -f conftest.$ac_objext conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18011 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18012 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
18014 cat >>confdefs.h <<\_ACEOF
18015 #define HAVE_UT_UT_TYPE 1
18020 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18021 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18022 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 cat >conftest.$ac_ext <<_ACEOF
18027 #line $LINENO "configure"
18028 #include "confdefs.h"
18029 #include <sys/types.h>
18031 #ifdef F77_DUMMY_MAIN
18032 # ifdef __cplusplus
18035 int F77_DUMMY_MAIN() { return 1; }
18040 struct utmp ut; ut.ut_pid = 0;
18045 rm -f conftest.$ac_objext
18046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18047 (eval $ac_compile) 2>&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } &&
18051 { ac_try='test -s conftest.$ac_objext'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; }; then
18057 samba_cv_HAVE_UT_UT_PID=yes
18059 echo "$as_me: failed program was:" >&5
18060 cat conftest.$ac_ext >&5
18061 samba_cv_HAVE_UT_UT_PID=no
18063 rm -f conftest.$ac_objext conftest.$ac_ext
18065 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18066 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18067 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE_UT_UT_PID 1
18075 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18076 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18077 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 cat >conftest.$ac_ext <<_ACEOF
18082 #line $LINENO "configure"
18083 #include "confdefs.h"
18084 #include <sys/types.h>
18086 #ifdef F77_DUMMY_MAIN
18087 # ifdef __cplusplus
18090 int F77_DUMMY_MAIN() { return 1; }
18095 struct utmp ut; ut.ut_exit.e_exit = 0;
18100 rm -f conftest.$ac_objext
18101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18102 (eval $ac_compile) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
18106 { ac_try='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 samba_cv_HAVE_UT_UT_EXIT=yes
18114 echo "$as_me: failed program was:" >&5
18115 cat conftest.$ac_ext >&5
18116 samba_cv_HAVE_UT_UT_EXIT=no
18118 rm -f conftest.$ac_objext conftest.$ac_ext
18120 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18121 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18122 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
18124 cat >>confdefs.h <<\_ACEOF
18125 #define HAVE_UT_UT_EXIT 1
18130 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18131 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18132 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 cat >conftest.$ac_ext <<_ACEOF
18137 #line $LINENO "configure"
18138 #include "confdefs.h"
18139 #include <sys/types.h>
18141 #ifdef F77_DUMMY_MAIN
18142 # ifdef __cplusplus
18145 int F77_DUMMY_MAIN() { return 1; }
18150 struct utmp ut; ut.ut_addr = 0;
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -s conftest.$ac_objext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 samba_cv_HAVE_UT_UT_ADDR=yes
18169 echo "$as_me: failed program was:" >&5
18170 cat conftest.$ac_ext >&5
18171 samba_cv_HAVE_UT_UT_ADDR=no
18173 rm -f conftest.$ac_objext conftest.$ac_ext
18175 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18176 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18177 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
18179 cat >>confdefs.h <<\_ACEOF
18180 #define HAVE_UT_UT_ADDR 1
18185 if test x$ac_cv_func_pututline = xyes ; then
18186 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18187 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18188 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18192 cat >conftest.$ac_ext <<_ACEOF
18193 #line $LINENO "configure"
18194 #include "confdefs.h"
18195 #include <sys/types.h>
18197 #ifdef F77_DUMMY_MAIN
18198 # ifdef __cplusplus
18201 int F77_DUMMY_MAIN() { return 1; }
18206 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
18225 echo "$as_me: failed program was:" >&5
18226 cat conftest.$ac_ext >&5
18227 samba_cv_PUTUTLINE_RETURNS_UTMP=no
18229 rm -f conftest.$ac_objext conftest.$ac_ext
18231 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18232 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18233 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
18235 cat >>confdefs.h <<\_ACEOF
18236 #define PUTUTLINE_RETURNS_UTMP 1
18242 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18243 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18244 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 cat >conftest.$ac_ext <<_ACEOF
18249 #line $LINENO "configure"
18250 #include "confdefs.h"
18251 #include <sys/types.h>
18253 #ifdef F77_DUMMY_MAIN
18254 # ifdef __cplusplus
18257 int F77_DUMMY_MAIN() { return 1; }
18262 struct utmpx ux; ux.ut_syslen = 0;
18267 rm -f conftest.$ac_objext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18269 (eval $ac_compile) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 samba_cv_HAVE_UX_UT_SYSLEN=yes
18281 echo "$as_me: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18283 samba_cv_HAVE_UX_UT_SYSLEN=no
18285 rm -f conftest.$ac_objext conftest.$ac_ext
18287 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18288 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18289 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
18291 cat >>confdefs.h <<\_ACEOF
18292 #define HAVE_UX_UT_SYSLEN 1
18298 #################################################
18299 # check for libiconv support
18300 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18301 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18303 # Check whether --with-libiconv or --without-libiconv was given.
18304 if test "${with_libiconv+set}" = set; then
18305 withval="$with_libiconv"
18308 echo "$as_me:$LINENO: result: no" >&5
18309 echo "${ECHO_T}no" >&6
18312 echo "$as_me:$LINENO: result: yes" >&5
18313 echo "${ECHO_T}yes" >&6
18314 CFLAGS="$CFLAGS -I$withval/include"
18315 LDFLAGS="$LDFLAGS -L$withval/lib"
18317 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18318 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18319 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 ac_check_lib_save_LIBS=$LIBS
18323 LIBS="-liconv $LIBS"
18324 cat >conftest.$ac_ext <<_ACEOF
18325 #line $LINENO "configure"
18326 #include "confdefs.h"
18328 /* Override any gcc2 internal prototype to avoid an error. */
18332 /* We use char because int might match the return type of a gcc2
18333 builtin and then its argument prototype would still apply. */
18334 char iconv_open ();
18335 #ifdef F77_DUMMY_MAIN
18336 # ifdef __cplusplus
18339 int F77_DUMMY_MAIN() { return 1; }
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18351 (eval $ac_link) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try='test -s conftest$ac_exeext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 ac_cv_lib_iconv_iconv_open=yes
18363 echo "$as_me: failed program was:" >&5
18364 cat conftest.$ac_ext >&5
18365 ac_cv_lib_iconv_iconv_open=no
18367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18371 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18372 if test $ac_cv_lib_iconv_iconv_open = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_LIBICONV 1
18377 LIBS="-liconv $LIBS"
18382 cat >>confdefs.h <<_ACEOF
18383 #define WITH_LIBICONV "${withval}"
18389 echo "$as_me:$LINENO: result: no" >&5
18390 echo "${ECHO_T}no" >&6
18396 # check for iconv in libc
18397 echo "$as_me:$LINENO: checking for working iconv" >&5
18398 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18399 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 if test "$cross_compiling" = yes; then
18404 samba_cv_HAVE_NATIVE_ICONV=cross
18406 cat >conftest.$ac_ext <<_ACEOF
18407 #line $LINENO "configure"
18408 #include "confdefs.h"
18412 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18413 if (cd == 0 || cd == (iconv_t)-1) return -1;
18418 rm -f conftest$ac_exeext
18419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 samba_cv_HAVE_NATIVE_ICONV=yes
18431 echo "$as_me: program exited with status $ac_status" >&5
18432 echo "$as_me: failed program was:" >&5
18433 cat conftest.$ac_ext >&5
18434 ( exit $ac_status )
18435 samba_cv_HAVE_NATIVE_ICONV=no
18437 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18440 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18441 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18442 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
18444 cat >>confdefs.h <<\_ACEOF
18445 #define HAVE_NATIVE_ICONV 1
18451 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18452 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18453 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 if test "$cross_compiling" = yes; then
18458 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
18460 cat >conftest.$ac_ext <<_ACEOF
18461 #line $LINENO "configure"
18462 #include "confdefs.h"
18464 #include <sys/types.h>
18467 #define F_GETLEASE 1025
18470 int fd = open("/dev/null", O_RDONLY);
18471 return fcntl(fd, F_GETLEASE, 0) == -1;
18475 rm -f conftest$ac_exeext
18476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18477 (eval $ac_link) 2>&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
18488 echo "$as_me: program exited with status $ac_status" >&5
18489 echo "$as_me: failed program was:" >&5
18490 cat conftest.$ac_ext >&5
18491 ( exit $ac_status )
18492 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
18494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18497 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18498 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18499 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18507 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18508 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18509 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18510 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 if test "$cross_compiling" = yes; then
18514 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
18516 cat >conftest.$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18518 #include "confdefs.h"
18520 #include <sys/types.h>
18522 #include <signal.h>
18524 #define F_NOTIFY 1026
18527 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
18531 rm -f conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538 (eval $ac_try) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
18542 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
18544 echo "$as_me: program exited with status $ac_status" >&5
18545 echo "$as_me: failed program was:" >&5
18546 cat conftest.$ac_ext >&5
18547 ( exit $ac_status )
18548 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
18550 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18553 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18554 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18555 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
18557 cat >>confdefs.h <<\_ACEOF
18558 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18563 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18564 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18565 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18569 if test "$cross_compiling" = yes; then
18570 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
18572 cat >conftest.$ac_ext <<_ACEOF
18573 #line $LINENO "configure"
18574 #include "confdefs.h"
18576 #include <sys/types.h>
18578 #include <signal.h>
18579 #include <sys/file.h>
18581 #define LOCK_MAND 32
18582 #define LOCK_READ 64
18585 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18589 rm -f conftest$ac_exeext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18591 (eval $ac_link) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
18602 echo "$as_me: program exited with status $ac_status" >&5
18603 echo "$as_me: failed program was:" >&5
18604 cat conftest.$ac_ext >&5
18605 ( exit $ac_status )
18606 samba_cv_HAVE_KERNEL_SHARE_MODES=no
18608 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18611 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18612 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18613 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE_KERNEL_SHARE_MODES 1
18624 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18625 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18626 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 cat >conftest.$ac_ext <<_ACEOF
18631 #line $LINENO "configure"
18632 #include "confdefs.h"
18633 #include <sys/types.h>
18635 #ifdef F77_DUMMY_MAIN
18636 # ifdef __cplusplus
18639 int F77_DUMMY_MAIN() { return 1; }
18644 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18649 rm -f conftest.$ac_objext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18651 (eval $ac_compile) 2>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -s conftest.$ac_objext'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
18663 echo "$as_me: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
18667 rm -f conftest.$ac_objext conftest.$ac_ext
18669 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18670 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18671 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18679 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18680 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18681 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 if test "$cross_compiling" = yes; then
18686 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
18688 cat >conftest.$ac_ext <<_ACEOF
18689 #line $LINENO "configure"
18690 #include "confdefs.h"
18691 #include <sys/types.h>
18692 #include <sys/capability.h>
18695 if ((cap = cap_get_proc()) == NULL)
18697 cap->cap_effective |= CAP_NETWORK_MGT;
18698 cap->cap_inheritable |= CAP_NETWORK_MGT;
18704 rm -f conftest$ac_exeext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18706 (eval $ac_link) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
18717 echo "$as_me: program exited with status $ac_status" >&5
18718 echo "$as_me: failed program was:" >&5
18719 cat conftest.$ac_ext >&5
18720 ( exit $ac_status )
18721 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
18723 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18726 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18727 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18728 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18737 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18738 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18741 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18742 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18743 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 cat >conftest.$ac_ext <<_ACEOF
18748 #line $LINENO "configure"
18749 #include "confdefs.h"
18750 #include <sys/types.h>
18751 #if defined(HAVE_RPC_RPC_H)
18752 #include <rpc/rpc.h>
18754 #ifdef F77_DUMMY_MAIN
18755 # ifdef __cplusplus
18758 int F77_DUMMY_MAIN() { return 1; }
18768 rm -f conftest.$ac_objext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18770 (eval $ac_compile) 2>&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } &&
18774 { ac_try='test -s conftest.$ac_objext'
18775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776 (eval $ac_try) 2>&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); }; }; then
18780 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
18782 echo "$as_me: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18784 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
18786 rm -f conftest.$ac_objext conftest.$ac_ext
18788 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18789 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18790 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
18792 cat >>confdefs.h <<\_ACEOF
18793 #define HAVE_INT16_FROM_RPC_RPC_H 1
18798 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18799 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18800 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18805 #line $LINENO "configure"
18806 #include "confdefs.h"
18807 #include <sys/types.h>
18808 #if defined(HAVE_RPC_RPC_H)
18809 #include <rpc/rpc.h>
18811 #ifdef F77_DUMMY_MAIN
18812 # ifdef __cplusplus
18815 int F77_DUMMY_MAIN() { return 1; }
18825 rm -f conftest.$ac_objext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827 (eval $ac_compile) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } &&
18831 { ac_try='test -s conftest.$ac_objext'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
18839 echo "$as_me: failed program was:" >&5
18840 cat conftest.$ac_ext >&5
18841 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
18843 rm -f conftest.$ac_objext conftest.$ac_ext
18845 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18846 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18847 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
18849 cat >>confdefs.h <<\_ACEOF
18850 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18855 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18856 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18857 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 cat >conftest.$ac_ext <<_ACEOF
18862 #line $LINENO "configure"
18863 #include "confdefs.h"
18864 #include <sys/types.h>
18865 #if defined(HAVE_RPC_RPC_H)
18866 #include <rpc/rpc.h>
18868 #ifdef F77_DUMMY_MAIN
18869 # ifdef __cplusplus
18872 int F77_DUMMY_MAIN() { return 1; }
18882 rm -f conftest.$ac_objext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18884 (eval $ac_compile) 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
18896 echo "$as_me: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18898 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
18900 rm -f conftest.$ac_objext conftest.$ac_ext
18902 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18903 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18904 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE_INT32_FROM_RPC_RPC_H 1
18912 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18913 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18914 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 cat >conftest.$ac_ext <<_ACEOF
18919 #line $LINENO "configure"
18920 #include "confdefs.h"
18921 #include <sys/types.h>
18922 #if defined(HAVE_RPC_RPC_H)
18923 #include <rpc/rpc.h>
18925 #ifdef F77_DUMMY_MAIN
18926 # ifdef __cplusplus
18929 int F77_DUMMY_MAIN() { return 1; }
18939 rm -f conftest.$ac_objext
18940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18941 (eval $ac_compile) 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
18945 { ac_try='test -s conftest.$ac_objext'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
18951 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
18953 echo "$as_me: failed program was:" >&5
18954 cat conftest.$ac_ext >&5
18955 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
18957 rm -f conftest.$ac_objext conftest.$ac_ext
18959 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
18960 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
18961 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_UINT32_FROM_RPC_RPC_H 1
18970 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
18971 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
18972 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
18973 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 cat >conftest.$ac_ext <<_ACEOF
18977 #line $LINENO "configure"
18978 #include "confdefs.h"
18979 #include <sys/types.h>
18980 #ifdef HAVE_SYS_SECURITY_H
18981 #include <sys/security.h>
18983 #endif /* HAVE_SYS_SECURITY_H */
18984 #if defined(HAVE_RPC_RPC_H)
18985 #include <rpc/rpc.h>
18987 #ifdef F77_DUMMY_MAIN
18988 # ifdef __cplusplus
18991 int F77_DUMMY_MAIN() { return 1; }
19001 rm -f conftest.$ac_objext
19002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19003 (eval $ac_compile) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
19007 { ac_try='test -s conftest.$ac_objext'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; }; then
19013 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
19015 echo "$as_me: failed program was:" >&5
19016 cat conftest.$ac_ext >&5
19017 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
19019 rm -f conftest.$ac_objext conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19022 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19023 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
19025 cat >>confdefs.h <<\_ACEOF
19026 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19031 echo "$as_me:$LINENO: checking for test routines" >&5
19032 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19033 if test "$cross_compiling" = yes; then
19034 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19035 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19037 cat >conftest.$ac_ext <<_ACEOF
19038 #line $LINENO "configure"
19039 #include "confdefs.h"
19040 #include "${srcdir-.}/tests/trivial.c"
19042 rm -f conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044 (eval $ac_link) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 echo "$as_me:$LINENO: result: yes" >&5
19054 echo "${ECHO_T}yes" >&6
19056 echo "$as_me: program exited with status $ac_status" >&5
19057 echo "$as_me: failed program was:" >&5
19058 cat conftest.$ac_ext >&5
19059 ( exit $ac_status )
19060 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19061 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19062 { (exit 1); exit 1; }; }
19064 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19067 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19068 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19069 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 if test "$cross_compiling" = yes; then
19074 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
19076 cat >conftest.$ac_ext <<_ACEOF
19077 #line $LINENO "configure"
19078 #include "confdefs.h"
19079 #include "${srcdir-.}/tests/ftruncate.c"
19081 rm -f conftest$ac_exeext
19082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19083 (eval $ac_link) 2>&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
19094 echo "$as_me: program exited with status $ac_status" >&5
19095 echo "$as_me: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19097 ( exit $ac_status )
19098 samba_cv_HAVE_FTRUNCATE_EXTEND=no
19100 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19103 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19104 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19105 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
19107 cat >>confdefs.h <<\_ACEOF
19108 #define HAVE_FTRUNCATE_EXTEND 1
19113 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19114 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19115 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 if test "$cross_compiling" = yes; then
19120 samba_cv_HAVE_WORKING_AF_LOCAL=cross
19122 cat >conftest.$ac_ext <<_ACEOF
19123 #line $LINENO "configure"
19124 #include "confdefs.h"
19125 #include "${srcdir-.}/tests/unixsock.c"
19127 rm -f conftest$ac_exeext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19129 (eval $ac_link) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19134 (eval $ac_try) 2>&5
19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137 (exit $ac_status); }; }; then
19138 samba_cv_HAVE_WORKING_AF_LOCAL=yes
19140 echo "$as_me: program exited with status $ac_status" >&5
19141 echo "$as_me: failed program was:" >&5
19142 cat conftest.$ac_ext >&5
19143 ( exit $ac_status )
19144 samba_cv_HAVE_WORKING_AF_LOCAL=no
19146 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19149 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19150 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19151 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19154 cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_WORKING_AF_LOCAL 1
19160 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19161 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19162 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 if test "$cross_compiling" = yes; then
19167 samba_cv_HAVE_BROKEN_GETGROUPS=cross
19169 cat >conftest.$ac_ext <<_ACEOF
19170 #line $LINENO "configure"
19171 #include "confdefs.h"
19172 #include "${srcdir-.}/tests/getgroups.c"
19174 rm -f conftest$ac_exeext
19175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19176 (eval $ac_link) 2>&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; }; then
19185 samba_cv_HAVE_BROKEN_GETGROUPS=yes
19187 echo "$as_me: program exited with status $ac_status" >&5
19188 echo "$as_me: failed program was:" >&5
19189 cat conftest.$ac_ext >&5
19190 ( exit $ac_status )
19191 samba_cv_HAVE_BROKEN_GETGROUPS=no
19193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19196 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19197 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19198 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_BROKEN_GETGROUPS 1
19206 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19207 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19208 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 SAVE_CPPFLAGS="$CPPFLAGS"
19213 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
19214 cat >conftest.$ac_ext <<_ACEOF
19215 #line $LINENO "configure"
19216 #include "confdefs.h"
19218 #define REPLACE_GETPASS 1
19219 #define NO_CONFIG_H 1
19220 #define main dont_declare_main
19221 #include "${srcdir-.}/lib/getsmbpass.c"
19224 #ifdef F77_DUMMY_MAIN
19225 # ifdef __cplusplus
19228 int F77_DUMMY_MAIN() { return 1; }
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
19244 { ac_try='test -s conftest.$ac_objext'
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 samba_cv_REPLACE_GETPASS=yes
19252 echo "$as_me: failed program was:" >&5
19253 cat conftest.$ac_ext >&5
19254 samba_cv_REPLACE_GETPASS=no
19256 rm -f conftest.$ac_objext conftest.$ac_ext
19257 CPPFLAGS="$SAVE_CPPFLAGS"
19260 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19261 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19262 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
19264 cat >>confdefs.h <<\_ACEOF
19265 #define REPLACE_GETPASS 1
19270 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19271 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19272 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 if test "$cross_compiling" = yes; then
19277 samba_cv_REPLACE_INET_NTOA=cross
19279 cat >conftest.$ac_ext <<_ACEOF
19280 #line $LINENO "configure"
19281 #include "confdefs.h"
19284 #include <sys/types.h>
19285 #include <netinet/in.h>
19286 #ifdef HAVE_ARPA_INET_H
19287 #include <arpa/inet.h>
19289 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19290 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19291 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19294 rm -f conftest$ac_exeext
19295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19296 (eval $ac_link) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; }; then
19305 samba_cv_REPLACE_INET_NTOA=yes
19307 echo "$as_me: program exited with status $ac_status" >&5
19308 echo "$as_me: failed program was:" >&5
19309 cat conftest.$ac_ext >&5
19310 ( exit $ac_status )
19311 samba_cv_REPLACE_INET_NTOA=no
19313 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19316 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19317 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19318 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
19320 cat >>confdefs.h <<\_ACEOF
19321 #define REPLACE_INET_NTOA 1
19326 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19327 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19328 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 if test "$cross_compiling" = yes; then
19333 samba_cv_HAVE_SECURE_MKSTEMP=cross
19335 cat >conftest.$ac_ext <<_ACEOF
19336 #line $LINENO "configure"
19337 #include "confdefs.h"
19338 #include <stdlib.h>
19339 #include <sys/types.h>
19340 #include <sys/stat.h>
19341 #include <unistd.h>
19344 char tpl[20]="/tmp/test.XXXXXX";
19345 int fd = mkstemp(tpl);
19346 if (fd == -1) exit(1);
19348 if (fstat(fd, &st) != 0) exit(1);
19349 if ((st.st_mode & 0777) != 0600) exit(1);
19353 rm -f conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355 (eval $ac_link) 2>&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19364 samba_cv_HAVE_SECURE_MKSTEMP=yes
19366 echo "$as_me: program exited with status $ac_status" >&5
19367 echo "$as_me: failed program was:" >&5
19368 cat conftest.$ac_ext >&5
19369 ( exit $ac_status )
19370 samba_cv_HAVE_SECURE_MKSTEMP=no
19372 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19375 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19376 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19377 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_SECURE_MKSTEMP 1
19385 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19386 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19387 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 if test "$cross_compiling" = yes; then
19392 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
19394 cat >conftest.$ac_ext <<_ACEOF
19395 #line $LINENO "configure"
19396 #include "confdefs.h"
19397 #include <unistd.h>
19398 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19400 rm -f conftest$ac_exeext
19401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19402 (eval $ac_link) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
19411 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
19413 echo "$as_me: program exited with status $ac_status" >&5
19414 echo "$as_me: failed program was:" >&5
19415 cat conftest.$ac_ext >&5
19416 ( exit $ac_status )
19417 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
19419 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19422 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19423 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19424 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
19426 cat >>confdefs.h <<\_ACEOF
19427 #define SYSCONF_SC_NGROUPS_MAX 1
19432 echo "$as_me:$LINENO: checking for root" >&5
19433 echo $ECHO_N "checking for root... $ECHO_C" >&6
19434 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 if test "$cross_compiling" = yes; then
19439 samba_cv_HAVE_ROOT=cross
19441 cat >conftest.$ac_ext <<_ACEOF
19442 #line $LINENO "configure"
19443 #include "confdefs.h"
19444 main() { exit(getuid() != 0); }
19446 rm -f conftest$ac_exeext
19447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19448 (eval $ac_link) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457 samba_cv_HAVE_ROOT=yes
19459 echo "$as_me: program exited with status $ac_status" >&5
19460 echo "$as_me: failed program was:" >&5
19461 cat conftest.$ac_ext >&5
19462 ( exit $ac_status )
19463 samba_cv_HAVE_ROOT=no
19465 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19468 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19469 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19470 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
19472 cat >>confdefs.h <<\_ACEOF
19473 #define HAVE_ROOT 1
19477 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19478 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19482 # look for a method of finding the list of network interfaces
19484 echo "$as_me:$LINENO: checking for iface AIX" >&5
19485 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19486 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19487 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 if test "$cross_compiling" = yes; then
19491 samba_cv_HAVE_IFACE_AIX=cross
19493 cat >conftest.$ac_ext <<_ACEOF
19494 #line $LINENO "configure"
19495 #include "confdefs.h"
19497 #define HAVE_IFACE_AIX 1
19498 #define AUTOCONF_TEST 1
19499 #include "confdefs.h"
19500 #include "${srcdir-.}/lib/interfaces.c"
19502 rm -f conftest$ac_exeext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504 (eval $ac_link) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513 samba_cv_HAVE_IFACE_AIX=yes
19515 echo "$as_me: program exited with status $ac_status" >&5
19516 echo "$as_me: failed program was:" >&5
19517 cat conftest.$ac_ext >&5
19518 ( exit $ac_status )
19519 samba_cv_HAVE_IFACE_AIX=no
19521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19524 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19525 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19526 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_IFACE_AIX 1
19534 if test $iface = no; then
19535 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19536 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19537 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 if test "$cross_compiling" = yes; then
19542 samba_cv_HAVE_IFACE_IFCONF=cross
19544 cat >conftest.$ac_ext <<_ACEOF
19545 #line $LINENO "configure"
19546 #include "confdefs.h"
19548 #define HAVE_IFACE_IFCONF 1
19549 #define AUTOCONF_TEST 1
19550 #include "confdefs.h"
19551 #include "${srcdir-.}/lib/interfaces.c"
19553 rm -f conftest$ac_exeext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19555 (eval $ac_link) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 samba_cv_HAVE_IFACE_IFCONF=yes
19566 echo "$as_me: program exited with status $ac_status" >&5
19567 echo "$as_me: failed program was:" >&5
19568 cat conftest.$ac_ext >&5
19569 ( exit $ac_status )
19570 samba_cv_HAVE_IFACE_IFCONF=no
19572 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19575 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19576 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19577 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_IFACE_IFCONF 1
19586 if test $iface = no; then
19587 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19588 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19589 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 if test "$cross_compiling" = yes; then
19594 samba_cv_HAVE_IFACE_IFREQ=cross
19596 cat >conftest.$ac_ext <<_ACEOF
19597 #line $LINENO "configure"
19598 #include "confdefs.h"
19600 #define HAVE_IFACE_IFREQ 1
19601 #define AUTOCONF_TEST 1
19602 #include "confdefs.h"
19603 #include "${srcdir-.}/lib/interfaces.c"
19605 rm -f conftest$ac_exeext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607 (eval $ac_link) 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 samba_cv_HAVE_IFACE_IFREQ=yes
19618 echo "$as_me: program exited with status $ac_status" >&5
19619 echo "$as_me: failed program was:" >&5
19620 cat conftest.$ac_ext >&5
19621 ( exit $ac_status )
19622 samba_cv_HAVE_IFACE_IFREQ=no
19624 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19627 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19628 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19629 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
19631 cat >>confdefs.h <<\_ACEOF
19632 #define HAVE_IFACE_IFREQ 1
19639 ################################################
19640 # look for a method of setting the effective uid
19642 if test $seteuid = no; then
19643 echo "$as_me:$LINENO: checking for setresuid" >&5
19644 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19645 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 if test "$cross_compiling" = yes; then
19650 samba_cv_USE_SETRESUID=cross
19652 cat >conftest.$ac_ext <<_ACEOF
19653 #line $LINENO "configure"
19654 #include "confdefs.h"
19656 #define AUTOCONF_TEST 1
19657 #define USE_SETRESUID 1
19658 #include "confdefs.h"
19659 #include "${srcdir-.}/lib/util_sec.c"
19661 rm -f conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 samba_cv_USE_SETRESUID=yes
19674 echo "$as_me: program exited with status $ac_status" >&5
19675 echo "$as_me: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19677 ( exit $ac_status )
19678 samba_cv_USE_SETRESUID=no
19680 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19683 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19684 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19685 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
19687 cat >>confdefs.h <<\_ACEOF
19688 #define USE_SETRESUID 1
19695 if test $seteuid = no; then
19696 echo "$as_me:$LINENO: checking for setreuid" >&5
19697 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19698 if test "${samba_cv_USE_SETREUID+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 if test "$cross_compiling" = yes; then
19703 samba_cv_USE_SETREUID=cross
19705 cat >conftest.$ac_ext <<_ACEOF
19706 #line $LINENO "configure"
19707 #include "confdefs.h"
19709 #define AUTOCONF_TEST 1
19710 #define USE_SETREUID 1
19711 #include "confdefs.h"
19712 #include "${srcdir-.}/lib/util_sec.c"
19714 rm -f conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 samba_cv_USE_SETREUID=yes
19727 echo "$as_me: program exited with status $ac_status" >&5
19728 echo "$as_me: failed program was:" >&5
19729 cat conftest.$ac_ext >&5
19730 ( exit $ac_status )
19731 samba_cv_USE_SETREUID=no
19733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19736 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19737 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19738 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
19740 cat >>confdefs.h <<\_ACEOF
19741 #define USE_SETREUID 1
19747 if test $seteuid = no; then
19748 echo "$as_me:$LINENO: checking for seteuid" >&5
19749 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19750 if test "${samba_cv_USE_SETEUID+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19754 if test "$cross_compiling" = yes; then
19755 samba_cv_USE_SETEUID=cross
19757 cat >conftest.$ac_ext <<_ACEOF
19758 #line $LINENO "configure"
19759 #include "confdefs.h"
19761 #define AUTOCONF_TEST 1
19762 #define USE_SETEUID 1
19763 #include "confdefs.h"
19764 #include "${srcdir-.}/lib/util_sec.c"
19766 rm -f conftest$ac_exeext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19768 (eval $ac_link) 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 samba_cv_USE_SETEUID=yes
19779 echo "$as_me: program exited with status $ac_status" >&5
19780 echo "$as_me: failed program was:" >&5
19781 cat conftest.$ac_ext >&5
19782 ( exit $ac_status )
19783 samba_cv_USE_SETEUID=no
19785 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19788 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19789 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19790 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
19792 cat >>confdefs.h <<\_ACEOF
19793 #define USE_SETEUID 1
19799 if test $seteuid = no; then
19800 echo "$as_me:$LINENO: checking for setuidx" >&5
19801 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19802 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19806 if test "$cross_compiling" = yes; then
19807 samba_cv_USE_SETUIDX=cross
19809 cat >conftest.$ac_ext <<_ACEOF
19810 #line $LINENO "configure"
19811 #include "confdefs.h"
19813 #define AUTOCONF_TEST 1
19814 #define USE_SETUIDX 1
19815 #include "confdefs.h"
19816 #include "${srcdir-.}/lib/util_sec.c"
19818 rm -f conftest$ac_exeext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19820 (eval $ac_link) 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 samba_cv_USE_SETUIDX=yes
19831 echo "$as_me: program exited with status $ac_status" >&5
19832 echo "$as_me: failed program was:" >&5
19833 cat conftest.$ac_ext >&5
19834 ( exit $ac_status )
19835 samba_cv_USE_SETUIDX=no
19837 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19840 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19841 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19842 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
19844 cat >>confdefs.h <<\_ACEOF
19845 #define USE_SETUIDX 1
19852 echo "$as_me:$LINENO: checking for working mmap" >&5
19853 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19854 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 if test "$cross_compiling" = yes; then
19859 samba_cv_HAVE_MMAP=cross
19861 cat >conftest.$ac_ext <<_ACEOF
19862 #line $LINENO "configure"
19863 #include "confdefs.h"
19864 #include "${srcdir-.}/tests/shared_mmap.c"
19866 rm -f conftest$ac_exeext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19868 (eval $ac_link) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 samba_cv_HAVE_MMAP=yes
19879 echo "$as_me: program exited with status $ac_status" >&5
19880 echo "$as_me: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19882 ( exit $ac_status )
19883 samba_cv_HAVE_MMAP=no
19885 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19888 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19889 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19890 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
19892 cat >>confdefs.h <<\_ACEOF
19893 #define HAVE_MMAP 1
19898 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19899 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19900 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 if test "$cross_compiling" = yes; then
19905 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
19907 cat >conftest.$ac_ext <<_ACEOF
19908 #line $LINENO "configure"
19909 #include "confdefs.h"
19910 #include "${srcdir-.}/tests/ftruncroot.c"
19912 rm -f conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914 (eval $ac_link) 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
19925 echo "$as_me: program exited with status $ac_status" >&5
19926 echo "$as_me: failed program was:" >&5
19927 cat conftest.$ac_ext >&5
19928 ( exit $ac_status )
19929 samba_cv_FTRUNCATE_NEEDS_ROOT=no
19931 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19934 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19935 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19936 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
19938 cat >>confdefs.h <<\_ACEOF
19939 #define FTRUNCATE_NEEDS_ROOT 1
19944 echo "$as_me:$LINENO: checking for fcntl locking" >&5
19945 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
19946 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19950 if test "$cross_compiling" = yes; then
19951 samba_cv_HAVE_FCNTL_LOCK=cross
19953 cat >conftest.$ac_ext <<_ACEOF
19954 #line $LINENO "configure"
19955 #include "confdefs.h"
19956 #include "${srcdir-.}/tests/fcntl_lock.c"
19958 rm -f conftest$ac_exeext
19959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19960 (eval $ac_link) 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 samba_cv_HAVE_FCNTL_LOCK=yes
19971 echo "$as_me: program exited with status $ac_status" >&5
19972 echo "$as_me: failed program was:" >&5
19973 cat conftest.$ac_ext >&5
19974 ( exit $ac_status )
19975 samba_cv_HAVE_FCNTL_LOCK=no
19977 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19980 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
19981 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
19982 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
19984 cat >>confdefs.h <<\_ACEOF
19985 #define HAVE_FCNTL_LOCK 1
19990 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
19991 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
19992 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 if test "$cross_compiling" = yes; then
19997 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
19999 cat >conftest.$ac_ext <<_ACEOF
20000 #line $LINENO "configure"
20001 #include "confdefs.h"
20002 #include "${srcdir-.}/tests/fcntl_lock64.c"
20004 rm -f conftest$ac_exeext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006 (eval $ac_link) 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
20017 echo "$as_me: program exited with status $ac_status" >&5
20018 echo "$as_me: failed program was:" >&5
20019 cat conftest.$ac_ext >&5
20020 ( exit $ac_status )
20021 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
20023 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20026 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20027 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20028 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
20030 cat >>confdefs.h <<\_ACEOF
20031 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20038 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20039 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20040 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 if test "$cross_compiling" = yes; then
20045 samba_cv_HAVE_STRUCT_FLOCK64=cross
20047 cat >conftest.$ac_ext <<_ACEOF
20048 #line $LINENO "configure"
20049 #include "confdefs.h"
20051 #if defined(HAVE_UNISTD_H)
20052 #include <unistd.h>
20055 #include <stdlib.h>
20057 #ifdef HAVE_FCNTL_H
20061 #ifdef HAVE_SYS_FCNTL_H
20062 #include <sys/fcntl.h>
20064 main() { struct flock64 fl64;
20065 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20072 rm -f conftest$ac_exeext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20074 (eval $ac_link) 2>&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 samba_cv_HAVE_STRUCT_FLOCK64=yes
20085 echo "$as_me: program exited with status $ac_status" >&5
20086 echo "$as_me: failed program was:" >&5
20087 cat conftest.$ac_ext >&5
20088 ( exit $ac_status )
20089 samba_cv_HAVE_STRUCT_FLOCK64=no
20091 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20094 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20095 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20097 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
20099 cat >>confdefs.h <<\_ACEOF
20100 #define HAVE_STRUCT_FLOCK64 1
20106 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20107 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20108 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 cat >conftest.$ac_ext <<_ACEOF
20113 #line $LINENO "configure"
20114 #include "confdefs.h"
20115 #include <sys/types.h>
20116 #include <sys/stat.h>
20117 #include <unistd.h>
20118 #ifdef F77_DUMMY_MAIN
20119 # ifdef __cplusplus
20122 int F77_DUMMY_MAIN() { return 1; }
20127 struct stat st; st.st_blocks = 0;
20132 rm -f conftest.$ac_objext
20133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20134 (eval $ac_compile) 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } &&
20138 { ac_try='test -s conftest.$ac_objext'
20139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20140 (eval $ac_try) 2>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); }; }; then
20144 samba_cv_HAVE_STAT_ST_BLOCKS=yes
20146 echo "$as_me: failed program was:" >&5
20147 cat conftest.$ac_ext >&5
20148 samba_cv_HAVE_STAT_ST_BLOCKS=no
20150 rm -f conftest.$ac_objext conftest.$ac_ext
20152 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20153 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20154 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
20156 cat >>confdefs.h <<\_ACEOF
20157 #define HAVE_STAT_ST_BLOCKS 1
20162 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20163 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20164 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 cat >conftest.$ac_ext <<_ACEOF
20169 #line $LINENO "configure"
20170 #include "confdefs.h"
20171 #include <sys/types.h>
20172 #include <sys/stat.h>
20173 #include <unistd.h>
20174 #ifdef F77_DUMMY_MAIN
20175 # ifdef __cplusplus
20178 int F77_DUMMY_MAIN() { return 1; }
20183 struct stat st; st.st_blksize = 0;
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190 (eval $ac_compile) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } &&
20194 { ac_try='test -s conftest.$ac_objext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
20202 echo "$as_me: failed program was:" >&5
20203 cat conftest.$ac_ext >&5
20204 samba_cv_HAVE_STAT_ST_BLKSIZE=no
20206 rm -f conftest.$ac_objext conftest.$ac_ext
20208 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20209 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20210 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
20212 cat >>confdefs.h <<\_ACEOF
20213 #define HAVE_STAT_ST_BLKSIZE 1
20220 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20221 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20222 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20223 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 cat >conftest.$ac_ext <<_ACEOF
20227 #line $LINENO "configure"
20228 #include "confdefs.h"
20230 #ifdef HAVE_SYS_VFS_H
20231 #include <sys/vfs.h>
20233 #ifdef HAVE_SYS_CAPABILITY_H
20234 #include <sys/capability.h>
20237 #ifdef F77_DUMMY_MAIN
20238 # ifdef __cplusplus
20241 int F77_DUMMY_MAIN() { return 1; }
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
20257 { ac_try='test -s conftest.$ac_objext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
20265 echo "$as_me: failed program was:" >&5
20266 cat conftest.$ac_ext >&5
20267 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
20269 rm -f conftest.$ac_objext conftest.$ac_ext
20271 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20272 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20273 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
20275 cat >>confdefs.h <<\_ACEOF
20276 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20283 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20284 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20285 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20290 #line $LINENO "configure"
20291 #include "confdefs.h"
20292 #include <sys/acl.h>
20293 #if defined(HAVE_RPCSVC_NIS_H)
20294 #include <rpcsvc/nis.h>
20296 #ifdef F77_DUMMY_MAIN
20297 # ifdef __cplusplus
20300 int F77_DUMMY_MAIN() { return 1; }
20310 rm -f conftest.$ac_objext
20311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20312 (eval $ac_compile) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try='test -s conftest.$ac_objext'
20317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20318 (eval $ac_try) 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; }; then
20322 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
20324 echo "$as_me: failed program was:" >&5
20325 cat conftest.$ac_ext >&5
20326 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
20328 rm -f conftest.$ac_objext conftest.$ac_ext
20330 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20331 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20332 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
20334 cat >>confdefs.h <<\_ACEOF
20335 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20341 #################################################
20342 # check for smbwrapper support
20343 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20344 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20346 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20347 if test "${with_smbwrapper+set}" = set; then
20348 withval="$with_smbwrapper"
20351 echo "$as_me:$LINENO: result: yes" >&5
20352 echo "${ECHO_T}yes" >&6
20354 cat >>confdefs.h <<\_ACEOF
20355 #define WITH_SMBWRAPPER 1
20358 WRAPPROG="bin/smbsh\$(EXEEXT)"
20359 WRAP="bin/smbwrapper.$SHLIBEXT"
20361 if test x$ATTEMPT_WRAP32_BUILD = x; then
20364 WRAP32=bin/smbwrapper.32.$SHLIBEXT
20367 # Conditions under which smbwrapper should not be built.
20369 if test x$PICFLAG = x; then
20370 echo No support for PIC code - disabling smbwrapper and smbsh
20374 elif test x$ac_cv_func_syscall = xno; then
20375 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20376 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20381 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
20382 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
20385 echo "$as_me:$LINENO: result: no" >&5
20386 echo "${ECHO_T}no" >&6
20390 echo "$as_me:$LINENO: result: no" >&5
20391 echo "${ECHO_T}no" >&6
20395 #################################################
20396 # check for AFS clear-text auth support
20397 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20398 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20400 # Check whether --with-afs or --without-afs was given.
20401 if test "${with_afs+set}" = set; then
20402 withval="$with_afs"
20405 echo "$as_me:$LINENO: result: yes" >&5
20406 echo "${ECHO_T}yes" >&6
20408 cat >>confdefs.h <<\_ACEOF
20414 echo "$as_me:$LINENO: result: no" >&5
20415 echo "${ECHO_T}no" >&6
20419 echo "$as_me:$LINENO: result: no" >&5
20420 echo "${ECHO_T}no" >&6
20425 #################################################
20426 # check for the DFS clear-text auth system
20427 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20428 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20430 # Check whether --with-dfs or --without-dfs was given.
20431 if test "${with_dfs+set}" = set; then
20432 withval="$with_dfs"
20435 echo "$as_me:$LINENO: result: yes" >&5
20436 echo "${ECHO_T}yes" >&6
20438 cat >>confdefs.h <<\_ACEOF
20444 echo "$as_me:$LINENO: result: no" >&5
20445 echo "${ECHO_T}no" >&6
20449 echo "$as_me:$LINENO: result: no" >&5
20450 echo "${ECHO_T}no" >&6
20454 #################################################
20455 # active directory support
20457 with_ads_support=yes
20458 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20459 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20462 # Check whether --with-ads or --without-ads was given.
20463 if test "${with_ads+set}" = set; then
20464 withval="$with_ads"
20467 with_ads_support=no
20472 if test x"$with_ads_support" = x"yes"; then
20474 cat >>confdefs.h <<\_ACEOF
20480 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20481 echo "${ECHO_T}$with_ads_support" >&6
20484 if test x"$with_ads_support" = x"yes"; then
20486 #################################################
20487 # check for location of Kerberos 5 install
20488 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20489 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20491 # Check whether --with-krb5 or --without-krb5 was given.
20492 if test "${with_krb5+set}" = set; then
20493 withval="$with_krb5"
20496 echo "$as_me:$LINENO: result: no" >&5
20497 echo "${ECHO_T}no" >&6
20500 echo "$as_me:$LINENO: result: yes" >&5
20501 echo "${ECHO_T}yes" >&6
20502 LIBS="$LIBS -lkrb5"
20503 CFLAGS="$CFLAGS -I$withval/include"
20504 CPPFLAGS="$CPPFLAGS -I$withval/include"
20505 LDFLAGS="$LDFLAGS -L$withval/lib"
20510 echo "$as_me:$LINENO: result: no" >&5
20511 echo "${ECHO_T}no" >&6
20516 if test x$FOUND_KRB5 = x"no"; then
20517 #################################################
20518 # see if this box has the SuSE location for the heimdal kerberos implementation
20519 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20520 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20521 if test -d /usr/include/heimdal; then
20522 CFLAGS="$CFLAGS -I/usr/include/heimdal"
20523 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
20524 echo "$as_me:$LINENO: result: yes" >&5
20525 echo "${ECHO_T}yes" >&6
20527 echo "$as_me:$LINENO: result: no" >&5
20528 echo "${ECHO_T}no" >&6
20533 if test x$FOUND_KRB5 = x"no"; then
20534 #################################################
20535 # see if this box has the RedHat location for kerberos
20536 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20537 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20538 if test -d /usr/kerberos; then
20539 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
20540 CFLAGS="$CFLAGS -I/usr/kerberos/include"
20541 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
20542 echo "$as_me:$LINENO: result: yes" >&5
20543 echo "${ECHO_T}yes" >&6
20545 echo "$as_me:$LINENO: result: no" >&5
20546 echo "${ECHO_T}no" >&6
20551 # now check for krb5.h. Some systems have the libraries without the headers!
20552 # note that this check is done here to allow for different kerberos
20555 for ac_header in krb5.h
20557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559 echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20567 # Is the header compilable?
20568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20570 cat >conftest.$ac_ext <<_ACEOF
20571 #line $LINENO "configure"
20572 #include "confdefs.h"
20573 $ac_includes_default
20574 #include <$ac_header>
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578 (eval $ac_compile) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
20582 { ac_try='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_header_compiler=yes
20590 echo "$as_me: failed program was:" >&5
20591 cat conftest.$ac_ext >&5
20592 ac_header_compiler=no
20594 rm -f conftest.$ac_objext conftest.$ac_ext
20595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20596 echo "${ECHO_T}$ac_header_compiler" >&6
20598 # Is the header present?
20599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20601 cat >conftest.$ac_ext <<_ACEOF
20602 #line $LINENO "configure"
20603 #include "confdefs.h"
20604 #include <$ac_header>
20606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20609 egrep -v '^ *\+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } >/dev/null; then
20614 if test -s conftest.err; then
20615 ac_cpp_err=$ac_c_preproc_warn_flag
20622 if test -z "$ac_cpp_err"; then
20623 ac_header_preproc=yes
20625 echo "$as_me: failed program was:" >&5
20626 cat conftest.$ac_ext >&5
20627 ac_header_preproc=no
20629 rm -f conftest.err conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20631 echo "${ECHO_T}$ac_header_preproc" >&6
20633 # So? What about this header?
20634 case $ac_header_compiler:$ac_header_preproc in
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20637 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20648 echo "$as_me:$LINENO: checking for $ac_header" >&5
20649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 eval "$as_ac_Header=$ac_header_preproc"
20655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20660 cat >>confdefs.h <<_ACEOF
20661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20669 # now check for gssapi headers. This is also done here to allow for
20670 # different kerberos include paths
20673 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
20675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20677 echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20685 # Is the header compilable?
20686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20689 #line $LINENO "configure"
20690 #include "confdefs.h"
20691 $ac_includes_default
20692 #include <$ac_header>
20694 rm -f conftest.$ac_objext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696 (eval $ac_compile) 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); } &&
20700 { ac_try='test -s conftest.$ac_objext'
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_header_compiler=yes
20708 echo "$as_me: failed program was:" >&5
20709 cat conftest.$ac_ext >&5
20710 ac_header_compiler=no
20712 rm -f conftest.$ac_objext conftest.$ac_ext
20713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20714 echo "${ECHO_T}$ac_header_compiler" >&6
20716 # Is the header present?
20717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20719 cat >conftest.$ac_ext <<_ACEOF
20720 #line $LINENO "configure"
20721 #include "confdefs.h"
20722 #include <$ac_header>
20724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20727 egrep -v '^ *\+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } >/dev/null; then
20732 if test -s conftest.err; then
20733 ac_cpp_err=$ac_c_preproc_warn_flag
20740 if test -z "$ac_cpp_err"; then
20741 ac_header_preproc=yes
20743 echo "$as_me: failed program was:" >&5
20744 cat conftest.$ac_ext >&5
20745 ac_header_preproc=no
20747 rm -f conftest.err conftest.$ac_ext
20748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20749 echo "${ECHO_T}$ac_header_preproc" >&6
20751 # So? What about this header?
20752 case $ac_header_compiler:$ac_header_preproc in
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20766 echo "$as_me:$LINENO: checking for $ac_header" >&5
20767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 eval "$as_ac_Header=$ac_header_preproc"
20773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20787 ##################################################################
20788 # we might need the k5crypto and com_err libraries on some systems
20789 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20790 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20791 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 ac_check_lib_save_LIBS=$LIBS
20795 LIBS="-lcom_err $LIBS"
20796 cat >conftest.$ac_ext <<_ACEOF
20797 #line $LINENO "configure"
20798 #include "confdefs.h"
20800 /* Override any gcc2 internal prototype to avoid an error. */
20804 /* We use char because int might match the return type of a gcc2
20805 builtin and then its argument prototype would still apply. */
20807 #ifdef F77_DUMMY_MAIN
20808 # ifdef __cplusplus
20811 int F77_DUMMY_MAIN() { return 1; }
20821 rm -f conftest.$ac_objext conftest$ac_exeext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823 (eval $ac_link) 2>&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } &&
20827 { ac_try='test -s conftest$ac_exeext'
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833 ac_cv_lib_com_err__et_list=yes
20835 echo "$as_me: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20837 ac_cv_lib_com_err__et_list=no
20839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20842 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20843 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20844 if test $ac_cv_lib_com_err__et_list = yes; then
20845 LIBS="$LIBS -lcom_err"
20848 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20849 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20850 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 ac_check_lib_save_LIBS=$LIBS
20854 LIBS="-lk5crypto $LIBS"
20855 cat >conftest.$ac_ext <<_ACEOF
20856 #line $LINENO "configure"
20857 #include "confdefs.h"
20859 /* Override any gcc2 internal prototype to avoid an error. */
20863 /* We use char because int might match the return type of a gcc2
20864 builtin and then its argument prototype would still apply. */
20865 char krb5_encrypt_data ();
20866 #ifdef F77_DUMMY_MAIN
20867 # ifdef __cplusplus
20870 int F77_DUMMY_MAIN() { return 1; }
20875 krb5_encrypt_data ();
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20882 (eval $ac_link) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_lib_k5crypto_krb5_encrypt_data=yes
20894 echo "$as_me: failed program was:" >&5
20895 cat conftest.$ac_ext >&5
20896 ac_cv_lib_k5crypto_krb5_encrypt_data=no
20898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20901 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_encrypt_data" >&5
20902 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20903 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20904 LIBS="$LIBS -lk5crypto"
20908 ########################################################
20909 # now see if we can find the krb5 libs in standard paths
20910 # or as specified above
20911 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
20912 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
20913 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 ac_check_lib_save_LIBS=$LIBS
20917 LIBS="-lkrb5 $LIBS"
20918 cat >conftest.$ac_ext <<_ACEOF
20919 #line $LINENO "configure"
20920 #include "confdefs.h"
20922 /* Override any gcc2 internal prototype to avoid an error. */
20926 /* We use char because int might match the return type of a gcc2
20927 builtin and then its argument prototype would still apply. */
20928 char krb5_mk_req_extended ();
20929 #ifdef F77_DUMMY_MAIN
20930 # ifdef __cplusplus
20933 int F77_DUMMY_MAIN() { return 1; }
20938 krb5_mk_req_extended ();
20943 rm -f conftest.$ac_objext conftest$ac_exeext
20944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20945 (eval $ac_link) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -s conftest$ac_exeext'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_lib_krb5_krb5_mk_req_extended=yes
20957 echo "$as_me: failed program was:" >&5
20958 cat conftest.$ac_ext >&5
20959 ac_cv_lib_krb5_krb5_mk_req_extended=no
20961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20964 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
20965 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
20966 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
20967 LIBS="$LIBS -lkrb5";
20969 cat >>confdefs.h <<\_ACEOF
20970 #define HAVE_KRB5 1
20976 ########################################################
20977 # now see if we can find the gssapi libs in standard paths
20978 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
20979 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
20980 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-lgssapi_krb5 $LIBS"
20985 cat >conftest.$ac_ext <<_ACEOF
20986 #line $LINENO "configure"
20987 #include "confdefs.h"
20989 /* Override any gcc2 internal prototype to avoid an error. */
20993 /* We use char because int might match the return type of a gcc2
20994 builtin and then its argument prototype would still apply. */
20995 char gss_display_status ();
20996 #ifdef F77_DUMMY_MAIN
20997 # ifdef __cplusplus
21000 int F77_DUMMY_MAIN() { return 1; }
21005 gss_display_status ();
21010 rm -f conftest.$ac_objext conftest$ac_exeext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21012 (eval $ac_link) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); } &&
21016 { ac_try='test -s conftest$ac_exeext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_gssapi_krb5_gss_display_status=yes
21024 echo "$as_me: failed program was:" >&5
21025 cat conftest.$ac_ext >&5
21026 ac_cv_lib_gssapi_krb5_gss_display_status=no
21028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21029 LIBS=$ac_check_lib_save_LIBS
21031 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21032 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21033 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21034 LIBS="$LIBS -lgssapi_krb5";
21036 cat >>confdefs.h <<\_ACEOF
21037 #define HAVE_GSSAPI 1
21044 ########################################################
21045 # Compile with LDAP support?
21047 with_ldap_support=yes
21048 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21049 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21052 # Check whether --with-ldap or --without-ldap was given.
21053 if test "${with_ldap+set}" = set; then
21054 withval="$with_ldap"
21057 with_ldap_support=no
21062 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21063 echo "${ECHO_T}$with_ldap_support" >&6
21065 if test x"$with_ldap_support" = x"yes"; then
21067 ##################################################################
21068 # we might need the lber lib on some systems. To avoid link errors
21069 # this test must be before the libldap test
21070 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21071 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21072 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 ac_check_lib_save_LIBS=$LIBS
21076 LIBS="-llber $LIBS"
21077 cat >conftest.$ac_ext <<_ACEOF
21078 #line $LINENO "configure"
21079 #include "confdefs.h"
21081 /* Override any gcc2 internal prototype to avoid an error. */
21085 /* We use char because int might match the return type of a gcc2
21086 builtin and then its argument prototype would still apply. */
21088 #ifdef F77_DUMMY_MAIN
21089 # ifdef __cplusplus
21092 int F77_DUMMY_MAIN() { return 1; }
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104 (eval $ac_link) 2>&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -s conftest$ac_exeext'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 ac_cv_lib_lber_ber_scanf=yes
21116 echo "$as_me: failed program was:" >&5
21117 cat conftest.$ac_ext >&5
21118 ac_cv_lib_lber_ber_scanf=no
21120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21121 LIBS=$ac_check_lib_save_LIBS
21123 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21124 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21125 if test $ac_cv_lib_lber_ber_scanf = yes; then
21126 LIBS="$LIBS -llber"
21130 ########################################################
21131 # now see if we can find the ldap libs in standard paths
21132 if test x$have_ldap != xyes; then
21133 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21134 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21135 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21136 echo $ECHO_N "(cached) $ECHO_C" >&6
21138 ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-lldap $LIBS"
21140 cat >conftest.$ac_ext <<_ACEOF
21141 #line $LINENO "configure"
21142 #include "confdefs.h"
21144 /* Override any gcc2 internal prototype to avoid an error. */
21148 /* We use char because int might match the return type of a gcc2
21149 builtin and then its argument prototype would still apply. */
21150 char ldap_domain2hostlist ();
21151 #ifdef F77_DUMMY_MAIN
21152 # ifdef __cplusplus
21155 int F77_DUMMY_MAIN() { return 1; }
21160 ldap_domain2hostlist ();
21165 rm -f conftest.$ac_objext conftest$ac_exeext
21166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21167 (eval $ac_link) 2>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -s conftest$ac_exeext'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; }; then
21177 ac_cv_lib_ldap_ldap_domain2hostlist=yes
21179 echo "$as_me: failed program was:" >&5
21180 cat conftest.$ac_ext >&5
21181 ac_cv_lib_ldap_ldap_domain2hostlist=no
21183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21184 LIBS=$ac_check_lib_save_LIBS
21186 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21187 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21188 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21189 LIBS="$LIBS -lldap";
21191 cat >>confdefs.h <<\_ACEOF
21192 #define HAVE_LDAP 1
21198 ########################################################
21199 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21200 # Check found in pam_ldap 145.
21202 for ac_func in ldap_set_rebind_proc
21204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21205 echo "$as_me:$LINENO: checking for $ac_func" >&5
21206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21207 if eval "test \"\${$as_ac_var+set}\" = set"; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 cat >conftest.$ac_ext <<_ACEOF
21211 #line $LINENO "configure"
21212 #include "confdefs.h"
21213 /* System header to define __stub macros and hopefully few prototypes,
21214 which can conflict with char $ac_func (); below. */
21215 #include <assert.h>
21216 /* Override any gcc2 internal prototype to avoid an error. */
21220 /* We use char because int might match the return type of a gcc2
21221 builtin and then its argument prototype would still apply. */
21225 #ifdef F77_DUMMY_MAIN
21226 # ifdef __cplusplus
21229 int F77_DUMMY_MAIN() { return 1; }
21234 /* The GNU C library defines this for functions which it implements
21235 to always fail with ENOSYS. Some functions are actually named
21236 something starting with __ and the normal name is an alias. */
21237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } &&
21253 { ac_try='test -s conftest$ac_exeext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 eval "$as_ac_var=yes"
21261 echo "$as_me: failed program was:" >&5
21262 cat conftest.$ac_ext >&5
21263 eval "$as_ac_var=no"
21265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21269 if test `eval echo '${'$as_ac_var'}'` = yes; then
21270 cat >>confdefs.h <<_ACEOF
21271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21277 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21278 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21279 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21284 #line $LINENO "configure"
21285 #include "confdefs.h"
21289 #ifdef F77_DUMMY_MAIN
21290 # ifdef __cplusplus
21293 int F77_DUMMY_MAIN() { return 1; }
21298 ldap_set_rebind_proc(0, 0, 0);
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305 (eval $ac_compile) 2>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
21309 { ac_try='test -s conftest.$ac_objext'
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315 pam_ldap_cv_ldap_set_rebind_proc=3
21317 echo "$as_me: failed program was:" >&5
21318 cat conftest.$ac_ext >&5
21319 pam_ldap_cv_ldap_set_rebind_proc=2
21321 rm -f conftest.$ac_objext conftest.$ac_ext
21323 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21324 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21326 cat >>confdefs.h <<_ACEOF
21327 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21333 ########################################################
21334 # Compile with MySQL support?
21336 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21337 if test "${with_mysql_prefix+set}" = set; then
21338 withval="$with_mysql_prefix"
21339 mysql_prefix="$withval"
21344 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21345 if test "${with_mysql_exec_prefix+set}" = set; then
21346 withval="$with_mysql_exec_prefix"
21347 mysql_exec_prefix="$withval"
21349 mysql_exec_prefix=""
21351 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21352 if test "${enable_mysqltest+set}" = set; then
21353 enableval="$enable_mysqltest"
21356 enable_mysqltest=yes
21359 if test x$mysql_exec_prefix != x ; then
21360 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
21361 if test x${MYSQL_CONFIG+set} != xset ; then
21362 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
21365 if test x$mysql_prefix != x ; then
21366 mysql_args="$mysql_args --prefix=$mysql_prefix"
21367 if test x${MYSQL_CONFIG+set} != xset ; then
21368 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
21373 # Extract the first word of "mysql_config", so it can be a program name with args.
21374 set dummy mysql_config; ac_word=$2
21375 echo "$as_me:$LINENO: checking for $ac_word" >&5
21376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21377 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 case $MYSQL_CONFIG in
21382 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
21385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21386 for as_dir in $PATH
21389 test -z "$as_dir" && as_dir=.
21390 for ac_exec_ext in '' $ac_executable_extensions; do
21391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21392 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21399 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
21403 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
21405 if test -n "$MYSQL_CONFIG"; then
21406 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21407 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21409 echo "$as_me:$LINENO: result: no" >&5
21410 echo "${ECHO_T}no" >&6
21413 min_mysql_version=0.11.0
21414 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21415 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21417 if test "$MYSQL_CONFIG" = "no" ; then
21420 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21421 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21423 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
21424 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21425 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
21426 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21427 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
21428 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21429 if test "x$enable_mysqltest" = "xyes" ; then
21430 ac_save_CFLAGS="$CFLAGS"
21431 ac_save_LIBS="$LIBS"
21432 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21433 LIBS="$LIBS $MYSQL_LIBS"
21434 rm -f conf.mysqltest
21435 if test "$cross_compiling" = yes; then
21436 echo $ac_n "cross compiling; assumed OK... $ac_c"
21438 cat >conftest.$ac_ext <<_ACEOF
21439 #line $LINENO "configure"
21440 #include "confdefs.h"
21443 #include <stdlib.h>
21444 #include <string.h>
21448 my_strdup (char *str)
21454 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21455 strcpy (new_str, str);
21463 int main (int argc, char *argv[])
21465 int major, minor, micro;
21468 /* This hangs on some systems (?)
21469 system ("touch conf.mysqltest");
21471 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
21473 /* HP/UX 9 (%@#!) writes to sscanf strings */
21474 tmp_version = my_strdup("$min_mysql_version");
21475 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
21476 printf("%s, bad version string\n", "$min_mysql_version");
21480 if (($mysql_major_version > major) ||
21481 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
21482 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
21488 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
21489 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
21490 printf("*** best to upgrade to the required version.\n");
21491 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
21492 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
21493 printf("*** config.cache before re-running configure\n");
21500 rm -f conftest$ac_exeext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21502 (eval $ac_link) 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21513 echo "$as_me: program exited with status $ac_status" >&5
21514 echo "$as_me: failed program was:" >&5
21515 cat conftest.$ac_ext >&5
21516 ( exit $ac_status )
21519 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21521 CFLAGS="$ac_save_CFLAGS"
21522 LIBS="$ac_save_LIBS"
21525 if test "x$no_mysql" = x ; then
21526 echo "$as_me:$LINENO: result: yes" >&5
21527 echo "${ECHO_T}yes" >&6
21528 MODULE_MYSQL=bin/pdb_mysql.so
21530 echo "$as_me:$LINENO: result: no" >&5
21531 echo "${ECHO_T}no" >&6
21532 if test "$MYSQL_CONFIG" = "no" ; then
21533 echo "*** The mysql_config script installed by MYSQL could not be found"
21534 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
21535 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
21536 echo "*** full path to mysql_config."
21538 if test -f conf.mysqltest ; then
21541 echo "*** Could not run MYSQL test program, checking why..."
21542 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21543 LIBS="$LIBS $MYSQL_LIBS"
21544 cat >conftest.$ac_ext <<_ACEOF
21545 #line $LINENO "configure"
21546 #include "confdefs.h"
21551 int main(int argc, char *argv[])
21554 #define main K_and_R_C_main
21556 #ifdef F77_DUMMY_MAIN
21557 # ifdef __cplusplus
21560 int F77_DUMMY_MAIN() { return 1; }
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21572 (eval $ac_link) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
21576 { ac_try='test -s 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 echo "*** The test program compiled, but did not run. This usually means"
21583 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
21584 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
21585 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21586 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21587 echo "*** is required on your system"
21589 echo "*** If you have an old version installed, it is best to remove it, although"
21590 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21592 echo "$as_me: failed program was:" >&5
21593 cat conftest.$ac_ext >&5
21594 echo "*** The test program failed to compile or link. See the file config.log for the"
21595 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
21596 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
21597 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
21599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21600 CFLAGS="$ac_save_CFLAGS"
21601 LIBS="$ac_save_LIBS"
21610 rm -f conf.mysqltest
21612 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
21615 ########################################################
21616 # Compile with XML support?
21619 # Check whether --with-xml-prefix or --without-xml-prefix was given.
21620 if test "${with_xml_prefix+set}" = set; then
21621 withval="$with_xml_prefix"
21622 xml_config_prefix="$withval"
21624 xml_config_prefix=""
21627 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
21628 if test "${with_xml_exec_prefix+set}" = set; then
21629 withval="$with_xml_exec_prefix"
21630 xml_config_exec_prefix="$withval"
21632 xml_config_exec_prefix=""
21634 # Check whether --enable-xmltest or --disable-xmltest was given.
21635 if test "${enable_xmltest+set}" = set; then
21636 enableval="$enable_xmltest"
21642 if test x$xml_config_exec_prefix != x ; then
21643 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
21644 if test x${XML2_CONFIG+set} != xset ; then
21645 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
21648 if test x$xml_config_prefix != x ; then
21649 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
21650 if test x${XML2_CONFIG+set} != xset ; then
21651 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
21655 # Extract the first word of "xml2-config", so it can be a program name with args.
21656 set dummy xml2-config; ac_word=$2
21657 echo "$as_me:$LINENO: checking for $ac_word" >&5
21658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21659 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 case $XML2_CONFIG in
21664 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
21667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21668 for as_dir in $PATH
21671 test -z "$as_dir" && as_dir=.
21672 for ac_exec_ext in '' $ac_executable_extensions; do
21673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21674 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21681 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
21685 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
21687 if test -n "$XML2_CONFIG"; then
21688 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
21689 echo "${ECHO_T}$XML2_CONFIG" >&6
21691 echo "$as_me:$LINENO: result: no" >&5
21692 echo "${ECHO_T}no" >&6
21695 min_xml_version=2.0.0
21696 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
21697 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
21699 if test "$XML2_CONFIG" = "no" ; then
21702 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
21703 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
21704 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
21705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21706 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
21707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21708 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
21709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21710 if test "x$enable_xmltest" = "xyes" ; then
21711 ac_save_CFLAGS="$CFLAGS"
21712 ac_save_LIBS="$LIBS"
21713 CFLAGS="$CFLAGS $XML_CFLAGS"
21714 LIBS="$XML_LIBS $LIBS"
21716 if test "$cross_compiling" = yes; then
21717 echo $ac_n "cross compiling; assumed OK... $ac_c"
21719 cat >conftest.$ac_ext <<_ACEOF
21720 #line $LINENO "configure"
21721 #include "confdefs.h"
21723 #include <stdlib.h>
21725 #include <string.h>
21726 #include <libxml/xmlversion.h>
21731 int xml_major_version, xml_minor_version, xml_micro_version;
21732 int major, minor, micro;
21735 system("touch conf.xmltest");
21737 /* Capture xml2-config output via autoconf/configure variables */
21738 /* HP/UX 9 (%@#!) writes to sscanf strings */
21739 tmp_version = (char *)strdup("$min_xml_version");
21740 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
21741 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
21746 /* Capture the version information from the header files */
21747 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
21748 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
21749 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
21754 /* Compare xml2-config output to the libxml headers */
21755 if ((xml_major_version != $xml_config_major_version) ||
21756 (xml_minor_version != $xml_config_minor_version) ||
21757 (xml_micro_version != $xml_config_micro_version))
21759 printf("*** libxml header files (version %d.%d.%d) do not match\n",
21760 xml_major_version, xml_minor_version, xml_micro_version);
21761 printf("*** xml2-config (version %d.%d.%d)\n",
21762 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
21765 /* Compare the headers to the library to make sure we match */
21766 /* Less than ideal -- doesn't provide us with return value feedback,
21767 * only exits if there's a serious mismatch between header and library.
21769 LIBXML_TEST_VERSION;
21771 /* Test that the library is greater than our minimum version */
21772 if ((xml_major_version > major) ||
21773 ((xml_major_version == major) && (xml_minor_version > minor)) ||
21774 ((xml_major_version == major) && (xml_minor_version == minor) &&
21775 (xml_micro_version >= micro)))
21781 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
21782 xml_major_version, xml_minor_version, xml_micro_version);
21783 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
21784 major, minor, micro);
21785 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
21787 printf("*** If you have already installed a sufficiently new version, this error\n");
21788 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
21789 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21790 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
21791 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
21792 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21793 printf("*** so that the correct libraries are found at run-time))\n");
21799 rm -f conftest$ac_exeext
21800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21801 (eval $ac_link) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21806 (eval $ac_try) 2>&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; }; then
21812 echo "$as_me: program exited with status $ac_status" >&5
21813 echo "$as_me: failed program was:" >&5
21814 cat conftest.$ac_ext >&5
21815 ( exit $ac_status )
21818 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21820 CFLAGS="$ac_save_CFLAGS"
21821 LIBS="$ac_save_LIBS"
21825 if test "x$no_xml" = x ; then
21826 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
21827 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
21828 MODULE_XML=bin/pdb_xml.so
21830 echo "$as_me:$LINENO: result: no" >&5
21831 echo "${ECHO_T}no" >&6
21832 if test "$XML2_CONFIG" = "no" ; then
21833 echo "*** The xml2-config script installed by LIBXML could not be found"
21834 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
21835 echo "*** your path, or set the XML2_CONFIG environment variable to the"
21836 echo "*** full path to xml2-config."
21838 if test -f conf.xmltest ; then
21841 echo "*** Could not run libxml test program, checking why..."
21842 CFLAGS="$CFLAGS $XML_CFLAGS"
21843 LIBS="$LIBS $XML_LIBS"
21844 cat >conftest.$ac_ext <<_ACEOF
21845 #line $LINENO "configure"
21846 #include "confdefs.h"
21848 #include <libxml/xmlversion.h>
21851 #ifdef F77_DUMMY_MAIN
21852 # ifdef __cplusplus
21855 int F77_DUMMY_MAIN() { return 1; }
21860 LIBXML_TEST_VERSION; return 0;
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867 (eval $ac_link) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } &&
21871 { ac_try='test -s conftest$ac_exeext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 echo "*** The test program compiled, but did not run. This usually means"
21878 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
21879 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
21880 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21881 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21882 echo "*** is required on your system"
21884 echo "*** If you have an old version installed, it is best to remove it, although"
21885 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21887 echo "$as_me: failed program was:" >&5
21888 cat conftest.$ac_ext >&5
21889 echo "*** The test program failed to compile or link. See the file config.log for the"
21890 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
21891 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
21892 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
21894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21895 CFLAGS="$ac_save_CFLAGS"
21896 LIBS="$ac_save_LIBS"
21908 CFLAGS="$CFLAGS $XML_CFLAGS"
21911 #################################################
21912 # check for automount support
21913 echo "$as_me:$LINENO: checking whether to use automount" >&5
21914 echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
21916 # Check whether --with-automount or --without-automount was given.
21917 if test "${with_automount+set}" = set; then
21918 withval="$with_automount"
21921 echo "$as_me:$LINENO: result: yes" >&5
21922 echo "${ECHO_T}yes" >&6
21924 cat >>confdefs.h <<\_ACEOF
21925 #define WITH_AUTOMOUNT 1
21930 echo "$as_me:$LINENO: result: no" >&5
21931 echo "${ECHO_T}no" >&6
21935 echo "$as_me:$LINENO: result: no" >&5
21936 echo "${ECHO_T}no" >&6
21940 #################################################
21941 # check for smbmount support
21942 echo "$as_me:$LINENO: checking whether to use smbmount" >&5
21943 echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
21945 # Check whether --with-smbmount or --without-smbmount was given.
21946 if test "${with_smbmount+set}" = set; then
21947 withval="$with_smbmount"
21952 echo "$as_me:$LINENO: result: yes" >&5
21953 echo "${ECHO_T}yes" >&6
21955 cat >>confdefs.h <<\_ACEOF
21956 #define WITH_SMBMOUNT 1
21959 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
21962 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
21963 echo "$as_me: error: not on a linux system!" >&2;}
21964 { (exit 1); exit 1; }; }
21969 echo "$as_me:$LINENO: result: no" >&5
21970 echo "${ECHO_T}no" >&6
21974 echo "$as_me:$LINENO: result: no" >&5
21975 echo "${ECHO_T}no" >&6
21980 #################################################
21981 # check for a PAM clear-text auth, accounts, password and session support
21982 with_pam_for_crypt=no
21983 echo "$as_me:$LINENO: checking whether to use PAM" >&5
21984 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
21986 # Check whether --with-pam or --without-pam was given.
21987 if test "${with_pam+set}" = set; then
21988 withval="$with_pam"
21991 echo "$as_me:$LINENO: result: yes" >&5
21992 echo "${ECHO_T}yes" >&6
21994 cat >>confdefs.h <<\_ACEOF
21998 AUTHLIBS="$AUTHLIBS -lpam"
21999 with_pam_for_crypt=yes
22002 echo "$as_me:$LINENO: result: no" >&5
22003 echo "${ECHO_T}no" >&6
22007 echo "$as_me:$LINENO: result: no" >&5
22008 echo "${ECHO_T}no" >&6
22012 # we can't build a pam module if we don't have pam.
22013 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22014 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22015 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 ac_check_lib_save_LIBS=$LIBS
22020 cat >conftest.$ac_ext <<_ACEOF
22021 #line $LINENO "configure"
22022 #include "confdefs.h"
22024 /* Override any gcc2 internal prototype to avoid an error. */
22028 /* We use char because int might match the return type of a gcc2
22029 builtin and then its argument prototype would still apply. */
22030 char pam_get_data ();
22031 #ifdef F77_DUMMY_MAIN
22032 # ifdef __cplusplus
22035 int F77_DUMMY_MAIN() { return 1; }
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22047 (eval $ac_link) 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -s conftest$ac_exeext'
22052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053 (eval $ac_try) 2>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); }; }; then
22057 ac_cv_lib_pam_pam_get_data=yes
22059 echo "$as_me: failed program was:" >&5
22060 cat conftest.$ac_ext >&5
22061 ac_cv_lib_pam_pam_get_data=no
22063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22066 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22067 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22068 if test $ac_cv_lib_pam_pam_get_data = yes; then
22070 cat >>confdefs.h <<\_ACEOF
22071 #define HAVE_LIBPAM 1
22077 #################################################
22078 # check for pam_smbpass support
22079 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22080 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22082 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22083 if test "${with_pam_smbpass+set}" = set; then
22084 withval="$with_pam_smbpass"
22087 echo "$as_me:$LINENO: result: yes" >&5
22088 echo "${ECHO_T}yes" >&6
22090 # Conditions under which pam_smbpass should not be built.
22092 if test x$PICFLAG = x; then
22093 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22094 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22095 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
22096 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22097 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22099 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
22103 echo "$as_me:$LINENO: result: no" >&5
22104 echo "${ECHO_T}no" >&6
22108 echo "$as_me:$LINENO: result: no" >&5
22109 echo "${ECHO_T}no" >&6
22114 ###############################################
22115 # test for where we get crypt() from, but only
22117 if test x"$with_pam_for_crypt" = x"no"; then
22119 for ac_func in crypt
22121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22122 echo "$as_me:$LINENO: checking for $ac_func" >&5
22123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22124 if eval "test \"\${$as_ac_var+set}\" = set"; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 cat >conftest.$ac_ext <<_ACEOF
22128 #line $LINENO "configure"
22129 #include "confdefs.h"
22130 /* System header to define __stub macros and hopefully few prototypes,
22131 which can conflict with char $ac_func (); below. */
22132 #include <assert.h>
22133 /* Override any gcc2 internal prototype to avoid an error. */
22137 /* We use char because int might match the return type of a gcc2
22138 builtin and then its argument prototype would still apply. */
22142 #ifdef F77_DUMMY_MAIN
22143 # ifdef __cplusplus
22146 int F77_DUMMY_MAIN() { return 1; }
22151 /* The GNU C library defines this for functions which it implements
22152 to always fail with ENOSYS. Some functions are actually named
22153 something starting with __ and the normal name is an alias. */
22154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22164 rm -f conftest.$ac_objext conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166 (eval $ac_link) 2>&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } &&
22170 { ac_try='test -s conftest$ac_exeext'
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 eval "$as_ac_var=yes"
22178 echo "$as_me: failed program was:" >&5
22179 cat conftest.$ac_ext >&5
22180 eval "$as_ac_var=no"
22182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22186 if test `eval echo '${'$as_ac_var'}'` = yes; then
22187 cat >>confdefs.h <<_ACEOF
22188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22194 if test x"$ac_cv_func_crypt" = x"no"; then
22195 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22196 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22197 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-lcrypt $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22203 #line $LINENO "configure"
22204 #include "confdefs.h"
22206 /* Override any gcc2 internal prototype to avoid an error. */
22210 /* We use char because int might match the return type of a gcc2
22211 builtin and then its argument prototype would still apply. */
22213 #ifdef F77_DUMMY_MAIN
22214 # ifdef __cplusplus
22217 int F77_DUMMY_MAIN() { return 1; }
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229 (eval $ac_link) 2>&5
22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232 (exit $ac_status); } &&
22233 { ac_try='test -s conftest$ac_exeext'
22234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235 (eval $ac_try) 2>&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; }; then
22239 ac_cv_lib_crypt_crypt=yes
22241 echo "$as_me: failed program was:" >&5
22242 cat conftest.$ac_ext >&5
22243 ac_cv_lib_crypt_crypt=no
22245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22246 LIBS=$ac_check_lib_save_LIBS
22248 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22249 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22250 if test $ac_cv_lib_crypt_crypt = yes; then
22251 AUTHLIBS="$AUTHLIBS -lcrypt";
22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_CRYPT 1
22263 ## moved after the check for -lcrypt in order to
22264 ## ensure that the necessary libraries are included
22265 ## check checking for truncated salt. Wrapped by the
22266 ## $with_pam_for_crypt variable as above --jerry
22268 if test $with_pam_for_crypt = no; then
22269 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22270 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22271 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 LIBS="$AUTHLIBS $LIBS"
22277 if test "$cross_compiling" = yes; then
22278 samba_cv_HAVE_TRUNCATED_SALT=cross
22280 cat >conftest.$ac_ext <<_ACEOF
22281 #line $LINENO "configure"
22282 #include "confdefs.h"
22283 #include "${srcdir-.}/tests/crypttest.c"
22285 rm -f conftest$ac_exeext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287 (eval $ac_link) 2>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 samba_cv_HAVE_TRUNCATED_SALT=no
22298 echo "$as_me: program exited with status $ac_status" >&5
22299 echo "$as_me: failed program was:" >&5
22300 cat conftest.$ac_ext >&5
22301 ( exit $ac_status )
22302 samba_cv_HAVE_TRUNCATED_SALT=yes
22304 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22309 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22310 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
22312 cat >>confdefs.h <<\_ACEOF
22313 #define HAVE_TRUNCATED_SALT 1
22319 ########################################################################################
22321 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
22323 ########################################################################################
22325 #################################################
22326 # check for a LDAP password database configuration backwards compatibility
22327 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22328 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22330 # Check whether --with-ldapsam or --without-ldapsam was given.
22331 if test "${with_ldapsam+set}" = set; then
22332 withval="$with_ldapsam"
22335 echo "$as_me:$LINENO: result: yes" >&5
22336 echo "${ECHO_T}yes" >&6
22338 cat >>confdefs.h <<\_ACEOF
22339 #define WITH_LDAP_SAMCONFIG 1
22344 echo "$as_me:$LINENO: result: no" >&5
22345 echo "${ECHO_T}no" >&6
22349 echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22354 #################################################
22355 # check for a TDB password database
22356 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22357 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22359 # Check whether --with-tdbsam or --without-tdbsam was given.
22360 if test "${with_tdbsam+set}" = set; then
22361 withval="$with_tdbsam"
22364 echo "$as_me:$LINENO: result: yes" >&5
22365 echo "${ECHO_T}yes" >&6
22367 cat >>confdefs.h <<\_ACEOF
22368 #define WITH_TDB_SAM 1
22373 echo "$as_me:$LINENO: result: no" >&5
22374 echo "${ECHO_T}no" >&6
22378 echo "$as_me:$LINENO: result: no" >&5
22379 echo "${ECHO_T}no" >&6
22383 #################################################
22384 # check for a NISPLUS password database
22385 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22386 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22388 # Check whether --with-nisplussam or --without-nisplussam was given.
22389 if test "${with_nisplussam+set}" = set; then
22390 withval="$with_nisplussam"
22393 echo "$as_me:$LINENO: result: yes" >&5
22394 echo "${ECHO_T}yes" >&6
22396 cat >>confdefs.h <<\_ACEOF
22397 #define WITH_NISPLUS_SAM 1
22402 echo "$as_me:$LINENO: result: no" >&5
22403 echo "${ECHO_T}no" >&6
22407 echo "$as_me:$LINENO: result: no" >&5
22408 echo "${ECHO_T}no" >&6
22412 ########################################################################################
22414 ## END OF TESTS FOR SAM BACKENDS.
22416 ########################################################################################
22418 #################################################
22419 # check for a NISPLUS_HOME support
22420 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22421 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22423 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22424 if test "${with_nisplus_home+set}" = set; then
22425 withval="$with_nisplus_home"
22428 echo "$as_me:$LINENO: result: yes" >&5
22429 echo "${ECHO_T}yes" >&6
22431 cat >>confdefs.h <<\_ACEOF
22432 #define WITH_NISPLUS_HOME 1
22437 echo "$as_me:$LINENO: result: no" >&5
22438 echo "${ECHO_T}no" >&6
22442 echo "$as_me:$LINENO: result: no" >&5
22443 echo "${ECHO_T}no" >&6
22447 #################################################
22448 # check for syslog logging
22449 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
22450 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
22452 # Check whether --with-syslog or --without-syslog was given.
22453 if test "${with_syslog+set}" = set; then
22454 withval="$with_syslog"
22457 echo "$as_me:$LINENO: result: yes" >&5
22458 echo "${ECHO_T}yes" >&6
22460 cat >>confdefs.h <<\_ACEOF
22461 #define WITH_SYSLOG 1
22466 echo "$as_me:$LINENO: result: no" >&5
22467 echo "${ECHO_T}no" >&6
22471 echo "$as_me:$LINENO: result: no" >&5
22472 echo "${ECHO_T}no" >&6
22476 #################################################
22477 # check for a shared memory profiling support
22478 echo "$as_me:$LINENO: checking whether to use profiling" >&5
22479 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
22481 # Check whether --with-profiling-data or --without-profiling-data was given.
22482 if test "${with_profiling_data+set}" = set; then
22483 withval="$with_profiling_data"
22486 echo "$as_me:$LINENO: result: yes" >&5
22487 echo "${ECHO_T}yes" >&6
22489 cat >>confdefs.h <<\_ACEOF
22490 #define WITH_PROFILE 1
22495 echo "$as_me:$LINENO: result: no" >&5
22496 echo "${ECHO_T}no" >&6
22500 echo "$as_me:$LINENO: result: no" >&5
22501 echo "${ECHO_T}no" >&6
22506 #################################################
22507 # check for experimental disk-quotas support
22508 QUOTAOBJS=smbd/noquotas.o
22510 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
22511 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
22513 # Check whether --with-quotas or --without-quotas was given.
22514 if test "${with_quotas+set}" = set; then
22515 withval="$with_quotas"
22518 echo "$as_me:$LINENO: result: yes" >&5
22519 echo "${ECHO_T}yes" >&6
22522 # Check for kernel 2.4.x quota braindamage...
22523 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
22524 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
22525 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22530 #line $LINENO "configure"
22531 #include "confdefs.h"
22533 #include <sys/types.h>
22534 #include <asm/types.h>
22535 #include <linux/quota.h>
22536 #include <mntent.h>
22537 #include <linux/unistd.h>
22538 #ifdef F77_DUMMY_MAIN
22539 # ifdef __cplusplus
22542 int F77_DUMMY_MAIN() { return 1; }
22547 struct mem_dqblk D;
22552 rm -f conftest.$ac_objext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554 (eval $ac_compile) 2>&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
22558 { ac_try='test -s conftest.$ac_objext'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }; then
22564 samba_cv_linux_2_4_quota_braindamage=yes
22566 echo "$as_me: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22568 samba_cv_linux_2_4_quota_braindamage=no
22570 rm -f conftest.$ac_objext conftest.$ac_ext
22572 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
22573 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
22574 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
22576 cat >>confdefs.h <<\_ACEOF
22577 #define LINUX_QUOTAS_2 1
22582 cat >>confdefs.h <<\_ACEOF
22583 #define LINUX_QUOTAS_1 1
22591 QUOTAOBJS=smbd/quotas.o
22593 cat >>confdefs.h <<\_ACEOF
22594 #define WITH_QUOTAS 1
22599 echo "$as_me:$LINENO: result: no" >&5
22600 echo "${ECHO_T}no" >&6
22604 echo "$as_me:$LINENO: result: no" >&5
22605 echo "${ECHO_T}no" >&6
22610 #################################################
22611 # check for experimental utmp accounting
22613 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
22614 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
22616 # Check whether --with-utmp or --without-utmp was given.
22617 if test "${with_utmp+set}" = set; then
22618 withval="$with_utmp"
22621 echo "$as_me:$LINENO: result: yes" >&5
22622 echo "${ECHO_T}yes" >&6
22624 cat >>confdefs.h <<\_ACEOF
22625 #define WITH_UTMP 1
22630 echo "$as_me:$LINENO: result: no" >&5
22631 echo "${ECHO_T}no" >&6
22635 echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6
22640 #################################################
22641 # choose native language(s) of man pages
22642 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
22643 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
22645 # Check whether --with-manpages-langs or --without-manpages-langs was given.
22646 if test "${with_manpages_langs+set}" = set; then
22647 withval="$with_manpages_langs"
22650 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
22651 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
22655 manlangs="$withval"
22659 echo "$as_me:$LINENO: result: $manlangs" >&5
22660 echo "${ECHO_T}$manlangs" >&6
22661 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
22665 echo "$as_me:$LINENO: result: $manlangs" >&5
22666 echo "${ECHO_T}$manlangs" >&6
22671 #################################################
22672 # should we build libsmbclient?
22674 LIBSMBCLIENT_SHARED=
22676 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
22677 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
22679 # Check whether --with-libsmbclient or --without-libsmbclient was given.
22680 if test "${with_libsmbclient+set}" = set; then
22681 withval="$with_libsmbclient"
22684 echo "$as_me:$LINENO: result: no" >&5
22685 echo "${ECHO_T}no" >&6
22688 if test $BLDSHARED = true; then
22689 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
22690 LIBSMBCLIENT=libsmbclient
22691 echo "$as_me:$LINENO: result: yes" >&5
22692 echo "${ECHO_T}yes" >&6
22694 echo "$as_me:$LINENO: result: no shared library support" >&5
22695 echo "${ECHO_T}no shared library support" >&6
22700 echo "$as_me:$LINENO: result: yes" >&5
22701 echo "${ECHO_T}yes" >&6
22706 #################################################
22707 # these tests are taken from the GNU fileutils package
22708 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
22709 echo "$as_me: checking how to get filesystem space usage..." >&6;}
22712 # Test for statvfs64.
22713 if test $space = no; then
22715 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
22716 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
22717 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 if test "$cross_compiling" = yes; then
22721 fu_cv_sys_stat_statvfs64=cross
22723 cat >conftest.$ac_ext <<_ACEOF
22724 #line $LINENO "configure"
22725 #include "confdefs.h"
22727 #if defined(HAVE_UNISTD_H)
22728 #include <unistd.h>
22730 #include <sys/types.h>
22731 #include <sys/statvfs.h>
22734 struct statvfs64 fsd;
22735 exit (statvfs64 (".", &fsd));
22738 rm -f conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740 (eval $ac_link) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 fu_cv_sys_stat_statvfs64=yes
22751 echo "$as_me: program exited with status $ac_status" >&5
22752 echo "$as_me: failed program was:" >&5
22753 cat conftest.$ac_ext >&5
22754 ( exit $ac_status )
22755 fu_cv_sys_stat_statvfs64=no
22757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22760 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
22761 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
22762 if test $fu_cv_sys_stat_statvfs64 = yes; then
22765 cat >>confdefs.h <<\_ACEOF
22766 #define STAT_STATVFS64 1
22772 # Perform only the link test since it seems there are no variants of the
22773 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
22774 # because that got a false positive on SCO OSR5. Adding the declaration
22775 # of a `struct statvfs' causes this test to fail (as it should) on such
22776 # systems. That system is reported to work fine with STAT_STATFS4 which
22777 # is what it gets when this test fails.
22778 if test $space = no; then
22780 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
22781 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
22782 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 cat >conftest.$ac_ext <<_ACEOF
22786 #line $LINENO "configure"
22787 #include "confdefs.h"
22788 #include <sys/types.h>
22789 #include <sys/statvfs.h>
22790 #ifdef F77_DUMMY_MAIN
22791 # ifdef __cplusplus
22794 int F77_DUMMY_MAIN() { return 1; }
22799 struct statvfs fsd; statvfs (0, &fsd);
22804 rm -f conftest.$ac_objext conftest$ac_exeext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22806 (eval $ac_link) 2>&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -s conftest$ac_exeext'
22811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22812 (eval $ac_try) 2>&5
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); }; }; then
22816 fu_cv_sys_stat_statvfs=yes
22818 echo "$as_me: failed program was:" >&5
22819 cat conftest.$ac_ext >&5
22820 fu_cv_sys_stat_statvfs=no
22822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22824 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
22825 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
22826 if test $fu_cv_sys_stat_statvfs = yes; then
22829 cat >>confdefs.h <<\_ACEOF
22830 #define STAT_STATVFS 1
22836 if test $space = no; then
22837 # DEC Alpha running OSF/1
22838 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
22839 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
22840 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22843 if test "$cross_compiling" = yes; then
22844 fu_cv_sys_stat_statfs3_osf1=no
22846 cat >conftest.$ac_ext <<_ACEOF
22847 #line $LINENO "configure"
22848 #include "confdefs.h"
22850 #include <sys/param.h>
22851 #include <sys/types.h>
22852 #include <sys/mount.h>
22857 exit (statfs (".", &fsd, sizeof (struct statfs)));
22860 rm -f conftest$ac_exeext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22862 (eval $ac_link) 2>&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; }; then
22871 fu_cv_sys_stat_statfs3_osf1=yes
22873 echo "$as_me: program exited with status $ac_status" >&5
22874 echo "$as_me: failed program was:" >&5
22875 cat conftest.$ac_ext >&5
22876 ( exit $ac_status )
22877 fu_cv_sys_stat_statfs3_osf1=no
22879 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22883 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
22884 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
22885 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
22888 cat >>confdefs.h <<\_ACEOF
22889 #define STAT_STATFS3_OSF1 1
22895 if test $space = no; then
22897 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
22898 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
22899 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 if test "$cross_compiling" = yes; then
22903 fu_cv_sys_stat_statfs2_bsize=no
22905 cat >conftest.$ac_ext <<_ACEOF
22906 #line $LINENO "configure"
22907 #include "confdefs.h"
22909 #ifdef HAVE_SYS_PARAM_H
22910 #include <sys/param.h>
22912 #ifdef HAVE_SYS_MOUNT_H
22913 #include <sys/mount.h>
22915 #ifdef HAVE_SYS_VFS_H
22916 #include <sys/vfs.h>
22922 exit (statfs (".", &fsd));
22925 rm -f conftest$ac_exeext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22927 (eval $ac_link) 2>&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 fu_cv_sys_stat_statfs2_bsize=yes
22938 echo "$as_me: program exited with status $ac_status" >&5
22939 echo "$as_me: failed program was:" >&5
22940 cat conftest.$ac_ext >&5
22941 ( exit $ac_status )
22942 fu_cv_sys_stat_statfs2_bsize=no
22944 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22948 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
22949 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
22950 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define STAT_STATFS2_BSIZE 1
22960 if test $space = no; then
22962 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
22963 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
22964 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 if test "$cross_compiling" = yes; then
22968 fu_cv_sys_stat_statfs4=no
22970 cat >conftest.$ac_ext <<_ACEOF
22971 #line $LINENO "configure"
22972 #include "confdefs.h"
22973 #include <sys/types.h>
22974 #include <sys/statfs.h>
22978 exit (statfs (".", &fsd, sizeof fsd, 0));
22981 rm -f conftest$ac_exeext
22982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983 (eval $ac_link) 2>&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 fu_cv_sys_stat_statfs4=yes
22994 echo "$as_me: program exited with status $ac_status" >&5
22995 echo "$as_me: failed program was:" >&5
22996 cat conftest.$ac_ext >&5
22997 ( exit $ac_status )
22998 fu_cv_sys_stat_statfs4=no
23000 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23004 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23005 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23006 if test $fu_cv_sys_stat_statfs4 = yes; then
23009 cat >>confdefs.h <<\_ACEOF
23010 #define STAT_STATFS4 1
23016 if test $space = no; then
23017 # 4.4BSD and NetBSD
23018 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23019 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23020 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23021 echo $ECHO_N "(cached) $ECHO_C" >&6
23023 if test "$cross_compiling" = yes; then
23024 fu_cv_sys_stat_statfs2_fsize=no
23026 cat >conftest.$ac_ext <<_ACEOF
23027 #line $LINENO "configure"
23028 #include "confdefs.h"
23029 #include <sys/types.h>
23030 #ifdef HAVE_SYS_PARAM_H
23031 #include <sys/param.h>
23033 #ifdef HAVE_SYS_MOUNT_H
23034 #include <sys/mount.h>
23040 exit (statfs (".", &fsd));
23043 rm -f conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045 (eval $ac_link) 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050 (eval $ac_try) 2>&5
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; }; then
23054 fu_cv_sys_stat_statfs2_fsize=yes
23056 echo "$as_me: program exited with status $ac_status" >&5
23057 echo "$as_me: failed program was:" >&5
23058 cat conftest.$ac_ext >&5
23059 ( exit $ac_status )
23060 fu_cv_sys_stat_statfs2_fsize=no
23062 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23066 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23067 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23068 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23071 cat >>confdefs.h <<\_ACEOF
23072 #define STAT_STATFS2_FSIZE 1
23078 if test $space = no; then
23080 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23081 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23082 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 if test "$cross_compiling" = yes; then
23086 fu_cv_sys_stat_fs_data=no
23088 cat >conftest.$ac_ext <<_ACEOF
23089 #line $LINENO "configure"
23090 #include "confdefs.h"
23091 #include <sys/types.h>
23092 #ifdef HAVE_SYS_PARAM_H
23093 #include <sys/param.h>
23095 #ifdef HAVE_SYS_MOUNT_H
23096 #include <sys/mount.h>
23098 #ifdef HAVE_SYS_FS_TYPES_H
23099 #include <sys/fs_types.h>
23103 struct fs_data fsd;
23104 /* Ultrix's statfs returns 1 for success,
23105 0 for not mounted, -1 for failure. */
23106 exit (statfs (".", &fsd) != 1);
23109 rm -f conftest$ac_exeext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23111 (eval $ac_link) 2>&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; }; then
23120 fu_cv_sys_stat_fs_data=yes
23122 echo "$as_me: program exited with status $ac_status" >&5
23123 echo "$as_me: failed program was:" >&5
23124 cat conftest.$ac_ext >&5
23125 ( exit $ac_status )
23126 fu_cv_sys_stat_fs_data=no
23128 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23132 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23133 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23134 if test $fu_cv_sys_stat_fs_data = yes; then
23137 cat >>confdefs.h <<\_ACEOF
23138 #define STAT_STATFS2_FS_DATA 1
23145 # As a gating factor for large file support, in order to
23146 # use <4GB files we must have the following minimal support
23148 # long long, and a 64 bit off_t or off64_t.
23149 # If we don't have all of these then disable large
23152 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23153 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23154 cat >conftest.$ac_ext <<_ACEOF
23155 #line $LINENO "configure"
23156 #include "confdefs.h"
23158 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23159 #include <sys/types.h>
23164 #ifdef F77_DUMMY_MAIN
23165 # ifdef __cplusplus
23168 int F77_DUMMY_MAIN() { return 1; }
23178 rm -f conftest.$ac_objext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23180 (eval $ac_compile) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -s conftest.$ac_objext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
23192 echo "$as_me: failed program was:" >&5
23193 cat conftest.$ac_ext >&5
23194 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
23196 rm -f conftest.$ac_objext conftest.$ac_ext
23197 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
23199 cat >>confdefs.h <<\_ACEOF
23200 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23204 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23205 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23208 # Check whether --with-spinlocks or --without-spinlocks was given.
23209 if test "${with_spinlocks+set}" = set; then
23210 withval="$with_spinlocks"
23213 if test "x$with_spinlocks" = "xyes"; then
23215 cat >>confdefs.h <<\_ACEOF
23216 #define USE_SPINLOCKS 1
23220 case "$host_cpu" in
23223 cat >>confdefs.h <<\_ACEOF
23224 #define SPARC_SPINLOCKS 1
23229 i386|i486|i586|i686)
23231 cat >>confdefs.h <<\_ACEOF
23232 #define INTEL_SPINLOCKS 1
23239 cat >>confdefs.h <<\_ACEOF
23240 #define MIPS_SPINLOCKS 1
23247 cat >>confdefs.h <<\_ACEOF
23248 #define POWERPC_SPINLOCKS 1
23255 #################################################
23256 # check for ACL support
23258 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23259 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23261 # Check whether --with-acl-support or --without-acl-support was given.
23262 if test "${with_acl_support+set}" = set; then
23263 withval="$with_acl_support"
23269 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23270 echo "${ECHO_T}Using UnixWare ACLs" >&6
23272 cat >>confdefs.h <<\_ACEOF
23273 #define HAVE_UNIXWARE_ACLS 1
23278 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23279 echo "${ECHO_T}Using solaris ACLs" >&6
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_SOLARIS_ACLS 1
23287 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23288 echo "${ECHO_T}Using HPUX ACLs" >&6
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_HPUX_ACLS 1
23296 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23297 echo "${ECHO_T}Using IRIX ACLs" >&6
23299 cat >>confdefs.h <<\_ACEOF
23300 #define HAVE_IRIX_ACLS 1
23305 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23306 echo "${ECHO_T}Using AIX ACLs" >&6
23308 cat >>confdefs.h <<\_ACEOF
23309 #define HAVE_AIX_ACLS 1
23314 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23315 echo "${ECHO_T}Using Tru64 ACLs" >&6
23317 cat >>confdefs.h <<\_ACEOF
23318 #define HAVE_TRU64_ACLS 1
23321 LIBS="$LIBS -lpacl"
23325 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23326 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23327 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23328 echo $ECHO_N "(cached) $ECHO_C" >&6
23330 ac_check_lib_save_LIBS=$LIBS
23332 cat >conftest.$ac_ext <<_ACEOF
23333 #line $LINENO "configure"
23334 #include "confdefs.h"
23336 /* Override any gcc2 internal prototype to avoid an error. */
23340 /* We use char because int might match the return type of a gcc2
23341 builtin and then its argument prototype would still apply. */
23342 char acl_get_file ();
23343 #ifdef F77_DUMMY_MAIN
23344 # ifdef __cplusplus
23347 int F77_DUMMY_MAIN() { return 1; }
23357 rm -f conftest.$ac_objext conftest$ac_exeext
23358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23359 (eval $ac_link) 2>&5
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); } &&
23363 { ac_try='test -s conftest$ac_exeext'
23364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365 (eval $ac_try) 2>&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); }; }; then
23369 ac_cv_lib_acl_acl_get_file=yes
23371 echo "$as_me: failed program was:" >&5
23372 cat conftest.$ac_ext >&5
23373 ac_cv_lib_acl_acl_get_file=no
23375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23376 LIBS=$ac_check_lib_save_LIBS
23378 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23379 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23380 if test $ac_cv_lib_acl_acl_get_file = yes; then
23381 cat >>confdefs.h <<_ACEOF
23382 #define HAVE_LIBACL 1
23389 echo "$as_me:$LINENO: checking for ACL support" >&5
23390 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23391 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 cat >conftest.$ac_ext <<_ACEOF
23396 #line $LINENO "configure"
23397 #include "confdefs.h"
23398 #include <sys/types.h>
23399 #include <sys/acl.h>
23400 #ifdef F77_DUMMY_MAIN
23401 # ifdef __cplusplus
23404 int F77_DUMMY_MAIN() { return 1; }
23409 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23414 rm -f conftest.$ac_objext conftest$ac_exeext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416 (eval $ac_link) 2>&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } &&
23420 { ac_try='test -s conftest$ac_exeext'
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }; then
23426 samba_cv_HAVE_POSIX_ACLS=yes
23428 echo "$as_me: failed program was:" >&5
23429 cat conftest.$ac_ext >&5
23430 samba_cv_HAVE_POSIX_ACLS=no
23432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23434 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
23435 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
23436 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
23437 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
23438 echo "${ECHO_T}Using posix ACLs" >&6
23440 cat >>confdefs.h <<\_ACEOF
23441 #define HAVE_POSIX_ACLS 1
23444 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
23445 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
23446 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23450 cat >conftest.$ac_ext <<_ACEOF
23451 #line $LINENO "configure"
23452 #include "confdefs.h"
23453 #include <sys/types.h>
23454 #include <sys/acl.h>
23455 #ifdef F77_DUMMY_MAIN
23456 # ifdef __cplusplus
23459 int F77_DUMMY_MAIN() { return 1; }
23464 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
23469 rm -f conftest.$ac_objext conftest$ac_exeext
23470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23471 (eval $ac_link) 2>&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } &&
23475 { ac_try='test -s conftest$ac_exeext'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; }; then
23481 samba_cv_HAVE_ACL_GET_PERM_NP=yes
23483 echo "$as_me: failed program was:" >&5
23484 cat conftest.$ac_ext >&5
23485 samba_cv_HAVE_ACL_GET_PERM_NP=no
23487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23489 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
23490 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
23491 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
23493 cat >>confdefs.h <<\_ACEOF
23494 #define HAVE_ACL_GET_PERM_NP 1
23503 echo "$as_me:$LINENO: result: no" >&5
23504 echo "${ECHO_T}no" >&6
23506 cat >>confdefs.h <<\_ACEOF
23507 #define HAVE_NO_ACLS 1
23514 cat >>confdefs.h <<\_ACEOF
23515 #define HAVE_NO_ACLS 1
23518 echo "$as_me:$LINENO: result: no" >&5
23519 echo "${ECHO_T}no" >&6
23523 #################################################
23524 # check for sendfile support
23526 with_sendfile_support=yes
23527 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
23528 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
23530 # Check whether --with-sendfile-support or --without-sendfile-support was given.
23531 if test "${with_sendfile_support+set}" = set; then
23532 withval="$with_sendfile_support"
23536 echo "$as_me:$LINENO: result: yes" >&5
23537 echo "${ECHO_T}yes" >&6;
23541 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
23542 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
23543 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23544 echo $ECHO_N "(cached) $ECHO_C" >&6
23547 cat >conftest.$ac_ext <<_ACEOF
23548 #line $LINENO "configure"
23549 #include "confdefs.h"
23550 #include <sys/sendfile.h>
23551 #ifdef F77_DUMMY_MAIN
23552 # ifdef __cplusplus
23555 int F77_DUMMY_MAIN() { return 1; }
23564 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
23570 rm -f conftest.$ac_objext conftest$ac_exeext
23571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23572 (eval $ac_link) 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -s conftest$ac_exeext'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 samba_cv_HAVE_SENDFILE64=yes
23584 echo "$as_me: failed program was:" >&5
23585 cat conftest.$ac_ext >&5
23586 samba_cv_HAVE_SENDFILE64=no
23588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23590 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23591 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23593 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
23594 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
23595 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 cat >conftest.$ac_ext <<_ACEOF
23600 #line $LINENO "configure"
23601 #include "confdefs.h"
23602 #include <sys/sendfile.h>
23603 #ifdef F77_DUMMY_MAIN
23604 # ifdef __cplusplus
23607 int F77_DUMMY_MAIN() { return 1; }
23616 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624 (eval $ac_link) 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
23628 { ac_try='test -s conftest$ac_exeext'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 samba_cv_HAVE_SENDFILE=yes
23636 echo "$as_me: failed program was:" >&5
23637 cat conftest.$ac_ext >&5
23638 samba_cv_HAVE_SENDFILE=no
23640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23642 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23643 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23645 # Try and cope with broken Linux sendfile....
23646 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
23647 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
23648 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23652 cat >conftest.$ac_ext <<_ACEOF
23653 #line $LINENO "configure"
23654 #include "confdefs.h"
23656 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
23657 #undef _FILE_OFFSET_BITS
23659 #include <sys/sendfile.h>
23660 #ifdef F77_DUMMY_MAIN
23661 # ifdef __cplusplus
23664 int F77_DUMMY_MAIN() { return 1; }
23673 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23681 (eval $ac_link) 2>&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
23693 echo "$as_me: failed program was:" >&5
23694 cat conftest.$ac_ext >&5
23695 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
23697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23699 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
23700 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
23702 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23704 cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_SENDFILE64 1
23709 cat >>confdefs.h <<\_ACEOF
23710 #define LINUX_SENDFILE_API 1
23714 cat >>confdefs.h <<\_ACEOF
23715 #define WITH_SENDFILE 1
23718 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_SENDFILE 1
23725 cat >>confdefs.h <<\_ACEOF
23726 #define LINUX_SENDFILE_API 1
23730 cat >>confdefs.h <<\_ACEOF
23731 #define WITH_SENDFILE 1
23734 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
23736 cat >>confdefs.h <<\_ACEOF
23737 #define LINUX_BROKEN_SENDFILE_API 1
23741 cat >>confdefs.h <<\_ACEOF
23742 #define WITH_SENDFILE 1
23746 echo "$as_me:$LINENO: result: no" >&5
23747 echo "${ECHO_T}no" >&6;
23752 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
23753 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
23754 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23755 echo $ECHO_N "(cached) $ECHO_C" >&6
23758 cat >conftest.$ac_ext <<_ACEOF
23759 #line $LINENO "configure"
23760 #include "confdefs.h"
23762 #include <sys/types.h>
23763 #include <sys/socket.h>
23764 #include <sys/uio.h>
23765 #ifdef F77_DUMMY_MAIN
23766 # ifdef __cplusplus
23769 int F77_DUMMY_MAIN() { return 1; }
23776 off_t offset, nwritten;
23777 struct sf_hdtr hdr;
23778 struct iovec hdtrl;
23779 hdr->headers = &hdtrl;
23781 hdr->trailers = NULL;
23783 hdtrl.iov_base = NULL;
23785 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
23791 rm -f conftest.$ac_objext conftest$ac_exeext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23793 (eval $ac_link) 2>&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } &&
23797 { ac_try='test -s conftest$ac_exeext'
23798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23799 (eval $ac_try) 2>&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); }; }; then
23803 samba_cv_HAVE_SENDFILE=yes
23805 echo "$as_me: failed program was:" >&5
23806 cat conftest.$ac_ext >&5
23807 samba_cv_HAVE_SENDFILE=no
23809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23811 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23812 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23814 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23816 cat >>confdefs.h <<\_ACEOF
23817 #define HAVE_SENDFILE 1
23821 cat >>confdefs.h <<\_ACEOF
23822 #define FREEBSD_SENDFILE_API 1
23826 cat >>confdefs.h <<\_ACEOF
23827 #define WITH_SENDFILE 1
23831 echo "$as_me:$LINENO: result: no" >&5
23832 echo "${ECHO_T}no" >&6;
23837 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
23838 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
23839 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
23843 cat >conftest.$ac_ext <<_ACEOF
23844 #line $LINENO "configure"
23845 #include "confdefs.h"
23847 #include <sys/socket.h>
23848 #include <sys/uio.h>
23849 #ifdef F77_DUMMY_MAIN
23850 # ifdef __cplusplus
23853 int F77_DUMMY_MAIN() { return 1; }
23861 struct iovec hdtrl[2];
23865 hdtrl[0].iov_base = 0;
23866 hdtrl[0].iov_len = 0;
23868 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
23874 rm -f conftest.$ac_objext conftest$ac_exeext
23875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23876 (eval $ac_link) 2>&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } &&
23880 { ac_try='test -s conftest$ac_exeext'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; }; then
23886 samba_cv_HAVE_SENDFILE64=yes
23888 echo "$as_me: failed program was:" >&5
23889 cat conftest.$ac_ext >&5
23890 samba_cv_HAVE_SENDFILE64=no
23892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23894 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
23895 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
23896 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
23898 cat >>confdefs.h <<\_ACEOF
23899 #define HAVE_SENDFILE64 1
23903 cat >>confdefs.h <<\_ACEOF
23904 #define HPUX_SENDFILE_API 1
23908 cat >>confdefs.h <<\_ACEOF
23909 #define WITH_SENDFILE 1
23913 echo "$as_me:$LINENO: result: no" >&5
23914 echo "${ECHO_T}no" >&6;
23917 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
23918 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
23919 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23923 cat >conftest.$ac_ext <<_ACEOF
23924 #line $LINENO "configure"
23925 #include "confdefs.h"
23927 #include <sys/socket.h>
23928 #include <sys/uio.h>
23929 #ifdef F77_DUMMY_MAIN
23930 # ifdef __cplusplus
23933 int F77_DUMMY_MAIN() { return 1; }
23941 struct iovec hdtrl[2];
23945 hdtrl[0].iov_base = 0;
23946 hdtrl[0].iov_len = 0;
23948 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956 (eval $ac_link) 2>&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); } &&
23960 { ac_try='test -s conftest$ac_exeext'
23961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962 (eval $ac_try) 2>&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 samba_cv_HAVE_SENDFILE=yes
23968 echo "$as_me: failed program was:" >&5
23969 cat conftest.$ac_ext >&5
23970 samba_cv_HAVE_SENDFILE=no
23972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23974 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
23975 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
23976 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_SENDFILE 1
23983 cat >>confdefs.h <<\_ACEOF
23984 #define HPUX_SENDFILE_API 1
23988 cat >>confdefs.h <<\_ACEOF
23989 #define WITH_SENDFILE 1
23993 echo "$as_me:$LINENO: result: no" >&5
23994 echo "${ECHO_T}no" >&6;
24000 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24001 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24002 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24005 ac_check_lib_save_LIBS=$LIBS
24006 LIBS="-lsendfile $LIBS"
24007 cat >conftest.$ac_ext <<_ACEOF
24008 #line $LINENO "configure"
24009 #include "confdefs.h"
24011 /* Override any gcc2 internal prototype to avoid an error. */
24015 /* We use char because int might match the return type of a gcc2
24016 builtin and then its argument prototype would still apply. */
24018 #ifdef F77_DUMMY_MAIN
24019 # ifdef __cplusplus
24022 int F77_DUMMY_MAIN() { return 1; }
24032 rm -f conftest.$ac_objext conftest$ac_exeext
24033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24034 (eval $ac_link) 2>&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } &&
24038 { ac_try='test -s conftest$ac_exeext'
24039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040 (eval $ac_try) 2>&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); }; }; then
24044 ac_cv_lib_sendfile_sendfilev=yes
24046 echo "$as_me: failed program was:" >&5
24047 cat conftest.$ac_ext >&5
24048 ac_cv_lib_sendfile_sendfilev=no
24050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24051 LIBS=$ac_check_lib_save_LIBS
24053 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24054 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24055 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24056 cat >>confdefs.h <<_ACEOF
24057 #define HAVE_LIBSENDFILE 1
24060 LIBS="-lsendfile $LIBS"
24064 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24065 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24066 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24070 cat >conftest.$ac_ext <<_ACEOF
24071 #line $LINENO "configure"
24072 #include "confdefs.h"
24074 #include <sys/sendfile.h>
24075 #ifdef F77_DUMMY_MAIN
24076 # ifdef __cplusplus
24079 int F77_DUMMY_MAIN() { return 1; }
24087 struct sendfilevec vec[2];
24093 vec[0].sfv_fd = SFV_FD_SELF;
24094 vec[0].sfv_flag = 0;
24095 vec[0].sfv_off = 0;
24096 vec[0].sfv_len = 0;
24099 vec[1].sfv_flag = 0;
24100 vec[1].sfv_off = 0;
24101 vec[1].sfv_len = 0;
24102 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24108 rm -f conftest.$ac_objext conftest$ac_exeext
24109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24110 (eval $ac_link) 2>&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } &&
24114 { ac_try='test -s conftest$ac_exeext'
24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116 (eval $ac_try) 2>&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; }; then
24120 samba_cv_HAVE_SENDFILEV64=yes
24122 echo "$as_me: failed program was:" >&5
24123 cat conftest.$ac_ext >&5
24124 samba_cv_HAVE_SENDFILEV64=no
24126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24128 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24129 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24131 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
24133 cat >>confdefs.h <<\_ACEOF
24134 #define HAVE_SENDFILEV64 1
24138 cat >>confdefs.h <<\_ACEOF
24139 #define SOLARIS_SENDFILE_API 1
24143 cat >>confdefs.h <<\_ACEOF
24144 #define WITH_SENDFILE 1
24148 echo "$as_me:$LINENO: result: no" >&5
24149 echo "${ECHO_T}no" >&6;
24152 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24153 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24154 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 cat >conftest.$ac_ext <<_ACEOF
24159 #line $LINENO "configure"
24160 #include "confdefs.h"
24162 #include <sys/sendfile.h>
24163 #ifdef F77_DUMMY_MAIN
24164 # ifdef __cplusplus
24167 int F77_DUMMY_MAIN() { return 1; }
24175 struct sendfilevec vec[2];
24181 vec[0].sfv_fd = SFV_FD_SELF;
24182 vec[0].sfv_flag = 0;
24183 vec[0].sfv_off = 0;
24184 vec[0].sfv_len = 0;
24187 vec[1].sfv_flag = 0;
24188 vec[1].sfv_off = 0;
24189 vec[1].sfv_len = 0;
24190 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24196 rm -f conftest.$ac_objext conftest$ac_exeext
24197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24198 (eval $ac_link) 2>&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } &&
24202 { ac_try='test -s conftest$ac_exeext'
24203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24204 (eval $ac_try) 2>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); }; }; then
24208 samba_cv_HAVE_SENDFILEV=yes
24210 echo "$as_me: failed program was:" >&5
24211 cat conftest.$ac_ext >&5
24212 samba_cv_HAVE_SENDFILEV=no
24214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24216 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24217 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24219 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
24221 cat >>confdefs.h <<\_ACEOF
24222 #define HAVE_SENDFILEV 1
24226 cat >>confdefs.h <<\_ACEOF
24227 #define SOLARIS_SENDFILE_API 1
24231 cat >>confdefs.h <<\_ACEOF
24232 #define WITH_SENDFILE 1
24236 echo "$as_me:$LINENO: result: no" >&5
24237 echo "${ECHO_T}no" >&6;
24246 echo "$as_me:$LINENO: result: no" >&5
24247 echo "${ECHO_T}no" >&6
24251 echo "$as_me:$LINENO: result: yes" >&5
24252 echo "${ECHO_T}yes" >&6
24257 #################################################
24258 # Check whether winbind is supported on this platform. If so we need to
24259 # build and install client programs, sbin programs and shared libraries
24261 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24262 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24264 # Initially, the value of $host_os decides whether winbind is supported
24272 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24273 WINBIND_NSS_EXTRA_LIBS="-lsocket"
24277 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
24281 winbind_no_reason=", unsupported on $host_os"
24288 # Check the setting of --with-winbindd
24291 # Check whether --with-winbind or --without-winbind was given.
24292 if test "${with_winbind+set}" = set; then
24293 withval="$with_winbind"
24306 # We need unix domain sockets for winbind
24308 if test x"$HAVE_WINBIND" = x"yes"; then
24309 if test x"$samba_cv_unixsocket" = x"no"; then
24310 winbind_no_reason=", no unix domain socket support on $host_os"
24315 # Display test results
24317 if test x"$HAVE_WINBIND" = x"yes"; then
24318 echo "$as_me:$LINENO: result: yes" >&5
24319 echo "${ECHO_T}yes" >&6
24321 cat >>confdefs.h <<\_ACEOF
24322 #define WITH_WINBIND 1
24326 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
24327 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
24328 if test x"$BLDSHARED" = x"true"; then
24331 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libns_winbind.so"
24334 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
24337 if test x"$with_pam" = x"yes"; then
24338 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
24342 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24343 echo "${ECHO_T}no$winbind_no_reason" >&6
24346 # Solaris has some extra fields in struct passwd that need to be
24347 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
24348 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24351 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24352 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24353 # [#include <pwd.h>])
24355 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24356 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24357 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24358 echo $ECHO_N "(cached) $ECHO_C" >&6
24361 cat >conftest.$ac_ext <<_ACEOF
24362 #line $LINENO "configure"
24363 #include "confdefs.h"
24365 #ifdef F77_DUMMY_MAIN
24366 # ifdef __cplusplus
24369 int F77_DUMMY_MAIN() { return 1; }
24374 struct passwd p; p.pw_comment;
24379 rm -f conftest.$ac_objext
24380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24381 (eval $ac_compile) 2>&5
24383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); } &&
24385 { ac_try='test -s conftest.$ac_objext'
24386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387 (eval $ac_try) 2>&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); }; }; then
24391 samba_cv_passwd_pw_comment=yes
24393 echo "$as_me: failed program was:" >&5
24394 cat conftest.$ac_ext >&5
24395 samba_cv_passwd_pw_comment=no
24397 rm -f conftest.$ac_objext conftest.$ac_ext
24399 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24400 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24401 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
24403 cat >>confdefs.h <<\_ACEOF
24404 #define HAVE_PASSWD_PW_COMMENT 1
24409 #AC_CHECK_MEMBER(struct passwd.pw_age,
24410 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24411 # [#include <pwd.h>])
24413 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24414 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24415 if test "${samba_cv_passwd_pw_age+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24419 cat >conftest.$ac_ext <<_ACEOF
24420 #line $LINENO "configure"
24421 #include "confdefs.h"
24423 #ifdef F77_DUMMY_MAIN
24424 # ifdef __cplusplus
24427 int F77_DUMMY_MAIN() { return 1; }
24432 struct passwd p; p.pw_age;
24437 rm -f conftest.$ac_objext
24438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24439 (eval $ac_compile) 2>&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } &&
24443 { ac_try='test -s conftest.$ac_objext'
24444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445 (eval $ac_try) 2>&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); }; }; then
24449 samba_cv_passwd_pw_age=yes
24451 echo "$as_me: failed program was:" >&5
24452 cat conftest.$ac_ext >&5
24453 samba_cv_passwd_pw_age=no
24455 rm -f conftest.$ac_objext conftest.$ac_ext
24457 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
24458 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
24459 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
24461 cat >>confdefs.h <<\_ACEOF
24462 #define HAVE_PASSWD_PW_AGE 1
24467 #################################################
24468 # Check to see if we should use the included popt
24471 # Check whether --with-included-popt or --without-included-popt was given.
24472 if test "${with_included_popt+set}" = set; then
24473 withval="$with_included_popt"
24484 if test x"$INCLUDED_POPT" != x"yes"; then
24485 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
24486 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
24487 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
24488 echo $ECHO_N "(cached) $ECHO_C" >&6
24490 ac_check_lib_save_LIBS=$LIBS
24491 LIBS="-lpopt $LIBS"
24492 cat >conftest.$ac_ext <<_ACEOF
24493 #line $LINENO "configure"
24494 #include "confdefs.h"
24496 /* Override any gcc2 internal prototype to avoid an error. */
24500 /* We use char because int might match the return type of a gcc2
24501 builtin and then its argument prototype would still apply. */
24502 char poptGetContext ();
24503 #ifdef F77_DUMMY_MAIN
24504 # ifdef __cplusplus
24507 int F77_DUMMY_MAIN() { return 1; }
24517 rm -f conftest.$ac_objext conftest$ac_exeext
24518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24519 (eval $ac_link) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } &&
24523 { ac_try='test -s conftest$ac_exeext'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; }; then
24529 ac_cv_lib_popt_poptGetContext=yes
24531 echo "$as_me: failed program was:" >&5
24532 cat conftest.$ac_ext >&5
24533 ac_cv_lib_popt_poptGetContext=no
24535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24536 LIBS=$ac_check_lib_save_LIBS
24538 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
24539 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
24540 if test $ac_cv_lib_popt_poptGetContext = yes; then
24548 echo "$as_me:$LINENO: checking whether to use included popt" >&5
24549 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
24550 if test x"$INCLUDED_POPT" = x"yes"; then
24551 echo "$as_me:$LINENO: result: yes" >&5
24552 echo "${ECHO_T}yes" >&6
24553 BUILD_POPT='$(POPT_OBJS)'
24554 FLAGS1="-I$srcdir/popt"
24556 echo "$as_me:$LINENO: result: no" >&5
24557 echo "${ECHO_T}no" >&6
24558 LIBS="$LIBS -lpopt"
24563 #################################################
24564 # Check if the user wants Python
24566 # At the moment, you can use this to set which Python binary to link
24567 # against. (Libraries built for Python2.2 can't be used by 2.1,
24568 # though they can coexist in different directories.) In the future
24569 # this might make the Python stuff be built by default.
24571 # Defaulting python breaks the clean target if python isn't installed
24576 # Check whether --with-python or --without-python was given.
24577 if test "${with_python+set}" = set; then
24578 withval="$with_python"
24579 case "${withval-python}" in
24582 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
24588 PYTHON=${withval-python}
24594 #################################################
24595 # do extra things if we are running insure
24597 if test "${ac_cv_prog_CC}" = "insure"; then
24598 CPPFLAGS="$CPPFLAGS -D__INSURE__"
24601 #################################################
24602 # final configure stuff
24604 echo "$as_me:$LINENO: checking configure summary" >&5
24605 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
24606 if test "$cross_compiling" = yes; then
24607 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
24608 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
24610 cat >conftest.$ac_ext <<_ACEOF
24611 #line $LINENO "configure"
24612 #include "confdefs.h"
24613 #include "${srcdir-.}/tests/summary.c"
24615 rm -f conftest$ac_exeext
24616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24617 (eval $ac_link) 2>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622 (eval $ac_try) 2>&5
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); }; }; then
24626 echo "$as_me:$LINENO: result: yes" >&5
24627 echo "${ECHO_T}yes" >&6
24629 echo "$as_me: program exited with status $ac_status" >&5
24630 echo "$as_me: failed program was:" >&5
24631 cat conftest.$ac_ext >&5
24632 ( exit $ac_status )
24633 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
24634 echo "$as_me: error: summary failure. Aborting config" >&2;}
24635 { (exit 1); exit 1; }; }; exit 1;
24637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24643 ac_config_files="$ac_config_files include/stamp-h Makefile script/findsmb"
24644 cat >confcache <<\_ACEOF
24645 # This file is a shell script that caches the results of configure
24646 # tests run on this system so they can be shared between configure
24647 # scripts and configure runs, see configure's option --config-cache.
24648 # It is not useful on other systems. If it contains results you don't
24649 # want to keep, you may remove or edit it.
24651 # config.status only pays attention to the cache file if you give it
24652 # the --recheck option to rerun configure.
24654 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24656 # following values.
24660 # The following way of writing the cache mishandles newlines in values,
24661 # but we know of no workaround that is simple, portable, and efficient.
24662 # So, don't put newlines in cache variables' values.
24663 # Ultrix sh set writes to stderr and can't be redirected directly,
24664 # and sets the high bit in the cache file unless we assign to the vars.
24667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24669 # `set' does not quote correctly, so add quotes (double-quote
24670 # substitution turns \\\\ into \\, and sed turns \\ into \).
24673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24676 # `set' quotes correctly as required by POSIX, so do not add quotes.
24678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24689 if cmp -s $cache_file confcache; then :; else
24690 if test -w $cache_file; then
24691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24692 cat confcache >$cache_file
24694 echo "not updating unwritable cache $cache_file"
24699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24700 # Let make expand exec_prefix.
24701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24705 # trailing colons and then remove the whole line if VPATH becomes empty
24706 # (actually we leave an empty line to preserve line numbers).
24707 if test "x$srcdir" = x.; then
24708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24709 s/:*\$(srcdir):*/:/;
24710 s/:*\${srcdir}:*/:/;
24712 s/^\([^=]*=[ ]*\):*/\1/;
24718 DEFS=-DHAVE_CONFIG_H
24721 : ${CONFIG_STATUS=./config.status}
24722 ac_clean_files_save=$ac_clean_files
24723 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24724 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24725 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24726 cat >$CONFIG_STATUS <<_ACEOF
24728 # Generated by $as_me.
24729 # Run this file to recreate the current configuration.
24730 # Compiler output produced by configure, useful for debugging
24731 # configure, is in config.log if it exists.
24734 SHELL=\${CONFIG_SHELL-$SHELL}
24737 cat >>$CONFIG_STATUS <<\_ACEOF
24739 ## --------------------- ##
24740 ## M4sh Initialization. ##
24741 ## --------------------- ##
24743 # Be Bourne compatible
24744 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24752 # Support unset when possible.
24753 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24759 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
24760 { $as_unset LANG || test "${LANG+set}" != set; } ||
24761 { LANG=C; export LANG; }
24762 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
24763 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
24764 { LC_ALL=C; export LC_ALL; }
24765 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
24766 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
24767 { LC_TIME=C; export LC_TIME; }
24768 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
24769 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
24770 { LC_CTYPE=C; export LC_CTYPE; }
24771 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
24772 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
24773 { LANGUAGE=C; export LANGUAGE; }
24774 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
24775 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
24776 { LC_COLLATE=C; export LC_COLLATE; }
24777 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
24778 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
24779 { LC_NUMERIC=C; export LC_NUMERIC; }
24780 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
24781 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
24782 { LC_MESSAGES=C; export LC_MESSAGES; }
24785 # Name of the executable.
24786 as_me=`(basename "$0") 2>/dev/null ||
24787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24788 X"$0" : 'X\(//\)$' \| \
24789 X"$0" : 'X\(/\)$' \| \
24790 . : '\(.\)' 2>/dev/null ||
24792 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24793 /^X\/\(\/\/\)$/{ s//\1/; q; }
24794 /^X\/\(\/\).*/{ s//\1/; q; }
24797 # PATH needs CR, and LINENO needs CR and PATH.
24798 # Avoid depending upon Character Ranges.
24799 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24800 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24801 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24802 as_cr_digits='0123456789'
24803 as_cr_alnum=$as_cr_Letters$as_cr_digits
24805 # The user is always right.
24806 if test "${PATH_SEPARATOR+set}" != set; then
24807 echo "#! /bin/sh" >conftest.sh
24808 echo "exit 0" >>conftest.sh
24809 chmod +x conftest.sh
24810 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
24819 as_lineno_1=$LINENO
24820 as_lineno_2=$LINENO
24821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24822 test "x$as_lineno_1" != "x$as_lineno_2" &&
24823 test "x$as_lineno_3" = "x$as_lineno_2" || {
24824 # Find who we are. Look in the path if we contain no path at all
24827 *[\\/]* ) as_myself=$0 ;;
24828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24829 for as_dir in $PATH
24832 test -z "$as_dir" && as_dir=.
24833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24838 # We did not find ourselves, most probably we were run as `sh COMMAND'
24839 # in which case we are not to be found in the path.
24840 if test "x$as_myself" = x; then
24843 if test ! -f "$as_myself"; then
24844 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24845 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24846 { (exit 1); exit 1; }; }
24848 case $CONFIG_SHELL in
24850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24851 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24854 test -z "$as_dir" && as_dir=.
24855 for as_base in sh bash ksh sh5; do
24858 if ("$as_dir/$as_base" -c '
24859 as_lineno_1=$LINENO
24860 as_lineno_2=$LINENO
24861 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24862 test "x$as_lineno_1" != "x$as_lineno_2" &&
24863 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24864 CONFIG_SHELL=$as_dir/$as_base
24865 export CONFIG_SHELL
24866 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24874 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24875 # uniformly replaced by the line number. The first 'sed' inserts a
24876 # line-number line before each line; the second 'sed' does the real
24877 # work. The second script uses 'N' to pair each line-number line
24878 # with the numbered line, and appends trailing '-' during
24879 # substitution so that $LINENO is not a special case at line end.
24880 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24881 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24882 sed '=' <$as_myself |
24887 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24890 s,^['$as_cr_digits']*\n,,
24891 ' >$as_me.lineno &&
24892 chmod +x $as_me.lineno ||
24893 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24894 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24895 { (exit 1); exit 1; }; }
24897 # Don't try to exec as it changes $[0], causing all sort of problems
24898 # (the dirname of $[0] is not the place where we might find the
24899 # original and so on. Autoconf is especially sensible to this).
24901 # Exit status is that of the last command.
24906 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24907 *c*,-n*) ECHO_N= ECHO_C='
24909 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24910 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24913 if expr a : '\(a\)' >/dev/null 2>&1; then
24919 rm -f conf$$ conf$$.exe conf$$.file
24921 if ln -s conf$$.file conf$$ 2>/dev/null; then
24922 # We could just check for DJGPP; but this test a) works b) is more generic
24923 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24924 if test -f conf$$.exe; then
24925 # Don't use ln at all; we don't have any links
24930 elif ln conf$$.file conf$$ 2>/dev/null; then
24935 rm -f conf$$ conf$$.exe conf$$.file
24937 as_executable_p="test -f"
24939 # Sed expression to map a string onto a valid CPP name.
24940 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24942 # Sed expression to map a string onto a valid variable name.
24943 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24947 # We need space, tab and new line, in precisely that order.
24953 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
24957 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24958 # report actual input values of CONFIG_FILES etc. instead of their
24959 # values after options handling. Logging --version etc. is OK.
24963 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24964 ## Running $as_me. ##
24969 This file was extended by $as_me, which was
24970 generated by GNU Autoconf 2.53. Invocation command line was
24972 CONFIG_FILES = $CONFIG_FILES
24973 CONFIG_HEADERS = $CONFIG_HEADERS
24974 CONFIG_LINKS = $CONFIG_LINKS
24975 CONFIG_COMMANDS = $CONFIG_COMMANDS
24979 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24983 # Files that config.status was made for.
24984 if test -n "$ac_config_files"; then
24985 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24988 if test -n "$ac_config_headers"; then
24989 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24992 if test -n "$ac_config_links"; then
24993 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24996 if test -n "$ac_config_commands"; then
24997 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25000 cat >>$CONFIG_STATUS <<\_ACEOF
25003 \`$as_me' instantiates files from templates according to the
25004 current configuration.
25006 Usage: $0 [OPTIONS] [FILE]...
25008 -h, --help print this help, then exit
25009 -V, --version print version number, then exit
25010 -d, --debug don't remove temporary files
25011 --recheck update $as_me by reconfiguring in the same conditions
25012 --file=FILE[:TEMPLATE]
25013 instantiate the configuration file FILE
25014 --header=FILE[:TEMPLATE]
25015 instantiate the configuration header FILE
25017 Configuration files:
25020 Configuration headers:
25023 Report bugs to <bug-autoconf@gnu.org>."
25026 cat >>$CONFIG_STATUS <<_ACEOF
25029 configured by $0, generated by GNU Autoconf 2.53,
25030 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25032 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25033 Free Software Foundation, Inc.
25034 This config.status script is free software; the Free Software Foundation
25035 gives unlimited permission to copy, distribute and modify it."
25040 cat >>$CONFIG_STATUS <<\_ACEOF
25041 # If no file are specified by the user, then we need to provide default
25042 # value. By we need to know if files were specified by the user.
25048 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25049 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25051 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
25055 *) # This is not an option, so the user has probably given explicit
25057 ac_need_defaults=false;;
25061 # Handling of the options.
25063 cat >>$CONFIG_STATUS <<_ACEOF
25064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25065 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25066 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25068 cat >>$CONFIG_STATUS <<\_ACEOF
25069 --version | --vers* | -V )
25070 echo "$ac_cs_version"; exit 0 ;;
25072 # Conflict between --help and --header
25073 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25074 Try \`$0 --help' for more information." >&5
25075 echo "$as_me: error: ambiguous option: $1
25076 Try \`$0 --help' for more information." >&2;}
25077 { (exit 1); exit 1; }; };;
25078 --help | --hel | -h )
25079 echo "$ac_cs_usage"; exit 0 ;;
25080 --debug | --d* | -d )
25082 --file | --fil | --fi | --f )
25084 CONFIG_FILES="$CONFIG_FILES $1"
25085 ac_need_defaults=false;;
25086 --header | --heade | --head | --hea )
25088 CONFIG_HEADERS="$CONFIG_HEADERS $1"
25089 ac_need_defaults=false;;
25091 # This is an error.
25092 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25093 Try \`$0 --help' for more information." >&5
25094 echo "$as_me: error: unrecognized option: $1
25095 Try \`$0 --help' for more information." >&2;}
25096 { (exit 1); exit 1; }; } ;;
25098 *) ac_config_targets="$ac_config_targets $1" ;;
25110 cat >>$CONFIG_STATUS <<\_ACEOF
25111 for ac_config_target in $ac_config_targets
25113 case "$ac_config_target" in
25114 # Handling of arguments.
25115 "include/stamp-h" ) CONFIG_FILES="$CONFIG_FILES include/stamp-h" ;;
25116 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25117 "script/findsmb" ) CONFIG_FILES="$CONFIG_FILES script/findsmb" ;;
25118 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25119 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25120 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25121 { (exit 1); exit 1; }; };;
25125 # If the user did not use the arguments to specify the items to instantiate,
25126 # then the envvar interface is used. Set only those that are not.
25127 # We use the long form for the default assignment because of an extremely
25128 # bizarre bug on SunOS 4.1.3.
25129 if $ac_need_defaults; then
25130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25134 # Create a temporary directory, and hook for its removal unless debugging.
25137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25138 trap '{ (exit 1); exit 1; }' 1 2 13 15
25141 # Create a (secure) tmp directory for tmp files.
25144 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25145 test -n "$tmp" && test -d "$tmp"
25148 tmp=$TMPDIR/cs$$-$RANDOM
25149 (umask 077 && mkdir $tmp)
25152 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25153 { (exit 1); exit 1; }
25158 cat >>$CONFIG_STATUS <<_ACEOF
25161 # CONFIG_FILES section.
25164 # No need to generate the scripts if there are no CONFIG_FILES.
25165 # This happens for instance when ./config.status config.h
25166 if test -n "\$CONFIG_FILES"; then
25167 # Protect against being on the right side of a sed subst in config.status.
25168 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25169 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25170 s,@SHELL@,$SHELL,;t t
25171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25177 s,@exec_prefix@,$exec_prefix,;t t
25178 s,@prefix@,$prefix,;t t
25179 s,@program_transform_name@,$program_transform_name,;t t
25180 s,@bindir@,$bindir,;t t
25181 s,@sbindir@,$sbindir,;t t
25182 s,@libexecdir@,$libexecdir,;t t
25183 s,@datadir@,$datadir,;t t
25184 s,@sysconfdir@,$sysconfdir,;t t
25185 s,@sharedstatedir@,$sharedstatedir,;t t
25186 s,@localstatedir@,$localstatedir,;t t
25187 s,@libdir@,$libdir,;t t
25188 s,@includedir@,$includedir,;t t
25189 s,@oldincludedir@,$oldincludedir,;t t
25190 s,@infodir@,$infodir,;t t
25191 s,@mandir@,$mandir,;t t
25192 s,@build_alias@,$build_alias,;t t
25193 s,@host_alias@,$host_alias,;t t
25194 s,@target_alias@,$target_alias,;t t
25195 s,@DEFS@,$DEFS,;t t
25196 s,@ECHO_C@,$ECHO_C,;t t
25197 s,@ECHO_N@,$ECHO_N,;t t
25198 s,@ECHO_T@,$ECHO_T,;t t
25199 s,@LIBS@,$LIBS,;t t
25200 s,@configdir@,$configdir,;t t
25201 s,@lockdir@,$lockdir,;t t
25202 s,@piddir@,$piddir,;t t
25203 s,@logfilebase@,$logfilebase,;t t
25204 s,@privatedir@,$privatedir,;t t
25205 s,@swatdir@,$swatdir,;t t
25206 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25207 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25208 s,@SHLD@,$SHLD,;t t
25209 s,@HOST_OS@,$HOST_OS,;t t
25210 s,@PICFLAG@,$PICFLAG,;t t
25211 s,@PICSUFFIX@,$PICSUFFIX,;t t
25212 s,@POBAD_CC@,$POBAD_CC,;t t
25213 s,@SHLIBEXT@,$SHLIBEXT,;t t
25214 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25215 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25216 s,@PRINTLIBS@,$PRINTLIBS,;t t
25217 s,@AUTHLIBS@,$AUTHLIBS,;t t
25218 s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
25219 s,@SMBWRAPPER@,$SMBWRAPPER,;t t
25220 s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
25221 s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
25222 s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
25224 s,@CFLAGS@,$CFLAGS,;t t
25225 s,@LDFLAGS@,$LDFLAGS,;t t
25226 s,@CPPFLAGS@,$CPPFLAGS,;t t
25227 s,@ac_ct_CC@,$ac_ct_CC,;t t
25228 s,@EXEEXT@,$EXEEXT,;t t
25229 s,@OBJEXT@,$OBJEXT,;t t
25230 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25231 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25232 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25234 s,@BROKEN_CC@,$BROKEN_CC,;t t
25235 s,@build@,$build,;t t
25236 s,@build_cpu@,$build_cpu,;t t
25237 s,@build_vendor@,$build_vendor,;t t
25238 s,@build_os@,$build_os,;t t
25239 s,@host@,$host,;t t
25240 s,@host_cpu@,$host_cpu,;t t
25241 s,@host_vendor@,$host_vendor,;t t
25242 s,@host_os@,$host_os,;t t
25243 s,@target@,$target,;t t
25244 s,@target_cpu@,$target_cpu,;t t
25245 s,@target_vendor@,$target_vendor,;t t
25246 s,@target_os@,$target_os,;t t
25248 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25249 s,@LIBOBJS@,$LIBOBJS,;t t
25250 s,@TERMLIBS@,$TERMLIBS,;t t
25251 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25252 s,@ROFF@,$ROFF,;t t
25253 s,@DYNEXP@,$DYNEXP,;t t
25254 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25255 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25256 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25257 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25258 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25259 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25260 s,@XML_LIBS@,$XML_LIBS,;t t
25261 s,@MODULE_XML@,$MODULE_XML,;t t
25262 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25263 s,@manlangs@,$manlangs,;t t
25264 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25265 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25266 s,@BUILD_POPT@,$BUILD_POPT,;t t
25267 s,@FLAGS1@,$FLAGS1,;t t
25268 s,@PYTHON@,$PYTHON,;t t
25269 s,@builddir@,$builddir,;t t
25274 cat >>$CONFIG_STATUS <<\_ACEOF
25275 # Split the substitutions into bite-sized pieces for seds with
25276 # small command number limits, like on Digital OSF/1 and HP-UX.
25277 ac_max_sed_lines=48
25278 ac_sed_frag=1 # Number of current file.
25279 ac_beg=1 # First line for current file.
25280 ac_end=$ac_max_sed_lines # Line after last line for current file.
25283 while $ac_more_lines; do
25284 if test $ac_beg -gt 1; then
25285 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25287 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25289 if test ! -s $tmp/subs.frag; then
25290 ac_more_lines=false
25292 # The purpose of the label and of the branching condition is to
25293 # speed up the sed processing (if there are no `@' at all, there
25294 # is no need to browse any of the substitutions).
25295 # These are the two extra sed commands mentioned above.
25297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25298 if test -z "$ac_sed_cmds"; then
25299 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25301 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25303 ac_sed_frag=`expr $ac_sed_frag + 1`
25305 ac_end=`expr $ac_end + $ac_max_sed_lines`
25308 if test -z "$ac_sed_cmds"; then
25311 fi # test -n "$CONFIG_FILES"
25314 cat >>$CONFIG_STATUS <<\_ACEOF
25315 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25318 - | *:- | *:-:* ) # input from stdin
25320 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25322 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25324 * ) ac_file_in=$ac_file.in ;;
25327 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25328 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25330 X"$ac_file" : 'X\(//\)[^/]' \| \
25331 X"$ac_file" : 'X\(//\)$' \| \
25332 X"$ac_file" : 'X\(/\)' \| \
25333 . : '\(.\)' 2>/dev/null ||
25335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25337 /^X\(\/\/\)$/{ s//\1/; q; }
25338 /^X\(\/\).*/{ s//\1/; q; }
25340 { case "$ac_dir" in
25341 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25345 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25346 case $as_mkdir_dir in
25347 # Skip DOS drivespec
25348 ?:) as_incr_dir=$as_mkdir_dir ;;
25350 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25351 test -d "$as_incr_dir" ||
25352 mkdir "$as_incr_dir" ||
25353 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25354 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25355 { (exit 1); exit 1; }; }
25362 if test "$ac_dir" != .; then
25363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25364 # A "../" for each directory in $ac_dir_suffix.
25365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25367 ac_dir_suffix= ac_top_builddir=
25371 .) # No --srcdir option. We are building in place.
25373 if test -z "$ac_top_builddir"; then
25376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25378 [\\/]* | ?:[\\/]* ) # Absolute path.
25379 ac_srcdir=$srcdir$ac_dir_suffix;
25380 ac_top_srcdir=$srcdir ;;
25381 *) # Relative path.
25382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25385 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25387 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25388 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25389 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25390 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25395 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25398 if test x"$ac_file" != x-; then
25399 { echo "$as_me:$LINENO: creating $ac_file" >&5
25400 echo "$as_me: creating $ac_file" >&6;}
25403 # Let's still pretend it is `configure' which instantiates (i.e., don't
25404 # use $as_me), people would be surprised to read:
25405 # /* config.h. Generated by config.status. */
25406 if test x"$ac_file" = x-; then
25409 configure_input="$ac_file. "
25411 configure_input=$configure_input"Generated from `echo $ac_file_in |
25412 sed 's,.*/,,'` by configure."
25414 # First look for the input files in the build tree, otherwise in the
25416 ac_file_inputs=`IFS=:
25417 for f in $ac_file_in; do
25419 -) echo $tmp/stdin ;;
25421 # Absolute (can't be DOS-style, as IFS=:)
25422 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25423 echo "$as_me: error: cannot find input file: $f" >&2;}
25424 { (exit 1); exit 1; }; }
25427 if test -f "$f"; then
25430 elif test -f "$srcdir/$f"; then
25435 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25436 echo "$as_me: error: cannot find input file: $f" >&2;}
25437 { (exit 1); exit 1; }; }
25440 done` || { (exit 1); exit 1; }
25442 cat >>$CONFIG_STATUS <<_ACEOF
25446 cat >>$CONFIG_STATUS <<\_ACEOF
25448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25449 s,@configure_input@,$configure_input,;t t
25450 s,@srcdir@,$ac_srcdir,;t t
25451 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25452 s,@top_srcdir@,$ac_top_srcdir,;t t
25453 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25454 s,@builddir@,$ac_builddir,;t t
25455 s,@abs_builddir@,$ac_abs_builddir,;t t
25456 s,@top_builddir@,$ac_top_builddir,;t t
25457 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25458 s,@INSTALL@,$ac_INSTALL,;t t
25459 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25461 if test x"$ac_file" != x-; then
25462 mv $tmp/out $ac_file
25470 cat >>$CONFIG_STATUS <<\_ACEOF
25473 # CONFIG_HEADER section.
25476 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25477 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25479 # ac_d sets the value in "#define NAME VALUE" lines.
25480 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25481 ac_dB='[ ].*$,\1#\2'
25484 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25485 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25486 ac_uB='$,\1#\2define\3'
25490 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25493 - | *:- | *:-:* ) # input from stdin
25495 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25496 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25497 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25498 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25499 * ) ac_file_in=$ac_file.in ;;
25502 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25503 echo "$as_me: creating $ac_file" >&6;}
25505 # First look for the input files in the build tree, otherwise in the
25507 ac_file_inputs=`IFS=:
25508 for f in $ac_file_in; do
25510 -) echo $tmp/stdin ;;
25512 # Absolute (can't be DOS-style, as IFS=:)
25513 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25514 echo "$as_me: error: cannot find input file: $f" >&2;}
25515 { (exit 1); exit 1; }; }
25518 if test -f "$f"; then
25521 elif test -f "$srcdir/$f"; then
25526 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25527 echo "$as_me: error: cannot find input file: $f" >&2;}
25528 { (exit 1); exit 1; }; }
25531 done` || { (exit 1); exit 1; }
25532 # Remove the trailing spaces.
25533 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25537 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25538 # `conftest.undefs', that substitutes the proper values into
25539 # config.h.in to produce config.h. The first handles `#define'
25540 # templates, and the second `#undef' templates.
25541 # And first: Protect against being on the right side of a sed subst in
25542 # config.status. Protect against being in an unquoted here document
25543 # in config.status.
25544 rm -f conftest.defines conftest.undefs
25545 # Using a here document instead of a string reduces the quoting nightmare.
25546 # Putting comments in sed scripts is not portable.
25548 # `end' is used to avoid that the second main sed command (meant for
25549 # 0-ary CPP macros) applies to n-ary macro definitions.
25550 # See the Autoconf documentation for `clear'.
25551 cat >confdef2sed.sed <<\_ACEOF
25556 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25558 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25561 # If some macros were called several times there might be several times
25562 # the same #defines, which is useless. Nevertheless, we may not want to
25563 # sort them, since we want the *last* AC-DEFINE to be honored.
25564 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25565 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25566 rm -f confdef2sed.sed
25568 # This sed command replaces #undef with comments. This is necessary, for
25569 # example, in the case of _POSIX_SOURCE, which is predefined and required
25570 # on some systems where configure will not decide to define it.
25571 cat >>conftest.undefs <<\_ACEOF
25572 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25575 # Break up conftest.defines because some shells have a limit on the size
25576 # of here documents, and old seds have small limits too (100 cmds).
25577 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25578 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25579 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25580 echo ' :' >>$CONFIG_STATUS
25581 rm -f conftest.tail
25582 while grep . conftest.defines >/dev/null
25584 # Write a limited-size here document to $tmp/defines.sed.
25585 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25586 # Speed up: don't consider the non `#define' lines.
25587 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25588 # Work around the forget-to-reset-the-flag bug.
25589 echo 't clr' >>$CONFIG_STATUS
25590 echo ': clr' >>$CONFIG_STATUS
25591 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25593 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25595 mv $tmp/out $tmp/in
25597 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25598 rm -f conftest.defines
25599 mv conftest.tail conftest.defines
25601 rm -f conftest.defines
25602 echo ' fi # egrep' >>$CONFIG_STATUS
25603 echo >>$CONFIG_STATUS
25605 # Break up conftest.undefs because some shells have a limit on the size
25606 # of here documents, and old seds have small limits too (100 cmds).
25607 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25608 rm -f conftest.tail
25609 while grep . conftest.undefs >/dev/null
25611 # Write a limited-size here document to $tmp/undefs.sed.
25612 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25613 # Speed up: don't consider the non `#undef'
25614 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25615 # Work around the forget-to-reset-the-flag bug.
25616 echo 't clr' >>$CONFIG_STATUS
25617 echo ': clr' >>$CONFIG_STATUS
25618 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25620 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25622 mv $tmp/out $tmp/in
25624 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25625 rm -f conftest.undefs
25626 mv conftest.tail conftest.undefs
25628 rm -f conftest.undefs
25630 cat >>$CONFIG_STATUS <<\_ACEOF
25631 # Let's still pretend it is `configure' which instantiates (i.e., don't
25632 # use $as_me), people would be surprised to read:
25633 # /* config.h. Generated by config.status. */
25634 if test x"$ac_file" = x-; then
25635 echo "/* Generated by configure. */" >$tmp/config.h
25637 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25639 cat $tmp/in >>$tmp/config.h
25641 if test x"$ac_file" != x-; then
25642 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25644 echo "$as_me: $ac_file is unchanged" >&6;}
25646 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25647 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25648 X"$ac_file" : 'X\(//\)[^/]' \| \
25649 X"$ac_file" : 'X\(//\)$' \| \
25650 X"$ac_file" : 'X\(/\)' \| \
25651 . : '\(.\)' 2>/dev/null ||
25653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25655 /^X\(\/\/\)$/{ s//\1/; q; }
25656 /^X\(\/\).*/{ s//\1/; q; }
25658 { case "$ac_dir" in
25659 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25663 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25664 case $as_mkdir_dir in
25665 # Skip DOS drivespec
25666 ?:) as_incr_dir=$as_mkdir_dir ;;
25668 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25669 test -d "$as_incr_dir" ||
25670 mkdir "$as_incr_dir" ||
25671 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25672 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25673 { (exit 1); exit 1; }; }
25679 mv $tmp/config.h $ac_file
25683 rm -f $tmp/config.h
25688 cat >>$CONFIG_STATUS <<\_ACEOF
25690 { (exit 0); exit 0; }
25692 chmod +x $CONFIG_STATUS
25693 ac_clean_files=$ac_clean_files_save
25696 # configure is writing to config.log, and then calls config.status.
25697 # config.status does its own redirection, appending to config.log.
25698 # Unfortunately, on DOS this fails, as config.log is still kept open
25699 # by configure, so config.status won't be able to write to it; its
25700 # output is simply discarded. So we exec the FD to /dev/null,
25701 # effectively closing config.log, so it can be properly (re)opened and
25702 # appended to by config.status. When coming back to configure, we
25703 # need to make the FD available again.
25704 if test "$no_create" != yes; then
25707 $SHELL $CONFIG_STATUS || ac_cs_success=false
25709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25710 # would make configure fail if this is the last instruction.
25711 $ac_cs_success || { (exit 1); exit 1; }
25715 #################################################
25716 # Print very concise instructions on building/use
25717 if test "x$enable_dmalloc" = xyes
25719 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
25720 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
25721 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
25722 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6