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-dynrpc Enable dynamic RPC modules default
=no
836 --enable-cups Turn on CUPS support
(default
=auto
)
837 --disable-mysqltest Do not try to compile and run a
test MYSQL program
838 --disable-xmltest Do not try to compile and run a
test LIBXML program
841 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
842 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
843 --with-fhs Use FHS-compliant paths
(default
=no
)
844 --with-privatedir=DIR Where to put smbpasswd
($ac_default_prefix/private
)
845 --with-lockdir=DIR Where to put lock files
($ac_default_prefix/var
/locks
)
846 --with-piddir=DIR Where to put pid files
($ac_default_prefix/var
/locks
)
847 --with-swatdir=DIR Where to put SWAT files
($ac_default_prefix/swat
)
848 --with-configdir=DIR Where to put configuration files
(\
$libdir)
849 --with-logfilebase=DIR Where to put log files
(\$
(VARDIR
))
850 --with-readline=DIR Look
for readline include
/libs
in DIR
(default
=auto
)
851 --with-libiconv=BASEDIR Use libiconv
in BASEDIR
/lib and BASEDIR
/include
(default
=auto
)
852 --with-smbwrapper Include SMB wrapper support
(default
=no
)
853 --with-afs Include AFS clear-text auth support
(default
=no
)
854 --with-dce-dfs Include DCE
/DFS clear-text auth support
(default
=no
)
855 --with-ads Active Directory support
(default
yes)
856 --with-krb5=base-dir Locate Kerberos
5 support
(default
=/usr
)
857 --with-ldap LDAP support
(default
yes)
858 --with-mysql-prefix=PFX Prefix where MYSQL is installed
(optional
)
859 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed
(optional
)
860 --with-xml-prefix=PFX Prefix where libxml is installed
(optional
)
861 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed
(optional
)
862 --with-automount Include automount support
(default
=no
)
863 --with-smbmount Include smbmount
(Linux only
) support
(default
=no
)
864 --with-pam Include PAM support
(default
=no
)
865 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd
file (default
=no
)
866 --with-sam Build new
(experimental
) SAM database
(default
=no
)
867 --with-ldapsam Include LDAP SAM
2.2 compatible configuration
(default
=no
)
868 --with-tdbsam Include experimental TDB SAM support
(default
=no
)
869 --with-nisplussam Include NISPLUS SAM support
(default
=no
)
870 --with-nisplus-home Include NISPLUS_HOME support
(default
=no
)
871 --with-syslog Include experimental SYSLOG support
(default
=no
)
872 --with-profiling-data Include gathering
source code profile information
(default
=no
)
873 --with-quotas Include experimental disk-quota support
(default
=no
)
874 --with-utmp Include experimental utmp accounting
(default
=no
)
875 --with-manpages-langs={en
,ja
,pl
} Choose man pages
' language(s). (en)
876 --with-libsmbclient Build the libsmbclient shared library (default=yes)
877 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
878 --with-acl-support Include ACL support (default=no)
879 --with-sendfile-support Check for sendfile support (default=yes)
880 --with-winbind Build winbind (default, if supported by OS)
881 --with-included-popt use bundled popt library, not from system
882 --with-python=PYTHONNAME build Python libraries
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
893 Use these variables to override the choices made by `configure' or to
help
894 it to
find libraries and programs with nonstandard names
/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
903 test -d $ac_dir ||
continue
906 if test "$ac_dir" != .
; then
907 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix
= ac_top_builddir
=
915 .
) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?
:[\\/]* ) # Absolute path.
923 ac_srcdir
=$srcdir$ac_dir_suffix;
924 ac_top_srcdir
=$srcdir ;;
926 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
933 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu
; then
940 $SHELL $ac_srcdir/configure.gnu
--help=recursive
941 elif test -f $ac_srcdir/configure
; then
943 $SHELL $ac_srcdir/configure
--help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.
in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
959 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation
, Inc.
961 This configure
script is free software
; the Free Software Foundation
962 gives unlimited permission to copy
, distribute and modify it.
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
971 It was created by $as_me, which was
972 generated by GNU Autoconf 2.53. Invocation command line was
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1006 test -z "$as_dir" && as_dir
=.
1007 echo "PATH: $as_dir"
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Also quote any args containing shell meta-characters.
1030 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1031 |
--no-cr |
--no-c |
-n ) continue ;;
1032 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1033 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1035 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038 case " $ac_configure_args " in
1039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1040 *) ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1043 # Get rid of the leading space.
1046 # When interrupted or exit'd, cleanup temporary files, and complete
1047 # config.log. We remove comments because anyway the quotes in there
1048 # would cause problems or look ugly.
1049 # WARNING: Be sure not to use single quotes in there, as some shells,
1050 # such as our DU 5.0 friend, will then `close' the trap.
1051 trap 'exit_status=$?
1052 # Save into config.log some information that might help in debugging.
1056 ## ---------------- ##
1057 ## Cache variables. ##
1058 ## ---------------- ##
1061 # The following way of writing the cache mishandles newlines in values,
1064 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1072 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 if test -s confdefs.h; then
1084 sed "/^$/d" confdefs.h
1087 test "$ac_signal" != 0 &&
1088 echo "$as_me: caught signal $ac_signal"
1089 echo "$as_me: exit $exit_status"
1091 rm -f core core.* *.core &&
1092 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1095 for ac_signal
in 1 2 13 15; do
1096 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1101 rm -rf conftest
* confdefs.h
1102 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1105 # Predefined preprocessor variables.
1107 cat >>confdefs.h
<<_ACEOF
1108 #define PACKAGE_NAME "$PACKAGE_NAME"
1112 cat >>confdefs.h
<<_ACEOF
1113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1117 cat >>confdefs.h
<<_ACEOF
1118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1122 cat >>confdefs.h
<<_ACEOF
1123 #define PACKAGE_STRING "$PACKAGE_STRING"
1127 cat >>confdefs.h
<<_ACEOF
1128 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1132 # Let the site file select an alternate cache file if it wants to.
1133 # Prefer explicitly selected file to automatically selected ones.
1134 if test -z "$CONFIG_SITE"; then
1135 if test "x$prefix" != xNONE
; then
1136 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1138 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1141 for ac_site_file
in $CONFIG_SITE; do
1142 if test -r "$ac_site_file"; then
1143 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1144 echo "$as_me: loading site script $ac_site_file" >&6;}
1145 sed 's/^/| /' "$ac_site_file" >&5
1150 if test -r "$cache_file"; then
1151 # Some versions of bash will fail to source /dev/null (special
1152 # files actually), so we avoid doing that.
1153 if test -f "$cache_file"; then
1154 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1155 echo "$as_me: loading cache $cache_file" >&6;}
1157 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1158 *) . .
/$cache_file;;
1162 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1163 echo "$as_me: creating cache $cache_file" >&6;}
1167 # Check that the precious variables saved in the cache have kept the same
1169 ac_cache_corrupted
=false
1170 for ac_var
in `(set) 2>&1 |
1171 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1172 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1173 eval ac_new_set
=\
$ac_env_${ac_var}_set
1174 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1175 eval ac_new_val
="\$ac_env_${ac_var}_value"
1176 case $ac_old_set,$ac_new_set in
1178 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1179 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1180 ac_cache_corrupted
=: ;;
1182 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1184 ac_cache_corrupted
=: ;;
1187 if test "x$ac_old_val" != "x$ac_new_val"; then
1188 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1189 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1190 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1191 echo "$as_me: former value: $ac_old_val" >&2;}
1192 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1193 echo "$as_me: current value: $ac_new_val" >&2;}
1194 ac_cache_corrupted
=:
1197 # Pass precious variables to config.status.
1198 if test "$ac_new_set" = set; then
1200 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1201 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1202 *) ac_arg
=$ac_var=$ac_new_val ;;
1204 case " $ac_configure_args " in
1205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1206 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1210 if $ac_cache_corrupted; then
1211 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1212 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1213 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1214 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1215 { (exit 1); exit 1; }; }
1219 ac_cpp
='$CPP $CPPFLAGS'
1220 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1221 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1222 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1241 ac_config_headers
="$ac_config_headers include/config.h"
1244 #################################################
1245 # Directory handling stuff to support both the
1246 # legacy SAMBA directories and FHS compliant
1251 # Check whether --with-fhs or --without-fhs was given.
1252 if test "${with_fhs+set}" = set; then
1254 configdir
="${sysconfdir}/samba"
1255 lockdir
="\${VARDIR}/cache/samba"
1256 piddir
="\${VARDIR}/run/samba"
1257 logfilebase
="\${VARDIR}/log/samba"
1258 privatedir
="\${CONFIGDIR}/private"
1259 libdir
="\${prefix}/lib/samba"
1260 swatdir
="\${DATADIR}/samba/swat"
1262 configdir
="\${LIBDIR}"
1263 logfilebase
="\${VARDIR}"
1264 lockdir
="\${VARDIR}/locks"
1265 piddir
="\${VARDIR}/locks"
1266 privatedir
="\${prefix}/private"
1267 swatdir
="\${prefix}/swat"
1270 #################################################
1271 # set private directory location
1273 # Check whether --with-privatedir or --without-privatedir was given.
1274 if test "${with_privatedir+set}" = set; then
1275 withval
="$with_privatedir"
1279 # Just in case anybody calls it without argument
1281 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1282 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1285 privatedir
="$withval"
1290 #################################################
1291 # set lock directory location
1293 # Check whether --with-lockdir or --without-lockdir was given.
1294 if test "${with_lockdir+set}" = set; then
1295 withval
="$with_lockdir"
1299 # Just in case anybody calls it without argument
1301 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1302 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1310 #################################################
1311 # set pid directory location
1313 # Check whether --with-piddir or --without-piddir was given.
1314 if test "${with_piddir+set}" = set; then
1315 withval
="$with_piddir"
1319 # Just in case anybody calls it without argument
1321 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1322 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1330 #################################################
1331 # set SWAT directory location
1333 # Check whether --with-swatdir or --without-swatdir was given.
1334 if test "${with_swatdir+set}" = set; then
1335 withval
="$with_swatdir"
1339 # Just in case anybody does it
1341 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1342 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1350 #################################################
1351 # set configuration directory location
1353 # Check whether --with-configdir or --without-configdir was given.
1354 if test "${with_configdir+set}" = set; then
1355 withval
="$with_configdir"
1359 # Just in case anybody does it
1361 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1362 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1365 configdir
="$withval"
1370 #################################################
1371 # set log directory location
1373 # Check whether --with-logfilebase or --without-logfilebase was given.
1374 if test "${with_logfilebase+set}" = set; then
1375 withval
="$with_logfilebase"
1379 # Just in case anybody does it
1381 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1382 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1385 logfilebase
="$withval"
1426 # compile with optimization and without debugging by default
1427 CFLAGS
="-O ${CFLAGS}"
1429 # Check whether --enable-debug or --disable-debug was given.
1430 if test "${enable_debug+set}" = set; then
1431 enableval
="$enable_debug"
1432 if eval "test x$enable_debug = xyes"; then
1433 CFLAGS
="${CFLAGS} -g"
1437 # Check whether --enable-developer or --disable-developer was given.
1438 if test "${enable_developer+set}" = set; then
1439 enableval
="$enable_developer"
1440 if eval "test x$enable_developer = xyes"; then
1441 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1445 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1446 if test "${enable_krb5developer+set}" = set; then
1447 enableval
="$enable_krb5developer"
1448 if eval "test x$enable_krb5developer = xyes"; then
1449 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1453 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1454 if test "${enable_dmalloc+set}" = set; then
1455 enableval
="$enable_dmalloc"
1459 if test "x$enable_dmalloc" = xyes
1462 cat >>confdefs.h
<<\_ACEOF
1463 #define ENABLE_DMALLOC 1
1467 cat >>confdefs.h
<<\_ACEOF
1468 #define DMALLOC_FUNC_CHECK 1
1471 LIBS
="$LIBS -ldmalloc"
1474 # Check whether --enable-dynrpc or --disable-dynrpc was given.
1475 if test "${enable_dynrpc+set}" = set; then
1476 enableval
="$enable_dynrpc"
1480 if test x
$enable_dynrpc = xyes
1482 enable_dynrpc
=lsa
,samr
,reg
,wks
,netlog
,dfs
1485 if test x
$enable_dynrpc != xno
1487 for i
in `echo $enable_dynrpc | sed -e's/,/ /g'`
1491 cat >>confdefs.h
<<\_ACEOF
1492 #define RPC_LSA_DYNAMIC 1
1498 cat >>confdefs.h
<<\_ACEOF
1499 #define RPC_SAMR_DYNAMIC 1
1505 cat >>confdefs.h
<<\_ACEOF
1506 #define RPC_SVC_DYNAMIC 1
1512 cat >>confdefs.h
<<\_ACEOF
1513 #define RPC_WKS_DYNAMIC 1
1519 cat >>confdefs.h
<<\_ACEOF
1520 #define RPC_NETLOG_DYNAMIC 1
1526 cat >>confdefs.h
<<\_ACEOF
1527 #define RPC_REG_DYNAMIC 1
1533 cat >>confdefs.h
<<\_ACEOF
1534 #define RPC_SPOOLSS_DYNAMIC 1
1540 cat >>confdefs.h
<<\_ACEOF
1541 #define RPC_DFS_DYNAMIC 1
1549 ac_cpp
='$CPP $CPPFLAGS'
1550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1555 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC
="$CC" # Let the user override the test.
1564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir
=.
1569 for ac_exec_ext
in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1592 # Extract the first word of "gcc", so it can be a program name with args.
1593 set dummy gcc
; ac_word
=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir
=.
1607 for ac_exec_ext
in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC
="gcc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1632 if test -z "$CC"; then
1633 if test -n "$ac_tool_prefix"; then
1634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1635 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC
="$CC" # Let the user override the test.
1644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir
=.
1649 for ac_exec_ext
in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 if test -n "$CC"; then
1662 echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1670 if test -z "$ac_cv_prog_CC"; then
1672 # Extract the first word of "cc", so it can be a program name with args.
1673 set dummy cc
; ac_word
=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir
=.
1687 for ac_exec_ext
in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC
="cc"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1699 if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701 echo "${ECHO_T}$ac_ct_CC" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1713 if test -z "$CC"; then
1714 # Extract the first word of "cc", so it can be a program name with args.
1715 set dummy cc
; ac_word
=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC
="$CC" # Let the user override the test.
1725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir
=.
1730 for ac_exec_ext
in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1733 ac_prog_rejected
=yes
1737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 if test $ac_prog_rejected = yes; then
1744 # We found a bogon in the path, so make sure we never use it.
1745 set dummy
$ac_cv_prog_CC
1747 if test $# != 0; then
1748 # We chose a different compiler from the bogus one.
1749 # However, it has the same basename, so the bogon will be chosen
1750 # first if we set CC to just the basename; use the full file name.
1752 set dummy
"$as_dir/$ac_word" ${1+"$@"}
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1769 if test -z "$CC"; then
1770 if test -n "$ac_tool_prefix"; then
1773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1774 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1775 echo "$as_me:$LINENO: checking for $ac_word" >&5
1776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777 if test "${ac_cv_prog_CC+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 if test -n "$CC"; then
1781 ac_cv_prog_CC
="$CC" # Let the user override the test.
1783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1787 test -z "$as_dir" && as_dir
=.
1788 for ac_exec_ext
in '' $ac_executable_extensions; do
1789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 if test -n "$CC"; then
1801 echo "$as_me:$LINENO: result: $CC" >&5
1802 echo "${ECHO_T}$CC" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1808 test -n "$CC" && break
1811 if test -z "$CC"; then
1815 # Extract the first word of "$ac_prog", so it can be a program name with args.
1816 set dummy
$ac_prog; ac_word
=$2
1817 echo "$as_me:$LINENO: checking for $ac_word" >&5
1818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1820 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 if test -n "$ac_ct_CC"; then
1823 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1829 test -z "$as_dir" && as_dir
=.
1830 for ac_exec_ext
in '' $ac_executable_extensions; do
1831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832 ac_cv_prog_ac_ct_CC
="$ac_prog"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1842 if test -n "$ac_ct_CC"; then
1843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1844 echo "${ECHO_T}$ac_ct_CC" >&6
1846 echo "$as_me:$LINENO: result: no" >&5
1847 echo "${ECHO_T}no" >&6
1850 test -n "$ac_ct_CC" && break
1859 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1860 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1861 { (exit 1); exit 1; }; }
1863 # Provide some information about the compiler.
1864 echo "$as_me:$LINENO:" \
1865 "checking for C compiler version" >&5
1866 ac_compiler
=`set X $ac_compile; echo $2`
1867 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1868 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871 (exit $ac_status); }
1872 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1873 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); }
1877 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1878 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }
1883 cat >conftest.
$ac_ext <<_ACEOF
1884 #line $LINENO "configure"
1885 #include "confdefs.h"
1887 #ifdef F77_DUMMY_MAIN
1891 int F77_DUMMY_MAIN() { return 1; }
1901 ac_clean_files_save
=$ac_clean_files
1902 ac_clean_files
="$ac_clean_files a.out a.exe"
1903 # Try to create an executable without -o first, disregard a.out.
1904 # It will help us diagnose broken compilers, and finding out an intuition
1906 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1907 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1908 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1910 (eval $ac_link_default) 2>&5
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 # Find the output, starting from the most likely. This scheme is
1915 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1918 # Be careful to initialize this variable, since it used to be cached.
1919 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1921 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1922 ls a.out conftest 2>/dev/null;
1923 ls a.* conftest.* 2>/dev/null`; do
1925 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1926 a.out
) # We found the default executable, but exeext='' is most
1929 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.
$ac_ext >&5
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1940 echo "$as_me: error: C compiler cannot create executables" >&2;}
1941 { (exit 77); exit 77; }; }
1944 ac_exeext
=$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_file" >&5
1946 echo "${ECHO_T}$ac_file" >&6
1948 # Check the compiler produces executables we can run. If not, either
1949 # the compiler is broken, or we cross compile.
1950 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1951 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1952 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1953 # If not cross compiling, check that we can run a simple program.
1954 if test "$cross_compiling" != yes; then
1955 if { ac_try
='./$ac_file'
1956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; }; then
1963 if test "$cross_compiling" = maybe
; then
1966 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1967 If you meant to cross compile, use \`--host'." >&5
1968 echo "$as_me: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'." >&2;}
1970 { (exit 1); exit 1; }; }
1974 echo "$as_me:$LINENO: result: yes" >&5
1975 echo "${ECHO_T}yes" >&6
1977 rm -f a.out a.exe conftest
$ac_cv_exeext
1978 ac_clean_files
=$ac_clean_files_save
1979 # Check the compiler produces executables we can run. If not, either
1980 # the compiler is broken, or we cross compile.
1981 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1982 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1983 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1984 echo "${ECHO_T}$cross_compiling" >&6
1986 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1987 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1989 (eval $ac_link) 2>&5
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); }; then
1993 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1994 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1995 # work properly (i.e., refer to `conftest.exe'), while it won't with
1997 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1999 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2000 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2009 { (exit 1); exit 1; }; }
2012 rm -f conftest
$ac_cv_exeext
2013 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2014 echo "${ECHO_T}$ac_cv_exeext" >&6
2016 rm -f conftest.
$ac_ext
2017 EXEEXT
=$ac_cv_exeext
2019 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2021 if test "${ac_cv_objext+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 cat >conftest.
$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 #include "confdefs.h"
2028 #ifdef F77_DUMMY_MAIN
2032 int F77_DUMMY_MAIN() { return 1; }
2042 rm -f conftest.o conftest.obj
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; then
2048 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2050 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2051 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2056 echo "$as_me: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2065 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2066 echo "${ECHO_T}$ac_cv_objext" >&6
2067 OBJEXT
=$ac_cv_objext
2069 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2070 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 cat >conftest.
$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2076 #include "confdefs.h"
2078 #ifdef F77_DUMMY_MAIN
2082 int F77_DUMMY_MAIN() { return 1; }
2095 rm -f conftest.
$ac_objext
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); } &&
2101 { ac_try
='test -s conftest.$ac_objext'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; }; then
2109 echo "$as_me: failed program was:" >&5
2110 cat conftest.
$ac_ext >&5
2113 rm -f conftest.
$ac_objext conftest.
$ac_ext
2114 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2117 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2118 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2119 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2120 ac_test_CFLAGS
=${CFLAGS+set}
2121 ac_save_CFLAGS
=$CFLAGS
2123 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2124 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2125 if test "${ac_cv_prog_cc_g+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 cat >conftest.
$ac_ext <<_ACEOF
2129 #line $LINENO "configure"
2130 #include "confdefs.h"
2132 #ifdef F77_DUMMY_MAIN
2136 int F77_DUMMY_MAIN() { return 1; }
2146 rm -f conftest.
$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try
='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2164 rm -f conftest.
$ac_objext conftest.
$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2168 if test "$ac_test_CFLAGS" = set; then
2169 CFLAGS
=$ac_save_CFLAGS
2170 elif test $ac_cv_prog_cc_g = yes; then
2171 if test "$GCC" = yes; then
2177 if test "$GCC" = yes; then
2183 # Some people use a C++ compiler to compile C. Since we use `exit',
2184 # in C++ we need to declare it. In case someone uses the same compiler
2185 # for both compiling C and C++ we need to have the C++ compiler decide
2186 # the declaration of exit, since it's the most demanding environment.
2187 cat >conftest.
$ac_ext <<_ACEOF
2192 rm -f conftest.
$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try
='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 for ac_declaration
in \
2206 '#include <stdlib.h>' \
2207 'extern "C" void std::exit (int) throw (); using std::exit;' \
2208 'extern "C" void std::exit (int); using std::exit;' \
2209 'extern "C" void exit (int) throw ();' \
2210 'extern "C" void exit (int);' \
2213 cat >conftest.
$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2218 #ifdef F77_DUMMY_MAIN
2222 int F77_DUMMY_MAIN() { return 1; }
2232 rm -f conftest.
$ac_objext
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234 (eval $ac_compile) 2>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try
='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2246 echo "$as_me: failed program was:" >&5
2247 cat conftest.
$ac_ext >&5
2250 rm -f conftest.
$ac_objext conftest.
$ac_ext
2251 cat >conftest.
$ac_ext <<_ACEOF
2252 #line $LINENO "configure"
2253 #include "confdefs.h"
2255 #ifdef F77_DUMMY_MAIN
2259 int F77_DUMMY_MAIN() { return 1; }
2269 rm -f conftest.
$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try
='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2283 echo "$as_me: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2286 rm -f conftest.
$ac_objext conftest.
$ac_ext
2289 if test -n "$ac_declaration"; then
2290 echo '#ifdef __cplusplus' >>confdefs.h
2291 echo $ac_declaration >>confdefs.h
2292 echo '#endif' >>confdefs.h
2296 echo "$as_me: failed program was:" >&5
2297 cat conftest.
$ac_ext >&5
2299 rm -f conftest.
$ac_objext conftest.
$ac_ext
2301 ac_cpp
='$CPP $CPPFLAGS'
2302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2307 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2308 if test -f $ac_dir/install-sh
; then
2310 ac_install_sh
="$ac_aux_dir/install-sh -c"
2312 elif test -f $ac_dir/install.sh
; then
2314 ac_install_sh
="$ac_aux_dir/install.sh -c"
2316 elif test -f $ac_dir/shtool
; then
2318 ac_install_sh
="$ac_aux_dir/shtool install -c"
2322 if test -z "$ac_aux_dir"; then
2323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2324 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2325 { (exit 1); exit 1; }; }
2327 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2328 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2329 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2331 # Find a good install program. We prefer a C program (faster),
2332 # so one script is as good as another. But avoid the broken or
2333 # incompatible versions:
2334 # SysV /etc/install, /usr/sbin/install
2335 # SunOS /usr/etc/install
2336 # IRIX /sbin/install
2338 # AmigaOS /C/install, which installs bootblocks on floppy discs
2339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2342 # ./install, which can be erroneously created by make from ./install.sh.
2343 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2344 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2345 if test -z "$INSTALL"; then
2346 if test "${ac_cv_path_install+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir
=.
2354 # Account for people who put trailing slashes in PATH elements.
2356 .
/ | .
// |
/cC
/* | \
2357 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2363 for ac_prog
in ginstall scoinst
install; do
2364 for ac_exec_ext
in '' $ac_executable_extensions; do
2365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366 if test $ac_prog = install &&
2367 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2370 elif test $ac_prog = install &&
2371 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2372 # program-specific install script used by HP pwplus--don't use.
2375 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2387 if test "${ac_cv_path_install+set}" = set; then
2388 INSTALL
=$ac_cv_path_install
2390 # As a last resort, use the slow shell script. We don't cache a
2391 # path for INSTALL within a source directory, because that will
2392 # break other packages using the cache if that directory is
2393 # removed, or if the path is relative.
2394 INSTALL
=$ac_install_sh
2397 echo "$as_me:$LINENO: result: $INSTALL" >&5
2398 echo "${ECHO_T}$INSTALL" >&6
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2406 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2408 for ac_prog
in gawk mawk nawk
awk
2410 # Extract the first word of "$ac_prog", so it can be a program name with args.
2411 set dummy
$ac_prog; ac_word
=$2
2412 echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2414 if test "${ac_cv_prog_AWK+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$AWK"; then
2418 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir
=.
2425 for ac_exec_ext
in '' $ac_executable_extensions; do
2426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_AWK
="$ac_prog"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 if test -n "$AWK"; then
2438 echo "$as_me:$LINENO: result: $AWK" >&5
2439 echo "${ECHO_T}$AWK" >&6
2441 echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2445 test -n "$AWK" && break
2450 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2452 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2456 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2457 ac_cv_prog_gnu_ld
=yes
2459 ac_cv_prog_gnu_ld
=no
2462 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2463 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2467 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2468 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2469 if test "${ac_cv_search_strerror+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 ac_func_search_save_LIBS
=$LIBS
2473 ac_cv_search_strerror
=no
2474 cat >conftest.
$ac_ext <<_ACEOF
2475 #line $LINENO "configure"
2476 #include "confdefs.h"
2478 /* Override any gcc2 internal prototype to avoid an error. */
2482 /* We use char because int might match the return type of a gcc2
2483 builtin and then its argument prototype would still apply. */
2485 #ifdef F77_DUMMY_MAIN
2489 int F77_DUMMY_MAIN() { return 1; }
2499 rm -f conftest.
$ac_objext conftest
$ac_exeext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2501 (eval $ac_link) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try
='test -s conftest$ac_exeext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_search_strerror
="none required"
2513 echo "$as_me: failed program was:" >&5
2514 cat conftest.
$ac_ext >&5
2516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2517 if test "$ac_cv_search_strerror" = no
; then
2518 for ac_lib
in cposix
; do
2519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2520 cat >conftest.
$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2524 /* Override any gcc2 internal prototype to avoid an error. */
2528 /* We use char because int might match the return type of a gcc2
2529 builtin and then its argument prototype would still apply. */
2531 #ifdef F77_DUMMY_MAIN
2535 int F77_DUMMY_MAIN() { return 1; }
2545 rm -f conftest.
$ac_objext conftest
$ac_exeext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2547 (eval $ac_link) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try
='test -s conftest$ac_exeext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_search_strerror
="-l$ac_lib"
2560 echo "$as_me: failed program was:" >&5
2561 cat conftest.
$ac_ext >&5
2563 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2566 LIBS
=$ac_func_search_save_LIBS
2568 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2569 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2570 if test "$ac_cv_search_strerror" != no
; then
2571 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2578 if test "x$CC" != xcc
; then
2579 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2580 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2582 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2583 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2585 set dummy
$CC; ac_cc
=`echo $2 |
2586 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2587 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 cat >conftest.
$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2594 #ifdef F77_DUMMY_MAIN
2598 int F77_DUMMY_MAIN() { return 1; }
2608 # Make sure it works both with $CC and with simple cc.
2609 # We do the test twice because some compilers refuse to overwrite an
2610 # existing .o file with -o, though they will create one.
2611 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2612 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); };
2623 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2624 if test "x$CC" != xcc
; then
2625 # Test first that cc exists at all.
2626 if { ac_try
='cc -c conftest.$ac_ext >&5'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2633 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } &&
2638 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); };
2647 # cc exists but doesn't like -o.
2648 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2653 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2658 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2659 echo "$as_me:$LINENO: result: yes" >&5
2660 echo "${ECHO_T}yes" >&6
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2665 cat >>confdefs.h
<<\_ACEOF
2666 #define NO_MINUS_C_MINUS_O 1
2671 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2678 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2679 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2680 if test "${samba_cv_volatile+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 cat >conftest.
$ac_ext <<_ACEOF
2685 #line $LINENO "configure"
2686 #include "confdefs.h"
2687 #include <sys/types.h>
2688 #ifdef F77_DUMMY_MAIN
2692 int F77_DUMMY_MAIN() { return 1; }
2702 rm -f conftest.
$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try
='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2714 samba_cv_volatile
=yes
2716 echo "$as_me: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2718 samba_cv_volatile
=no
2720 rm -f conftest.
$ac_objext conftest.
$ac_ext
2722 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2723 echo "${ECHO_T}$samba_cv_volatile" >&6
2724 if test x
"$samba_cv_volatile" = x
"yes"; then
2726 cat >>confdefs.h
<<\_ACEOF
2727 #define HAVE_VOLATILE 1
2733 # Make sure we can run config.sub.
2734 $ac_config_sub sun4
>/dev
/null
2>&1 ||
2735 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2736 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2737 { (exit 1); exit 1; }; }
2739 echo "$as_me:$LINENO: checking build system type" >&5
2740 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2741 if test "${ac_cv_build+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 ac_cv_build_alias
=$build_alias
2745 test -z "$ac_cv_build_alias" &&
2746 ac_cv_build_alias
=`$ac_config_guess`
2747 test -z "$ac_cv_build_alias" &&
2748 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2749 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2750 { (exit 1); exit 1; }; }
2751 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
2752 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2753 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2754 { (exit 1); exit 1; }; }
2757 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2758 echo "${ECHO_T}$ac_cv_build" >&6
2760 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2761 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2762 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2765 echo "$as_me:$LINENO: checking host system type" >&5
2766 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2767 if test "${ac_cv_host+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 ac_cv_host_alias
=$host_alias
2771 test -z "$ac_cv_host_alias" &&
2772 ac_cv_host_alias
=$ac_cv_build_alias
2773 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
2774 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2775 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2776 { (exit 1); exit 1; }; }
2779 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2780 echo "${ECHO_T}$ac_cv_host" >&6
2782 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2783 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2784 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2787 echo "$as_me:$LINENO: checking target system type" >&5
2788 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2789 if test "${ac_cv_target+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 ac_cv_target_alias
=$target_alias
2793 test "x$ac_cv_target_alias" = "x" &&
2794 ac_cv_target_alias
=$ac_cv_host_alias
2795 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
2796 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2797 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2798 { (exit 1); exit 1; }; }
2801 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2802 echo "${ECHO_T}$ac_cv_target" >&6
2803 target
=$ac_cv_target
2804 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2805 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2806 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2809 # The aliases save the names the user supplied, while $host etc.
2810 # will get canonicalized.
2811 test -n "$target_alias" &&
2812 test "$program_prefix$program_suffix$program_transform_name" = \
2814 program_prefix
=${target_alias}-
2817 *irix6
*) cat >> confdefs.h
<<\EOF
2818 #include <standards.h>
2826 echo "$as_me:$LINENO: checking config.cache system type" >&5
2827 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2828 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
2829 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
2830 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
2831 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
2832 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
2833 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
2834 echo "$as_me:$LINENO: result: different" >&5
2835 echo "${ECHO_T}different" >&6
2836 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2837 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2838 { (exit 1); exit 1; }; }
2840 echo "$as_me:$LINENO: result: same" >&5
2841 echo "${ECHO_T}same" >&6
2843 ac_cv_host_system_type
="$host"
2844 ac_cv_build_system_type
="$build"
2845 ac_cv_target_system_type
="$target"
2851 # Config CPPFLAG settings for strange OS's that must be set
2852 # before other tests.
2855 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2858 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2859 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 echo 'void f(){}' > conftest.c
2864 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2865 ac_cv_prog_cc_Ae
=yes
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2874 # mmap on HPUX is completely broken...
2876 cat >>confdefs.h
<<\_ACEOF
2877 #define MMAP_BLACKLIST 1
2880 if test $ac_cv_prog_cc_Ae = yes; then
2881 CPPFLAGS
="$CPPFLAGS -Ae"
2884 # Defines needed for HPUX support.
2885 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2886 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2890 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2892 cat >>confdefs.h
<<\_ACEOF
2893 #define USE_BOTH_CRYPT_CALLS 1
2897 cat >>confdefs.h
<<\_ACEOF
2898 #define _HPUX_SOURCE 1
2902 cat >>confdefs.h
<<\_ACEOF
2903 #define _POSIX_SOURCE 1
2907 cat >>confdefs.h
<<\_ACEOF
2908 #define _ALIGNMENT_REQUIRED 1
2912 cat >>confdefs.h
<<\_ACEOF
2913 #define _MAX_ALIGNMENT 4
2918 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2920 cat >>confdefs.h
<<\_ACEOF
2921 #define USE_BOTH_CRYPT_CALLS 1
2925 cat >>confdefs.h
<<\_ACEOF
2926 #define _HPUX_SOURCE 1
2930 cat >>confdefs.h
<<\_ACEOF
2931 #define _POSIX_SOURCE 1
2935 cat >>confdefs.h
<<\_ACEOF
2936 #define _LARGEFILE64_SOURCE 1
2940 cat >>confdefs.h
<<\_ACEOF
2941 #define _ALIGNMENT_REQUIRED 1
2945 cat >>confdefs.h
<<\_ACEOF
2946 #define _MAX_ALIGNMENT 4
2955 # CRAY Unicos has broken const handling
2957 echo "$as_me:$LINENO: result: disabling const" >&5
2958 echo "${ECHO_T}disabling const" >&6
2959 CPPFLAGS
="$CPPFLAGS -Dconst="
2963 # AIX4.x doesn't even admit to having large
2964 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2967 echo "$as_me:$LINENO: result: enabling large file support" >&5
2968 echo "${ECHO_T}enabling large file support" >&6
2969 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
2971 cat >>confdefs.h
<<\_ACEOF
2972 #define _LARGE_FILES 1
2977 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2978 # to the existance of large files..
2979 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2980 # recommendations on large file support, however it makes the
2981 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2982 # recommendation makes the compile fail on gcc2.7. JRA.
2986 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
2987 echo "$as_me:$LINENO: result: no large file support" >&5
2988 echo "${ECHO_T}no large file support" >&6
2991 echo "$as_me:$LINENO: result: enabling large file support" >&5
2992 echo "${ECHO_T}enabling large file support" >&6
2993 if test "$ac_cv_c_compiler_gnu" = yes; then
2994 ${CC-cc} -v >conftest.c
2>&1
2995 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
2997 case "$ac_cv_gcc_compiler_version_number" in
2998 *"gcc version 2.6"*|
*"gcc version 2.7"*)
2999 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
3001 cat >>confdefs.h
<<\_ACEOF
3002 #define _LARGEFILE64_SOURCE 1
3007 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3009 cat >>confdefs.h
<<\_ACEOF
3010 #define _LARGEFILE64_SOURCE 1
3014 cat >>confdefs.h
<<\_ACEOF
3015 #define _FILE_OFFSET_BITS 64
3021 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3023 cat >>confdefs.h
<<\_ACEOF
3024 #define _LARGEFILE64_SOURCE 1
3028 cat >>confdefs.h
<<\_ACEOF
3029 #define _FILE_OFFSET_BITS 64
3037 # Tests needed for SINIX large file support.
3040 if test $host = mips-sni-sysv4
; then
3041 echo "$as_me:$LINENO: checking for LFS support" >&5
3042 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3043 old_CPPFLAGS
="$CPPFLAGS"
3044 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3045 if test "$cross_compiling" = yes; then
3046 SINIX_LFS_SUPPORT
=cross
3048 cat >conftest.
$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3050 #include "confdefs.h"
3054 #if _LFS64_LARGEFILE == 1
3061 rm -f conftest
$ac_exeext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063 (eval $ac_link) 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 SINIX_LFS_SUPPORT
=yes
3074 echo "$as_me: program exited with status $ac_status" >&5
3075 echo "$as_me: failed program was:" >&5
3076 cat conftest.
$ac_ext >&5
3078 SINIX_LFS_SUPPORT
=no
3080 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3082 CPPFLAGS
="$old_CPPFLAGS"
3083 if test x
$SINIX_LFS_SUPPORT = xyes
; then
3084 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3086 cat >>confdefs.h
<<\_ACEOF
3087 #define _LARGEFILE64_SOURCE 1
3090 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
3091 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
3092 LIBS
="`getconf LFS64_LIBS` $LIBS"
3094 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3095 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3099 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3102 echo "$as_me:$LINENO: checking for LFS support" >&5
3103 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3104 old_CPPFLAGS
="$CPPFLAGS"
3105 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3106 if test "$cross_compiling" = yes; then
3107 LINUX_LFS_SUPPORT
=cross
3109 cat >conftest.
$ac_ext <<_ACEOF
3110 #line $LINENO "configure"
3111 #include "confdefs.h"
3114 #include <sys/utsname.h>
3116 #if _LFS64_LARGEFILE == 1
3121 /* Ensure this is glibc 2.2 or higher */
3122 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3123 int libc_major = __GLIBC__;
3124 int libc_minor = __GLIBC_MINOR__;
3132 /* Ensure this is kernel 2.4 or higher */
3135 release = uts.release;
3136 major = atoi(strsep(&release, "."));
3137 minor = atoi(strsep(&release, "."));
3139 if (major > 2 || (major == 2 && minor > 3))
3148 rm -f conftest
$ac_exeext
3149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 LINUX_LFS_SUPPORT
=yes
3161 echo "$as_me: program exited with status $ac_status" >&5
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 LINUX_LFS_SUPPORT
=no
3167 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3169 CPPFLAGS
="$old_CPPFLAGS"
3170 if test x
$LINUX_LFS_SUPPORT = xyes
; then
3171 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3173 cat >>confdefs.h
<<\_ACEOF
3174 #define _LARGEFILE64_SOURCE 1
3178 cat >>confdefs.h
<<\_ACEOF
3179 #define _FILE_OFFSET_BITS 64
3183 cat >>confdefs.h
<<\_ACEOF
3184 #define _GNU_SOURCE 1
3188 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3189 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3193 echo "$as_me:$LINENO: checking for LFS support" >&5
3194 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3195 old_CPPFLAGS
="$CPPFLAGS"
3196 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3197 if test "$cross_compiling" = yes; then
3198 GLIBC_LFS_SUPPORT
=cross
3200 cat >conftest.
$ac_ext <<_ACEOF
3201 #line $LINENO "configure"
3202 #include "confdefs.h"
3206 #if _LFS64_LARGEFILE == 1
3213 rm -f conftest
$ac_exeext
3214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3215 (eval $ac_link) 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 GLIBC_LFS_SUPPORT
=yes
3226 echo "$as_me: program exited with status $ac_status" >&5
3227 echo "$as_me: failed program was:" >&5
3228 cat conftest.
$ac_ext >&5
3230 GLIBC_LFS_SUPPORT
=no
3232 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3234 CPPFLAGS
="$old_CPPFLAGS"
3235 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
3236 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3238 cat >>confdefs.h
<<\_ACEOF
3239 #define _LARGEFILE64_SOURCE 1
3243 cat >>confdefs.h
<<\_ACEOF
3244 #define _GNU_SOURCE 1
3248 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3249 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3254 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3255 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3256 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 ac_cv_prog_cc_stdc
=no
3261 cat >conftest.
$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3282 s = g (p, va_arg (v,int));
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3292 #ifdef F77_DUMMY_MAIN
3296 int F77_DUMMY_MAIN() { return 1; }
3301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3306 # Don't try gcc -ansi; that turns off useful extensions and
3307 # breaks some systems' header files.
3308 # AIX -qlanglvl=ansi
3309 # Ultrix and OSF/1 -std1
3310 # HP-UX 10.20 and later -Ae
3311 # HP-UX older versions -Aa -D_HPUX_SOURCE
3312 # SVR4 -Xc -D__EXTENSIONS__
3313 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC
="$ac_save_CC $ac_arg"
3316 rm -f conftest.
$ac_objext
3317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3318 (eval $ac_compile) 2>&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try
='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 ac_cv_prog_cc_stdc
=$ac_arg
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.
$ac_ext >&5
3334 rm -f conftest.
$ac_objext
3336 rm -f conftest.
$ac_ext conftest.
$ac_objext
3341 case "x$ac_cv_prog_cc_stdc" in
3343 echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6 ;;
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3348 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3351 echo "$as_me:$LINENO: checking for inline" >&5
3352 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3353 if test "${ac_cv_c_inline+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 for ac_kw
in inline __inline__ __inline
; do
3358 cat >conftest.
$ac_ext <<_ACEOF
3359 #line $LINENO "configure"
3360 #include "confdefs.h"
3362 static $ac_kw int static_foo () {return 0; }
3363 $ac_kw int foo () {return 0; }
3367 rm -f conftest.
$ac_objext
3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369 (eval $ac_compile) 2>&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try
='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_c_inline
=$ac_kw; break
3381 echo "$as_me: failed program was:" >&5
3382 cat conftest.
$ac_ext >&5
3384 rm -f conftest.
$ac_objext conftest.
$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3389 echo "${ECHO_T}$ac_cv_c_inline" >&6
3390 case $ac_cv_c_inline in
3393 cat >>confdefs.h
<<\_ACEOF
3397 *) cat >>confdefs.h
<<_ACEOF
3398 #define inline $ac_cv_c_inline
3404 ac_cpp
='$CPP $CPPFLAGS'
3405 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3408 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3409 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3410 # On Suns, sometimes $CPP names a directory.
3411 if test -n "$CPP" && test -d "$CPP"; then
3414 if test -z "$CPP"; then
3415 if test "${ac_cv_prog_CPP+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 # Double quotes because CPP needs to be expanded
3419 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 for ac_c_preproc_warn_flag
in '' yes
3424 # Use a header file that comes with gcc, so configuring glibc
3425 # with a fresh cross-compiler works.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.
$ac_ext <<_ACEOF
3429 #line $LINENO "configure"
3430 #include "confdefs.h"
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3437 egrep -v '^ *\+' conftest.er1
>conftest.err
3439 cat conftest.err
>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev
/null
; then
3442 if test -s conftest.err
; then
3443 ac_cpp_err
=$ac_c_preproc_warn_flag
3450 if test -z "$ac_cpp_err"; then
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.
$ac_ext >&5
3455 # Broken: fails on valid input.
3458 rm -f conftest.err conftest.
$ac_ext
3460 # OK, works on sane cases. Now check whether non-existent headers
3461 # can be detected and how.
3462 cat >conftest.
$ac_ext <<_ACEOF
3463 #line $LINENO "configure"
3464 #include "confdefs.h"
3465 #include <ac_nonexistent.h>
3467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3470 egrep -v '^ *\+' conftest.er1
>conftest.err
3472 cat conftest.err
>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } >/dev
/null
; then
3475 if test -s conftest.err
; then
3476 ac_cpp_err
=$ac_c_preproc_warn_flag
3483 if test -z "$ac_cpp_err"; then
3484 # Broken: success on invalid input.
3487 echo "$as_me: failed program was:" >&5
3488 cat conftest.
$ac_ext >&5
3489 # Passes both tests.
3493 rm -f conftest.err conftest.
$ac_ext
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.
$ac_ext
3498 if $ac_preproc_ok; then
3510 echo "$as_me:$LINENO: result: $CPP" >&5
3511 echo "${ECHO_T}$CPP" >&6
3513 for ac_c_preproc_warn_flag
in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # On the NeXT, cc -E runs the code through the compiler's parser,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.
$ac_ext <<_ACEOF
3520 #line $LINENO "configure"
3521 #include "confdefs.h"
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3528 egrep -v '^ *\+' conftest.er1
>conftest.err
3530 cat conftest.err
>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev
/null
; then
3533 if test -s conftest.err
; then
3534 ac_cpp_err
=$ac_c_preproc_warn_flag
3541 if test -z "$ac_cpp_err"; then
3544 echo "$as_me: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3546 # Broken: fails on valid input.
3549 rm -f conftest.err conftest.
$ac_ext
3551 # OK, works on sane cases. Now check whether non-existent headers
3552 # can be detected and how.
3553 cat >conftest.
$ac_ext <<_ACEOF
3554 #line $LINENO "configure"
3555 #include "confdefs.h"
3556 #include <ac_nonexistent.h>
3558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3561 egrep -v '^ *\+' conftest.er1
>conftest.err
3563 cat conftest.err
>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } >/dev
/null
; then
3566 if test -s conftest.err
; then
3567 ac_cpp_err
=$ac_c_preproc_warn_flag
3574 if test -z "$ac_cpp_err"; then
3575 # Broken: success on invalid input.
3578 echo "$as_me: failed program was:" >&5
3579 cat conftest.
$ac_ext >&5
3580 # Passes both tests.
3584 rm -f conftest.err conftest.
$ac_ext
3587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3588 rm -f conftest.err conftest.
$ac_ext
3589 if $ac_preproc_ok; then
3592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3593 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3594 { (exit 1); exit 1; }; }
3598 ac_cpp
='$CPP $CPPFLAGS'
3599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3604 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3605 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3606 if test "${ac_cv_header_stdc+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 cat >conftest.
$ac_ext <<_ACEOF
3610 #line $LINENO "configure"
3611 #include "confdefs.h"
3618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3619 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3621 egrep -v '^ *\+' conftest.er1
>conftest.err
3623 cat conftest.err
>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev
/null
; then
3626 if test -s conftest.err
; then
3627 ac_cpp_err
=$ac_c_preproc_warn_flag
3634 if test -z "$ac_cpp_err"; then
3635 ac_cv_header_stdc
=yes
3637 echo "$as_me: failed program was:" >&5
3638 cat conftest.
$ac_ext >&5
3639 ac_cv_header_stdc
=no
3641 rm -f conftest.err conftest.
$ac_ext
3643 if test $ac_cv_header_stdc = yes; then
3644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3645 cat >conftest.
$ac_ext <<_ACEOF
3646 #line $LINENO "configure"
3647 #include "confdefs.h"
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 egrep "memchr" >/dev
/null
2>&1; then
3655 ac_cv_header_stdc
=no
3661 if test $ac_cv_header_stdc = yes; then
3662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3663 cat >conftest.
$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670 egrep "free" >/dev
/null
2>&1; then
3673 ac_cv_header_stdc
=no
3679 if test $ac_cv_header_stdc = yes; then
3680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3681 if test "$cross_compiling" = yes; then
3684 cat >conftest.
$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3688 #if ((' ' & 0x0FF) == 0x020)
3689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3692 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3693 || ('j' <= (c) && (c) <= 'r') \
3694 || ('s' <= (c) && (c) <= 'z'))
3695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3703 for (i = 0; i < 256; i++)
3704 if (XOR (islower (i), ISLOWER (i))
3705 || toupper (i) != TOUPPER (i))
3710 rm -f conftest
$ac_exeext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3712 (eval $ac_link) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3723 echo "$as_me: program exited with status $ac_status" >&5
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.
$ac_ext >&5
3727 ac_cv_header_stdc
=no
3729 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3733 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3734 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3735 if test $ac_cv_header_stdc = yes; then
3737 cat >>confdefs.h
<<\_ACEOF
3738 #define STDC_HEADERS 1
3749 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
3750 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3751 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3752 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 cat >conftest.
$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3758 #include "confdefs.h"
3759 #include <sys/types.h>
3762 #ifdef F77_DUMMY_MAIN
3766 int F77_DUMMY_MAIN() { return 1; }
3777 rm -f conftest.
$ac_objext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779 (eval $ac_compile) 2>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try
='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3791 echo "$as_me: failed program was:" >&5
3792 cat conftest.
$ac_ext >&5
3793 eval "$as_ac_Header=no"
3795 rm -f conftest.
$ac_objext conftest.
$ac_ext
3797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3800 cat >>confdefs.h
<<_ACEOF
3801 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3804 ac_header_dirent
=$ac_hdr; break
3808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3809 if test $ac_header_dirent = dirent.h
; then
3810 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3812 if test "${ac_cv_search_opendir+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 ac_func_search_save_LIBS
=$LIBS
3816 ac_cv_search_opendir
=no
3817 cat >conftest.
$ac_ext <<_ACEOF
3818 #line $LINENO "configure"
3819 #include "confdefs.h"
3821 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3828 #ifdef F77_DUMMY_MAIN
3832 int F77_DUMMY_MAIN() { return 1; }
3842 rm -f conftest.
$ac_objext conftest
$ac_exeext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844 (eval $ac_link) 2>&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try
='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_search_opendir
="none required"
3856 echo "$as_me: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3859 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3860 if test "$ac_cv_search_opendir" = no
; then
3861 for ac_lib
in dir
; do
3862 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3863 cat >conftest.
$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3871 /* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3874 #ifdef F77_DUMMY_MAIN
3878 int F77_DUMMY_MAIN() { return 1; }
3888 rm -f conftest.
$ac_objext conftest
$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try
='test -s conftest$ac_exeext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_search_opendir
="-l$ac_lib"
3903 echo "$as_me: failed program was:" >&5
3904 cat conftest.
$ac_ext >&5
3906 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3909 LIBS
=$ac_func_search_save_LIBS
3911 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3912 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3913 if test "$ac_cv_search_opendir" != no
; then
3914 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
3919 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3920 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3921 if test "${ac_cv_search_opendir+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 ac_func_search_save_LIBS
=$LIBS
3925 ac_cv_search_opendir
=no
3926 cat >conftest.
$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3928 #include "confdefs.h"
3930 /* Override any gcc2 internal prototype to avoid an error. */
3934 /* We use char because int might match the return type of a gcc2
3935 builtin and then its argument prototype would still apply. */
3937 #ifdef F77_DUMMY_MAIN
3941 int F77_DUMMY_MAIN() { return 1; }
3951 rm -f conftest.
$ac_objext conftest
$ac_exeext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953 (eval $ac_link) 2>&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try
='test -s conftest$ac_exeext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 ac_cv_search_opendir
="none required"
3965 echo "$as_me: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3969 if test "$ac_cv_search_opendir" = no
; then
3971 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3972 cat >conftest.
$ac_ext <<_ACEOF
3973 #line $LINENO "configure"
3974 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3983 #ifdef F77_DUMMY_MAIN
3987 int F77_DUMMY_MAIN() { return 1; }
3997 rm -f conftest.
$ac_objext conftest
$ac_exeext
3998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try
='test -s conftest$ac_exeext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 ac_cv_search_opendir
="-l$ac_lib"
4012 echo "$as_me: failed program was:" >&5
4013 cat conftest.
$ac_ext >&5
4015 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4018 LIBS
=$ac_func_search_save_LIBS
4020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4021 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4022 if test "$ac_cv_search_opendir" != no
; then
4023 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4029 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4030 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4031 if test "${ac_cv_header_time+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 cat >conftest.
$ac_ext <<_ACEOF
4035 #line $LINENO "configure"
4036 #include "confdefs.h"
4037 #include <sys/types.h>
4038 #include <sys/time.h>
4041 #ifdef F77_DUMMY_MAIN
4045 int F77_DUMMY_MAIN() { return 1; }
4050 if ((struct tm *) 0)
4056 rm -f conftest.
$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try
='test -s conftest.$ac_objext'
4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
4068 ac_cv_header_time
=yes
4070 echo "$as_me: failed program was:" >&5
4071 cat conftest.
$ac_ext >&5
4072 ac_cv_header_time
=no
4074 rm -f conftest.
$ac_objext conftest.
$ac_ext
4076 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4077 echo "${ECHO_T}$ac_cv_header_time" >&6
4078 if test $ac_cv_header_time = yes; then
4080 cat >>confdefs.h
<<\_ACEOF
4081 #define TIME_WITH_SYS_TIME 1
4086 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4087 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4088 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 cat >conftest.
$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 #include "confdefs.h"
4094 #include <sys/types.h>
4095 #include <sys/wait.h>
4097 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4103 #ifdef F77_DUMMY_MAIN
4107 int F77_DUMMY_MAIN() { return 1; }
4114 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4119 rm -f conftest.
$ac_objext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try
='test -s conftest.$ac_objext'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; }; then
4131 ac_cv_header_sys_wait_h
=yes
4133 echo "$as_me: failed program was:" >&5
4134 cat conftest.
$ac_ext >&5
4135 ac_cv_header_sys_wait_h
=no
4137 rm -f conftest.
$ac_objext conftest.
$ac_ext
4139 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4140 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4141 if test $ac_cv_header_sys_wait_h = yes; then
4143 cat >>confdefs.h
<<\_ACEOF
4144 #define HAVE_SYS_WAIT_H 1
4149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4159 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4160 inttypes.h stdint.h unistd.h
4162 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4163 echo "$as_me:$LINENO: checking for $ac_header" >&5
4164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 cat >conftest.
$ac_ext <<_ACEOF
4169 #line $LINENO "configure"
4170 #include "confdefs.h"
4171 $ac_includes_default
4173 #include <$ac_header>
4175 rm -f conftest.
$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 eval "$as_ac_Header=yes"
4189 echo "$as_me: failed program was:" >&5
4190 cat conftest.
$ac_ext >&5
4191 eval "$as_ac_Header=no"
4193 rm -f conftest.
$ac_objext conftest.
$ac_ext
4195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4198 cat >>confdefs.h
<<_ACEOF
4199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4213 for ac_header
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
4215 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4217 echo "$as_me:$LINENO: checking for $ac_header" >&5
4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4225 # Is the header compilable?
4226 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4228 cat >conftest.
$ac_ext <<_ACEOF
4229 #line $LINENO "configure"
4230 #include "confdefs.h"
4231 $ac_includes_default
4232 #include <$ac_header>
4234 rm -f conftest.
$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try
='test -s conftest.$ac_objext'
4241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_header_compiler
=yes
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4250 ac_header_compiler
=no
4252 rm -f conftest.
$ac_objext conftest.
$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4254 echo "${ECHO_T}$ac_header_compiler" >&6
4256 # Is the header present?
4257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4259 cat >conftest.
$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 #include "confdefs.h"
4262 #include <$ac_header>
4264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4267 egrep -v '^ *\+' conftest.er1
>conftest.err
4269 cat conftest.err
>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } >/dev
/null
; then
4272 if test -s conftest.err
; then
4273 ac_cpp_err
=$ac_c_preproc_warn_flag
4280 if test -z "$ac_cpp_err"; then
4281 ac_header_preproc
=yes
4283 echo "$as_me: failed program was:" >&5
4284 cat conftest.
$ac_ext >&5
4285 ac_header_preproc
=no
4287 rm -f conftest.err conftest.
$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4289 echo "${ECHO_T}$ac_header_preproc" >&6
4291 # So? What about this header?
4292 case $ac_header_compiler:$ac_header_preproc in
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4306 echo "$as_me:$LINENO: checking for $ac_header" >&5
4307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 eval "$as_ac_Header=$ac_header_preproc"
4313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4318 cat >>confdefs.h
<<_ACEOF
4319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4333 for ac_header
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
4335 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4337 echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4345 # Is the header compilable?
4346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4348 cat >conftest.
$ac_ext <<_ACEOF
4349 #line $LINENO "configure"
4350 #include "confdefs.h"
4351 $ac_includes_default
4352 #include <$ac_header>
4354 rm -f conftest.
$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try
='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_header_compiler
=yes
4368 echo "$as_me: failed program was:" >&5
4369 cat conftest.
$ac_ext >&5
4370 ac_header_compiler
=no
4372 rm -f conftest.
$ac_objext conftest.
$ac_ext
4373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374 echo "${ECHO_T}$ac_header_compiler" >&6
4376 # Is the header present?
4377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4379 cat >conftest.
$ac_ext <<_ACEOF
4380 #line $LINENO "configure"
4381 #include "confdefs.h"
4382 #include <$ac_header>
4384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4387 egrep -v '^ *\+' conftest.er1
>conftest.err
4389 cat conftest.err
>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev
/null
; then
4392 if test -s conftest.err
; then
4393 ac_cpp_err
=$ac_c_preproc_warn_flag
4400 if test -z "$ac_cpp_err"; then
4401 ac_header_preproc
=yes
4403 echo "$as_me: failed program was:" >&5
4404 cat conftest.
$ac_ext >&5
4405 ac_header_preproc
=no
4407 rm -f conftest.err conftest.
$ac_ext
4408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4409 echo "${ECHO_T}$ac_header_preproc" >&6
4411 # So? What about this header?
4412 case $ac_header_compiler:$ac_header_preproc in
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 eval "$as_ac_Header=$ac_header_preproc"
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438 cat >>confdefs.h
<<_ACEOF
4439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4451 for ac_header
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
4453 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455 echo "$as_me:$LINENO: checking for $ac_header" >&5
4456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463 # Is the header compilable?
4464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4466 cat >conftest.
$ac_ext <<_ACEOF
4467 #line $LINENO "configure"
4468 #include "confdefs.h"
4469 $ac_includes_default
4470 #include <$ac_header>
4472 rm -f conftest.
$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try
='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_header_compiler
=yes
4486 echo "$as_me: failed program was:" >&5
4487 cat conftest.
$ac_ext >&5
4488 ac_header_compiler
=no
4490 rm -f conftest.
$ac_objext conftest.
$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6
4494 # Is the header present?
4495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4497 cat >conftest.
$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4500 #include <$ac_header>
4502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4503 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4505 egrep -v '^ *\+' conftest.er1
>conftest.err
4507 cat conftest.err
>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev
/null
; then
4510 if test -s conftest.err
; then
4511 ac_cpp_err
=$ac_c_preproc_warn_flag
4518 if test -z "$ac_cpp_err"; then
4519 ac_header_preproc
=yes
4521 echo "$as_me: failed program was:" >&5
4522 cat conftest.
$ac_ext >&5
4523 ac_header_preproc
=no
4525 rm -f conftest.err conftest.
$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4527 echo "${ECHO_T}$ac_header_preproc" >&6
4529 # So? What about this header?
4530 case $ac_header_compiler:$ac_header_preproc in
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4544 echo "$as_me:$LINENO: checking for $ac_header" >&5
4545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 eval "$as_ac_Header=$ac_header_preproc"
4551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4556 cat >>confdefs.h
<<_ACEOF
4557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 for ac_header
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
4573 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo "$as_me:$LINENO: checking for $ac_header" >&5
4576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583 # Is the header compilable?
4584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4586 cat >conftest.
$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4589 $ac_includes_default
4590 #include <$ac_header>
4592 rm -f conftest.
$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try
='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_header_compiler
=yes
4606 echo "$as_me: failed program was:" >&5
4607 cat conftest.
$ac_ext >&5
4608 ac_header_compiler
=no
4610 rm -f conftest.
$ac_objext conftest.
$ac_ext
4611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4612 echo "${ECHO_T}$ac_header_compiler" >&6
4614 # Is the header present?
4615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4617 cat >conftest.
$ac_ext <<_ACEOF
4618 #line $LINENO "configure"
4619 #include "confdefs.h"
4620 #include <$ac_header>
4622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4623 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4625 egrep -v '^ *\+' conftest.er1
>conftest.err
4627 cat conftest.err
>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } >/dev
/null
; then
4630 if test -s conftest.err
; then
4631 ac_cpp_err
=$ac_c_preproc_warn_flag
4638 if test -z "$ac_cpp_err"; then
4639 ac_header_preproc
=yes
4641 echo "$as_me: failed program was:" >&5
4642 cat conftest.
$ac_ext >&5
4643 ac_header_preproc
=no
4645 rm -f conftest.err conftest.
$ac_ext
4646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4647 echo "${ECHO_T}$ac_header_preproc" >&6
4649 # So? What about this header?
4650 case $ac_header_compiler:$ac_header_preproc in
4652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4664 echo "$as_me:$LINENO: checking for $ac_header" >&5
4665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 eval "$as_ac_Header=$ac_header_preproc"
4671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4676 cat >>confdefs.h
<<_ACEOF
4677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4692 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
4694 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4696 echo "$as_me:$LINENO: checking for $ac_header" >&5
4697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4704 # Is the header compilable?
4705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4707 cat >conftest.
$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4710 $ac_includes_default
4711 #include <$ac_header>
4713 rm -f conftest.
$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_header_compiler
=yes
4727 echo "$as_me: failed program was:" >&5
4728 cat conftest.
$ac_ext >&5
4729 ac_header_compiler
=no
4731 rm -f conftest.
$ac_objext conftest.
$ac_ext
4732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4733 echo "${ECHO_T}$ac_header_compiler" >&6
4735 # Is the header present?
4736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4738 cat >conftest.
$ac_ext <<_ACEOF
4739 #line $LINENO "configure"
4740 #include "confdefs.h"
4741 #include <$ac_header>
4743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4746 egrep -v '^ *\+' conftest.er1
>conftest.err
4748 cat conftest.err
>&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } >/dev
/null
; then
4751 if test -s conftest.err
; then
4752 ac_cpp_err
=$ac_c_preproc_warn_flag
4759 if test -z "$ac_cpp_err"; then
4760 ac_header_preproc
=yes
4762 echo "$as_me: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4764 ac_header_preproc
=no
4766 rm -f conftest.err conftest.
$ac_ext
4767 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4768 echo "${ECHO_T}$ac_header_preproc" >&6
4770 # So? What about this header?
4771 case $ac_header_compiler:$ac_header_preproc in
4773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4785 echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 eval "$as_ac_Header=$ac_header_preproc"
4792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4797 cat >>confdefs.h
<<_ACEOF
4798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811 for ac_header
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
4813 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo "$as_me:$LINENO: checking for $ac_header" >&5
4816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4823 # Is the header compilable?
4824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4826 cat >conftest.
$ac_ext <<_ACEOF
4827 #line $LINENO "configure"
4828 #include "confdefs.h"
4829 $ac_includes_default
4830 #include <$ac_header>
4832 rm -f conftest.
$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try
='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_header_compiler
=yes
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.
$ac_ext >&5
4848 ac_header_compiler
=no
4850 rm -f conftest.
$ac_objext conftest.
$ac_ext
4851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4852 echo "${ECHO_T}$ac_header_compiler" >&6
4854 # Is the header present?
4855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4857 cat >conftest.
$ac_ext <<_ACEOF
4858 #line $LINENO "configure"
4859 #include "confdefs.h"
4860 #include <$ac_header>
4862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4863 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4865 egrep -v '^ *\+' conftest.er1
>conftest.err
4867 cat conftest.err
>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev
/null
; then
4870 if test -s conftest.err
; then
4871 ac_cpp_err
=$ac_c_preproc_warn_flag
4878 if test -z "$ac_cpp_err"; then
4879 ac_header_preproc
=yes
4881 echo "$as_me: failed program was:" >&5
4882 cat conftest.
$ac_ext >&5
4883 ac_header_preproc
=no
4885 rm -f conftest.err conftest.
$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4887 echo "${ECHO_T}$ac_header_preproc" >&6
4889 # So? What about this header?
4890 case $ac_header_compiler:$ac_header_preproc in
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4904 echo "$as_me:$LINENO: checking for $ac_header" >&5
4905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 eval "$as_ac_Header=$ac_header_preproc"
4911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h
<<_ACEOF
4917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4930 for ac_header
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
4932 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4934 echo "$as_me:$LINENO: checking for $ac_header" >&5
4935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4942 # Is the header compilable?
4943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4945 cat >conftest.
$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4947 #include "confdefs.h"
4948 $ac_includes_default
4949 #include <$ac_header>
4951 rm -f conftest.
$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try
='test -s conftest.$ac_objext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4963 ac_header_compiler
=yes
4965 echo "$as_me: failed program was:" >&5
4966 cat conftest.
$ac_ext >&5
4967 ac_header_compiler
=no
4969 rm -f conftest.
$ac_objext conftest.
$ac_ext
4970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4971 echo "${ECHO_T}$ac_header_compiler" >&6
4973 # Is the header present?
4974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4976 cat >conftest.
$ac_ext <<_ACEOF
4977 #line $LINENO "configure"
4978 #include "confdefs.h"
4979 #include <$ac_header>
4981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4982 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4984 egrep -v '^ *\+' conftest.er1
>conftest.err
4986 cat conftest.err
>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev
/null
; then
4989 if test -s conftest.err
; then
4990 ac_cpp_err
=$ac_c_preproc_warn_flag
4997 if test -z "$ac_cpp_err"; then
4998 ac_header_preproc
=yes
5000 echo "$as_me: failed program was:" >&5
5001 cat conftest.
$ac_ext >&5
5002 ac_header_preproc
=no
5004 rm -f conftest.err conftest.
$ac_ext
5005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5006 echo "${ECHO_T}$ac_header_preproc" >&6
5008 # So? What about this header?
5009 case $ac_header_compiler:$ac_header_preproc in
5011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5023 echo "$as_me:$LINENO: checking for $ac_header" >&5
5024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 eval "$as_ac_Header=$ac_header_preproc"
5030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5035 cat >>confdefs.h
<<_ACEOF
5036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5048 for ac_header
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
5050 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5052 echo "$as_me:$LINENO: checking for $ac_header" >&5
5053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 # Is the header compilable?
5061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5063 cat >conftest.
$ac_ext <<_ACEOF
5064 #line $LINENO "configure"
5065 #include "confdefs.h"
5066 $ac_includes_default
5067 #include <$ac_header>
5069 rm -f conftest.
$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try
='test -s conftest.$ac_objext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_header_compiler
=yes
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.
$ac_ext >&5
5085 ac_header_compiler
=no
5087 rm -f conftest.
$ac_objext conftest.
$ac_ext
5088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5089 echo "${ECHO_T}$ac_header_compiler" >&6
5091 # Is the header present?
5092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5094 cat >conftest.
$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 #include "confdefs.h"
5097 #include <$ac_header>
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5102 egrep -v '^ *\+' conftest.er1
>conftest.err
5104 cat conftest.err
>&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev
/null
; then
5107 if test -s conftest.err
; then
5108 ac_cpp_err
=$ac_c_preproc_warn_flag
5115 if test -z "$ac_cpp_err"; then
5116 ac_header_preproc
=yes
5118 echo "$as_me: failed program was:" >&5
5119 cat conftest.
$ac_ext >&5
5120 ac_header_preproc
=no
5122 rm -f conftest.err conftest.
$ac_ext
5123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5124 echo "${ECHO_T}$ac_header_preproc" >&6
5126 # So? What about this header?
5127 case $ac_header_compiler:$ac_header_preproc in
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5141 echo "$as_me:$LINENO: checking for $ac_header" >&5
5142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 eval "$as_ac_Header=$ac_header_preproc"
5148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5153 cat >>confdefs.h
<<_ACEOF
5154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5163 for ac_header
in sys
/syslog.h syslog.h
5165 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5167 echo "$as_me:$LINENO: checking for $ac_header" >&5
5168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5175 # Is the header compilable?
5176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5178 cat >conftest.
$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5181 $ac_includes_default
5182 #include <$ac_header>
5184 rm -f conftest.
$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try
='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_header_compiler
=yes
5198 echo "$as_me: failed program was:" >&5
5199 cat conftest.
$ac_ext >&5
5200 ac_header_compiler
=no
5202 rm -f conftest.
$ac_objext conftest.
$ac_ext
5203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5204 echo "${ECHO_T}$ac_header_compiler" >&6
5206 # Is the header present?
5207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5209 cat >conftest.
$ac_ext <<_ACEOF
5210 #line $LINENO "configure"
5211 #include "confdefs.h"
5212 #include <$ac_header>
5214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5217 egrep -v '^ *\+' conftest.er1
>conftest.err
5219 cat conftest.err
>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev
/null
; then
5222 if test -s conftest.err
; then
5223 ac_cpp_err
=$ac_c_preproc_warn_flag
5230 if test -z "$ac_cpp_err"; then
5231 ac_header_preproc
=yes
5233 echo "$as_me: failed program was:" >&5
5234 cat conftest.
$ac_ext >&5
5235 ac_header_preproc
=no
5237 rm -f conftest.err conftest.
$ac_ext
5238 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5239 echo "${ECHO_T}$ac_header_preproc" >&6
5241 # So? What about this header?
5242 case $ac_header_compiler:$ac_header_preproc in
5244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5256 echo "$as_me:$LINENO: checking for $ac_header" >&5
5257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 eval "$as_ac_Header=$ac_header_preproc"
5263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5268 cat >>confdefs.h
<<_ACEOF
5269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5278 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
5279 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
5283 cat >conftest.
$ac_ext <<_ACEOF
5284 #line $LINENO "configure"
5285 #include "confdefs.h"
5287 #ifdef F77_DUMMY_MAIN
5291 int F77_DUMMY_MAIN() { return 1; }
5301 rm -f conftest.
$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try
='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_header_shadow_h
=yes
5315 echo "$as_me: failed program was:" >&5
5316 cat conftest.
$ac_ext >&5
5317 ac_cv_header_shadow_h
=no
5319 rm -f conftest.
$ac_objext conftest.
$ac_ext
5320 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
5322 cat >>confdefs.h
<<\_ACEOF
5323 #define HAVE_SHADOW_H 1
5334 for ac_header
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
5336 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5338 echo "$as_me:$LINENO: checking for $ac_header" >&5
5339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5346 # Is the header compilable?
5347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5349 cat >conftest.
$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352 $ac_includes_default
5353 #include <$ac_header>
5355 rm -f conftest.
$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try
='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_header_compiler
=yes
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.
$ac_ext >&5
5371 ac_header_compiler
=no
5373 rm -f conftest.
$ac_objext conftest.
$ac_ext
5374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5375 echo "${ECHO_T}$ac_header_compiler" >&6
5377 # Is the header present?
5378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5380 cat >conftest.
$ac_ext <<_ACEOF
5381 #line $LINENO "configure"
5382 #include "confdefs.h"
5383 #include <$ac_header>
5385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5388 egrep -v '^ *\+' conftest.er1
>conftest.err
5390 cat conftest.err
>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } >/dev
/null
; then
5393 if test -s conftest.err
; then
5394 ac_cpp_err
=$ac_c_preproc_warn_flag
5401 if test -z "$ac_cpp_err"; then
5402 ac_header_preproc
=yes
5404 echo "$as_me: failed program was:" >&5
5405 cat conftest.
$ac_ext >&5
5406 ac_header_preproc
=no
5408 rm -f conftest.err conftest.
$ac_ext
5409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5410 echo "${ECHO_T}$ac_header_preproc" >&6
5412 # So? What about this header?
5413 case $ac_header_compiler:$ac_header_preproc in
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5427 echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 eval "$as_ac_Header=$ac_header_preproc"
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439 cat >>confdefs.h
<<_ACEOF
5440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5453 for ac_header
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
5455 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5457 echo "$as_me:$LINENO: checking for $ac_header" >&5
5458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465 # Is the header compilable?
5466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5468 cat >conftest.
$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 #include "confdefs.h"
5471 $ac_includes_default
5472 #include <$ac_header>
5474 rm -f conftest.
$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try
='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_header_compiler
=yes
5488 echo "$as_me: failed program was:" >&5
5489 cat conftest.
$ac_ext >&5
5490 ac_header_compiler
=no
5492 rm -f conftest.
$ac_objext conftest.
$ac_ext
5493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5494 echo "${ECHO_T}$ac_header_compiler" >&6
5496 # Is the header present?
5497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5499 cat >conftest.
$ac_ext <<_ACEOF
5500 #line $LINENO "configure"
5501 #include "confdefs.h"
5502 #include <$ac_header>
5504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5507 egrep -v '^ *\+' conftest.er1
>conftest.err
5509 cat conftest.err
>&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } >/dev
/null
; then
5512 if test -s conftest.err
; then
5513 ac_cpp_err
=$ac_c_preproc_warn_flag
5520 if test -z "$ac_cpp_err"; then
5521 ac_header_preproc
=yes
5523 echo "$as_me: failed program was:" >&5
5524 cat conftest.
$ac_ext >&5
5525 ac_header_preproc
=no
5527 rm -f conftest.err conftest.
$ac_ext
5528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc in
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 eval "$as_ac_Header=$ac_header_preproc"
5553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5558 cat >>confdefs.h
<<_ACEOF
5559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568 for ac_header
in stropts.h poll.h
5570 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5572 echo "$as_me:$LINENO: checking for $ac_header" >&5
5573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5580 # Is the header compilable?
5581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5583 cat >conftest.
$ac_ext <<_ACEOF
5584 #line $LINENO "configure"
5585 #include "confdefs.h"
5586 $ac_includes_default
5587 #include <$ac_header>
5589 rm -f conftest.
$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 { ac_try
='test -s conftest.$ac_objext'
5596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; }; then
5601 ac_header_compiler
=yes
5603 echo "$as_me: failed program was:" >&5
5604 cat conftest.
$ac_ext >&5
5605 ac_header_compiler
=no
5607 rm -f conftest.
$ac_objext conftest.
$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5609 echo "${ECHO_T}$ac_header_compiler" >&6
5611 # Is the header present?
5612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5614 cat >conftest.
$ac_ext <<_ACEOF
5615 #line $LINENO "configure"
5616 #include "confdefs.h"
5617 #include <$ac_header>
5619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5622 egrep -v '^ *\+' conftest.er1
>conftest.err
5624 cat conftest.err
>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } >/dev
/null
; then
5627 if test -s conftest.err
; then
5628 ac_cpp_err
=$ac_c_preproc_warn_flag
5635 if test -z "$ac_cpp_err"; then
5636 ac_header_preproc
=yes
5638 echo "$as_me: failed program was:" >&5
5639 cat conftest.
$ac_ext >&5
5640 ac_header_preproc
=no
5642 rm -f conftest.err conftest.
$ac_ext
5643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5644 echo "${ECHO_T}$ac_header_preproc" >&6
5646 # So? What about this header?
5647 case $ac_header_compiler:$ac_header_preproc in
5649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5652 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5661 echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 eval "$as_ac_Header=$ac_header_preproc"
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5673 cat >>confdefs.h
<<_ACEOF
5674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5684 for ac_header
in sys
/capability.h syscall.h sys
/syscall.h
5686 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5688 echo "$as_me:$LINENO: checking for $ac_header" >&5
5689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5696 # Is the header compilable?
5697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5699 cat >conftest.
$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 #include "confdefs.h"
5702 $ac_includes_default
5703 #include <$ac_header>
5705 rm -f conftest.
$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try
='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_header_compiler
=yes
5719 echo "$as_me: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5721 ac_header_compiler
=no
5723 rm -f conftest.
$ac_objext conftest.
$ac_ext
5724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5725 echo "${ECHO_T}$ac_header_compiler" >&6
5727 # Is the header present?
5728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5730 cat >conftest.
$ac_ext <<_ACEOF
5731 #line $LINENO "configure"
5732 #include "confdefs.h"
5733 #include <$ac_header>
5735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5738 egrep -v '^ *\+' conftest.er1
>conftest.err
5740 cat conftest.err
>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } >/dev
/null
; then
5743 if test -s conftest.err
; then
5744 ac_cpp_err
=$ac_c_preproc_warn_flag
5751 if test -z "$ac_cpp_err"; then
5752 ac_header_preproc
=yes
5754 echo "$as_me: failed program was:" >&5
5755 cat conftest.
$ac_ext >&5
5756 ac_header_preproc
=no
5758 rm -f conftest.err conftest.
$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5760 echo "${ECHO_T}$ac_header_preproc" >&6
5762 # So? What about this header?
5763 case $ac_header_compiler:$ac_header_preproc in
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5777 echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 eval "$as_ac_Header=$ac_header_preproc"
5784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h
<<_ACEOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5800 for ac_header
in sys
/acl.h sys
/cdefs.h glob.h
5802 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804 echo "$as_me:$LINENO: checking for $ac_header" >&5
5805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5812 # Is the header compilable?
5813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5815 cat >conftest.
$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 #include "confdefs.h"
5818 $ac_includes_default
5819 #include <$ac_header>
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_header_compiler
=yes
5835 echo "$as_me: failed program was:" >&5
5836 cat conftest.
$ac_ext >&5
5837 ac_header_compiler
=no
5839 rm -f conftest.
$ac_objext conftest.
$ac_ext
5840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5841 echo "${ECHO_T}$ac_header_compiler" >&6
5843 # Is the header present?
5844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5846 cat >conftest.
$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5848 #include "confdefs.h"
5849 #include <$ac_header>
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5854 egrep -v '^ *\+' conftest.er1
>conftest.err
5856 cat conftest.err
>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev
/null
; then
5859 if test -s conftest.err
; then
5860 ac_cpp_err
=$ac_c_preproc_warn_flag
5867 if test -z "$ac_cpp_err"; then
5868 ac_header_preproc
=yes
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.
$ac_ext >&5
5872 ac_header_preproc
=no
5874 rm -f conftest.err conftest.
$ac_ext
5875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5876 echo "${ECHO_T}$ac_header_preproc" >&6
5878 # So? What about this header?
5879 case $ac_header_compiler:$ac_header_preproc in
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5893 echo "$as_me:$LINENO: checking for $ac_header" >&5
5894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 eval "$as_ac_Header=$ac_header_preproc"
5900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5905 cat >>confdefs.h
<<_ACEOF
5906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 # For experimental utmp support (lastlog on some BSD-like systems)
5918 for ac_header
in utmp.h utmpx.h lastlog.h
5920 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5922 echo "$as_me:$LINENO: checking for $ac_header" >&5
5923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5930 # Is the header compilable?
5931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5933 cat >conftest.
$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5936 $ac_includes_default
5937 #include <$ac_header>
5939 rm -f conftest.
$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try
='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_header_compiler
=yes
5953 echo "$as_me: failed program was:" >&5
5954 cat conftest.
$ac_ext >&5
5955 ac_header_compiler
=no
5957 rm -f conftest.
$ac_objext conftest.
$ac_ext
5958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5959 echo "${ECHO_T}$ac_header_compiler" >&6
5961 # Is the header present?
5962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5964 cat >conftest.
$ac_ext <<_ACEOF
5965 #line $LINENO "configure"
5966 #include "confdefs.h"
5967 #include <$ac_header>
5969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5970 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5972 egrep -v '^ *\+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } >/dev
/null
; then
5977 if test -s conftest.err
; then
5978 ac_cpp_err
=$ac_c_preproc_warn_flag
5985 if test -z "$ac_cpp_err"; then
5986 ac_header_preproc
=yes
5988 echo "$as_me: failed program was:" >&5
5989 cat conftest.
$ac_ext >&5
5990 ac_header_preproc
=no
5992 rm -f conftest.err conftest.
$ac_ext
5993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5994 echo "${ECHO_T}$ac_header_preproc" >&6
5996 # So? What about this header?
5997 case $ac_header_compiler:$ac_header_preproc in
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6011 echo "$as_me:$LINENO: checking for $ac_header" >&5
6012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 eval "$as_ac_Header=$ac_header_preproc"
6018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023 cat >>confdefs.h
<<_ACEOF
6024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032 # For quotas on Veritas VxFS filesystems
6034 for ac_header
in sys
/fs
/vx_quota.h
6036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6038 echo "$as_me:$LINENO: checking for $ac_header" >&5
6039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6046 # Is the header compilable?
6047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6049 cat >conftest.
$ac_ext <<_ACEOF
6050 #line $LINENO "configure"
6051 #include "confdefs.h"
6052 $ac_includes_default
6053 #include <$ac_header>
6055 rm -f conftest.
$ac_objext
6056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057 (eval $ac_compile) 2>&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try
='test -s conftest.$ac_objext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_header_compiler
=yes
6069 echo "$as_me: failed program was:" >&5
6070 cat conftest.
$ac_ext >&5
6071 ac_header_compiler
=no
6073 rm -f conftest.
$ac_objext conftest.
$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6075 echo "${ECHO_T}$ac_header_compiler" >&6
6077 # Is the header present?
6078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6080 cat >conftest.
$ac_ext <<_ACEOF
6081 #line $LINENO "configure"
6082 #include "confdefs.h"
6083 #include <$ac_header>
6085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6088 egrep -v '^ *\+' conftest.er1
>conftest.err
6090 cat conftest.err
>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } >/dev
/null
; then
6093 if test -s conftest.err
; then
6094 ac_cpp_err
=$ac_c_preproc_warn_flag
6101 if test -z "$ac_cpp_err"; then
6102 ac_header_preproc
=yes
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.
$ac_ext >&5
6106 ac_header_preproc
=no
6108 rm -f conftest.err conftest.
$ac_ext
6109 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6
6112 # So? What about this header?
6113 case $ac_header_compiler:$ac_header_preproc in
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6127 echo "$as_me:$LINENO: checking for $ac_header" >&5
6128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 eval "$as_ac_Header=$ac_header_preproc"
6134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6139 cat >>confdefs.h
<<_ACEOF
6140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6148 # For quotas on Linux XFS filesystems
6150 for ac_header
in linux
/xqm.h
6152 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6154 echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6162 # Is the header compilable?
6163 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6165 cat >conftest.
$ac_ext <<_ACEOF
6166 #line $LINENO "configure"
6167 #include "confdefs.h"
6168 $ac_includes_default
6169 #include <$ac_header>
6171 rm -f conftest.
$ac_objext
6172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173 (eval $ac_compile) 2>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try
='test -s conftest.$ac_objext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_header_compiler
=yes
6185 echo "$as_me: failed program was:" >&5
6186 cat conftest.
$ac_ext >&5
6187 ac_header_compiler
=no
6189 rm -f conftest.
$ac_objext conftest.
$ac_ext
6190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6191 echo "${ECHO_T}$ac_header_compiler" >&6
6193 # Is the header present?
6194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6196 cat >conftest.
$ac_ext <<_ACEOF
6197 #line $LINENO "configure"
6198 #include "confdefs.h"
6199 #include <$ac_header>
6201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6202 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6204 egrep -v '^ *\+' conftest.er1
>conftest.err
6206 cat conftest.err
>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } >/dev
/null
; then
6209 if test -s conftest.err
; then
6210 ac_cpp_err
=$ac_c_preproc_warn_flag
6217 if test -z "$ac_cpp_err"; then
6218 ac_header_preproc
=yes
6220 echo "$as_me: failed program was:" >&5
6221 cat conftest.
$ac_ext >&5
6222 ac_header_preproc
=no
6224 rm -f conftest.err conftest.
$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6226 echo "${ECHO_T}$ac_header_preproc" >&6
6228 # So? What about this header?
6229 case $ac_header_compiler:$ac_header_preproc in
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6243 echo "$as_me:$LINENO: checking for $ac_header" >&5
6244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 eval "$as_ac_Header=$ac_header_preproc"
6250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6255 cat >>confdefs.h
<<_ACEOF
6256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264 for ac_header
in xfs
/xqm.h
6266 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6268 echo "$as_me:$LINENO: checking for $ac_header" >&5
6269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6276 # Is the header compilable?
6277 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6279 cat >conftest.
$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6282 $ac_includes_default
6283 #include <$ac_header>
6285 rm -f conftest.
$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287 (eval $ac_compile) 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try
='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_header_compiler
=yes
6299 echo "$as_me: failed program was:" >&5
6300 cat conftest.
$ac_ext >&5
6301 ac_header_compiler
=no
6303 rm -f conftest.
$ac_objext conftest.
$ac_ext
6304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6305 echo "${ECHO_T}$ac_header_compiler" >&6
6307 # Is the header present?
6308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6310 cat >conftest.
$ac_ext <<_ACEOF
6311 #line $LINENO "configure"
6312 #include "confdefs.h"
6313 #include <$ac_header>
6315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6318 egrep -v '^ *\+' conftest.er1
>conftest.err
6320 cat conftest.err
>&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } >/dev
/null
; then
6323 if test -s conftest.err
; then
6324 ac_cpp_err
=$ac_c_preproc_warn_flag
6331 if test -z "$ac_cpp_err"; then
6332 ac_header_preproc
=yes
6334 echo "$as_me: failed program was:" >&5
6335 cat conftest.
$ac_ext >&5
6336 ac_header_preproc
=no
6338 rm -f conftest.err conftest.
$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 echo "${ECHO_T}$ac_header_preproc" >&6
6342 # So? What about this header?
6343 case $ac_header_compiler:$ac_header_preproc in
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6357 echo "$as_me:$LINENO: checking for $ac_header" >&5
6358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 eval "$as_ac_Header=$ac_header_preproc"
6364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6369 cat >>confdefs.h
<<_ACEOF
6370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378 echo "$as_me:$LINENO: checking for int" >&5
6379 echo $ECHO_N "checking for int... $ECHO_C" >&6
6380 if test "${ac_cv_type_int+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 cat >conftest.
$ac_ext <<_ACEOF
6384 #line $LINENO "configure"
6385 #include "confdefs.h"
6386 $ac_includes_default
6387 #ifdef F77_DUMMY_MAIN
6391 int F77_DUMMY_MAIN() { return 1; }
6404 rm -f conftest.
$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try
='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6418 echo "$as_me: failed program was:" >&5
6419 cat conftest.
$ac_ext >&5
6422 rm -f conftest.
$ac_objext conftest.
$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6425 echo "${ECHO_T}$ac_cv_type_int" >&6
6427 echo "$as_me:$LINENO: checking size of int" >&5
6428 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6429 if test "${ac_cv_sizeof_int+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 if test "$ac_cv_type_int" = yes; then
6433 # The cast to unsigned long works around a bug in the HP C Compiler
6434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6436 # This bug is HP SR number 8606223364.
6437 if test "$cross_compiling" = yes; then
6438 # Depending upon the size, compute the lo and hi bounds.
6439 cat >conftest.
$ac_ext <<_ACEOF
6440 #line $LINENO "configure"
6441 #include "confdefs.h"
6442 $ac_includes_default
6443 #ifdef F77_DUMMY_MAIN
6447 int F77_DUMMY_MAIN() { return 1; }
6452 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6459 rm -f conftest.
$ac_objext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6461 (eval $ac_compile) 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } &&
6465 { ac_try
='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6473 cat >conftest.
$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6476 $ac_includes_default
6477 #ifdef F77_DUMMY_MAIN
6481 int F77_DUMMY_MAIN() { return 1; }
6486 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6493 rm -f conftest.
$ac_objext
6494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495 (eval $ac_compile) 2>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
6499 { ac_try
='test -s conftest.$ac_objext'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; }; then
6505 ac_hi
=$ac_mid; break
6507 echo "$as_me: failed program was:" >&5
6508 cat conftest.
$ac_ext >&5
6509 ac_lo
=`expr $ac_mid + 1`
6510 if test $ac_lo -le $ac_mid; then
6514 ac_mid
=`expr 2 '*' $ac_mid + 1`
6516 rm -f conftest.
$ac_objext conftest.
$ac_ext
6519 echo "$as_me: failed program was:" >&5
6520 cat conftest.
$ac_ext >&5
6521 cat >conftest.
$ac_ext <<_ACEOF
6522 #line $LINENO "configure"
6523 #include "confdefs.h"
6524 $ac_includes_default
6525 #ifdef F77_DUMMY_MAIN
6529 int F77_DUMMY_MAIN() { return 1; }
6534 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6541 rm -f conftest.
$ac_objext
6542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543 (eval $ac_compile) 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try
='test -s conftest.$ac_objext'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; }; then
6555 cat >conftest.
$ac_ext <<_ACEOF
6556 #line $LINENO "configure"
6557 #include "confdefs.h"
6558 $ac_includes_default
6559 #ifdef F77_DUMMY_MAIN
6563 int F77_DUMMY_MAIN() { return 1; }
6568 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
6575 rm -f conftest.
$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577 (eval $ac_compile) 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try
='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_lo
=$ac_mid; break
6589 echo "$as_me: failed program was:" >&5
6590 cat conftest.
$ac_ext >&5
6591 ac_hi
=`expr '(' $ac_mid ')' - 1`
6592 if test $ac_mid -le $ac_hi; then
6596 ac_mid
=`expr 2 '*' $ac_mid`
6598 rm -f conftest.
$ac_objext conftest.
$ac_ext
6601 echo "$as_me: failed program was:" >&5
6602 cat conftest.
$ac_ext >&5
6605 rm -f conftest.
$ac_objext conftest.
$ac_ext
6607 rm -f conftest.
$ac_objext conftest.
$ac_ext
6608 # Binary search between lo and hi bounds.
6609 while test "x$ac_lo" != "x$ac_hi"; do
6610 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6611 cat >conftest.
$ac_ext <<_ACEOF
6612 #line $LINENO "configure"
6613 #include "confdefs.h"
6614 $ac_includes_default
6615 #ifdef F77_DUMMY_MAIN
6619 int F77_DUMMY_MAIN() { return 1; }
6624 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6631 rm -f conftest.
$ac_objext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try
='test -s conftest.$ac_objext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6645 echo "$as_me: failed program was:" >&5
6646 cat conftest.
$ac_ext >&5
6647 ac_lo
=`expr '(' $ac_mid ')' + 1`
6649 rm -f conftest.
$ac_objext conftest.
$ac_ext
6652 ?
*) ac_cv_sizeof_int
=$ac_lo;;
6653 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6654 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6655 { (exit 1); exit 1; }; } ;;
6658 if test "$cross_compiling" = yes; then
6659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6660 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6661 { (exit 1); exit 1; }; }
6663 cat >conftest.
$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 #include "confdefs.h"
6666 $ac_includes_default
6667 long longval () { return (long) (sizeof (int)); }
6668 unsigned long ulongval () { return (long) (sizeof (int)); }
6671 #ifdef F77_DUMMY_MAIN
6675 int F77_DUMMY_MAIN() { return 1; }
6681 FILE *f = fopen ("conftest.val", "w");
6684 if (((long) (sizeof (int))) < 0)
6686 long i = longval ();
6687 if (i != ((long) (sizeof (int))))
6689 fprintf (f, "%ld\n", i);
6693 unsigned long i = ulongval ();
6694 if (i != ((long) (sizeof (int))))
6696 fprintf (f, "%lu\n", i);
6698 exit (ferror (f) || fclose (f) != 0);
6704 rm -f conftest
$ac_exeext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6706 (eval $ac_link) 2>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_sizeof_int
=`cat conftest.val`
6717 echo "$as_me: program exited with status $ac_status" >&5
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.
$ac_ext >&5
6721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
6722 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
6723 { (exit 1); exit 1; }; }
6725 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6734 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6735 cat >>confdefs.h
<<_ACEOF
6736 #define SIZEOF_INT $ac_cv_sizeof_int
6740 echo "$as_me:$LINENO: checking for long" >&5
6741 echo $ECHO_N "checking for long... $ECHO_C" >&6
6742 if test "${ac_cv_type_long+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 cat >conftest.
$ac_ext <<_ACEOF
6746 #line $LINENO "configure"
6747 #include "confdefs.h"
6748 $ac_includes_default
6749 #ifdef F77_DUMMY_MAIN
6753 int F77_DUMMY_MAIN() { return 1; }
6766 rm -f conftest.
$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try
='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6780 echo "$as_me: failed program was:" >&5
6781 cat conftest.
$ac_ext >&5
6784 rm -f conftest.
$ac_objext conftest.
$ac_ext
6786 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6787 echo "${ECHO_T}$ac_cv_type_long" >&6
6789 echo "$as_me:$LINENO: checking size of long" >&5
6790 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6791 if test "${ac_cv_sizeof_long+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test "$ac_cv_type_long" = yes; then
6795 # The cast to unsigned long works around a bug in the HP C Compiler
6796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6798 # This bug is HP SR number 8606223364.
6799 if test "$cross_compiling" = yes; then
6800 # Depending upon the size, compute the lo and hi bounds.
6801 cat >conftest.
$ac_ext <<_ACEOF
6802 #line $LINENO "configure"
6803 #include "confdefs.h"
6804 $ac_includes_default
6805 #ifdef F77_DUMMY_MAIN
6809 int F77_DUMMY_MAIN() { return 1; }
6814 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6821 rm -f conftest.
$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try
='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6835 cat >conftest.
$ac_ext <<_ACEOF
6836 #line $LINENO "configure"
6837 #include "confdefs.h"
6838 $ac_includes_default
6839 #ifdef F77_DUMMY_MAIN
6843 int F77_DUMMY_MAIN() { return 1; }
6848 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6855 rm -f conftest.
$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try
='test -s conftest.$ac_objext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 ac_hi
=$ac_mid; break
6869 echo "$as_me: failed program was:" >&5
6870 cat conftest.
$ac_ext >&5
6871 ac_lo
=`expr $ac_mid + 1`
6872 if test $ac_lo -le $ac_mid; then
6876 ac_mid
=`expr 2 '*' $ac_mid + 1`
6878 rm -f conftest.
$ac_objext conftest.
$ac_ext
6881 echo "$as_me: failed program was:" >&5
6882 cat conftest.
$ac_ext >&5
6883 cat >conftest.
$ac_ext <<_ACEOF
6884 #line $LINENO "configure"
6885 #include "confdefs.h"
6886 $ac_includes_default
6887 #ifdef F77_DUMMY_MAIN
6891 int F77_DUMMY_MAIN() { return 1; }
6896 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6903 rm -f conftest.
$ac_objext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6905 (eval $ac_compile) 2>&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try
='test -s conftest.$ac_objext'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; }; then
6917 cat >conftest.
$ac_ext <<_ACEOF
6918 #line $LINENO "configure"
6919 #include "confdefs.h"
6920 $ac_includes_default
6921 #ifdef F77_DUMMY_MAIN
6925 int F77_DUMMY_MAIN() { return 1; }
6930 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6937 rm -f conftest.
$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try
='test -s conftest.$ac_objext'
6944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6949 ac_lo
=$ac_mid; break
6951 echo "$as_me: failed program was:" >&5
6952 cat conftest.
$ac_ext >&5
6953 ac_hi
=`expr '(' $ac_mid ')' - 1`
6954 if test $ac_mid -le $ac_hi; then
6958 ac_mid
=`expr 2 '*' $ac_mid`
6960 rm -f conftest.
$ac_objext conftest.
$ac_ext
6963 echo "$as_me: failed program was:" >&5
6964 cat conftest.
$ac_ext >&5
6967 rm -f conftest.
$ac_objext conftest.
$ac_ext
6969 rm -f conftest.
$ac_objext conftest.
$ac_ext
6970 # Binary search between lo and hi bounds.
6971 while test "x$ac_lo" != "x$ac_hi"; do
6972 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6973 cat >conftest.
$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6976 $ac_includes_default
6977 #ifdef F77_DUMMY_MAIN
6981 int F77_DUMMY_MAIN() { return 1; }
6986 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6993 rm -f conftest.
$ac_objext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6995 (eval $ac_compile) 2>&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } &&
6999 { ac_try
='test -s conftest.$ac_objext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7007 echo "$as_me: failed program was:" >&5
7008 cat conftest.
$ac_ext >&5
7009 ac_lo
=`expr '(' $ac_mid ')' + 1`
7011 rm -f conftest.
$ac_objext conftest.
$ac_ext
7014 ?
*) ac_cv_sizeof_long
=$ac_lo;;
7015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7016 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7017 { (exit 1); exit 1; }; } ;;
7020 if test "$cross_compiling" = yes; then
7021 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7022 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7023 { (exit 1); exit 1; }; }
7025 cat >conftest.
$ac_ext <<_ACEOF
7026 #line $LINENO "configure"
7027 #include "confdefs.h"
7028 $ac_includes_default
7029 long longval () { return (long) (sizeof (long)); }
7030 unsigned long ulongval () { return (long) (sizeof (long)); }
7033 #ifdef F77_DUMMY_MAIN
7037 int F77_DUMMY_MAIN() { return 1; }
7043 FILE *f = fopen ("conftest.val", "w");
7046 if (((long) (sizeof (long))) < 0)
7048 long i = longval ();
7049 if (i != ((long) (sizeof (long))))
7051 fprintf (f, "%ld\n", i);
7055 unsigned long i = ulongval ();
7056 if (i != ((long) (sizeof (long))))
7058 fprintf (f, "%lu\n", i);
7060 exit (ferror (f) || fclose (f) != 0);
7066 rm -f conftest
$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_sizeof_long
=`cat conftest.val`
7079 echo "$as_me: program exited with status $ac_status" >&5
7080 echo "$as_me: failed program was:" >&5
7081 cat conftest.
$ac_ext >&5
7083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
7084 echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
7085 { (exit 1); exit 1; }; }
7087 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7096 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7097 cat >>confdefs.h
<<_ACEOF
7098 #define SIZEOF_LONG $ac_cv_sizeof_long
7102 echo "$as_me:$LINENO: checking for short" >&5
7103 echo $ECHO_N "checking for short... $ECHO_C" >&6
7104 if test "${ac_cv_type_short+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 cat >conftest.
$ac_ext <<_ACEOF
7108 #line $LINENO "configure"
7109 #include "confdefs.h"
7110 $ac_includes_default
7111 #ifdef F77_DUMMY_MAIN
7115 int F77_DUMMY_MAIN() { return 1; }
7128 rm -f conftest.
$ac_objext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130 (eval $ac_compile) 2>&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try
='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_type_short
=yes
7142 echo "$as_me: failed program was:" >&5
7143 cat conftest.
$ac_ext >&5
7146 rm -f conftest.
$ac_objext conftest.
$ac_ext
7148 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7149 echo "${ECHO_T}$ac_cv_type_short" >&6
7151 echo "$as_me:$LINENO: checking size of short" >&5
7152 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7153 if test "${ac_cv_sizeof_short+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 if test "$ac_cv_type_short" = yes; then
7157 # The cast to unsigned long works around a bug in the HP C Compiler
7158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7160 # This bug is HP SR number 8606223364.
7161 if test "$cross_compiling" = yes; then
7162 # Depending upon the size, compute the lo and hi bounds.
7163 cat >conftest.
$ac_ext <<_ACEOF
7164 #line $LINENO "configure"
7165 #include "confdefs.h"
7166 $ac_includes_default
7167 #ifdef F77_DUMMY_MAIN
7171 int F77_DUMMY_MAIN() { return 1; }
7176 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7183 rm -f conftest.
$ac_objext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7185 (eval $ac_compile) 2>&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try
='test -s conftest.$ac_objext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7197 cat >conftest.
$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 $ac_includes_default
7201 #ifdef F77_DUMMY_MAIN
7205 int F77_DUMMY_MAIN() { return 1; }
7210 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7217 rm -f conftest.
$ac_objext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7219 (eval $ac_compile) 2>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try
='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 ac_hi
=$ac_mid; break
7231 echo "$as_me: failed program was:" >&5
7232 cat conftest.
$ac_ext >&5
7233 ac_lo
=`expr $ac_mid + 1`
7234 if test $ac_lo -le $ac_mid; then
7238 ac_mid
=`expr 2 '*' $ac_mid + 1`
7240 rm -f conftest.
$ac_objext conftest.
$ac_ext
7243 echo "$as_me: failed program was:" >&5
7244 cat conftest.
$ac_ext >&5
7245 cat >conftest.
$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 #include "confdefs.h"
7248 $ac_includes_default
7249 #ifdef F77_DUMMY_MAIN
7253 int F77_DUMMY_MAIN() { return 1; }
7258 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7265 rm -f conftest.
$ac_objext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267 (eval $ac_compile) 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try
='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7279 cat >conftest.
$ac_ext <<_ACEOF
7280 #line $LINENO "configure"
7281 #include "confdefs.h"
7282 $ac_includes_default
7283 #ifdef F77_DUMMY_MAIN
7287 int F77_DUMMY_MAIN() { return 1; }
7292 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7299 rm -f conftest.
$ac_objext
7300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } &&
7305 { ac_try
='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_lo
=$ac_mid; break
7313 echo "$as_me: failed program was:" >&5
7314 cat conftest.
$ac_ext >&5
7315 ac_hi
=`expr '(' $ac_mid ')' - 1`
7316 if test $ac_mid -le $ac_hi; then
7320 ac_mid
=`expr 2 '*' $ac_mid`
7322 rm -f conftest.
$ac_objext conftest.
$ac_ext
7325 echo "$as_me: failed program was:" >&5
7326 cat conftest.
$ac_ext >&5
7329 rm -f conftest.
$ac_objext conftest.
$ac_ext
7331 rm -f conftest.
$ac_objext conftest.
$ac_ext
7332 # Binary search between lo and hi bounds.
7333 while test "x$ac_lo" != "x$ac_hi"; do
7334 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7335 cat >conftest.
$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7337 #include "confdefs.h"
7338 $ac_includes_default
7339 #ifdef F77_DUMMY_MAIN
7343 int F77_DUMMY_MAIN() { return 1; }
7348 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7355 rm -f conftest.
$ac_objext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7357 (eval $ac_compile) 2>&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } &&
7361 { ac_try
='test -s conftest.$ac_objext'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; }; then
7369 echo "$as_me: failed program was:" >&5
7370 cat conftest.
$ac_ext >&5
7371 ac_lo
=`expr '(' $ac_mid ')' + 1`
7373 rm -f conftest.
$ac_objext conftest.
$ac_ext
7376 ?
*) ac_cv_sizeof_short
=$ac_lo;;
7377 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7378 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7379 { (exit 1); exit 1; }; } ;;
7382 if test "$cross_compiling" = yes; then
7383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
7384 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7385 { (exit 1); exit 1; }; }
7387 cat >conftest.
$ac_ext <<_ACEOF
7388 #line $LINENO "configure"
7389 #include "confdefs.h"
7390 $ac_includes_default
7391 long longval () { return (long) (sizeof (short)); }
7392 unsigned long ulongval () { return (long) (sizeof (short)); }
7395 #ifdef F77_DUMMY_MAIN
7399 int F77_DUMMY_MAIN() { return 1; }
7405 FILE *f = fopen ("conftest.val", "w");
7408 if (((long) (sizeof (short))) < 0)
7410 long i = longval ();
7411 if (i != ((long) (sizeof (short))))
7413 fprintf (f, "%ld\n", i);
7417 unsigned long i = ulongval ();
7418 if (i != ((long) (sizeof (short))))
7420 fprintf (f, "%lu\n", i);
7422 exit (ferror (f) || fclose (f) != 0);
7428 rm -f conftest
$ac_exeext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7439 ac_cv_sizeof_short
=`cat conftest.val`
7441 echo "$as_me: program exited with status $ac_status" >&5
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.
$ac_ext >&5
7445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
7446 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
7447 { (exit 1); exit 1; }; }
7449 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7454 ac_cv_sizeof_short
=0
7457 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7458 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7459 cat >>confdefs.h
<<_ACEOF
7460 #define SIZEOF_SHORT $ac_cv_sizeof_short
7465 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7466 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7467 if test "${ac_cv_c_const+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >conftest.
$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7474 #ifdef F77_DUMMY_MAIN
7478 int F77_DUMMY_MAIN() { return 1; }
7483 /* FIXME: Include the comments suggested by Paul. */
7485 /* Ultrix mips cc rejects this. */
7486 typedef int charset[2];
7488 /* SunOS 4.1.1 cc rejects this. */
7489 char const *const *ccp;
7491 /* NEC SVR4.0.2 mips cc rejects this. */
7492 struct point {int x, y;};
7493 static struct point const zero = {0,0};
7494 /* AIX XL C 1.02.0.0 rejects this.
7495 It does not let you subtract one const X* pointer from another in
7496 an arm of an if-expression whose if-part is not a constant
7498 const char *g = "string";
7499 ccp = &g + (g ? g-g : 0);
7500 /* HPUX 7.0 cc rejects these. */
7503 ccp = (char const *const *) p;
7504 { /* SCO 3.2v4 cc rejects this. */
7506 char const *s = 0 ? (char *) 0 : (char const *) 0;
7510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7512 const int *foo = &x[0];
7515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7516 typedef const int *iptr;
7520 { /* AIX XL C 1.02.0.0 rejects this saying
7521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7522 struct s { int j; const int *ap[3]; };
7523 struct s *b; b->j = 5;
7525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7534 rm -f conftest.
$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try
='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7548 echo "$as_me: failed program was:" >&5
7549 cat conftest.
$ac_ext >&5
7552 rm -f conftest.
$ac_objext conftest.
$ac_ext
7554 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7555 echo "${ECHO_T}$ac_cv_c_const" >&6
7556 if test $ac_cv_c_const = no
; then
7558 cat >>confdefs.h
<<\_ACEOF
7564 echo "$as_me:$LINENO: checking for inline" >&5
7565 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7566 if test "${ac_cv_c_inline+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 for ac_kw
in inline __inline__ __inline
; do
7571 cat >conftest.
$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7575 static $ac_kw int static_foo () {return 0; }
7576 $ac_kw int foo () {return 0; }
7580 rm -f conftest.
$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582 (eval $ac_compile) 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } &&
7586 { ac_try
='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_c_inline
=$ac_kw; break
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.
$ac_ext >&5
7597 rm -f conftest.
$ac_objext conftest.
$ac_ext
7601 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7602 echo "${ECHO_T}$ac_cv_c_inline" >&6
7603 case $ac_cv_c_inline in
7606 cat >>confdefs.h
<<\_ACEOF
7610 *) cat >>confdefs.h
<<_ACEOF
7611 #define inline $ac_cv_c_inline
7616 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7617 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7618 if test "${ac_cv_c_bigendian+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 # See if sys/param.h defines the BYTE_ORDER macro.
7622 cat >conftest.
$ac_ext <<_ACEOF
7623 #line $LINENO "configure"
7624 #include "confdefs.h"
7625 #include <sys/types.h>
7626 #include <sys/param.h>
7628 #ifdef F77_DUMMY_MAIN
7632 int F77_DUMMY_MAIN() { return 1; }
7637 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7645 rm -f conftest.
$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try
='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 # It does; now see whether it defined to BIG_ENDIAN or not.
7658 cat >conftest.
$ac_ext <<_ACEOF
7659 #line $LINENO "configure"
7660 #include "confdefs.h"
7661 #include <sys/types.h>
7662 #include <sys/param.h>
7664 #ifdef F77_DUMMY_MAIN
7668 int F77_DUMMY_MAIN() { return 1; }
7673 #if BYTE_ORDER != BIG_ENDIAN
7681 rm -f conftest.
$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } &&
7687 { ac_try
='test -s conftest.$ac_objext'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 ac_cv_c_bigendian
=yes
7695 echo "$as_me: failed program was:" >&5
7696 cat conftest.
$ac_ext >&5
7697 ac_cv_c_bigendian
=no
7699 rm -f conftest.
$ac_objext conftest.
$ac_ext
7701 echo "$as_me: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7703 # It does not; compile a test program.
7704 if test "$cross_compiling" = yes; then
7705 # try to guess the endianess by grep'ing values into an object file
7706 ac_cv_c_bigendian
=unknown
7707 cat >conftest.
$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7709 #include "confdefs.h"
7710 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7711 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7712 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7713 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7714 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7715 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7716 #ifdef F77_DUMMY_MAIN
7720 int F77_DUMMY_MAIN() { return 1; }
7725 _ascii (); _ebcdic ();
7730 rm -f conftest.
$ac_objext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7732 (eval $ac_compile) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try
='test -s conftest.$ac_objext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 if fgrep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7743 ac_cv_c_bigendian
=yes
7745 if fgrep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7746 if test "$ac_cv_c_bigendian" = unknown
; then
7747 ac_cv_c_bigendian
=no
7749 # finding both strings is unlikely to happen, but who knows?
7750 ac_cv_c_bigendian
=unknown
7754 echo "$as_me: failed program was:" >&5
7755 cat conftest.
$ac_ext >&5
7757 rm -f conftest.
$ac_objext conftest.
$ac_ext
7759 cat >conftest.
$ac_ext <<_ACEOF
7760 #line $LINENO "configure"
7761 #include "confdefs.h"
7765 /* Are we little or big endian? From Harbison&Steele. */
7769 char c[sizeof (long)];
7772 exit (u.c[sizeof (long) - 1] == 1);
7775 rm -f conftest
$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_cv_c_bigendian
=no
7788 echo "$as_me: program exited with status $ac_status" >&5
7789 echo "$as_me: failed program was:" >&5
7790 cat conftest.
$ac_ext >&5
7792 ac_cv_c_bigendian
=yes
7794 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7797 rm -f conftest.
$ac_objext conftest.
$ac_ext
7799 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7800 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7801 case $ac_cv_c_bigendian in
7804 cat >>confdefs.h
<<\_ACEOF
7805 #define WORDS_BIGENDIAN 1
7811 { { echo "$as_me:$LINENO: error: unknown endianess
7812 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7813 echo "$as_me: error: unknown endianess
7814 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7815 { (exit 1); exit 1; }; } ;;
7819 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
7820 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
7821 if test "${ac_cv_c_char_unsigned+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 cat >conftest.
$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7826 #include "confdefs.h"
7827 $ac_includes_default
7828 #ifdef F77_DUMMY_MAIN
7832 int F77_DUMMY_MAIN() { return 1; }
7837 static int test_array [1 - 2 * !(((char) -1) < 0)];
7844 rm -f conftest.
$ac_objext
7845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try
='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_cv_c_char_unsigned
=no
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.
$ac_ext >&5
7860 ac_cv_c_char_unsigned
=yes
7862 rm -f conftest.
$ac_objext conftest.
$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
7865 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
7866 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
7867 cat >>confdefs.h
<<\_ACEOF
7868 #define __CHAR_UNSIGNED__ 1
7874 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7875 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7876 if test "${ac_cv_type_signal+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 cat >conftest.
$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 #include <sys/types.h>
7888 extern "C" void (*signal (int, void (*)(int)))(int);
7890 void (*signal ()) ();
7893 #ifdef F77_DUMMY_MAIN
7897 int F77_DUMMY_MAIN() { return 1; }
7907 rm -f conftest.
$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try
='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 ac_cv_type_signal
=void
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.
$ac_ext >&5
7923 ac_cv_type_signal
=int
7925 rm -f conftest.
$ac_objext conftest.
$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7928 echo "${ECHO_T}$ac_cv_type_signal" >&6
7930 cat >>confdefs.h
<<_ACEOF
7931 #define RETSIGTYPE $ac_cv_type_signal
7935 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7936 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7937 if test "${ac_cv_type_uid_t+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.
$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7942 #include "confdefs.h"
7943 #include <sys/types.h>
7946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7947 egrep "uid_t" >/dev
/null
2>&1; then
7948 ac_cv_type_uid_t
=yes
7955 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7956 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7957 if test $ac_cv_type_uid_t = no
; then
7959 cat >>confdefs.h
<<\_ACEOF
7964 cat >>confdefs.h
<<\_ACEOF
7970 echo "$as_me:$LINENO: checking for mode_t" >&5
7971 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7972 if test "${ac_cv_type_mode_t+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 cat >conftest.
$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 #include "confdefs.h"
7978 $ac_includes_default
7979 #ifdef F77_DUMMY_MAIN
7983 int F77_DUMMY_MAIN() { return 1; }
7990 if (sizeof (mode_t))
7996 rm -f conftest.
$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try
='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_type_mode_t
=yes
8010 echo "$as_me: failed program was:" >&5
8011 cat conftest.
$ac_ext >&5
8012 ac_cv_type_mode_t
=no
8014 rm -f conftest.
$ac_objext conftest.
$ac_ext
8016 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8017 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8018 if test $ac_cv_type_mode_t = yes; then
8022 cat >>confdefs.h
<<_ACEOF
8028 echo "$as_me:$LINENO: checking for off_t" >&5
8029 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8030 if test "${ac_cv_type_off_t+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 cat >conftest.
$ac_ext <<_ACEOF
8034 #line $LINENO "configure"
8035 #include "confdefs.h"
8036 $ac_includes_default
8037 #ifdef F77_DUMMY_MAIN
8041 int F77_DUMMY_MAIN() { return 1; }
8054 rm -f conftest.
$ac_objext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try
='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_type_off_t
=yes
8068 echo "$as_me: failed program was:" >&5
8069 cat conftest.
$ac_ext >&5
8072 rm -f conftest.
$ac_objext conftest.
$ac_ext
8074 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8075 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8076 if test $ac_cv_type_off_t = yes; then
8080 cat >>confdefs.h
<<_ACEOF
8086 echo "$as_me:$LINENO: checking for size_t" >&5
8087 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8088 if test "${ac_cv_type_size_t+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 cat >conftest.
$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8095 #ifdef F77_DUMMY_MAIN
8099 int F77_DUMMY_MAIN() { return 1; }
8106 if (sizeof (size_t))
8112 rm -f conftest.
$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try
='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_type_size_t
=yes
8126 echo "$as_me: failed program was:" >&5
8127 cat conftest.
$ac_ext >&5
8128 ac_cv_type_size_t
=no
8130 rm -f conftest.
$ac_objext conftest.
$ac_ext
8132 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8133 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8134 if test $ac_cv_type_size_t = yes; then
8138 cat >>confdefs.h
<<_ACEOF
8139 #define size_t unsigned
8144 echo "$as_me:$LINENO: checking for pid_t" >&5
8145 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8146 if test "${ac_cv_type_pid_t+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 cat >conftest.
$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8151 #include "confdefs.h"
8152 $ac_includes_default
8153 #ifdef F77_DUMMY_MAIN
8157 int F77_DUMMY_MAIN() { return 1; }
8170 rm -f conftest.
$ac_objext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8172 (eval $ac_compile) 2>&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try
='test -s conftest.$ac_objext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_type_pid_t
=yes
8184 echo "$as_me: failed program was:" >&5
8185 cat conftest.
$ac_ext >&5
8188 rm -f conftest.
$ac_objext conftest.
$ac_ext
8190 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8191 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8192 if test $ac_cv_type_pid_t = yes; then
8196 cat >>confdefs.h
<<_ACEOF
8203 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
8204 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
8205 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 cat >conftest.
$ac_ext <<_ACEOF
8209 #line $LINENO "configure"
8210 #include "confdefs.h"
8211 $ac_includes_default
8212 #ifdef F77_DUMMY_MAIN
8216 int F77_DUMMY_MAIN() { return 1; }
8221 static struct stat ac_aggr;
8222 if (ac_aggr.st_rdev)
8228 rm -f conftest.
$ac_objext
8229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8230 (eval $ac_compile) 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try
='test -s conftest.$ac_objext'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_member_struct_stat_st_rdev
=yes
8242 echo "$as_me: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8244 ac_cv_member_struct_stat_st_rdev
=no
8246 rm -f conftest.
$ac_objext conftest.
$ac_ext
8248 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
8249 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
8250 if test $ac_cv_member_struct_stat_st_rdev = yes; then
8252 cat >>confdefs.h
<<_ACEOF
8253 #define HAVE_STRUCT_STAT_ST_RDEV 1
8257 cat >>confdefs.h
<<\_ACEOF
8258 #define HAVE_ST_RDEV 1
8264 echo "$as_me:$LINENO: checking for d_off in dirent" >&5
8265 echo $ECHO_N "checking for d_off in dirent... $ECHO_C" >&6
8266 if test "${ac_cv_dirent_d_off+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.
$ac_ext <<_ACEOF
8270 #line $LINENO "configure"
8271 #include "confdefs.h"
8274 #include <sys/types.h>
8276 #ifdef F77_DUMMY_MAIN
8280 int F77_DUMMY_MAIN() { return 1; }
8285 struct dirent d; d.d_off;
8290 rm -f conftest.
$ac_objext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8292 (eval $ac_compile) 2>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try
='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_dirent_d_off
=yes
8304 echo "$as_me: failed program was:" >&5
8305 cat conftest.
$ac_ext >&5
8306 ac_cv_dirent_d_off
=no
8308 rm -f conftest.
$ac_objext conftest.
$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_cv_dirent_d_off" >&5
8311 echo "${ECHO_T}$ac_cv_dirent_d_off" >&6
8312 if test $ac_cv_dirent_d_off = yes; then
8314 cat >>confdefs.h
<<\_ACEOF
8315 #define HAVE_DIRENT_D_OFF 1
8320 echo "$as_me:$LINENO: checking for ino_t" >&5
8321 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
8322 if test "${ac_cv_type_ino_t+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 cat >conftest.
$ac_ext <<_ACEOF
8326 #line $LINENO "configure"
8327 #include "confdefs.h"
8328 $ac_includes_default
8329 #ifdef F77_DUMMY_MAIN
8333 int F77_DUMMY_MAIN() { return 1; }
8346 rm -f conftest.
$ac_objext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8348 (eval $ac_compile) 2>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try
='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_type_ino_t
=yes
8360 echo "$as_me: failed program was:" >&5
8361 cat conftest.
$ac_ext >&5
8364 rm -f conftest.
$ac_objext conftest.
$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8367 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
8368 if test $ac_cv_type_ino_t = yes; then
8372 cat >>confdefs.h
<<_ACEOF
8373 #define ino_t unsigned
8378 echo "$as_me:$LINENO: checking for loff_t" >&5
8379 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8380 if test "${ac_cv_type_loff_t+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 cat >conftest.
$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 $ac_includes_default
8387 #ifdef F77_DUMMY_MAIN
8391 int F77_DUMMY_MAIN() { return 1; }
8398 if (sizeof (loff_t))
8404 rm -f conftest.
$ac_objext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try
='test -s conftest.$ac_objext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_type_loff_t
=yes
8418 echo "$as_me: failed program was:" >&5
8419 cat conftest.
$ac_ext >&5
8420 ac_cv_type_loff_t
=no
8422 rm -f conftest.
$ac_objext conftest.
$ac_ext
8424 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8425 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8426 if test $ac_cv_type_loff_t = yes; then
8430 cat >>confdefs.h
<<_ACEOF
8431 #define loff_t off_t
8436 echo "$as_me:$LINENO: checking for offset_t" >&5
8437 echo $ECHO_N "checking for offset_t... $ECHO_C" >&6
8438 if test "${ac_cv_type_offset_t+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 cat >conftest.
$ac_ext <<_ACEOF
8442 #line $LINENO "configure"
8443 #include "confdefs.h"
8444 $ac_includes_default
8445 #ifdef F77_DUMMY_MAIN
8449 int F77_DUMMY_MAIN() { return 1; }
8456 if (sizeof (offset_t))
8462 rm -f conftest.
$ac_objext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try
='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_cv_type_offset_t
=yes
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.
$ac_ext >&5
8478 ac_cv_type_offset_t
=no
8480 rm -f conftest.
$ac_objext conftest.
$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_cv_type_offset_t" >&5
8483 echo "${ECHO_T}$ac_cv_type_offset_t" >&6
8484 if test $ac_cv_type_offset_t = yes; then
8488 cat >>confdefs.h
<<_ACEOF
8489 #define offset_t loff_t
8494 echo "$as_me:$LINENO: checking for ssize_t" >&5
8495 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8496 if test "${ac_cv_type_ssize_t+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 cat >conftest.
$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 $ac_includes_default
8503 #ifdef F77_DUMMY_MAIN
8507 int F77_DUMMY_MAIN() { return 1; }
8514 if (sizeof (ssize_t))
8520 rm -f conftest.
$ac_objext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522 (eval $ac_compile) 2>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try
='test -s conftest.$ac_objext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_type_ssize_t
=yes
8534 echo "$as_me: failed program was:" >&5
8535 cat conftest.
$ac_ext >&5
8536 ac_cv_type_ssize_t
=no
8538 rm -f conftest.
$ac_objext conftest.
$ac_ext
8540 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8541 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8542 if test $ac_cv_type_ssize_t = yes; then
8546 cat >>confdefs.h
<<_ACEOF
8552 echo "$as_me:$LINENO: checking for wchar_t" >&5
8553 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
8554 if test "${ac_cv_type_wchar_t+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 cat >conftest.
$ac_ext <<_ACEOF
8558 #line $LINENO "configure"
8559 #include "confdefs.h"
8560 $ac_includes_default
8561 #ifdef F77_DUMMY_MAIN
8565 int F77_DUMMY_MAIN() { return 1; }
8572 if (sizeof (wchar_t))
8578 rm -f conftest.
$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try
='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_type_wchar_t
=yes
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.
$ac_ext >&5
8594 ac_cv_type_wchar_t
=no
8596 rm -f conftest.
$ac_objext conftest.
$ac_ext
8598 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
8599 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
8600 if test $ac_cv_type_wchar_t = yes; then
8604 cat >>confdefs.h
<<_ACEOF
8605 #define wchar_t unsigned short
8611 ############################################
8612 # for cups support we need libcups, and a handful of header files
8614 # Check whether --enable-cups or --disable-cups was given.
8615 if test "${enable_cups+set}" = set; then
8616 enableval
="$enable_cups"
8620 if test x
$enable_cups != xno
; then
8621 # Extract the first word of "cups-config", so it can be a program name with args.
8622 set dummy cups-config
; ac_word
=$2
8623 echo "$as_me:$LINENO: checking for $ac_word" >&5
8624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8625 if test "${ac_cv_path_CUPS_CONFIG+set}" = set; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 case $CUPS_CONFIG in
8630 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
8633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir
=.
8638 for ac_exec_ext
in '' $ac_executable_extensions; do
8639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_path_CUPS_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 CUPS_CONFIG
=$ac_cv_path_CUPS_CONFIG
8652 if test -n "$CUPS_CONFIG"; then
8653 echo "$as_me:$LINENO: result: $CUPS_CONFIG" >&5
8654 echo "${ECHO_T}$CUPS_CONFIG" >&6
8656 echo "$as_me:$LINENO: result: no" >&5
8657 echo "${ECHO_T}no" >&6
8661 if test "x$CUPS_CONFIG" != x
; then
8663 cat >>confdefs.h
<<\_ACEOF
8667 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
8668 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
8669 PRINTLIBS
="$PRINTLIBS `$CUPS_CONFIG --libs`"
8673 ############################################
8674 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
8675 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8676 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8677 if test "${ac_cv_search_dlopen+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 ac_func_search_save_LIBS
=$LIBS
8681 ac_cv_search_dlopen
=no
8682 cat >conftest.
$ac_ext <<_ACEOF
8683 #line $LINENO "configure"
8684 #include "confdefs.h"
8686 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8693 #ifdef F77_DUMMY_MAIN
8697 int F77_DUMMY_MAIN() { return 1; }
8707 rm -f conftest.
$ac_objext conftest
$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try
='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_search_dlopen
="none required"
8721 echo "$as_me: failed program was:" >&5
8722 cat conftest.
$ac_ext >&5
8724 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8725 if test "$ac_cv_search_dlopen" = no
; then
8726 for ac_lib
in dl
; do
8727 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8728 cat >conftest.
$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8730 #include "confdefs.h"
8732 /* Override any gcc2 internal prototype to avoid an error. */
8736 /* We use char because int might match the return type of a gcc2
8737 builtin and then its argument prototype would still apply. */
8739 #ifdef F77_DUMMY_MAIN
8743 int F77_DUMMY_MAIN() { return 1; }
8753 rm -f conftest.
$ac_objext conftest
$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
8759 { ac_try
='test -s conftest$ac_exeext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 ac_cv_search_dlopen
="-l$ac_lib"
8768 echo "$as_me: failed program was:" >&5
8769 cat conftest.
$ac_ext >&5
8771 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8774 LIBS
=$ac_func_search_save_LIBS
8776 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8777 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8778 if test "$ac_cv_search_dlopen" != no
; then
8779 test "$ac_cv_search_dlopen" = "none required" || LIBS
="$ac_cv_search_dlopen $LIBS"
8783 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
8785 ############################################
8786 # check if the compiler can do immediate structures
8787 echo "$as_me:$LINENO: checking for immediate structures" >&5
8788 echo $ECHO_N "checking for immediate structures... $ECHO_C" >&6
8789 if test "${samba_cv_immediate_structures+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 cat >conftest.
$ac_ext <<_ACEOF
8794 #line $LINENO "configure"
8795 #include "confdefs.h"
8798 #ifdef F77_DUMMY_MAIN
8802 int F77_DUMMY_MAIN() { return 1; }
8808 typedef struct {unsigned x;} FOOBAR;
8809 #define X_FOOBAR(x) ((FOOBAR) { x })
8810 #define FOO_ONE X_FOOBAR(1)
8822 rm -f conftest.
$ac_objext
8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try
='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 samba_cv_immediate_structures
=yes
8836 echo "$as_me: failed program was:" >&5
8837 cat conftest.
$ac_ext >&5
8838 samba_cv_immediate_structures
=no
8840 rm -f conftest.
$ac_objext conftest.
$ac_ext
8842 echo "$as_me:$LINENO: result: $samba_cv_immediate_structures" >&5
8843 echo "${ECHO_T}$samba_cv_immediate_structures" >&6
8844 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
8846 cat >>confdefs.h
<<\_ACEOF
8847 #define HAVE_IMMEDIATE_STRUCTURES 1
8852 ############################################
8853 # check for unix domain sockets
8854 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
8855 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
8856 if test "${samba_cv_unixsocket+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8860 cat >conftest.
$ac_ext <<_ACEOF
8861 #line $LINENO "configure"
8862 #include "confdefs.h"
8864 #include <sys/types.h>
8867 #include <sys/socket.h>
8869 #ifdef F77_DUMMY_MAIN
8873 int F77_DUMMY_MAIN() { return 1; }
8879 struct sockaddr_un sunaddr;
8880 sunaddr.sun_family = AF_UNIX;
8886 rm -f conftest.
$ac_objext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8888 (eval $ac_compile) 2>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } &&
8892 { ac_try
='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 samba_cv_unixsocket
=yes
8900 echo "$as_me: failed program was:" >&5
8901 cat conftest.
$ac_ext >&5
8902 samba_cv_unixsocket
=no
8904 rm -f conftest.
$ac_objext conftest.
$ac_ext
8906 echo "$as_me:$LINENO: result: $samba_cv_unixsocket" >&5
8907 echo "${ECHO_T}$samba_cv_unixsocket" >&6
8908 if test x
"$samba_cv_unixsocket" = x
"yes"; then
8910 cat >>confdefs.h
<<\_ACEOF
8911 #define HAVE_UNIXSOCKET 1
8917 echo "$as_me:$LINENO: checking for socklen_t type" >&5
8918 echo $ECHO_N "checking for socklen_t type... $ECHO_C" >&6
8919 if test "${samba_cv_socklen_t+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 cat >conftest.
$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8927 #include <sys/types.h>
8932 #include <sys/socket.h>
8933 #ifdef F77_DUMMY_MAIN
8937 int F77_DUMMY_MAIN() { return 1; }
8947 rm -f conftest.
$ac_objext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949 (eval $ac_compile) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try
='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 samba_cv_socklen_t
=yes
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.
$ac_ext >&5
8963 samba_cv_socklen_t
=no
8965 rm -f conftest.
$ac_objext conftest.
$ac_ext
8967 echo "$as_me:$LINENO: result: $samba_cv_socklen_t" >&5
8968 echo "${ECHO_T}$samba_cv_socklen_t" >&6
8969 if test x
"$samba_cv_socklen_t" = x
"yes"; then
8971 cat >>confdefs.h
<<\_ACEOF
8972 #define HAVE_SOCKLEN_T_TYPE 1
8977 echo "$as_me:$LINENO: checking for sig_atomic_t type" >&5
8978 echo $ECHO_N "checking for sig_atomic_t type... $ECHO_C" >&6
8979 if test "${samba_cv_sig_atomic_t+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.
$ac_ext <<_ACEOF
8984 #line $LINENO "configure"
8985 #include "confdefs.h"
8987 #include <sys/types.h>
8993 #ifdef F77_DUMMY_MAIN
8997 int F77_DUMMY_MAIN() { return 1; }
9007 rm -f conftest.
$ac_objext
9008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009 (eval $ac_compile) 2>&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try
='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 samba_cv_sig_atomic_t
=yes
9021 echo "$as_me: failed program was:" >&5
9022 cat conftest.
$ac_ext >&5
9023 samba_cv_sig_atomic_t
=no
9025 rm -f conftest.
$ac_objext conftest.
$ac_ext
9027 echo "$as_me:$LINENO: result: $samba_cv_sig_atomic_t" >&5
9028 echo "${ECHO_T}$samba_cv_sig_atomic_t" >&6
9029 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
9031 cat >>confdefs.h
<<\_ACEOF
9032 #define HAVE_SIG_ATOMIC_T_TYPE 1
9037 # stupid headers have the functions but no declaration. grrrr.
9039 echo "$as_me:$LINENO: checking for errno declaration" >&5
9040 echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
9041 if test "${ac_cv_have_errno_decl+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 cat >conftest.
$ac_ext <<_ACEOF
9046 #line $LINENO "configure"
9047 #include "confdefs.h"
9049 #ifdef F77_DUMMY_MAIN
9053 int F77_DUMMY_MAIN() { return 1; }
9063 rm -f conftest.
$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try
='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_have_errno_decl
=yes
9077 echo "$as_me: failed program was:" >&5
9078 cat conftest.
$ac_ext >&5
9079 ac_cv_have_errno_decl
=no
9081 rm -f conftest.
$ac_objext conftest.
$ac_ext
9083 echo "$as_me:$LINENO: result: $ac_cv_have_errno_decl" >&5
9084 echo "${ECHO_T}$ac_cv_have_errno_decl" >&6
9085 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
9087 cat >>confdefs.h
<<\_ACEOF
9088 #define HAVE_ERRNO_DECL 1
9094 echo "$as_me:$LINENO: checking for setresuid declaration" >&5
9095 echo $ECHO_N "checking for setresuid declaration... $ECHO_C" >&6
9096 if test "${ac_cv_have_setresuid_decl+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 cat >conftest.
$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 #include "confdefs.h"
9104 #ifdef F77_DUMMY_MAIN
9108 int F77_DUMMY_MAIN() { return 1; }
9113 int i = (int)setresuid
9118 rm -f conftest.
$ac_objext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try
='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_have_setresuid_decl
=yes
9132 echo "$as_me: failed program was:" >&5
9133 cat conftest.
$ac_ext >&5
9134 ac_cv_have_setresuid_decl
=no
9136 rm -f conftest.
$ac_objext conftest.
$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_cv_have_setresuid_decl" >&5
9139 echo "${ECHO_T}$ac_cv_have_setresuid_decl" >&6
9140 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
9142 cat >>confdefs.h
<<\_ACEOF
9143 #define HAVE_SETRESUID_DECL 1
9149 echo "$as_me:$LINENO: checking for setresgid declaration" >&5
9150 echo $ECHO_N "checking for setresgid declaration... $ECHO_C" >&6
9151 if test "${ac_cv_have_setresgid_decl+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 cat >conftest.
$ac_ext <<_ACEOF
9156 #line $LINENO "configure"
9157 #include "confdefs.h"
9159 #ifdef F77_DUMMY_MAIN
9163 int F77_DUMMY_MAIN() { return 1; }
9168 int i = (int)setresgid
9173 rm -f conftest.
$ac_objext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9175 (eval $ac_compile) 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try
='test -s conftest.$ac_objext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_have_setresgid_decl
=yes
9187 echo "$as_me: failed program was:" >&5
9188 cat conftest.
$ac_ext >&5
9189 ac_cv_have_setresgid_decl
=no
9191 rm -f conftest.
$ac_objext conftest.
$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_cv_have_setresgid_decl" >&5
9194 echo "${ECHO_T}$ac_cv_have_setresgid_decl" >&6
9195 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
9197 cat >>confdefs.h
<<\_ACEOF
9198 #define HAVE_SETRESGID_DECL 1
9204 echo "$as_me:$LINENO: checking for asprintf declaration" >&5
9205 echo $ECHO_N "checking for asprintf declaration... $ECHO_C" >&6
9206 if test "${ac_cv_have_asprintf_decl+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.
$ac_ext <<_ACEOF
9211 #line $LINENO "configure"
9212 #include "confdefs.h"
9214 #ifdef F77_DUMMY_MAIN
9218 int F77_DUMMY_MAIN() { return 1; }
9223 int i = (int)asprintf
9228 rm -f conftest.
$ac_objext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230 (eval $ac_compile) 2>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try
='test -s conftest.$ac_objext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_have_asprintf_decl
=yes
9242 echo "$as_me: failed program was:" >&5
9243 cat conftest.
$ac_ext >&5
9244 ac_cv_have_asprintf_decl
=no
9246 rm -f conftest.
$ac_objext conftest.
$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_cv_have_asprintf_decl" >&5
9249 echo "${ECHO_T}$ac_cv_have_asprintf_decl" >&6
9250 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
9252 cat >>confdefs.h
<<\_ACEOF
9253 #define HAVE_ASPRINTF_DECL 1
9259 echo "$as_me:$LINENO: checking for vasprintf declaration" >&5
9260 echo $ECHO_N "checking for vasprintf declaration... $ECHO_C" >&6
9261 if test "${ac_cv_have_vasprintf_decl+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 cat >conftest.
$ac_ext <<_ACEOF
9266 #line $LINENO "configure"
9267 #include "confdefs.h"
9269 #ifdef F77_DUMMY_MAIN
9273 int F77_DUMMY_MAIN() { return 1; }
9278 int i = (int)vasprintf
9283 rm -f conftest.
$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try
='test -s conftest.$ac_objext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_have_vasprintf_decl
=yes
9297 echo "$as_me: failed program was:" >&5
9298 cat conftest.
$ac_ext >&5
9299 ac_cv_have_vasprintf_decl
=no
9301 rm -f conftest.
$ac_objext conftest.
$ac_ext
9303 echo "$as_me:$LINENO: result: $ac_cv_have_vasprintf_decl" >&5
9304 echo "${ECHO_T}$ac_cv_have_vasprintf_decl" >&6
9305 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
9307 cat >>confdefs.h
<<\_ACEOF
9308 #define HAVE_VASPRINTF_DECL 1
9314 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
9315 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
9316 if test "${ac_cv_have_vsnprintf_decl+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.
$ac_ext <<_ACEOF
9321 #line $LINENO "configure"
9322 #include "confdefs.h"
9324 #ifdef F77_DUMMY_MAIN
9328 int F77_DUMMY_MAIN() { return 1; }
9333 int i = (int)vsnprintf
9338 rm -f conftest.
$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } &&
9344 { ac_try
='test -s conftest.$ac_objext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 ac_cv_have_vsnprintf_decl
=yes
9352 echo "$as_me: failed program was:" >&5
9353 cat conftest.
$ac_ext >&5
9354 ac_cv_have_vsnprintf_decl
=no
9356 rm -f conftest.
$ac_objext conftest.
$ac_ext
9358 echo "$as_me:$LINENO: result: $ac_cv_have_vsnprintf_decl" >&5
9359 echo "${ECHO_T}$ac_cv_have_vsnprintf_decl" >&6
9360 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
9362 cat >>confdefs.h
<<\_ACEOF
9363 #define HAVE_VSNPRINTF_DECL 1
9369 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
9370 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
9371 if test "${ac_cv_have_snprintf_decl+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 cat >conftest.
$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9379 #ifdef F77_DUMMY_MAIN
9383 int F77_DUMMY_MAIN() { return 1; }
9388 int i = (int)snprintf
9393 rm -f conftest.
$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try
='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_have_snprintf_decl
=yes
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.
$ac_ext >&5
9409 ac_cv_have_snprintf_decl
=no
9411 rm -f conftest.
$ac_objext conftest.
$ac_ext
9413 echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_decl" >&5
9414 echo "${ECHO_T}$ac_cv_have_snprintf_decl" >&6
9415 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
9417 cat >>confdefs.h
<<\_ACEOF
9418 #define HAVE_SNPRINTF_DECL 1
9424 # and glibc has setresuid under linux but the function does
9425 # nothing until kernel 2.1.44! very dumb.
9426 echo "$as_me:$LINENO: checking for real setresuid" >&5
9427 echo $ECHO_N "checking for real setresuid... $ECHO_C" >&6
9428 if test "${samba_cv_have_setresuid+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 if test "$cross_compiling" = yes; then
9433 samba_cv_have_setresuid
=cross
9435 cat >conftest.
$ac_ext <<_ACEOF
9436 #line $LINENO "configure"
9437 #include "confdefs.h"
9439 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
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_setresuid
=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_setresuid
=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_setresuid" >&5
9464 echo "${ECHO_T}$samba_cv_have_setresuid" >&6
9465 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
9467 cat >>confdefs.h
<<\_ACEOF
9468 #define HAVE_SETRESUID 1
9473 # Do the same check for setresguid...
9475 echo "$as_me:$LINENO: checking for real setresgid" >&5
9476 echo $ECHO_N "checking for real setresgid... $ECHO_C" >&6
9477 if test "${samba_cv_have_setresgid+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 if test "$cross_compiling" = yes; then
9482 samba_cv_have_setresgid
=cross
9484 cat >conftest.
$ac_ext <<_ACEOF
9485 #line $LINENO "configure"
9486 #include "confdefs.h"
9489 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
9491 rm -f conftest
$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 samba_cv_have_setresgid
=yes
9504 echo "$as_me: program exited with status $ac_status" >&5
9505 echo "$as_me: failed program was:" >&5
9506 cat conftest.
$ac_ext >&5
9508 samba_cv_have_setresgid
=no
9510 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9513 echo "$as_me:$LINENO: result: $samba_cv_have_setresgid" >&5
9514 echo "${ECHO_T}$samba_cv_have_setresgid" >&6
9515 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
9517 cat >>confdefs.h
<<\_ACEOF
9518 #define HAVE_SETRESGID 1
9523 echo "$as_me:$LINENO: checking for working memcmp" >&5
9524 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9525 if test "${ac_cv_func_memcmp_working+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 if test "$cross_compiling" = yes; then
9529 ac_cv_func_memcmp_working
=no
9531 cat >conftest.
$ac_ext <<_ACEOF
9532 #line $LINENO "configure"
9533 #include "confdefs.h"
9535 #ifdef F77_DUMMY_MAIN
9539 int F77_DUMMY_MAIN() { return 1; }
9545 /* Some versions of memcmp are not 8-bit clean. */
9546 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9547 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9550 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9551 or more and with at least one buffer not starting on a 4-byte boundary.
9552 William Lewis provided this test program. */
9557 for (i = 0; i < 4; i++)
9561 strcpy (a, "--------01111111");
9562 strcpy (b, "--------10000000");
9563 if (memcmp (a, b, 16) >= 0)
9573 rm -f conftest
$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_cv_func_memcmp_working
=yes
9586 echo "$as_me: program exited with status $ac_status" >&5
9587 echo "$as_me: failed program was:" >&5
9588 cat conftest.
$ac_ext >&5
9590 ac_cv_func_memcmp_working
=no
9592 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9596 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9597 test $ac_cv_func_memcmp_working = no
&& LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
9600 ###############################################
9601 # test for where we get crypt() from
9602 echo "$as_me:$LINENO: checking for library containing crypt" >&5
9603 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
9604 if test "${ac_cv_search_crypt+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 ac_func_search_save_LIBS
=$LIBS
9608 ac_cv_search_crypt
=no
9609 cat >conftest.
$ac_ext <<_ACEOF
9610 #line $LINENO "configure"
9611 #include "confdefs.h"
9613 /* Override any gcc2 internal prototype to avoid an error. */
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9620 #ifdef F77_DUMMY_MAIN
9624 int F77_DUMMY_MAIN() { return 1; }
9634 rm -f conftest.
$ac_objext conftest
$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try
='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_search_crypt
="none required"
9648 echo "$as_me: failed program was:" >&5
9649 cat conftest.
$ac_ext >&5
9651 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9652 if test "$ac_cv_search_crypt" = no
; then
9653 for ac_lib
in crypt; do
9654 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9655 cat >conftest.
$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 #include "confdefs.h"
9659 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9666 #ifdef F77_DUMMY_MAIN
9670 int F77_DUMMY_MAIN() { return 1; }
9680 rm -f conftest.
$ac_objext conftest
$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682 (eval $ac_link) 2>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try
='test -s conftest$ac_exeext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_search_crypt
="-l$ac_lib"
9695 echo "$as_me: failed program was:" >&5
9696 cat conftest.
$ac_ext >&5
9698 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9701 LIBS
=$ac_func_search_save_LIBS
9703 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
9704 echo "${ECHO_T}$ac_cv_search_crypt" >&6
9705 if test "$ac_cv_search_crypt" != no
; then
9706 test "$ac_cv_search_crypt" = "none required" || LIBS
="$ac_cv_search_crypt $LIBS"
9707 AUTHLIBS
="$AUTHLIBS -lcrypt";
9709 cat >>confdefs.h
<<\_ACEOF
9710 #define HAVE_CRYPT 1
9716 ###############################################
9717 # Readline included by default unless explicitly asked not to
9718 test "${with_readline+set}" != "set" && with_readline
=yes
9720 # test for where we get readline() from
9721 echo "$as_me:$LINENO: checking whether to use readline" >&5
9722 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6
9724 # Check whether --with-readline or --without-readline was given.
9725 if test "${with_readline+set}" = set; then
9726 withval
="$with_readline"
9727 case "$with_readline" in
9729 echo "$as_me:$LINENO: result: yes" >&5
9730 echo "${ECHO_T}yes" >&6
9735 for ac_header
in readline.h
history.h readline
/readline.h
9737 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9739 echo "$as_me:$LINENO: checking for $ac_header" >&5
9740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9747 # Is the header compilable?
9748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9750 cat >conftest.
$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 #include "confdefs.h"
9753 $ac_includes_default
9754 #include <$ac_header>
9756 rm -f conftest.
$ac_objext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9758 (eval $ac_compile) 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try
='test -s conftest.$ac_objext'
9763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_header_compiler
=yes
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.
$ac_ext >&5
9772 ac_header_compiler
=no
9774 rm -f conftest.
$ac_objext conftest.
$ac_ext
9775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9776 echo "${ECHO_T}$ac_header_compiler" >&6
9778 # Is the header present?
9779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9781 cat >conftest.
$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9783 #include "confdefs.h"
9784 #include <$ac_header>
9786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9787 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9789 egrep -v '^ *\+' conftest.er1
>conftest.err
9791 cat conftest.err
>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } >/dev
/null
; then
9794 if test -s conftest.err
; then
9795 ac_cpp_err
=$ac_c_preproc_warn_flag
9802 if test -z "$ac_cpp_err"; then
9803 ac_header_preproc
=yes
9805 echo "$as_me: failed program was:" >&5
9806 cat conftest.
$ac_ext >&5
9807 ac_header_preproc
=no
9809 rm -f conftest.err conftest.
$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9811 echo "${ECHO_T}$ac_header_preproc" >&6
9813 # So? What about this header?
9814 case $ac_header_compiler:$ac_header_preproc in
9816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9824 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9828 echo "$as_me:$LINENO: checking for $ac_header" >&5
9829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 eval "$as_ac_Header=$ac_header_preproc"
9835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9840 cat >>confdefs.h
<<_ACEOF
9841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9849 for ac_header
in readline
/history.h
9851 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9853 echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 # Is the header compilable?
9862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9864 cat >conftest.
$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9867 $ac_includes_default
9868 #include <$ac_header>
9870 rm -f conftest.
$ac_objext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9872 (eval $ac_compile) 2>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try
='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_header_compiler
=yes
9884 echo "$as_me: failed program was:" >&5
9885 cat conftest.
$ac_ext >&5
9886 ac_header_compiler
=no
9888 rm -f conftest.
$ac_objext conftest.
$ac_ext
9889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9890 echo "${ECHO_T}$ac_header_compiler" >&6
9892 # Is the header present?
9893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9895 cat >conftest.
$ac_ext <<_ACEOF
9896 #line $LINENO "configure"
9897 #include "confdefs.h"
9898 #include <$ac_header>
9900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9903 egrep -v '^ *\+' conftest.er1
>conftest.err
9905 cat conftest.err
>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } >/dev
/null
; then
9908 if test -s conftest.err
; then
9909 ac_cpp_err
=$ac_c_preproc_warn_flag
9916 if test -z "$ac_cpp_err"; then
9917 ac_header_preproc
=yes
9919 echo "$as_me: failed program was:" >&5
9920 cat conftest.
$ac_ext >&5
9921 ac_header_preproc
=no
9923 rm -f conftest.err conftest.
$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc in
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9942 echo "$as_me:$LINENO: checking for $ac_header" >&5
9943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 eval "$as_ac_Header=$ac_header_preproc"
9949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9954 cat >>confdefs.h
<<_ACEOF
9955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9965 for ac_header
in readline.h readline
/readline.h
9967 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9969 echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9977 # Is the header compilable?
9978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9980 cat >conftest.
$ac_ext <<_ACEOF
9981 #line $LINENO "configure"
9982 #include "confdefs.h"
9983 $ac_includes_default
9984 #include <$ac_header>
9986 rm -f conftest.
$ac_objext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try
='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_header_compiler
=yes
10000 echo "$as_me: failed program was:" >&5
10001 cat conftest.
$ac_ext >&5
10002 ac_header_compiler
=no
10004 rm -f conftest.
$ac_objext conftest.
$ac_ext
10005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10006 echo "${ECHO_T}$ac_header_compiler" >&6
10008 # Is the header present?
10009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10011 cat >conftest.
$ac_ext <<_ACEOF
10012 #line $LINENO "configure"
10013 #include "confdefs.h"
10014 #include <$ac_header>
10016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10019 egrep -v '^ *\+' conftest.er1
>conftest.err
10021 cat conftest.err
>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } >/dev
/null
; then
10024 if test -s conftest.err
; then
10025 ac_cpp_err
=$ac_c_preproc_warn_flag
10032 if test -z "$ac_cpp_err"; then
10033 ac_header_preproc
=yes
10035 echo "$as_me: failed program was:" >&5
10036 cat conftest.
$ac_ext >&5
10037 ac_header_preproc
=no
10039 rm -f conftest.err conftest.
$ac_ext
10040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10041 echo "${ECHO_T}$ac_header_preproc" >&6
10043 # So? What about this header?
10044 case $ac_header_compiler:$ac_header_preproc in
10046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10058 echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 eval "$as_ac_Header=$ac_header_preproc"
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10070 cat >>confdefs.h
<<_ACEOF
10071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10074 for termlib
in ncurses curses termcap terminfo termlib
; do
10075 as_ac_Lib
=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10076 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10077 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_check_lib_save_LIBS
=$LIBS
10082 LIBS
="-l${termlib} $LIBS"
10083 cat >conftest.
$ac_ext <<_ACEOF
10084 #line $LINENO "configure"
10085 #include "confdefs.h"
10087 /* Override any gcc2 internal prototype to avoid an error. */
10091 /* We use char because int might match the return type of a gcc2
10092 builtin and then its argument prototype would still apply. */
10094 #ifdef F77_DUMMY_MAIN
10095 # ifdef __cplusplus
10098 int F77_DUMMY_MAIN() { return 1; }
10108 rm -f conftest.
$ac_objext conftest
$ac_exeext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110 (eval $ac_link) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try
='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 eval "$as_ac_Lib=yes"
10122 echo "$as_me: failed program was:" >&5
10123 cat conftest.
$ac_ext >&5
10124 eval "$as_ac_Lib=no"
10126 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10127 LIBS
=$ac_check_lib_save_LIBS
10129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10130 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10131 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10132 TERMLIBS
="-l${termlib}"; break
10136 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10137 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10138 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 ac_check_lib_save_LIBS
=$LIBS
10142 LIBS
="-lreadline $TERMLIBS $LIBS"
10143 cat >conftest.
$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10147 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10153 char rl_callback_handler_install ();
10154 #ifdef F77_DUMMY_MAIN
10155 # ifdef __cplusplus
10158 int F77_DUMMY_MAIN() { return 1; }
10163 rl_callback_handler_install ();
10168 rm -f conftest.
$ac_objext conftest
$ac_exeext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170 (eval $ac_link) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try
='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_lib_readline_rl_callback_handler_install
=yes
10182 echo "$as_me: failed program was:" >&5
10183 cat conftest.
$ac_ext >&5
10184 ac_cv_lib_readline_rl_callback_handler_install
=no
10186 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10187 LIBS
=$ac_check_lib_save_LIBS
10189 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10190 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10191 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10192 TERMLIBS
="-lreadline $TERMLIBS"
10194 cat >>confdefs.h
<<\_ACEOF
10195 #define HAVE_LIBREADLINE 1
10209 echo "$as_me:$LINENO: result: no" >&5
10210 echo "${ECHO_T}no" >&6
10213 echo "$as_me:$LINENO: result: yes" >&5
10214 echo "${ECHO_T}yes" >&6
10216 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
10217 # alternate readline path
10218 _ldflags
=${LDFLAGS}
10219 _cppflags
=${CPPFLAGS}
10221 # Add additional search path
10222 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
10223 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
10228 for ac_header
in readline.h
history.h readline
/readline.h
10230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232 echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10240 # Is the header compilable?
10241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10243 cat >conftest.
$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10245 #include "confdefs.h"
10246 $ac_includes_default
10247 #include <$ac_header>
10249 rm -f conftest.
$ac_objext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try
='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 ac_header_compiler
=yes
10263 echo "$as_me: failed program was:" >&5
10264 cat conftest.
$ac_ext >&5
10265 ac_header_compiler
=no
10267 rm -f conftest.
$ac_objext conftest.
$ac_ext
10268 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10269 echo "${ECHO_T}$ac_header_compiler" >&6
10271 # Is the header present?
10272 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10274 cat >conftest.
$ac_ext <<_ACEOF
10275 #line $LINENO "configure"
10276 #include "confdefs.h"
10277 #include <$ac_header>
10279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10280 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10282 egrep -v '^ *\+' conftest.er1
>conftest.err
10284 cat conftest.err
>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } >/dev
/null
; then
10287 if test -s conftest.err
; then
10288 ac_cpp_err
=$ac_c_preproc_warn_flag
10295 if test -z "$ac_cpp_err"; then
10296 ac_header_preproc
=yes
10298 echo "$as_me: failed program was:" >&5
10299 cat conftest.
$ac_ext >&5
10300 ac_header_preproc
=no
10302 rm -f conftest.err conftest.
$ac_ext
10303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10304 echo "${ECHO_T}$ac_header_preproc" >&6
10306 # So? What about this header?
10307 case $ac_header_compiler:$ac_header_preproc in
10309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10321 echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 eval "$as_ac_Header=$ac_header_preproc"
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10333 cat >>confdefs.h
<<_ACEOF
10334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10342 for ac_header
in readline
/history.h
10344 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10346 echo "$as_me:$LINENO: checking for $ac_header" >&5
10347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10354 # Is the header compilable?
10355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10357 cat >conftest.
$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 #include "confdefs.h"
10360 $ac_includes_default
10361 #include <$ac_header>
10363 rm -f conftest.
$ac_objext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } &&
10369 { ac_try
='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_header_compiler
=yes
10377 echo "$as_me: failed program was:" >&5
10378 cat conftest.
$ac_ext >&5
10379 ac_header_compiler
=no
10381 rm -f conftest.
$ac_objext conftest.
$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10383 echo "${ECHO_T}$ac_header_compiler" >&6
10385 # Is the header present?
10386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10388 cat >conftest.
$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10390 #include "confdefs.h"
10391 #include <$ac_header>
10393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10394 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10396 egrep -v '^ *\+' conftest.er1
>conftest.err
10398 cat conftest.err
>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } >/dev
/null
; then
10401 if test -s conftest.err
; then
10402 ac_cpp_err
=$ac_c_preproc_warn_flag
10409 if test -z "$ac_cpp_err"; then
10410 ac_header_preproc
=yes
10412 echo "$as_me: failed program was:" >&5
10413 cat conftest.
$ac_ext >&5
10414 ac_header_preproc
=no
10416 rm -f conftest.err conftest.
$ac_ext
10417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418 echo "${ECHO_T}$ac_header_preproc" >&6
10420 # So? What about this header?
10421 case $ac_header_compiler:$ac_header_preproc in
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10435 echo "$as_me:$LINENO: checking for $ac_header" >&5
10436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 eval "$as_ac_Header=$ac_header_preproc"
10442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10447 cat >>confdefs.h
<<_ACEOF
10448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10458 for ac_header
in readline.h readline
/readline.h
10460 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10462 echo "$as_me:$LINENO: checking for $ac_header" >&5
10463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10470 # Is the header compilable?
10471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10473 cat >conftest.
$ac_ext <<_ACEOF
10474 #line $LINENO "configure"
10475 #include "confdefs.h"
10476 $ac_includes_default
10477 #include <$ac_header>
10479 rm -f conftest.
$ac_objext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try
='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_header_compiler
=yes
10493 echo "$as_me: failed program was:" >&5
10494 cat conftest.
$ac_ext >&5
10495 ac_header_compiler
=no
10497 rm -f conftest.
$ac_objext conftest.
$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10499 echo "${ECHO_T}$ac_header_compiler" >&6
10501 # Is the header present?
10502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10504 cat >conftest.
$ac_ext <<_ACEOF
10505 #line $LINENO "configure"
10506 #include "confdefs.h"
10507 #include <$ac_header>
10509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10512 egrep -v '^ *\+' conftest.er1
>conftest.err
10514 cat conftest.err
>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } >/dev
/null
; then
10517 if test -s conftest.err
; then
10518 ac_cpp_err
=$ac_c_preproc_warn_flag
10525 if test -z "$ac_cpp_err"; then
10526 ac_header_preproc
=yes
10528 echo "$as_me: failed program was:" >&5
10529 cat conftest.
$ac_ext >&5
10530 ac_header_preproc
=no
10532 rm -f conftest.err conftest.
$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10534 echo "${ECHO_T}$ac_header_preproc" >&6
10536 # So? What about this header?
10537 case $ac_header_compiler:$ac_header_preproc in
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10551 echo "$as_me:$LINENO: checking for $ac_header" >&5
10552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 eval "$as_ac_Header=$ac_header_preproc"
10558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10563 cat >>confdefs.h
<<_ACEOF
10564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 for termlib
in ncurses curses termcap terminfo termlib
; do
10568 as_ac_Lib
=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh`
10569 echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5
10570 echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6
10571 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 ac_check_lib_save_LIBS
=$LIBS
10575 LIBS
="-l${termlib} $LIBS"
10576 cat >conftest.
$ac_ext <<_ACEOF
10577 #line $LINENO "configure"
10578 #include "confdefs.h"
10580 /* Override any gcc2 internal prototype to avoid an error. */
10584 /* We use char because int might match the return type of a gcc2
10585 builtin and then its argument prototype would still apply. */
10587 #ifdef F77_DUMMY_MAIN
10588 # ifdef __cplusplus
10591 int F77_DUMMY_MAIN() { return 1; }
10601 rm -f conftest.
$ac_objext conftest
$ac_exeext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603 (eval $ac_link) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try
='test -s conftest$ac_exeext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 eval "$as_ac_Lib=yes"
10615 echo "$as_me: failed program was:" >&5
10616 cat conftest.
$ac_ext >&5
10617 eval "$as_ac_Lib=no"
10619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10620 LIBS
=$ac_check_lib_save_LIBS
10622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10623 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10624 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10625 TERMLIBS
="-l${termlib}"; break
10629 echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
10630 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6
10631 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 ac_check_lib_save_LIBS
=$LIBS
10635 LIBS
="-lreadline $TERMLIBS $LIBS"
10636 cat >conftest.
$ac_ext <<_ACEOF
10637 #line $LINENO "configure"
10638 #include "confdefs.h"
10640 /* Override any gcc2 internal prototype to avoid an error. */
10644 /* We use char because int might match the return type of a gcc2
10645 builtin and then its argument prototype would still apply. */
10646 char rl_callback_handler_install ();
10647 #ifdef F77_DUMMY_MAIN
10648 # ifdef __cplusplus
10651 int F77_DUMMY_MAIN() { return 1; }
10656 rl_callback_handler_install ();
10661 rm -f conftest.
$ac_objext conftest
$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try
='test -s conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_lib_readline_rl_callback_handler_install
=yes
10675 echo "$as_me: failed program was:" >&5
10676 cat conftest.
$ac_ext >&5
10677 ac_cv_lib_readline_rl_callback_handler_install
=no
10679 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10680 LIBS
=$ac_check_lib_save_LIBS
10682 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
10683 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6
10684 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
10685 TERMLDFLAGS
="-L$with_readline/lib"
10686 TERMCPPFLAGS
="-I$with_readline/include"
10687 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
10688 TERMLIBS
="-lreadline $TERMLIBS"
10690 cat >>confdefs.h
<<\_ACEOF
10691 #define HAVE_LIBREADLINE 1
10696 TERMLIBS
= CPPFLAGS
=$_cppflags
10708 echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10715 # The readline API changed slightly from readline3 to readline4, so
10716 # code will generate warnings on one of them unless we have a few
10718 echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
10719 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
10720 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 ac_check_lib_save_LIBS
=$LIBS
10724 LIBS
="-lreadline $TERMLIBS $LIBS"
10725 cat >conftest.
$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10727 #include "confdefs.h"
10729 /* Override any gcc2 internal prototype to avoid an error. */
10733 /* We use char because int might match the return type of a gcc2
10734 builtin and then its argument prototype would still apply. */
10735 char rl_completion_matches ();
10736 #ifdef F77_DUMMY_MAIN
10737 # ifdef __cplusplus
10740 int F77_DUMMY_MAIN() { return 1; }
10745 rl_completion_matches ();
10750 rm -f conftest.
$ac_objext conftest
$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752 (eval $ac_link) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try
='test -s conftest$ac_exeext'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
10762 ac_cv_lib_readline_rl_completion_matches
=yes
10764 echo "$as_me: failed program was:" >&5
10765 cat conftest.
$ac_ext >&5
10766 ac_cv_lib_readline_rl_completion_matches
=no
10768 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10769 LIBS
=$ac_check_lib_save_LIBS
10771 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
10772 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
10773 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
10775 cat >>confdefs.h
<<\_ACEOF
10776 #define HAVE_NEW_LIBREADLINE 1
10782 # The following test taken from the cvs sources
10783 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
10784 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
10785 # libsocket.so which has a bad implementation of gethostbyname (it
10786 # only looks in /etc/hosts), so we only look for -lsocket if we need
10789 for ac_func
in connect
10791 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10792 echo "$as_me:$LINENO: checking for $ac_func" >&5
10793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10794 if eval "test \"\${$as_ac_var+set}\" = set"; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 cat >conftest.
$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 #include "confdefs.h"
10800 /* System header to define __stub macros and hopefully few prototypes,
10801 which can conflict with char $ac_func (); below. */
10802 #include <assert.h>
10803 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */
10812 #ifdef F77_DUMMY_MAIN
10813 # ifdef __cplusplus
10816 int F77_DUMMY_MAIN() { return 1; }
10821 /* The GNU C library defines this for functions which it implements
10822 to always fail with ENOSYS. Some functions are actually named
10823 something starting with __ and the normal name is an alias. */
10824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10834 rm -f conftest.
$ac_objext conftest
$ac_exeext
10835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10836 (eval $ac_link) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try
='test -s conftest$ac_exeext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 eval "$as_ac_var=yes"
10848 echo "$as_me: failed program was:" >&5
10849 cat conftest.
$ac_ext >&5
10850 eval "$as_ac_var=no"
10852 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h
<<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10864 if test x
"$ac_cv_func_connect" = x
"no"; then
10868 echo "$as_me:$LINENO: checking for printf in -lnsl_s" >&5
10869 echo $ECHO_N "checking for printf in -lnsl_s... $ECHO_C" >&6
10870 if test "${ac_cv_lib_nsl_s_printf+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_check_lib_save_LIBS
=$LIBS
10874 LIBS
="-lnsl_s $LIBS"
10875 cat >conftest.
$ac_ext <<_ACEOF
10876 #line $LINENO "configure"
10877 #include "confdefs.h"
10879 /* Override any gcc2 internal prototype to avoid an error. */
10883 /* We use char because int might match the return type of a gcc2
10884 builtin and then its argument prototype would still apply. */
10886 #ifdef F77_DUMMY_MAIN
10887 # ifdef __cplusplus
10890 int F77_DUMMY_MAIN() { return 1; }
10900 rm -f conftest.
$ac_objext conftest
$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try
='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_nsl_s_printf
=yes
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.
$ac_ext >&5
10916 ac_cv_lib_nsl_s_printf
=no
10918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10919 LIBS
=$ac_check_lib_save_LIBS
10921 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_printf" >&5
10922 echo "${ECHO_T}$ac_cv_lib_nsl_s_printf" >&6
10923 if test $ac_cv_lib_nsl_s_printf = yes; then
10924 cat >>confdefs.h
<<_ACEOF
10925 #define HAVE_LIBNSL_S 1
10928 LIBS
="-lnsl_s $LIBS"
10936 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
10937 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
10938 if test "${ac_cv_lib_nsl_printf+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 ac_check_lib_save_LIBS
=$LIBS
10943 cat >conftest.
$ac_ext <<_ACEOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10947 /* Override any gcc2 internal prototype to avoid an error. */
10951 /* We use char because int might match the return type of a gcc2
10952 builtin and then its argument prototype would still apply. */
10954 #ifdef F77_DUMMY_MAIN
10955 # ifdef __cplusplus
10958 int F77_DUMMY_MAIN() { return 1; }
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try
='test -s conftest$ac_exeext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_lib_nsl_printf
=yes
10982 echo "$as_me: failed program was:" >&5
10983 cat conftest.
$ac_ext >&5
10984 ac_cv_lib_nsl_printf
=no
10986 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10987 LIBS
=$ac_check_lib_save_LIBS
10989 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
10990 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
10991 if test $ac_cv_lib_nsl_printf = yes; then
10992 cat >>confdefs.h
<<_ACEOF
10993 #define HAVE_LIBNSL 1
11004 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11005 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
11006 if test "${ac_cv_lib_socket_connect+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 ac_check_lib_save_LIBS
=$LIBS
11010 LIBS
="-lsocket $LIBS"
11011 cat >conftest.
$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 #include "confdefs.h"
11015 /* Override any gcc2 internal prototype to avoid an error. */
11019 /* We use char because int might match the return type of a gcc2
11020 builtin and then its argument prototype would still apply. */
11022 #ifdef F77_DUMMY_MAIN
11023 # ifdef __cplusplus
11026 int F77_DUMMY_MAIN() { return 1; }
11036 rm -f conftest.
$ac_objext conftest
$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try
='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 ac_cv_lib_socket_connect
=yes
11050 echo "$as_me: failed program was:" >&5
11051 cat conftest.
$ac_ext >&5
11052 ac_cv_lib_socket_connect
=no
11054 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11055 LIBS
=$ac_check_lib_save_LIBS
11057 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
11058 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
11059 if test $ac_cv_lib_socket_connect = yes; then
11060 cat >>confdefs.h
<<_ACEOF
11061 #define HAVE_LIBSOCKET 1
11064 LIBS
="-lsocket $LIBS"
11072 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11073 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11074 if test "${ac_cv_lib_inet_connect+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 ac_check_lib_save_LIBS
=$LIBS
11078 LIBS
="-linet $LIBS"
11079 cat >conftest.
$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11081 #include "confdefs.h"
11083 /* Override any gcc2 internal prototype to avoid an error. */
11087 /* We use char because int might match the return type of a gcc2
11088 builtin and then its argument prototype would still apply. */
11090 #ifdef F77_DUMMY_MAIN
11091 # ifdef __cplusplus
11094 int F77_DUMMY_MAIN() { return 1; }
11104 rm -f conftest.
$ac_objext conftest
$ac_exeext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11106 (eval $ac_link) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try
='test -s conftest$ac_exeext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_lib_inet_connect
=yes
11118 echo "$as_me: failed program was:" >&5
11119 cat conftest.
$ac_ext >&5
11120 ac_cv_lib_inet_connect
=no
11122 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11123 LIBS
=$ac_check_lib_save_LIBS
11125 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
11126 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
11127 if test $ac_cv_lib_inet_connect = yes; then
11128 cat >>confdefs.h
<<_ACEOF
11129 #define HAVE_LIBINET 1
11132 LIBS
="-linet $LIBS"
11137 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
11138 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
11139 # ac_cv_func_connect=yes
11140 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
11142 cat >>confdefs.h
<<\_ACEOF
11143 #define HAVE_CONNECT 1
11149 ###############################################
11150 # test for where we get yp_get_default_domain() from
11151 echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
11152 echo $ECHO_N "checking for library containing yp_get_default_domain... $ECHO_C" >&6
11153 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
11154 echo $ECHO_N "(cached) $ECHO_C" >&6
11156 ac_func_search_save_LIBS
=$LIBS
11157 ac_cv_search_yp_get_default_domain
=no
11158 cat >conftest.
$ac_ext <<_ACEOF
11159 #line $LINENO "configure"
11160 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11166 /* We use char because int might match the return type of a gcc2
11167 builtin and then its argument prototype would still apply. */
11168 char yp_get_default_domain ();
11169 #ifdef F77_DUMMY_MAIN
11170 # ifdef __cplusplus
11173 int F77_DUMMY_MAIN() { return 1; }
11178 yp_get_default_domain ();
11183 rm -f conftest.
$ac_objext conftest
$ac_exeext
11184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try
='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_search_yp_get_default_domain
="none required"
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.
$ac_ext >&5
11200 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11201 if test "$ac_cv_search_yp_get_default_domain" = no
; then
11202 for ac_lib
in nsl
; do
11203 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11204 cat >conftest.
$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 #include "confdefs.h"
11208 /* Override any gcc2 internal prototype to avoid an error. */
11212 /* We use char because int might match the return type of a gcc2
11213 builtin and then its argument prototype would still apply. */
11214 char yp_get_default_domain ();
11215 #ifdef F77_DUMMY_MAIN
11216 # ifdef __cplusplus
11219 int F77_DUMMY_MAIN() { return 1; }
11224 yp_get_default_domain ();
11229 rm -f conftest.
$ac_objext conftest
$ac_exeext
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try
='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_search_yp_get_default_domain
="-l$ac_lib"
11244 echo "$as_me: failed program was:" >&5
11245 cat conftest.
$ac_ext >&5
11247 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11250 LIBS
=$ac_func_search_save_LIBS
11252 echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
11253 echo "${ECHO_T}$ac_cv_search_yp_get_default_domain" >&6
11254 if test "$ac_cv_search_yp_get_default_domain" != no
; then
11255 test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS
="$ac_cv_search_yp_get_default_domain $LIBS"
11260 for ac_func
in yp_get_default_domain
11262 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11263 echo "$as_me:$LINENO: checking for $ac_func" >&5
11264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11265 if eval "test \"\${$as_ac_var+set}\" = set"; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 cat >conftest.
$ac_ext <<_ACEOF
11269 #line $LINENO "configure"
11270 #include "confdefs.h"
11271 /* System header to define __stub macros and hopefully few prototypes,
11272 which can conflict with char $ac_func (); below. */
11273 #include <assert.h>
11274 /* Override any gcc2 internal prototype to avoid an error. */
11278 /* We use char because int might match the return type of a gcc2
11279 builtin and then its argument prototype would still apply. */
11283 #ifdef F77_DUMMY_MAIN
11284 # ifdef __cplusplus
11287 int F77_DUMMY_MAIN() { return 1; }
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11305 rm -f conftest.
$ac_objext conftest
$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try
='test -s conftest$ac_exeext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_var=yes"
11319 echo "$as_me: failed program was:" >&5
11320 cat conftest.
$ac_ext >&5
11321 eval "$as_ac_var=no"
11323 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11327 if test `eval echo '${'$as_ac_var'}'` = yes; then
11328 cat >>confdefs.h
<<_ACEOF
11329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 # Check if we have execl, if not we need to compile smbrun.
11338 for ac_func
in execl
11340 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_var+set}\" = set"; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 cat >conftest.
$ac_ext <<_ACEOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349 /* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char $ac_func (); below. */
11351 #include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error. */
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11361 #ifdef F77_DUMMY_MAIN
11362 # ifdef __cplusplus
11365 int F77_DUMMY_MAIN() { return 1; }
11370 /* The GNU C library defines this for functions which it implements
11371 to always fail with ENOSYS. Some functions are actually named
11372 something starting with __ and the normal name is an alias. */
11373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11383 rm -f conftest.
$ac_objext conftest
$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385 (eval $ac_link) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try
='test -s conftest$ac_exeext'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
11395 eval "$as_ac_var=yes"
11397 echo "$as_me: failed program was:" >&5
11398 cat conftest.
$ac_ext >&5
11399 eval "$as_ac_var=no"
11401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406 cat >>confdefs.h
<<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11413 if test x
"$ac_cv_func_execl" = x
"no"; then
11414 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
11436 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
11438 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11439 echo "$as_me:$LINENO: checking for $ac_func" >&5
11440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11441 if eval "test \"\${$as_ac_var+set}\" = set"; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 cat >conftest.
$ac_ext <<_ACEOF
11445 #line $LINENO "configure"
11446 #include "confdefs.h"
11447 /* System header to define __stub macros and hopefully few prototypes,
11448 which can conflict with char $ac_func (); below. */
11449 #include <assert.h>
11450 /* Override any gcc2 internal prototype to avoid an error. */
11454 /* We use char because int might match the return type of a gcc2
11455 builtin and then its argument prototype would still apply. */
11459 #ifdef F77_DUMMY_MAIN
11460 # ifdef __cplusplus
11463 int F77_DUMMY_MAIN() { return 1; }
11468 /* The GNU C library defines this for functions which it implements
11469 to always fail with ENOSYS. Some functions are actually named
11470 something starting with __ and the normal name is an alias. */
11471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11481 rm -f conftest.
$ac_objext conftest
$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try
='test -s conftest$ac_exeext'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 eval "$as_ac_var=yes"
11495 echo "$as_me: failed program was:" >&5
11496 cat conftest.
$ac_ext >&5
11497 eval "$as_ac_var=no"
11499 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11503 if test `eval echo '${'$as_ac_var'}'` = yes; then
11504 cat >>confdefs.h
<<_ACEOF
11505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11522 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
11524 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11525 echo "$as_me:$LINENO: checking for $ac_func" >&5
11526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11527 if eval "test \"\${$as_ac_var+set}\" = set"; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 cat >conftest.
$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11532 #include "confdefs.h"
11533 /* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func (); below. */
11535 #include <assert.h>
11536 /* Override any gcc2 internal prototype to avoid an error. */
11540 /* We use char because int might match the return type of a gcc2
11541 builtin and then its argument prototype would still apply. */
11545 #ifdef F77_DUMMY_MAIN
11546 # ifdef __cplusplus
11549 int F77_DUMMY_MAIN() { return 1; }
11554 /* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11567 rm -f conftest.
$ac_objext conftest
$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } &&
11573 { ac_try
='test -s conftest$ac_exeext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "$as_ac_var=yes"
11581 echo "$as_me: failed program was:" >&5
11582 cat conftest.
$ac_ext >&5
11583 eval "$as_ac_var=no"
11585 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11589 if test `eval echo '${'$as_ac_var'}'` = yes; then
11590 cat >>confdefs.h
<<_ACEOF
11591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
11610 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11611 echo "$as_me:$LINENO: checking for $ac_func" >&5
11612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11613 if eval "test \"\${$as_ac_var+set}\" = set"; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 cat >conftest.
$ac_ext <<_ACEOF
11617 #line $LINENO "configure"
11618 #include "confdefs.h"
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below. */
11621 #include <assert.h>
11622 /* Override any gcc2 internal prototype to avoid an error. */
11626 /* We use char because int might match the return type of a gcc2
11627 builtin and then its argument prototype would still apply. */
11631 #ifdef F77_DUMMY_MAIN
11632 # ifdef __cplusplus
11635 int F77_DUMMY_MAIN() { return 1; }
11640 /* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
11643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11653 rm -f conftest.
$ac_objext conftest
$ac_exeext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11655 (eval $ac_link) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try
='test -s conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 eval "$as_ac_var=yes"
11667 echo "$as_me: failed program was:" >&5
11668 cat conftest.
$ac_ext >&5
11669 eval "$as_ac_var=no"
11671 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11675 if test `eval echo '${'$as_ac_var'}'` = yes; then
11676 cat >>confdefs.h
<<_ACEOF
11677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11692 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
11694 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11695 echo "$as_me:$LINENO: checking for $ac_func" >&5
11696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11697 if eval "test \"\${$as_ac_var+set}\" = set"; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 cat >conftest.
$ac_ext <<_ACEOF
11701 #line $LINENO "configure"
11702 #include "confdefs.h"
11703 /* System header to define __stub macros and hopefully few prototypes,
11704 which can conflict with char $ac_func (); below. */
11705 #include <assert.h>
11706 /* Override any gcc2 internal prototype to avoid an error. */
11710 /* We use char because int might match the return type of a gcc2
11711 builtin and then its argument prototype would still apply. */
11715 #ifdef F77_DUMMY_MAIN
11716 # ifdef __cplusplus
11719 int F77_DUMMY_MAIN() { return 1; }
11724 /* The GNU C library defines this for functions which it implements
11725 to always fail with ENOSYS. Some functions are actually named
11726 something starting with __ and the normal name is an alias. */
11727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11737 rm -f conftest.
$ac_objext conftest
$ac_exeext
11738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11739 (eval $ac_link) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try
='test -s conftest$ac_exeext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 eval "$as_ac_var=yes"
11751 echo "$as_me: failed program was:" >&5
11752 cat conftest.
$ac_ext >&5
11753 eval "$as_ac_var=no"
11755 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11759 if test `eval echo '${'$as_ac_var'}'` = yes; then
11760 cat >>confdefs.h
<<_ACEOF
11761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11775 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
11777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778 echo "$as_me:$LINENO: checking for $ac_func" >&5
11779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11780 if eval "test \"\${$as_ac_var+set}\" = set"; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 cat >conftest.
$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 #include "confdefs.h"
11786 /* System header to define __stub macros and hopefully few prototypes,
11787 which can conflict with char $ac_func (); below. */
11788 #include <assert.h>
11789 /* Override any gcc2 internal prototype to avoid an error. */
11793 /* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11798 #ifdef F77_DUMMY_MAIN
11799 # ifdef __cplusplus
11802 int F77_DUMMY_MAIN() { return 1; }
11807 /* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11820 rm -f conftest.
$ac_objext conftest
$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try
='test -s conftest$ac_exeext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 eval "$as_ac_var=yes"
11834 echo "$as_me: failed program was:" >&5
11835 cat conftest.
$ac_ext >&5
11836 eval "$as_ac_var=no"
11838 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11842 if test `eval echo '${'$as_ac_var'}'` = yes; then
11843 cat >>confdefs.h
<<_ACEOF
11844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
11862 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863 echo "$as_me:$LINENO: checking for $ac_func" >&5
11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11865 if eval "test \"\${$as_ac_var+set}\" = set"; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 cat >conftest.
$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11870 #include "confdefs.h"
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func (); below. */
11873 #include <assert.h>
11874 /* Override any gcc2 internal prototype to avoid an error. */
11878 /* We use char because int might match the return type of a gcc2
11879 builtin and then its argument prototype would still apply. */
11883 #ifdef F77_DUMMY_MAIN
11884 # ifdef __cplusplus
11887 int F77_DUMMY_MAIN() { return 1; }
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11905 rm -f conftest.
$ac_objext conftest
$ac_exeext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11907 (eval $ac_link) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try
='test -s conftest$ac_exeext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 eval "$as_ac_var=yes"
11919 echo "$as_me: failed program was:" >&5
11920 cat conftest.
$ac_ext >&5
11921 eval "$as_ac_var=no"
11923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h
<<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11943 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
11945 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11946 echo "$as_me:$LINENO: checking for $ac_func" >&5
11947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11948 if eval "test \"\${$as_ac_var+set}\" = set"; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 cat >conftest.
$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11954 /* System header to define __stub macros and hopefully few prototypes,
11955 which can conflict with char $ac_func (); below. */
11956 #include <assert.h>
11957 /* Override any gcc2 internal prototype to avoid an error. */
11961 /* We use char because int might match the return type of a gcc2
11962 builtin and then its argument prototype would still apply. */
11966 #ifdef F77_DUMMY_MAIN
11967 # ifdef __cplusplus
11970 int F77_DUMMY_MAIN() { return 1; }
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11988 rm -f conftest.
$ac_objext conftest
$ac_exeext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try
='test -s conftest$ac_exeext'
11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 eval "$as_ac_var=yes"
12002 echo "$as_me: failed program was:" >&5
12003 cat conftest.
$ac_ext >&5
12004 eval "$as_ac_var=no"
12006 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12010 if test `eval echo '${'$as_ac_var'}'` = yes; then
12011 cat >>confdefs.h
<<_ACEOF
12012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
12027 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12028 echo "$as_me:$LINENO: checking for $ac_func" >&5
12029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_var+set}\" = set"; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 cat >conftest.
$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 #include "confdefs.h"
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below. */
12038 #include <assert.h>
12039 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12048 #ifdef F77_DUMMY_MAIN
12049 # ifdef __cplusplus
12052 int F77_DUMMY_MAIN() { return 1; }
12057 /* The GNU C library defines this for functions which it implements
12058 to always fail with ENOSYS. Some functions are actually named
12059 something starting with __ and the normal name is an alias. */
12060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12070 rm -f conftest.
$ac_objext conftest
$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try
='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 eval "$as_ac_var=yes"
12084 echo "$as_me: failed program was:" >&5
12085 cat conftest.
$ac_ext >&5
12086 eval "$as_ac_var=no"
12088 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12092 if test `eval echo '${'$as_ac_var'}'` = yes; then
12093 cat >>confdefs.h
<<_ACEOF
12094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12111 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
12113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12116 if eval "test \"\${$as_ac_var+set}\" = set"; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 cat >conftest.
$ac_ext <<_ACEOF
12120 #line $LINENO "configure"
12121 #include "confdefs.h"
12122 /* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func (); below. */
12124 #include <assert.h>
12125 /* Override any gcc2 internal prototype to avoid an error. */
12129 /* We use char because int might match the return type of a gcc2
12130 builtin and then its argument prototype would still apply. */
12134 #ifdef F77_DUMMY_MAIN
12135 # ifdef __cplusplus
12138 int F77_DUMMY_MAIN() { return 1; }
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12156 rm -f conftest.
$ac_objext conftest
$ac_exeext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try
='test -s conftest$ac_exeext'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 eval "$as_ac_var=yes"
12170 echo "$as_me: failed program was:" >&5
12171 cat conftest.
$ac_ext >&5
12172 eval "$as_ac_var=no"
12174 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12178 if test `eval echo '${'$as_ac_var'}'` = yes; then
12179 cat >>confdefs.h
<<_ACEOF
12180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12190 for ac_func
in syslog vsyslog getgrouplist timegm
12192 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12195 if eval "test \"\${$as_ac_var+set}\" = set"; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 cat >conftest.
$ac_ext <<_ACEOF
12199 #line $LINENO "configure"
12200 #include "confdefs.h"
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below. */
12203 #include <assert.h>
12204 /* Override any gcc2 internal prototype to avoid an error. */
12208 /* We use char because int might match the return type of a gcc2
12209 builtin and then its argument prototype would still apply. */
12213 #ifdef F77_DUMMY_MAIN
12214 # ifdef __cplusplus
12217 int F77_DUMMY_MAIN() { return 1; }
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12235 rm -f conftest.
$ac_objext conftest
$ac_exeext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12237 (eval $ac_link) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try
='test -s conftest$ac_exeext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 eval "$as_ac_var=yes"
12249 echo "$as_me: failed program was:" >&5
12250 cat conftest.
$ac_ext >&5
12251 eval "$as_ac_var=no"
12253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h
<<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265 # setbuffer, shmget, shm_open are needed for smbtorture
12269 for ac_func
in setbuffer shmget shm_open
12271 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12272 echo "$as_me:$LINENO: checking for $ac_func" >&5
12273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12274 if eval "test \"\${$as_ac_var+set}\" = set"; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 cat >conftest.
$ac_ext <<_ACEOF
12278 #line $LINENO "configure"
12279 #include "confdefs.h"
12280 /* System header to define __stub macros and hopefully few prototypes,
12281 which can conflict with char $ac_func (); below. */
12282 #include <assert.h>
12283 /* Override any gcc2 internal prototype to avoid an error. */
12287 /* We use char because int might match the return type of a gcc2
12288 builtin and then its argument prototype would still apply. */
12292 #ifdef F77_DUMMY_MAIN
12293 # ifdef __cplusplus
12296 int F77_DUMMY_MAIN() { return 1; }
12301 /* The GNU C library defines this for functions which it implements
12302 to always fail with ENOSYS. Some functions are actually named
12303 something starting with __ and the normal name is an alias. */
12304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12314 rm -f conftest.
$ac_objext conftest
$ac_exeext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try
='test -s conftest$ac_exeext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 eval "$as_ac_var=yes"
12328 echo "$as_me: failed program was:" >&5
12329 cat conftest.
$ac_ext >&5
12330 eval "$as_ac_var=no"
12332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12336 if test `eval echo '${'$as_ac_var'}'` = yes; then
12337 cat >>confdefs.h
<<_ACEOF
12338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12345 # syscall() is needed for smbwrapper.
12347 for ac_func
in syscall
12349 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12350 echo "$as_me:$LINENO: checking for $ac_func" >&5
12351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12352 if eval "test \"\${$as_ac_var+set}\" = set"; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12355 cat >conftest.
$ac_ext <<_ACEOF
12356 #line $LINENO "configure"
12357 #include "confdefs.h"
12358 /* System header to define __stub macros and hopefully few prototypes,
12359 which can conflict with char $ac_func (); below. */
12360 #include <assert.h>
12361 /* Override any gcc2 internal prototype to avoid an error. */
12365 /* We use char because int might match the return type of a gcc2
12366 builtin and then its argument prototype would still apply. */
12370 #ifdef F77_DUMMY_MAIN
12371 # ifdef __cplusplus
12374 int F77_DUMMY_MAIN() { return 1; }
12379 /* The GNU C library defines this for functions which it implements
12380 to always fail with ENOSYS. Some functions are actually named
12381 something starting with __ and the normal name is an alias. */
12382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12392 rm -f conftest.
$ac_objext conftest
$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try
='test -s conftest$ac_exeext'
12399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
12404 eval "$as_ac_var=yes"
12406 echo "$as_me: failed program was:" >&5
12407 cat conftest.
$ac_ext >&5
12408 eval "$as_ac_var=no"
12410 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12414 if test `eval echo '${'$as_ac_var'}'` = yes; then
12415 cat >>confdefs.h
<<_ACEOF
12416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12430 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
12432 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12433 echo "$as_me:$LINENO: checking for $ac_func" >&5
12434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12435 if eval "test \"\${$as_ac_var+set}\" = set"; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 cat >conftest.
$ac_ext <<_ACEOF
12439 #line $LINENO "configure"
12440 #include "confdefs.h"
12441 /* System header to define __stub macros and hopefully few prototypes,
12442 which can conflict with char $ac_func (); below. */
12443 #include <assert.h>
12444 /* Override any gcc2 internal prototype to avoid an error. */
12448 /* We use char because int might match the return type of a gcc2
12449 builtin and then its argument prototype would still apply. */
12453 #ifdef F77_DUMMY_MAIN
12454 # ifdef __cplusplus
12457 int F77_DUMMY_MAIN() { return 1; }
12462 /* The GNU C library defines this for functions which it implements
12463 to always fail with ENOSYS. Some functions are actually named
12464 something starting with __ and the normal name is an alias. */
12465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12475 rm -f conftest.
$ac_objext conftest
$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try
='test -s conftest$ac_exeext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 eval "$as_ac_var=yes"
12489 echo "$as_me: failed program was:" >&5
12490 cat conftest.
$ac_ext >&5
12491 eval "$as_ac_var=no"
12493 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12497 if test `eval echo '${'$as_ac_var'}'` = yes; then
12498 cat >>confdefs.h
<<_ACEOF
12499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12512 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
12514 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515 echo "$as_me:$LINENO: checking for $ac_func" >&5
12516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12517 if eval "test \"\${$as_ac_var+set}\" = set"; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 cat >conftest.
$ac_ext <<_ACEOF
12521 #line $LINENO "configure"
12522 #include "confdefs.h"
12523 /* System header to define __stub macros and hopefully few prototypes,
12524 which can conflict with char $ac_func (); below. */
12525 #include <assert.h>
12526 /* Override any gcc2 internal prototype to avoid an error. */
12530 /* We use char because int might match the return type of a gcc2
12531 builtin and then its argument prototype would still apply. */
12535 #ifdef F77_DUMMY_MAIN
12536 # ifdef __cplusplus
12539 int F77_DUMMY_MAIN() { return 1; }
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12557 rm -f conftest.
$ac_objext conftest
$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try
='test -s conftest$ac_exeext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 eval "$as_ac_var=yes"
12571 echo "$as_me: failed program was:" >&5
12572 cat conftest.
$ac_ext >&5
12573 eval "$as_ac_var=no"
12575 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12579 if test `eval echo '${'$as_ac_var'}'` = yes; then
12580 cat >>confdefs.h
<<_ACEOF
12581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 for ac_func
in __getcwd _getcwd
12591 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12592 echo "$as_me:$LINENO: checking for $ac_func" >&5
12593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12594 if eval "test \"\${$as_ac_var+set}\" = set"; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.
$ac_ext <<_ACEOF
12598 #line $LINENO "configure"
12599 #include "confdefs.h"
12600 /* System header to define __stub macros and hopefully few prototypes,
12601 which can conflict with char $ac_func (); below. */
12602 #include <assert.h>
12603 /* Override any gcc2 internal prototype to avoid an error. */
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12612 #ifdef F77_DUMMY_MAIN
12613 # ifdef __cplusplus
12616 int F77_DUMMY_MAIN() { return 1; }
12621 /* The GNU C library defines this for functions which it implements
12622 to always fail with ENOSYS. Some functions are actually named
12623 something starting with __ and the normal name is an alias. */
12624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12634 rm -f conftest.
$ac_objext conftest
$ac_exeext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12636 (eval $ac_link) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try
='test -s conftest$ac_exeext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 eval "$as_ac_var=yes"
12648 echo "$as_me: failed program was:" >&5
12649 cat conftest.
$ac_ext >&5
12650 eval "$as_ac_var=no"
12652 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12656 if test `eval echo '${'$as_ac_var'}'` = yes; then
12657 cat >>confdefs.h
<<_ACEOF
12658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 for ac_func
in __xstat __fxstat __lxstat
12669 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12670 echo "$as_me:$LINENO: checking for $ac_func" >&5
12671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12672 if eval "test \"\${$as_ac_var+set}\" = set"; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 cat >conftest.
$ac_ext <<_ACEOF
12676 #line $LINENO "configure"
12677 #include "confdefs.h"
12678 /* System header to define __stub macros and hopefully few prototypes,
12679 which can conflict with char $ac_func (); below. */
12680 #include <assert.h>
12681 /* Override any gcc2 internal prototype to avoid an error. */
12685 /* We use char because int might match the return type of a gcc2
12686 builtin and then its argument prototype would still apply. */
12690 #ifdef F77_DUMMY_MAIN
12691 # ifdef __cplusplus
12694 int F77_DUMMY_MAIN() { return 1; }
12699 /* The GNU C library defines this for functions which it implements
12700 to always fail with ENOSYS. Some functions are actually named
12701 something starting with __ and the normal name is an alias. */
12702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12712 rm -f conftest.
$ac_objext conftest
$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try
='test -s conftest$ac_exeext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 eval "$as_ac_var=yes"
12726 echo "$as_me: failed program was:" >&5
12727 cat conftest.
$ac_ext >&5
12728 eval "$as_ac_var=no"
12730 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12734 if test `eval echo '${'$as_ac_var'}'` = yes; then
12735 cat >>confdefs.h
<<_ACEOF
12736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12748 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
12750 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12751 echo "$as_me:$LINENO: checking for $ac_func" >&5
12752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12753 if eval "test \"\${$as_ac_var+set}\" = set"; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 cat >conftest.
$ac_ext <<_ACEOF
12757 #line $LINENO "configure"
12758 #include "confdefs.h"
12759 /* System header to define __stub macros and hopefully few prototypes,
12760 which can conflict with char $ac_func (); below. */
12761 #include <assert.h>
12762 /* Override any gcc2 internal prototype to avoid an error. */
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12771 #ifdef F77_DUMMY_MAIN
12772 # ifdef __cplusplus
12775 int F77_DUMMY_MAIN() { return 1; }
12780 /* The GNU C library defines this for functions which it implements
12781 to always fail with ENOSYS. Some functions are actually named
12782 something starting with __ and the normal name is an alias. */
12783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12793 rm -f conftest.
$ac_objext conftest
$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try
='test -s conftest$ac_exeext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 eval "$as_ac_var=yes"
12807 echo "$as_me: failed program was:" >&5
12808 cat conftest.
$ac_ext >&5
12809 eval "$as_ac_var=no"
12811 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12815 if test `eval echo '${'$as_ac_var'}'` = yes; then
12816 cat >>confdefs.h
<<_ACEOF
12817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12831 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
12833 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834 echo "$as_me:$LINENO: checking for $ac_func" >&5
12835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12836 if eval "test \"\${$as_ac_var+set}\" = set"; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 cat >conftest.
$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12842 /* System header to define __stub macros and hopefully few prototypes,
12843 which can conflict with char $ac_func (); below. */
12844 #include <assert.h>
12845 /* Override any gcc2 internal prototype to avoid an error. */
12849 /* We use char because int might match the return type of a gcc2
12850 builtin and then its argument prototype would still apply. */
12854 #ifdef F77_DUMMY_MAIN
12855 # ifdef __cplusplus
12858 int F77_DUMMY_MAIN() { return 1; }
12863 /* The GNU C library defines this for functions which it implements
12864 to always fail with ENOSYS. Some functions are actually named
12865 something starting with __ and the normal name is an alias. */
12866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12876 rm -f conftest.
$ac_objext conftest
$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878 (eval $ac_link) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try
='test -s conftest$ac_exeext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 eval "$as_ac_var=yes"
12890 echo "$as_me: failed program was:" >&5
12891 cat conftest.
$ac_ext >&5
12892 eval "$as_ac_var=no"
12894 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12898 if test `eval echo '${'$as_ac_var'}'` = yes; then
12899 cat >>confdefs.h
<<_ACEOF
12900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12912 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
12914 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12915 echo "$as_me:$LINENO: checking for $ac_func" >&5
12916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12917 if eval "test \"\${$as_ac_var+set}\" = set"; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 cat >conftest.
$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 #include "confdefs.h"
12923 /* System header to define __stub macros and hopefully few prototypes,
12924 which can conflict with char $ac_func (); below. */
12925 #include <assert.h>
12926 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12935 #ifdef F77_DUMMY_MAIN
12936 # ifdef __cplusplus
12939 int F77_DUMMY_MAIN() { return 1; }
12944 /* The GNU C library defines this for functions which it implements
12945 to always fail with ENOSYS. Some functions are actually named
12946 something starting with __ and the normal name is an alias. */
12947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12957 rm -f conftest.
$ac_objext conftest
$ac_exeext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12959 (eval $ac_link) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try
='test -s conftest$ac_exeext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 eval "$as_ac_var=yes"
12971 echo "$as_me: failed program was:" >&5
12972 cat conftest.
$ac_ext >&5
12973 eval "$as_ac_var=no"
12975 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12979 if test `eval echo '${'$as_ac_var'}'` = yes; then
12980 cat >>confdefs.h
<<_ACEOF
12981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
12996 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12997 echo "$as_me:$LINENO: checking for $ac_func" >&5
12998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12999 if eval "test \"\${$as_ac_var+set}\" = set"; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 cat >conftest.
$ac_ext <<_ACEOF
13003 #line $LINENO "configure"
13004 #include "confdefs.h"
13005 /* System header to define __stub macros and hopefully few prototypes,
13006 which can conflict with char $ac_func (); below. */
13007 #include <assert.h>
13008 /* Override any gcc2 internal prototype to avoid an error. */
13012 /* We use char because int might match the return type of a gcc2
13013 builtin and then its argument prototype would still apply. */
13017 #ifdef F77_DUMMY_MAIN
13018 # ifdef __cplusplus
13021 int F77_DUMMY_MAIN() { return 1; }
13026 /* The GNU C library defines this for functions which it implements
13027 to always fail with ENOSYS. Some functions are actually named
13028 something starting with __ and the normal name is an alias. */
13029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13039 rm -f conftest.
$ac_objext conftest
$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try
='test -s conftest$ac_exeext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 eval "$as_ac_var=yes"
13053 echo "$as_me: failed program was:" >&5
13054 cat conftest.
$ac_ext >&5
13055 eval "$as_ac_var=no"
13057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13061 if test `eval echo '${'$as_ac_var'}'` = yes; then
13062 cat >>confdefs.h
<<_ACEOF
13063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13073 for ac_func
in _write __write _fork __fork
13075 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13076 echo "$as_me:$LINENO: checking for $ac_func" >&5
13077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13078 if eval "test \"\${$as_ac_var+set}\" = set"; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 cat >conftest.
$ac_ext <<_ACEOF
13082 #line $LINENO "configure"
13083 #include "confdefs.h"
13084 /* System header to define __stub macros and hopefully few prototypes,
13085 which can conflict with char $ac_func (); below. */
13086 #include <assert.h>
13087 /* Override any gcc2 internal prototype to avoid an error. */
13091 /* We use char because int might match the return type of a gcc2
13092 builtin and then its argument prototype would still apply. */
13096 #ifdef F77_DUMMY_MAIN
13097 # ifdef __cplusplus
13100 int F77_DUMMY_MAIN() { return 1; }
13105 /* The GNU C library defines this for functions which it implements
13106 to always fail with ENOSYS. Some functions are actually named
13107 something starting with __ and the normal name is an alias. */
13108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13118 rm -f conftest.
$ac_objext conftest
$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try
='test -s conftest$ac_exeext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 eval "$as_ac_var=yes"
13132 echo "$as_me: failed program was:" >&5
13133 cat conftest.
$ac_ext >&5
13134 eval "$as_ac_var=no"
13136 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13140 if test `eval echo '${'$as_ac_var'}'` = yes; then
13141 cat >>confdefs.h
<<_ACEOF
13142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13154 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
13156 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13157 echo "$as_me:$LINENO: checking for $ac_func" >&5
13158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13159 if eval "test \"\${$as_ac_var+set}\" = set"; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.
$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13164 #include "confdefs.h"
13165 /* System header to define __stub macros and hopefully few prototypes,
13166 which can conflict with char $ac_func (); below. */
13167 #include <assert.h>
13168 /* Override any gcc2 internal prototype to avoid an error. */
13172 /* We use char because int might match the return type of a gcc2
13173 builtin and then its argument prototype would still apply. */
13177 #ifdef F77_DUMMY_MAIN
13178 # ifdef __cplusplus
13181 int F77_DUMMY_MAIN() { return 1; }
13186 /* The GNU C library defines this for functions which it implements
13187 to always fail with ENOSYS. Some functions are actually named
13188 something starting with __ and the normal name is an alias. */
13189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13199 rm -f conftest.
$ac_objext conftest
$ac_exeext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13201 (eval $ac_link) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try
='test -s conftest$ac_exeext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 eval "$as_ac_var=yes"
13213 echo "$as_me: failed program was:" >&5
13214 cat conftest.
$ac_ext >&5
13215 eval "$as_ac_var=no"
13217 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13221 if test `eval echo '${'$as_ac_var'}'` = yes; then
13222 cat >>confdefs.h
<<_ACEOF
13223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13236 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
13238 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13239 echo "$as_me:$LINENO: checking for $ac_func" >&5
13240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13241 if eval "test \"\${$as_ac_var+set}\" = set"; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 cat >conftest.
$ac_ext <<_ACEOF
13245 #line $LINENO "configure"
13246 #include "confdefs.h"
13247 /* System header to define __stub macros and hopefully few prototypes,
13248 which can conflict with char $ac_func (); below. */
13249 #include <assert.h>
13250 /* Override any gcc2 internal prototype to avoid an error. */
13254 /* We use char because int might match the return type of a gcc2
13255 builtin and then its argument prototype would still apply. */
13259 #ifdef F77_DUMMY_MAIN
13260 # ifdef __cplusplus
13263 int F77_DUMMY_MAIN() { return 1; }
13268 /* The GNU C library defines this for functions which it implements
13269 to always fail with ENOSYS. Some functions are actually named
13270 something starting with __ and the normal name is an alias. */
13271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13281 rm -f conftest.
$ac_objext conftest
$ac_exeext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try
='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 eval "$as_ac_var=yes"
13295 echo "$as_me: failed program was:" >&5
13296 cat conftest.
$ac_ext >&5
13297 eval "$as_ac_var=no"
13299 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13303 if test `eval echo '${'$as_ac_var'}'` = yes; then
13304 cat >>confdefs.h
<<_ACEOF
13305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13317 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
13319 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13320 echo "$as_me:$LINENO: checking for $ac_func" >&5
13321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13322 if eval "test \"\${$as_ac_var+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 cat >conftest.
$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 #include "confdefs.h"
13328 /* System header to define __stub macros and hopefully few prototypes,
13329 which can conflict with char $ac_func (); below. */
13330 #include <assert.h>
13331 /* Override any gcc2 internal prototype to avoid an error. */
13335 /* We use char because int might match the return type of a gcc2
13336 builtin and then its argument prototype would still apply. */
13340 #ifdef F77_DUMMY_MAIN
13341 # ifdef __cplusplus
13344 int F77_DUMMY_MAIN() { return 1; }
13349 /* The GNU C library defines this for functions which it implements
13350 to always fail with ENOSYS. Some functions are actually named
13351 something starting with __ and the normal name is an alias. */
13352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13362 rm -f conftest.
$ac_objext conftest
$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364 (eval $ac_link) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } &&
13368 { ac_try
='test -s conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 eval "$as_ac_var=yes"
13376 echo "$as_me: failed program was:" >&5
13377 cat conftest.
$ac_ext >&5
13378 eval "$as_ac_var=no"
13380 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13384 if test `eval echo '${'$as_ac_var'}'` = yes; then
13385 cat >>confdefs.h
<<_ACEOF
13386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13398 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
13400 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13401 echo "$as_me:$LINENO: checking for $ac_func" >&5
13402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13403 if eval "test \"\${$as_ac_var+set}\" = set"; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 cat >conftest.
$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13408 #include "confdefs.h"
13409 /* System header to define __stub macros and hopefully few prototypes,
13410 which can conflict with char $ac_func (); below. */
13411 #include <assert.h>
13412 /* Override any gcc2 internal prototype to avoid an error. */
13416 /* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13421 #ifdef F77_DUMMY_MAIN
13422 # ifdef __cplusplus
13425 int F77_DUMMY_MAIN() { return 1; }
13430 /* The GNU C library defines this for functions which it implements
13431 to always fail with ENOSYS. Some functions are actually named
13432 something starting with __ and the normal name is an alias. */
13433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13443 rm -f conftest.
$ac_objext conftest
$ac_exeext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13445 (eval $ac_link) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try
='test -s conftest$ac_exeext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 eval "$as_ac_var=yes"
13457 echo "$as_me: failed program was:" >&5
13458 cat conftest.
$ac_ext >&5
13459 eval "$as_ac_var=no"
13461 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13465 if test `eval echo '${'$as_ac_var'}'` = yes; then
13466 cat >>confdefs.h
<<_ACEOF
13467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13477 for ac_func
in open64 _open64 __open64 creat64
13479 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13480 echo "$as_me:$LINENO: checking for $ac_func" >&5
13481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13482 if eval "test \"\${$as_ac_var+set}\" = set"; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.
$ac_ext <<_ACEOF
13486 #line $LINENO "configure"
13487 #include "confdefs.h"
13488 /* System header to define __stub macros and hopefully few prototypes,
13489 which can conflict with char $ac_func (); below. */
13490 #include <assert.h>
13491 /* Override any gcc2 internal prototype to avoid an error. */
13495 /* We use char because int might match the return type of a gcc2
13496 builtin and then its argument prototype would still apply. */
13500 #ifdef F77_DUMMY_MAIN
13501 # ifdef __cplusplus
13504 int F77_DUMMY_MAIN() { return 1; }
13509 /* The GNU C library defines this for functions which it implements
13510 to always fail with ENOSYS. Some functions are actually named
13511 something starting with __ and the normal name is an alias. */
13512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13522 rm -f conftest.
$ac_objext conftest
$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524 (eval $ac_link) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try
='test -s conftest$ac_exeext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 eval "$as_ac_var=yes"
13536 echo "$as_me: failed program was:" >&5
13537 cat conftest.
$ac_ext >&5
13538 eval "$as_ac_var=no"
13540 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13544 if test `eval echo '${'$as_ac_var'}'` = yes; then
13545 cat >>confdefs.h
<<_ACEOF
13546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13554 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
13557 if test x
$ac_cv_func_stat64 = xno
; then
13558 echo "$as_me:$LINENO: checking for stat64 in <sys/stat.h>" >&5
13559 echo $ECHO_N "checking for stat64 in <sys/stat.h>... $ECHO_C" >&6
13560 cat >conftest.
$ac_ext <<_ACEOF
13561 #line $LINENO "configure"
13562 #include "confdefs.h"
13564 #if defined(HAVE_UNISTD_H)
13565 #include <unistd.h>
13567 #include <sys/stat.h>
13569 #ifdef F77_DUMMY_MAIN
13570 # ifdef __cplusplus
13573 int F77_DUMMY_MAIN() { return 1; }
13578 struct stat64 st64; exit(stat64(".",&st64));
13583 rm -f conftest.
$ac_objext conftest
$ac_exeext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13585 (eval $ac_link) 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } &&
13589 { ac_try
='test -s conftest$ac_exeext'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_func_stat64
=yes
13597 echo "$as_me: failed program was:" >&5
13598 cat conftest.
$ac_ext >&5
13600 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13601 echo "$as_me:$LINENO: result: $ac_cv_func_stat64" >&5
13602 echo "${ECHO_T}$ac_cv_func_stat64" >&6
13603 if test x
$ac_cv_func_stat64 = xyes
; then
13605 cat >>confdefs.h
<<\_ACEOF
13606 #define HAVE_STAT64 1
13612 if test x
$ac_cv_func_lstat64 = xno
; then
13613 echo "$as_me:$LINENO: checking for lstat64 in <sys/stat.h>" >&5
13614 echo $ECHO_N "checking for lstat64 in <sys/stat.h>... $ECHO_C" >&6
13615 cat >conftest.
$ac_ext <<_ACEOF
13616 #line $LINENO "configure"
13617 #include "confdefs.h"
13619 #if defined(HAVE_UNISTD_H)
13620 #include <unistd.h>
13622 #include <sys/stat.h>
13624 #ifdef F77_DUMMY_MAIN
13625 # ifdef __cplusplus
13628 int F77_DUMMY_MAIN() { return 1; }
13633 struct stat64 st64; exit(lstat64(".",&st64));
13638 rm -f conftest.
$ac_objext conftest
$ac_exeext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640 (eval $ac_link) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try
='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_func_lstat64
=yes
13652 echo "$as_me: failed program was:" >&5
13653 cat conftest.
$ac_ext >&5
13655 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_cv_func_lstat64" >&5
13657 echo "${ECHO_T}$ac_cv_func_lstat64" >&6
13658 if test x
$ac_cv_func_lstat64 = xyes
; then
13659 cat >>confdefs.h
<<\_ACEOF
13660 #define HAVE_LSTAT64 Whether lstat64() is available
13666 if test x
$ac_cv_func_fstat64 = xno
; then
13667 echo "$as_me:$LINENO: checking for fstat64 in <sys/stat.h>" >&5
13668 echo $ECHO_N "checking for fstat64 in <sys/stat.h>... $ECHO_C" >&6
13669 cat >conftest.
$ac_ext <<_ACEOF
13670 #line $LINENO "configure"
13671 #include "confdefs.h"
13673 #if defined(HAVE_UNISTD_H)
13674 #include <unistd.h>
13676 #include <sys/stat.h>
13678 #ifdef F77_DUMMY_MAIN
13679 # ifdef __cplusplus
13682 int F77_DUMMY_MAIN() { return 1; }
13687 struct stat64 st64; exit(fstat64(0,&st64));
13692 rm -f conftest.
$ac_objext conftest
$ac_exeext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13694 (eval $ac_link) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try
='test -s conftest$ac_exeext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_func_fstat64
=yes
13706 echo "$as_me: failed program was:" >&5
13707 cat conftest.
$ac_ext >&5
13709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13710 echo "$as_me:$LINENO: result: $ac_cv_func_fstat64" >&5
13711 echo "${ECHO_T}$ac_cv_func_fstat64" >&6
13712 if test x
$ac_cv_func_fstat64 = xyes
; then
13714 cat >>confdefs.h
<<\_ACEOF
13715 #define HAVE_FSTAT64 1
13721 #####################################
13722 # we might need the resolv library on some systems
13724 echo "$as_me:$LINENO: checking for dn_expand in -lresolv" >&5
13725 echo $ECHO_N "checking for dn_expand in -lresolv... $ECHO_C" >&6
13726 if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 ac_check_lib_save_LIBS
=$LIBS
13730 LIBS
="-lresolv $LIBS"
13731 cat >conftest.
$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 #include "confdefs.h"
13735 /* Override any gcc2 internal prototype to avoid an error. */
13739 /* We use char because int might match the return type of a gcc2
13740 builtin and then its argument prototype would still apply. */
13742 #ifdef F77_DUMMY_MAIN
13743 # ifdef __cplusplus
13746 int F77_DUMMY_MAIN() { return 1; }
13756 rm -f conftest.
$ac_objext conftest
$ac_exeext
13757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13758 (eval $ac_link) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try
='test -s conftest$ac_exeext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
13768 ac_cv_lib_resolv_dn_expand
=yes
13770 echo "$as_me: failed program was:" >&5
13771 cat conftest.
$ac_ext >&5
13772 ac_cv_lib_resolv_dn_expand
=no
13774 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13775 LIBS
=$ac_check_lib_save_LIBS
13777 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_dn_expand" >&5
13778 echo "${ECHO_T}$ac_cv_lib_resolv_dn_expand" >&6
13779 if test $ac_cv_lib_resolv_dn_expand = yes; then
13780 cat >>confdefs.h
<<_ACEOF
13781 #define HAVE_LIBRESOLV 1
13784 LIBS
="-lresolv $LIBS"
13790 # Check for the functions putprpwnam, set_auth_parameters,
13791 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
13792 # Needed for OSF1 and HPUX.
13797 for ac_func
in putprpwnam
13799 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13800 echo "$as_me:$LINENO: checking for $ac_func" >&5
13801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13802 if eval "test \"\${$as_ac_var+set}\" = set"; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 cat >conftest.
$ac_ext <<_ACEOF
13806 #line $LINENO "configure"
13807 #include "confdefs.h"
13808 /* System header to define __stub macros and hopefully few prototypes,
13809 which can conflict with char $ac_func (); below. */
13810 #include <assert.h>
13811 /* Override any gcc2 internal prototype to avoid an error. */
13815 /* We use char because int might match the return type of a gcc2
13816 builtin and then its argument prototype would still apply. */
13820 #ifdef F77_DUMMY_MAIN
13821 # ifdef __cplusplus
13824 int F77_DUMMY_MAIN() { return 1; }
13829 /* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13842 rm -f conftest.
$ac_objext conftest
$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try
='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 eval "$as_ac_var=yes"
13856 echo "$as_me: failed program was:" >&5
13857 cat conftest.
$ac_ext >&5
13858 eval "$as_ac_var=no"
13860 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13864 if test `eval echo '${'$as_ac_var'}'` = yes; then
13865 cat >>confdefs.h
<<_ACEOF
13866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13873 echo "$as_me:$LINENO: checking for putprpwnam in -lsecurity" >&5
13874 echo $ECHO_N "checking for putprpwnam in -lsecurity... $ECHO_C" >&6
13875 if test "${ac_cv_lib_security_putprpwnam+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 ac_check_lib_save_LIBS
=$LIBS
13879 LIBS
="-lsecurity $LIBS"
13880 cat >conftest.
$ac_ext <<_ACEOF
13881 #line $LINENO "configure"
13882 #include "confdefs.h"
13884 /* Override any gcc2 internal prototype to avoid an error. */
13888 /* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890 char putprpwnam ();
13891 #ifdef F77_DUMMY_MAIN
13892 # ifdef __cplusplus
13895 int F77_DUMMY_MAIN() { return 1; }
13905 rm -f conftest.
$ac_objext conftest
$ac_exeext
13906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try
='test -s conftest$ac_exeext'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_lib_security_putprpwnam
=yes
13919 echo "$as_me: failed program was:" >&5
13920 cat conftest.
$ac_ext >&5
13921 ac_cv_lib_security_putprpwnam
=no
13923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13924 LIBS
=$ac_check_lib_save_LIBS
13926 echo "$as_me:$LINENO: result: $ac_cv_lib_security_putprpwnam" >&5
13927 echo "${ECHO_T}$ac_cv_lib_security_putprpwnam" >&6
13928 if test $ac_cv_lib_security_putprpwnam = yes; then
13929 cat >>confdefs.h
<<_ACEOF
13930 #define HAVE_LIBSECURITY 1
13933 LIBS
="-lsecurity $LIBS"
13938 for ac_func
in putprpwnam
13940 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13941 echo "$as_me:$LINENO: checking for $ac_func" >&5
13942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13943 if eval "test \"\${$as_ac_var+set}\" = set"; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 cat >conftest.
$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13948 #include "confdefs.h"
13949 /* System header to define __stub macros and hopefully few prototypes,
13950 which can conflict with char $ac_func (); below. */
13951 #include <assert.h>
13952 /* Override any gcc2 internal prototype to avoid an error. */
13956 /* We use char because int might match the return type of a gcc2
13957 builtin and then its argument prototype would still apply. */
13961 #ifdef F77_DUMMY_MAIN
13962 # ifdef __cplusplus
13965 int F77_DUMMY_MAIN() { return 1; }
13970 /* The GNU C library defines this for functions which it implements
13971 to always fail with ENOSYS. Some functions are actually named
13972 something starting with __ and the normal name is an alias. */
13973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13983 rm -f conftest.
$ac_objext conftest
$ac_exeext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13985 (eval $ac_link) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try
='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 eval "$as_ac_var=yes"
13997 echo "$as_me: failed program was:" >&5
13998 cat conftest.
$ac_ext >&5
13999 eval "$as_ac_var=no"
14001 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14005 if test `eval echo '${'$as_ac_var'}'` = yes; then
14006 cat >>confdefs.h
<<_ACEOF
14007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14018 for ac_func
in putprpwnam
14020 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14021 echo "$as_me:$LINENO: checking for $ac_func" >&5
14022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14023 if eval "test \"\${$as_ac_var+set}\" = set"; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 cat >conftest.
$ac_ext <<_ACEOF
14027 #line $LINENO "configure"
14028 #include "confdefs.h"
14029 /* System header to define __stub macros and hopefully few prototypes,
14030 which can conflict with char $ac_func (); below. */
14031 #include <assert.h>
14032 /* Override any gcc2 internal prototype to avoid an error. */
14036 /* We use char because int might match the return type of a gcc2
14037 builtin and then its argument prototype would still apply. */
14041 #ifdef F77_DUMMY_MAIN
14042 # ifdef __cplusplus
14045 int F77_DUMMY_MAIN() { return 1; }
14050 /* The GNU C library defines this for functions which it implements
14051 to always fail with ENOSYS. Some functions are actually named
14052 something starting with __ and the normal name is an alias. */
14053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14063 rm -f conftest.
$ac_objext conftest
$ac_exeext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14065 (eval $ac_link) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
14069 { ac_try
='test -s conftest$ac_exeext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 eval "$as_ac_var=yes"
14077 echo "$as_me: failed program was:" >&5
14078 cat conftest.
$ac_ext >&5
14079 eval "$as_ac_var=no"
14081 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14085 if test `eval echo '${'$as_ac_var'}'` = yes; then
14086 cat >>confdefs.h
<<_ACEOF
14087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14094 echo "$as_me:$LINENO: checking for putprpwnam in -lsec" >&5
14095 echo $ECHO_N "checking for putprpwnam in -lsec... $ECHO_C" >&6
14096 if test "${ac_cv_lib_sec_putprpwnam+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 ac_check_lib_save_LIBS
=$LIBS
14101 cat >conftest.
$ac_ext <<_ACEOF
14102 #line $LINENO "configure"
14103 #include "confdefs.h"
14105 /* Override any gcc2 internal prototype to avoid an error. */
14109 /* We use char because int might match the return type of a gcc2
14110 builtin and then its argument prototype would still apply. */
14111 char putprpwnam ();
14112 #ifdef F77_DUMMY_MAIN
14113 # ifdef __cplusplus
14116 int F77_DUMMY_MAIN() { return 1; }
14126 rm -f conftest.
$ac_objext conftest
$ac_exeext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14128 (eval $ac_link) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try
='test -s conftest$ac_exeext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14138 ac_cv_lib_sec_putprpwnam
=yes
14140 echo "$as_me: failed program was:" >&5
14141 cat conftest.
$ac_ext >&5
14142 ac_cv_lib_sec_putprpwnam
=no
14144 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14145 LIBS
=$ac_check_lib_save_LIBS
14147 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_putprpwnam" >&5
14148 echo "${ECHO_T}$ac_cv_lib_sec_putprpwnam" >&6
14149 if test $ac_cv_lib_sec_putprpwnam = yes; then
14150 cat >>confdefs.h
<<_ACEOF
14151 #define HAVE_LIBSEC 1
14159 for ac_func
in putprpwnam
14161 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14162 echo "$as_me:$LINENO: checking for $ac_func" >&5
14163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14164 if eval "test \"\${$as_ac_var+set}\" = set"; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 cat >conftest.
$ac_ext <<_ACEOF
14168 #line $LINENO "configure"
14169 #include "confdefs.h"
14170 /* System header to define __stub macros and hopefully few prototypes,
14171 which can conflict with char $ac_func (); below. */
14172 #include <assert.h>
14173 /* Override any gcc2 internal prototype to avoid an error. */
14177 /* We use char because int might match the return type of a gcc2
14178 builtin and then its argument prototype would still apply. */
14182 #ifdef F77_DUMMY_MAIN
14183 # ifdef __cplusplus
14186 int F77_DUMMY_MAIN() { return 1; }
14191 /* The GNU C library defines this for functions which it implements
14192 to always fail with ENOSYS. Some functions are actually named
14193 something starting with __ and the normal name is an alias. */
14194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14204 rm -f conftest.
$ac_objext conftest
$ac_exeext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206 (eval $ac_link) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try
='test -s conftest$ac_exeext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 eval "$as_ac_var=yes"
14218 echo "$as_me: failed program was:" >&5
14219 cat conftest.
$ac_ext >&5
14220 eval "$as_ac_var=no"
14222 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14226 if test `eval echo '${'$as_ac_var'}'` = yes; then
14227 cat >>confdefs.h
<<_ACEOF
14228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14240 for ac_func
in set_auth_parameters
14242 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14243 echo "$as_me:$LINENO: checking for $ac_func" >&5
14244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14245 if eval "test \"\${$as_ac_var+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.
$ac_ext <<_ACEOF
14249 #line $LINENO "configure"
14250 #include "confdefs.h"
14251 /* System header to define __stub macros and hopefully few prototypes,
14252 which can conflict with char $ac_func (); below. */
14253 #include <assert.h>
14254 /* Override any gcc2 internal prototype to avoid an error. */
14258 /* We use char because int might match the return type of a gcc2
14259 builtin and then its argument prototype would still apply. */
14263 #ifdef F77_DUMMY_MAIN
14264 # ifdef __cplusplus
14267 int F77_DUMMY_MAIN() { return 1; }
14272 /* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14285 rm -f conftest.
$ac_objext conftest
$ac_exeext
14286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14287 (eval $ac_link) 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try
='test -s conftest$ac_exeext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 eval "$as_ac_var=yes"
14299 echo "$as_me: failed program was:" >&5
14300 cat conftest.
$ac_ext >&5
14301 eval "$as_ac_var=no"
14303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14307 if test `eval echo '${'$as_ac_var'}'` = yes; then
14308 cat >>confdefs.h
<<_ACEOF
14309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14316 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
14317 echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
14318 if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 ac_check_lib_save_LIBS
=$LIBS
14322 LIBS
="-lsecurity $LIBS"
14323 cat >conftest.
$ac_ext <<_ACEOF
14324 #line $LINENO "configure"
14325 #include "confdefs.h"
14327 /* Override any gcc2 internal prototype to avoid an error. */
14331 /* We use char because int might match the return type of a gcc2
14332 builtin and then its argument prototype would still apply. */
14333 char set_auth_parameters ();
14334 #ifdef F77_DUMMY_MAIN
14335 # ifdef __cplusplus
14338 int F77_DUMMY_MAIN() { return 1; }
14343 set_auth_parameters ();
14348 rm -f conftest.
$ac_objext conftest
$ac_exeext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14350 (eval $ac_link) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try
='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_lib_security_set_auth_parameters
=yes
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.
$ac_ext >&5
14364 ac_cv_lib_security_set_auth_parameters
=no
14366 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14367 LIBS
=$ac_check_lib_save_LIBS
14369 echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
14370 echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
14371 if test $ac_cv_lib_security_set_auth_parameters = yes; then
14372 cat >>confdefs.h
<<_ACEOF
14373 #define HAVE_LIBSECURITY 1
14376 LIBS
="-lsecurity $LIBS"
14381 for ac_func
in set_auth_parameters
14383 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14384 echo "$as_me:$LINENO: checking for $ac_func" >&5
14385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14386 if eval "test \"\${$as_ac_var+set}\" = set"; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14389 cat >conftest.
$ac_ext <<_ACEOF
14390 #line $LINENO "configure"
14391 #include "confdefs.h"
14392 /* System header to define __stub macros and hopefully few prototypes,
14393 which can conflict with char $ac_func (); below. */
14394 #include <assert.h>
14395 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14404 #ifdef F77_DUMMY_MAIN
14405 # ifdef __cplusplus
14408 int F77_DUMMY_MAIN() { return 1; }
14413 /* The GNU C library defines this for functions which it implements
14414 to always fail with ENOSYS. Some functions are actually named
14415 something starting with __ and the normal name is an alias. */
14416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14426 rm -f conftest.
$ac_objext conftest
$ac_exeext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14428 (eval $ac_link) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try
='test -s conftest$ac_exeext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 eval "$as_ac_var=yes"
14440 echo "$as_me: failed program was:" >&5
14441 cat conftest.
$ac_ext >&5
14442 eval "$as_ac_var=no"
14444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14448 if test `eval echo '${'$as_ac_var'}'` = yes; then
14449 cat >>confdefs.h
<<_ACEOF
14450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14461 for ac_func
in set_auth_parameters
14463 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14464 echo "$as_me:$LINENO: checking for $ac_func" >&5
14465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14466 if eval "test \"\${$as_ac_var+set}\" = set"; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 cat >conftest.
$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 /* System header to define __stub macros and hopefully few prototypes,
14473 which can conflict with char $ac_func (); below. */
14474 #include <assert.h>
14475 /* Override any gcc2 internal prototype to avoid an error. */
14479 /* We use char because int might match the return type of a gcc2
14480 builtin and then its argument prototype would still apply. */
14484 #ifdef F77_DUMMY_MAIN
14485 # ifdef __cplusplus
14488 int F77_DUMMY_MAIN() { return 1; }
14493 /* The GNU C library defines this for functions which it implements
14494 to always fail with ENOSYS. Some functions are actually named
14495 something starting with __ and the normal name is an alias. */
14496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14506 rm -f conftest.
$ac_objext conftest
$ac_exeext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); } &&
14512 { ac_try
='test -s conftest$ac_exeext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14518 eval "$as_ac_var=yes"
14520 echo "$as_me: failed program was:" >&5
14521 cat conftest.
$ac_ext >&5
14522 eval "$as_ac_var=no"
14524 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14528 if test `eval echo '${'$as_ac_var'}'` = yes; then
14529 cat >>confdefs.h
<<_ACEOF
14530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14537 echo "$as_me:$LINENO: checking for set_auth_parameters in -lsec" >&5
14538 echo $ECHO_N "checking for set_auth_parameters in -lsec... $ECHO_C" >&6
14539 if test "${ac_cv_lib_sec_set_auth_parameters+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 ac_check_lib_save_LIBS
=$LIBS
14544 cat >conftest.
$ac_ext <<_ACEOF
14545 #line $LINENO "configure"
14546 #include "confdefs.h"
14548 /* Override any gcc2 internal prototype to avoid an error. */
14552 /* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14554 char set_auth_parameters ();
14555 #ifdef F77_DUMMY_MAIN
14556 # ifdef __cplusplus
14559 int F77_DUMMY_MAIN() { return 1; }
14564 set_auth_parameters ();
14569 rm -f conftest.
$ac_objext conftest
$ac_exeext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14571 (eval $ac_link) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try
='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_cv_lib_sec_set_auth_parameters
=yes
14583 echo "$as_me: failed program was:" >&5
14584 cat conftest.
$ac_ext >&5
14585 ac_cv_lib_sec_set_auth_parameters
=no
14587 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14588 LIBS
=$ac_check_lib_save_LIBS
14590 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_set_auth_parameters" >&5
14591 echo "${ECHO_T}$ac_cv_lib_sec_set_auth_parameters" >&6
14592 if test $ac_cv_lib_sec_set_auth_parameters = yes; then
14593 cat >>confdefs.h
<<_ACEOF
14594 #define HAVE_LIBSEC 1
14602 for ac_func
in set_auth_parameters
14604 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14605 echo "$as_me:$LINENO: checking for $ac_func" >&5
14606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14607 if eval "test \"\${$as_ac_var+set}\" = set"; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 cat >conftest.
$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 #include "confdefs.h"
14613 /* System header to define __stub macros and hopefully few prototypes,
14614 which can conflict with char $ac_func (); below. */
14615 #include <assert.h>
14616 /* Override any gcc2 internal prototype to avoid an error. */
14620 /* We use char because int might match the return type of a gcc2
14621 builtin and then its argument prototype would still apply. */
14625 #ifdef F77_DUMMY_MAIN
14626 # ifdef __cplusplus
14629 int F77_DUMMY_MAIN() { return 1; }
14634 /* The GNU C library defines this for functions which it implements
14635 to always fail with ENOSYS. Some functions are actually named
14636 something starting with __ and the normal name is an alias. */
14637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14647 rm -f conftest.
$ac_objext conftest
$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try
='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 eval "$as_ac_var=yes"
14661 echo "$as_me: failed program was:" >&5
14662 cat conftest.
$ac_ext >&5
14663 eval "$as_ac_var=no"
14665 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14669 if test `eval echo '${'$as_ac_var'}'` = yes; then
14670 cat >>confdefs.h
<<_ACEOF
14671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681 # UnixWare 7.x has its getspnam in -lgen
14684 for ac_func
in getspnam
14686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687 echo "$as_me:$LINENO: checking for $ac_func" >&5
14688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14689 if eval "test \"\${$as_ac_var+set}\" = set"; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 cat >conftest.
$ac_ext <<_ACEOF
14693 #line $LINENO "configure"
14694 #include "confdefs.h"
14695 /* System header to define __stub macros and hopefully few prototypes,
14696 which can conflict with char $ac_func (); below. */
14697 #include <assert.h>
14698 /* Override any gcc2 internal prototype to avoid an error. */
14702 /* We use char because int might match the return type of a gcc2
14703 builtin and then its argument prototype would still apply. */
14707 #ifdef F77_DUMMY_MAIN
14708 # ifdef __cplusplus
14711 int F77_DUMMY_MAIN() { return 1; }
14716 /* The GNU C library defines this for functions which it implements
14717 to always fail with ENOSYS. Some functions are actually named
14718 something starting with __ and the normal name is an alias. */
14719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 rm -f conftest.
$ac_objext conftest
$ac_exeext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14731 (eval $ac_link) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); } &&
14735 { ac_try
='test -s conftest$ac_exeext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 eval "$as_ac_var=yes"
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.
$ac_ext >&5
14745 eval "$as_ac_var=no"
14747 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14751 if test `eval echo '${'$as_ac_var'}'` = yes; then
14752 cat >>confdefs.h
<<_ACEOF
14753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14761 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14762 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 ac_check_lib_save_LIBS
=$LIBS
14767 cat >conftest.
$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 #include "confdefs.h"
14771 /* Override any gcc2 internal prototype to avoid an error. */
14775 /* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14778 #ifdef F77_DUMMY_MAIN
14779 # ifdef __cplusplus
14782 int F77_DUMMY_MAIN() { return 1; }
14792 rm -f conftest.
$ac_objext conftest
$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794 (eval $ac_link) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try
='test -s conftest$ac_exeext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_lib_gen_getspnam
=yes
14806 echo "$as_me: failed program was:" >&5
14807 cat conftest.
$ac_ext >&5
14808 ac_cv_lib_gen_getspnam
=no
14810 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14811 LIBS
=$ac_check_lib_save_LIBS
14813 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14814 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14815 if test $ac_cv_lib_gen_getspnam = yes; then
14816 cat >>confdefs.h
<<_ACEOF
14817 #define HAVE_LIBGEN 1
14825 for ac_func
in getspnam
14827 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 echo "$as_me:$LINENO: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14830 if eval "test \"\${$as_ac_var+set}\" = set"; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 cat >conftest.
$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 #include "confdefs.h"
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below. */
14838 #include <assert.h>
14839 /* Override any gcc2 internal prototype to avoid an error. */
14843 /* We use char because int might match the return type of a gcc2
14844 builtin and then its argument prototype would still apply. */
14848 #ifdef F77_DUMMY_MAIN
14849 # ifdef __cplusplus
14852 int F77_DUMMY_MAIN() { return 1; }
14857 /* The GNU C library defines this for functions which it implements
14858 to always fail with ENOSYS. Some functions are actually named
14859 something starting with __ and the normal name is an alias. */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870 rm -f conftest.
$ac_objext conftest
$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try
='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 eval "$as_ac_var=yes"
14884 echo "$as_me: failed program was:" >&5
14885 cat conftest.
$ac_ext >&5
14886 eval "$as_ac_var=no"
14888 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14892 if test `eval echo '${'$as_ac_var'}'` = yes; then
14893 cat >>confdefs.h
<<_ACEOF
14894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14906 for ac_func
in getspnam
14908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14909 echo "$as_me:$LINENO: checking for $ac_func" >&5
14910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14911 if eval "test \"\${$as_ac_var+set}\" = set"; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 cat >conftest.
$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917 /* System header to define __stub macros and hopefully few prototypes,
14918 which can conflict with char $ac_func (); below. */
14919 #include <assert.h>
14920 /* Override any gcc2 internal prototype to avoid an error. */
14924 /* We use char because int might match the return type of a gcc2
14925 builtin and then its argument prototype would still apply. */
14929 #ifdef F77_DUMMY_MAIN
14930 # ifdef __cplusplus
14933 int F77_DUMMY_MAIN() { return 1; }
14938 /* The GNU C library defines this for functions which it implements
14939 to always fail with ENOSYS. Some functions are actually named
14940 something starting with __ and the normal name is an alias. */
14941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14951 rm -f conftest.
$ac_objext conftest
$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try
='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 eval "$as_ac_var=yes"
14965 echo "$as_me: failed program was:" >&5
14966 cat conftest.
$ac_ext >&5
14967 eval "$as_ac_var=no"
14969 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14973 if test `eval echo '${'$as_ac_var'}'` = yes; then
14974 cat >>confdefs.h
<<_ACEOF
14975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14982 echo "$as_me:$LINENO: checking for getspnam in -lsecurity" >&5
14983 echo $ECHO_N "checking for getspnam in -lsecurity... $ECHO_C" >&6
14984 if test "${ac_cv_lib_security_getspnam+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 ac_check_lib_save_LIBS
=$LIBS
14988 LIBS
="-lsecurity $LIBS"
14989 cat >conftest.
$ac_ext <<_ACEOF
14990 #line $LINENO "configure"
14991 #include "confdefs.h"
14993 /* Override any gcc2 internal prototype to avoid an error. */
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
15000 #ifdef F77_DUMMY_MAIN
15001 # ifdef __cplusplus
15004 int F77_DUMMY_MAIN() { return 1; }
15014 rm -f conftest.
$ac_objext conftest
$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016 (eval $ac_link) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try
='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_lib_security_getspnam
=yes
15028 echo "$as_me: failed program was:" >&5
15029 cat conftest.
$ac_ext >&5
15030 ac_cv_lib_security_getspnam
=no
15032 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15033 LIBS
=$ac_check_lib_save_LIBS
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getspnam" >&5
15036 echo "${ECHO_T}$ac_cv_lib_security_getspnam" >&6
15037 if test $ac_cv_lib_security_getspnam = yes; then
15038 cat >>confdefs.h
<<_ACEOF
15039 #define HAVE_LIBSECURITY 1
15042 LIBS
="-lsecurity $LIBS"
15047 for ac_func
in getspnam
15049 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15050 echo "$as_me:$LINENO: checking for $ac_func" >&5
15051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15052 if eval "test \"\${$as_ac_var+set}\" = set"; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 cat >conftest.
$ac_ext <<_ACEOF
15056 #line $LINENO "configure"
15057 #include "confdefs.h"
15058 /* System header to define __stub macros and hopefully few prototypes,
15059 which can conflict with char $ac_func (); below. */
15060 #include <assert.h>
15061 /* Override any gcc2 internal prototype to avoid an error. */
15065 /* We use char because int might match the return type of a gcc2
15066 builtin and then its argument prototype would still apply. */
15070 #ifdef F77_DUMMY_MAIN
15071 # ifdef __cplusplus
15074 int F77_DUMMY_MAIN() { return 1; }
15079 /* The GNU C library defines this for functions which it implements
15080 to always fail with ENOSYS. Some functions are actually named
15081 something starting with __ and the normal name is an alias. */
15082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15092 rm -f conftest.
$ac_objext conftest
$ac_exeext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try
='test -s conftest$ac_exeext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15104 eval "$as_ac_var=yes"
15106 echo "$as_me: failed program was:" >&5
15107 cat conftest.
$ac_ext >&5
15108 eval "$as_ac_var=no"
15110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15114 if test `eval echo '${'$as_ac_var'}'` = yes; then
15115 cat >>confdefs.h
<<_ACEOF
15116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15127 for ac_func
in getspnam
15129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15130 echo "$as_me:$LINENO: checking for $ac_func" >&5
15131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15132 if eval "test \"\${$as_ac_var+set}\" = set"; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.
$ac_ext <<_ACEOF
15136 #line $LINENO "configure"
15137 #include "confdefs.h"
15138 /* System header to define __stub macros and hopefully few prototypes,
15139 which can conflict with char $ac_func (); below. */
15140 #include <assert.h>
15141 /* Override any gcc2 internal prototype to avoid an error. */
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15150 #ifdef F77_DUMMY_MAIN
15151 # ifdef __cplusplus
15154 int F77_DUMMY_MAIN() { return 1; }
15159 /* The GNU C library defines this for functions which it implements
15160 to always fail with ENOSYS. Some functions are actually named
15161 something starting with __ and the normal name is an alias. */
15162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15172 rm -f conftest.
$ac_objext conftest
$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174 (eval $ac_link) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try
='test -s conftest$ac_exeext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 eval "$as_ac_var=yes"
15186 echo "$as_me: failed program was:" >&5
15187 cat conftest.
$ac_ext >&5
15188 eval "$as_ac_var=no"
15190 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15194 if test `eval echo '${'$as_ac_var'}'` = yes; then
15195 cat >>confdefs.h
<<_ACEOF
15196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15203 echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
15204 echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
15205 if test "${ac_cv_lib_sec_getspnam+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15208 ac_check_lib_save_LIBS
=$LIBS
15210 cat >conftest.
$ac_ext <<_ACEOF
15211 #line $LINENO "configure"
15212 #include "confdefs.h"
15214 /* Override any gcc2 internal prototype to avoid an error. */
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15221 #ifdef F77_DUMMY_MAIN
15222 # ifdef __cplusplus
15225 int F77_DUMMY_MAIN() { return 1; }
15235 rm -f conftest.
$ac_objext conftest
$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try
='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_cv_lib_sec_getspnam
=yes
15249 echo "$as_me: failed program was:" >&5
15250 cat conftest.
$ac_ext >&5
15251 ac_cv_lib_sec_getspnam
=no
15253 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15254 LIBS
=$ac_check_lib_save_LIBS
15256 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
15257 echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
15258 if test $ac_cv_lib_sec_getspnam = yes; then
15259 cat >>confdefs.h
<<_ACEOF
15260 #define HAVE_LIBSEC 1
15268 for ac_func
in getspnam
15270 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 cat >conftest.
$ac_ext <<_ACEOF
15277 #line $LINENO "configure"
15278 #include "confdefs.h"
15279 /* System header to define __stub macros and hopefully few prototypes,
15280 which can conflict with char $ac_func (); below. */
15281 #include <assert.h>
15282 /* Override any gcc2 internal prototype to avoid an error. */
15286 /* We use char because int might match the return type of a gcc2
15287 builtin and then its argument prototype would still apply. */
15291 #ifdef F77_DUMMY_MAIN
15292 # ifdef __cplusplus
15295 int F77_DUMMY_MAIN() { return 1; }
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15313 rm -f conftest.
$ac_objext conftest
$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } &&
15319 { ac_try
='test -s conftest$ac_exeext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 eval "$as_ac_var=yes"
15327 echo "$as_me: failed program was:" >&5
15328 cat conftest.
$ac_ext >&5
15329 eval "$as_ac_var=no"
15331 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15335 if test `eval echo '${'$as_ac_var'}'` = yes; then
15336 cat >>confdefs.h
<<_ACEOF
15337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15349 for ac_func
in bigcrypt
15351 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15352 echo "$as_me:$LINENO: checking for $ac_func" >&5
15353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15354 if eval "test \"\${$as_ac_var+set}\" = set"; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 cat >conftest.
$ac_ext <<_ACEOF
15358 #line $LINENO "configure"
15359 #include "confdefs.h"
15360 /* System header to define __stub macros and hopefully few prototypes,
15361 which can conflict with char $ac_func (); below. */
15362 #include <assert.h>
15363 /* Override any gcc2 internal prototype to avoid an error. */
15367 /* We use char because int might match the return type of a gcc2
15368 builtin and then its argument prototype would still apply. */
15372 #ifdef F77_DUMMY_MAIN
15373 # ifdef __cplusplus
15376 int F77_DUMMY_MAIN() { return 1; }
15381 /* The GNU C library defines this for functions which it implements
15382 to always fail with ENOSYS. Some functions are actually named
15383 something starting with __ and the normal name is an alias. */
15384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15394 rm -f conftest.
$ac_objext conftest
$ac_exeext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15396 (eval $ac_link) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try
='test -s conftest$ac_exeext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 eval "$as_ac_var=yes"
15408 echo "$as_me: failed program was:" >&5
15409 cat conftest.
$ac_ext >&5
15410 eval "$as_ac_var=no"
15412 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15416 if test `eval echo '${'$as_ac_var'}'` = yes; then
15417 cat >>confdefs.h
<<_ACEOF
15418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15425 echo "$as_me:$LINENO: checking for bigcrypt in -lsecurity" >&5
15426 echo $ECHO_N "checking for bigcrypt in -lsecurity... $ECHO_C" >&6
15427 if test "${ac_cv_lib_security_bigcrypt+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 ac_check_lib_save_LIBS
=$LIBS
15431 LIBS
="-lsecurity $LIBS"
15432 cat >conftest.
$ac_ext <<_ACEOF
15433 #line $LINENO "configure"
15434 #include "confdefs.h"
15436 /* Override any gcc2 internal prototype to avoid an error. */
15440 /* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15443 #ifdef F77_DUMMY_MAIN
15444 # ifdef __cplusplus
15447 int F77_DUMMY_MAIN() { return 1; }
15457 rm -f conftest.
$ac_objext conftest
$ac_exeext
15458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15459 (eval $ac_link) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
15463 { ac_try
='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15469 ac_cv_lib_security_bigcrypt
=yes
15471 echo "$as_me: failed program was:" >&5
15472 cat conftest.
$ac_ext >&5
15473 ac_cv_lib_security_bigcrypt
=no
15475 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15476 LIBS
=$ac_check_lib_save_LIBS
15478 echo "$as_me:$LINENO: result: $ac_cv_lib_security_bigcrypt" >&5
15479 echo "${ECHO_T}$ac_cv_lib_security_bigcrypt" >&6
15480 if test $ac_cv_lib_security_bigcrypt = yes; then
15481 cat >>confdefs.h
<<_ACEOF
15482 #define HAVE_LIBSECURITY 1
15485 LIBS
="-lsecurity $LIBS"
15490 for ac_func
in bigcrypt
15492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15493 echo "$as_me:$LINENO: checking for $ac_func" >&5
15494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15495 if eval "test \"\${$as_ac_var+set}\" = set"; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 cat >conftest.
$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 #include "confdefs.h"
15501 /* System header to define __stub macros and hopefully few prototypes,
15502 which can conflict with char $ac_func (); below. */
15503 #include <assert.h>
15504 /* Override any gcc2 internal prototype to avoid an error. */
15508 /* We use char because int might match the return type of a gcc2
15509 builtin and then its argument prototype would still apply. */
15513 #ifdef F77_DUMMY_MAIN
15514 # ifdef __cplusplus
15517 int F77_DUMMY_MAIN() { return 1; }
15522 /* The GNU C library defines this for functions which it implements
15523 to always fail with ENOSYS. Some functions are actually named
15524 something starting with __ and the normal name is an alias. */
15525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15535 rm -f conftest.
$ac_objext conftest
$ac_exeext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } &&
15541 { ac_try
='test -s conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 eval "$as_ac_var=yes"
15549 echo "$as_me: failed program was:" >&5
15550 cat conftest.
$ac_ext >&5
15551 eval "$as_ac_var=no"
15553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15557 if test `eval echo '${'$as_ac_var'}'` = yes; then
15558 cat >>confdefs.h
<<_ACEOF
15559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15570 for ac_func
in bigcrypt
15572 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15573 echo "$as_me:$LINENO: checking for $ac_func" >&5
15574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15575 if eval "test \"\${$as_ac_var+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 cat >conftest.
$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15580 #include "confdefs.h"
15581 /* System header to define __stub macros and hopefully few prototypes,
15582 which can conflict with char $ac_func (); below. */
15583 #include <assert.h>
15584 /* Override any gcc2 internal prototype to avoid an error. */
15588 /* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15593 #ifdef F77_DUMMY_MAIN
15594 # ifdef __cplusplus
15597 int F77_DUMMY_MAIN() { return 1; }
15602 /* The GNU C library defines this for functions which it implements
15603 to always fail with ENOSYS. Some functions are actually named
15604 something starting with __ and the normal name is an alias. */
15605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15615 rm -f conftest.
$ac_objext conftest
$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try
='test -s conftest$ac_exeext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 eval "$as_ac_var=yes"
15629 echo "$as_me: failed program was:" >&5
15630 cat conftest.
$ac_ext >&5
15631 eval "$as_ac_var=no"
15633 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15637 if test `eval echo '${'$as_ac_var'}'` = yes; then
15638 cat >>confdefs.h
<<_ACEOF
15639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15646 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15647 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
15648 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 ac_check_lib_save_LIBS
=$LIBS
15653 cat >conftest.
$ac_ext <<_ACEOF
15654 #line $LINENO "configure"
15655 #include "confdefs.h"
15657 /* Override any gcc2 internal prototype to avoid an error. */
15661 /* We use char because int might match the return type of a gcc2
15662 builtin and then its argument prototype would still apply. */
15664 #ifdef F77_DUMMY_MAIN
15665 # ifdef __cplusplus
15668 int F77_DUMMY_MAIN() { return 1; }
15678 rm -f conftest.
$ac_objext conftest
$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>&5
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
15684 { ac_try
='test -s conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_lib_sec_bigcrypt
=yes
15692 echo "$as_me: failed program was:" >&5
15693 cat conftest.
$ac_ext >&5
15694 ac_cv_lib_sec_bigcrypt
=no
15696 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15697 LIBS
=$ac_check_lib_save_LIBS
15699 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15700 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
15701 if test $ac_cv_lib_sec_bigcrypt = yes; then
15702 cat >>confdefs.h
<<_ACEOF
15703 #define HAVE_LIBSEC 1
15711 for ac_func
in bigcrypt
15713 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15714 echo "$as_me:$LINENO: checking for $ac_func" >&5
15715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15716 if eval "test \"\${$as_ac_var+set}\" = set"; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 cat >conftest.
$ac_ext <<_ACEOF
15720 #line $LINENO "configure"
15721 #include "confdefs.h"
15722 /* System header to define __stub macros and hopefully few prototypes,
15723 which can conflict with char $ac_func (); below. */
15724 #include <assert.h>
15725 /* Override any gcc2 internal prototype to avoid an error. */
15729 /* We use char because int might match the return type of a gcc2
15730 builtin and then its argument prototype would still apply. */
15734 #ifdef F77_DUMMY_MAIN
15735 # ifdef __cplusplus
15738 int F77_DUMMY_MAIN() { return 1; }
15743 /* The GNU C library defines this for functions which it implements
15744 to always fail with ENOSYS. Some functions are actually named
15745 something starting with __ and the normal name is an alias. */
15746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15756 rm -f conftest.
$ac_objext conftest
$ac_exeext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758 (eval $ac_link) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try
='test -s conftest$ac_exeext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 eval "$as_ac_var=yes"
15770 echo "$as_me: failed program was:" >&5
15771 cat conftest.
$ac_ext >&5
15772 eval "$as_ac_var=no"
15774 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15778 if test `eval echo '${'$as_ac_var'}'` = yes; then
15779 cat >>confdefs.h
<<_ACEOF
15780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15792 for ac_func
in getprpwnam
15794 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15795 echo "$as_me:$LINENO: checking for $ac_func" >&5
15796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15797 if eval "test \"\${$as_ac_var+set}\" = set"; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 cat >conftest.
$ac_ext <<_ACEOF
15801 #line $LINENO "configure"
15802 #include "confdefs.h"
15803 /* System header to define __stub macros and hopefully few prototypes,
15804 which can conflict with char $ac_func (); below. */
15805 #include <assert.h>
15806 /* Override any gcc2 internal prototype to avoid an error. */
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15815 #ifdef F77_DUMMY_MAIN
15816 # ifdef __cplusplus
15819 int F77_DUMMY_MAIN() { return 1; }
15824 /* The GNU C library defines this for functions which it implements
15825 to always fail with ENOSYS. Some functions are actually named
15826 something starting with __ and the normal name is an alias. */
15827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837 rm -f conftest.
$ac_objext conftest
$ac_exeext
15838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15839 (eval $ac_link) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); } &&
15843 { ac_try
='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 eval "$as_ac_var=yes"
15851 echo "$as_me: failed program was:" >&5
15852 cat conftest.
$ac_ext >&5
15853 eval "$as_ac_var=no"
15855 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h
<<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15868 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15869 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
15870 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 ac_check_lib_save_LIBS
=$LIBS
15874 LIBS
="-lsecurity $LIBS"
15875 cat >conftest.
$ac_ext <<_ACEOF
15876 #line $LINENO "configure"
15877 #include "confdefs.h"
15879 /* Override any gcc2 internal prototype to avoid an error. */
15883 /* We use char because int might match the return type of a gcc2
15884 builtin and then its argument prototype would still apply. */
15885 char getprpwnam ();
15886 #ifdef F77_DUMMY_MAIN
15887 # ifdef __cplusplus
15890 int F77_DUMMY_MAIN() { return 1; }
15900 rm -f conftest.
$ac_objext conftest
$ac_exeext
15901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15902 (eval $ac_link) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try
='test -s conftest$ac_exeext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_cv_lib_security_getprpwnam
=yes
15914 echo "$as_me: failed program was:" >&5
15915 cat conftest.
$ac_ext >&5
15916 ac_cv_lib_security_getprpwnam
=no
15918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15919 LIBS
=$ac_check_lib_save_LIBS
15921 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15922 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
15923 if test $ac_cv_lib_security_getprpwnam = yes; then
15924 cat >>confdefs.h
<<_ACEOF
15925 #define HAVE_LIBSECURITY 1
15928 LIBS
="-lsecurity $LIBS"
15933 for ac_func
in getprpwnam
15935 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15936 echo "$as_me:$LINENO: checking for $ac_func" >&5
15937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_var+set}\" = set"; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 cat >conftest.
$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15943 #include "confdefs.h"
15944 /* System header to define __stub macros and hopefully few prototypes,
15945 which can conflict with char $ac_func (); below. */
15946 #include <assert.h>
15947 /* Override any gcc2 internal prototype to avoid an error. */
15951 /* We use char because int might match the return type of a gcc2
15952 builtin and then its argument prototype would still apply. */
15956 #ifdef F77_DUMMY_MAIN
15957 # ifdef __cplusplus
15960 int F77_DUMMY_MAIN() { return 1; }
15965 /* The GNU C library defines this for functions which it implements
15966 to always fail with ENOSYS. Some functions are actually named
15967 something starting with __ and the normal name is an alias. */
15968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15978 rm -f conftest.
$ac_objext conftest
$ac_exeext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try
='test -s conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 eval "$as_ac_var=yes"
15992 echo "$as_me: failed program was:" >&5
15993 cat conftest.
$ac_ext >&5
15994 eval "$as_ac_var=no"
15996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16000 if test `eval echo '${'$as_ac_var'}'` = yes; then
16001 cat >>confdefs.h
<<_ACEOF
16002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16013 for ac_func
in getprpwnam
16015 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16016 echo "$as_me:$LINENO: checking for $ac_func" >&5
16017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16018 if eval "test \"\${$as_ac_var+set}\" = set"; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 cat >conftest.
$ac_ext <<_ACEOF
16022 #line $LINENO "configure"
16023 #include "confdefs.h"
16024 /* System header to define __stub macros and hopefully few prototypes,
16025 which can conflict with char $ac_func (); below. */
16026 #include <assert.h>
16027 /* Override any gcc2 internal prototype to avoid an error. */
16031 /* We use char because int might match the return type of a gcc2
16032 builtin and then its argument prototype would still apply. */
16036 #ifdef F77_DUMMY_MAIN
16037 # ifdef __cplusplus
16040 int F77_DUMMY_MAIN() { return 1; }
16045 /* The GNU C library defines this for functions which it implements
16046 to always fail with ENOSYS. Some functions are actually named
16047 something starting with __ and the normal name is an alias. */
16048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16058 rm -f conftest.
$ac_objext conftest
$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try
='test -s conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 eval "$as_ac_var=yes"
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.
$ac_ext >&5
16074 eval "$as_ac_var=no"
16076 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16080 if test `eval echo '${'$as_ac_var'}'` = yes; then
16081 cat >>confdefs.h
<<_ACEOF
16082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16089 echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
16090 echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
16091 if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 ac_check_lib_save_LIBS
=$LIBS
16096 cat >conftest.
$ac_ext <<_ACEOF
16097 #line $LINENO "configure"
16098 #include "confdefs.h"
16100 /* Override any gcc2 internal prototype to avoid an error. */
16104 /* We use char because int might match the return type of a gcc2
16105 builtin and then its argument prototype would still apply. */
16106 char getprpwnam ();
16107 #ifdef F77_DUMMY_MAIN
16108 # ifdef __cplusplus
16111 int F77_DUMMY_MAIN() { return 1; }
16121 rm -f conftest.
$ac_objext conftest
$ac_exeext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16123 (eval $ac_link) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } &&
16127 { ac_try
='test -s conftest$ac_exeext'
16128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16129 (eval $ac_try) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_lib_sec_getprpwnam
=yes
16135 echo "$as_me: failed program was:" >&5
16136 cat conftest.
$ac_ext >&5
16137 ac_cv_lib_sec_getprpwnam
=no
16139 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16140 LIBS
=$ac_check_lib_save_LIBS
16142 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
16143 echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
16144 if test $ac_cv_lib_sec_getprpwnam = yes; then
16145 cat >>confdefs.h
<<_ACEOF
16146 #define HAVE_LIBSEC 1
16154 for ac_func
in getprpwnam
16156 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16157 echo "$as_me:$LINENO: checking for $ac_func" >&5
16158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16159 if eval "test \"\${$as_ac_var+set}\" = set"; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 cat >conftest.
$ac_ext <<_ACEOF
16163 #line $LINENO "configure"
16164 #include "confdefs.h"
16165 /* System header to define __stub macros and hopefully few prototypes,
16166 which can conflict with char $ac_func (); below. */
16167 #include <assert.h>
16168 /* Override any gcc2 internal prototype to avoid an error. */
16172 /* We use char because int might match the return type of a gcc2
16173 builtin and then its argument prototype would still apply. */
16177 #ifdef F77_DUMMY_MAIN
16178 # ifdef __cplusplus
16181 int F77_DUMMY_MAIN() { return 1; }
16186 /* The GNU C library defines this for functions which it implements
16187 to always fail with ENOSYS. Some functions are actually named
16188 something starting with __ and the normal name is an alias. */
16189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16199 rm -f conftest.
$ac_objext conftest
$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201 (eval $ac_link) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try
='test -s conftest$ac_exeext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 eval "$as_ac_var=yes"
16213 echo "$as_me: failed program was:" >&5
16214 cat conftest.
$ac_ext >&5
16215 eval "$as_ac_var=no"
16217 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16221 if test `eval echo '${'$as_ac_var'}'` = yes; then
16222 cat >>confdefs.h
<<_ACEOF
16223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16233 # this bit needs to be modified for each OS that is suported by
16234 # smbwrapper. You need to specify how to created a shared library and
16235 # how to compile C code to produce PIC object files
16237 # these are the defaults, good for lots of systems
16239 LDSHFLAGS
="-shared"
16246 # Assume non-shared by default and override below
16248 echo "$as_me:$LINENO: checking ability to build shared libraries" >&5
16249 echo $ECHO_N "checking ability to build shared libraries... $ECHO_C" >&6
16251 # and these are for particular systems
16254 cat >>confdefs.h
<<\_ACEOF
16259 LDSHFLAGS
="-shared"
16260 DYNEXP
="-Wl,--export-dynamic"
16262 SONAMEFLAG
="-Wl,-soname="
16263 cat >>confdefs.h
<<\_ACEOF
16264 #define STAT_ST_BLOCKSIZE 512
16269 cat >>confdefs.h
<<\_ACEOF
16276 if test "${GCC}" = "yes"; then
16278 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
16283 ## ${CFLAGS} added for building 64-bit shared
16284 ## libs using Sun's Compiler
16285 LDSHFLAGS
="-G \${CFLAGS}"
16290 cat >>confdefs.h
<<\_ACEOF
16291 #define STAT_ST_BLOCKSIZE 512
16296 cat >>confdefs.h
<<\_ACEOF
16302 SONAMEFLAG
="-Wl,-h,"
16303 PICFLAG
="-KPIC" # Is this correct for SunOS
16304 cat >>confdefs.h
<<\_ACEOF
16305 #define STAT_ST_BLOCKSIZE 512
16309 *freebsd
*) BLDSHARED
="true"
16310 LDSHFLAGS
="-shared"
16311 DYNEXP
="-Wl,--export-dynamic"
16312 SONAMEFLAG
="-Wl,-soname,"
16313 PICFLAG
="-fPIC -DPIC"
16315 cat >>confdefs.h
<<\_ACEOF
16316 #define STAT_ST_BLOCKSIZE 512
16320 *openbsd
*) BLDSHARED
="true"
16321 LDSHFLAGS
="-shared"
16322 DYNEXP
="-Wl,-Bdynamic"
16323 SONAMEFLAG
="-Wl,-soname,"
16326 cat >>confdefs.h
<<\_ACEOF
16327 #define STAT_ST_BLOCKSIZE 512
16332 cat >>confdefs.h
<<\_ACEOF
16338 cat >>confdefs.h
<<\_ACEOF
16344 ATTEMPT_WRAP32_BUILD
=yes
16346 LDSHFLAGS
="-set_version sgi1.0 -shared"
16347 SONAMEFLAG
="-soname "
16349 if test "${GCC}" = "yes"; then
16355 cat >>confdefs.h
<<\_ACEOF
16356 #define STAT_ST_BLOCKSIZE 512
16361 cat >>confdefs.h
<<\_ACEOF
16366 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
16367 DYNEXP
="-Wl,-brtl,-bexpall"
16369 if test "${GCC}" != "yes"; then
16370 ## for funky AIX compiler using strncpy()
16371 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
16375 cat >>confdefs.h
<<\_ACEOF
16376 #define STAT_ST_BLOCKSIZE DEV_BSIZE
16381 cat >>confdefs.h
<<\_ACEOF
16386 # Use special PIC flags for the native HP-UX compiler.
16387 if test $ac_cv_prog_cc_Ae = yes; then
16390 LDSHFLAGS
="-B symbolic -b -z"
16396 cat >>confdefs.h
<<\_ACEOF
16397 #define STAT_ST_BLOCKSIZE 8192
16402 cat >>confdefs.h
<<\_ACEOF
16406 cat >>confdefs.h
<<\_ACEOF
16407 #define STAT_ST_BLOCKSIZE 512
16412 cat >>confdefs.h
<<\_ACEOF
16417 LDSHFLAGS
="-shared"
16418 SONAMEFLAG
="-Wl,-soname,"
16420 cat >>confdefs.h
<<\_ACEOF
16421 #define STAT_ST_BLOCKSIZE 512
16426 cat >>confdefs.h
<<\_ACEOF
16430 cat >>confdefs.h
<<\_ACEOF
16431 #define STAT_ST_BLOCKSIZE 512
16436 cat >>confdefs.h
<<\_ACEOF
16441 LDSHFLAGS
="-shared"
16442 SONAMEFLAG
="-Wl,-soname,"
16444 cat >>confdefs.h
<<\_ACEOF
16445 #define STAT_ST_BLOCKSIZE 512
16450 cat >>confdefs.h
<<\_ACEOF
16454 cat >>confdefs.h
<<\_ACEOF
16455 #define STAT_ST_BLOCKSIZE 512
16459 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
16460 set dummy
groff; ac_word
=$2
16461 echo "$as_me:$LINENO: checking for $ac_word" >&5
16462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16463 if test "${ac_cv_prog_ROFF+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 if test -n "$ROFF"; then
16467 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
16469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16470 for as_dir
in $PATH
16473 test -z "$as_dir" && as_dir
=.
16474 for ac_exec_ext
in '' $ac_executable_extensions; do
16475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16476 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
16477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 ROFF
=$ac_cv_prog_ROFF
16486 if test -n "$ROFF"; then
16487 echo "$as_me:$LINENO: result: $ROFF" >&5
16488 echo "${ECHO_T}$ROFF" >&6
16490 echo "$as_me:$LINENO: result: no" >&5
16491 echo "${ECHO_T}no" >&6
16494 cat >>confdefs.h
<<\_ACEOF
16495 #define STAT_ST_BLOCKSIZE 512
16500 cat >>confdefs.h
<<\_ACEOF
16505 *-univel-*) if test "$GCC" != yes ; then
16507 cat >>confdefs.h
<<\_ACEOF
16508 #define HAVE_MEMSET 1
16516 cat >>confdefs.h
<<\_ACEOF
16517 #define RELIANTUNIX 1
16521 cat >>confdefs.h
<<\_ACEOF
16522 #define STAT_ST_BLOCKSIZE 512
16528 cat >>confdefs.h
<<\_ACEOF
16532 if test "$GCC" != yes ; then
16534 cat >>confdefs.h
<<\_ACEOF
16535 #define HAVE_MEMSET 1
16540 cat >>confdefs.h
<<\_ACEOF
16541 #define STAT_ST_BLOCKSIZE 512
16546 cat >>confdefs.h
<<\_ACEOF
16547 #define STAT_ST_BLOCKSIZE 512
16553 echo "$as_me:$LINENO: result: $BLDSHARED" >&5
16554 echo "${ECHO_T}$BLDSHARED" >&6
16555 echo "$as_me:$LINENO: checking linker flags for shared libraries" >&5
16556 echo $ECHO_N "checking linker flags for shared libraries... $ECHO_C" >&6
16557 echo "$as_me:$LINENO: result: $LDSHFLAGS" >&5
16558 echo "${ECHO_T}$LDSHFLAGS" >&6
16559 echo "$as_me:$LINENO: checking compiler flags for position-independent code" >&5
16560 echo $ECHO_N "checking compiler flags for position-independent code... $ECHO_C" >&6
16561 echo "$as_me:$LINENO: result: $PICFLAGS" >&5
16562 echo "${ECHO_T}$PICFLAGS" >&6
16564 #######################################################
16565 # test whether building a shared library actually works
16566 if test $BLDSHARED = true
; then
16567 echo "$as_me:$LINENO: checking whether building shared libraries actually works" >&5
16568 echo $ECHO_N "checking whether building shared libraries actually works... $ECHO_C" >&6
16569 if test "${ac_cv_shlib_works+set}" = set; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 ac_cv_shlib_works
=no
16574 # try building a trivial shared library
16575 if test "$PICSUFFIX" = "po"; then
16576 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
16577 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
16578 ac_cv_shlib_works
=yes
16580 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.
$PICSUFFIX ${srcdir-.}/tests
/shlib.c
&&
16581 mv shlib.
$PICSUFFIX shlib.po
&&
16582 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
16583 ac_cv_shlib_works
=yes
16585 rm -f shlib.so shlib.po
16588 echo "$as_me:$LINENO: result: $ac_cv_shlib_works" >&5
16589 echo "${ECHO_T}$ac_cv_shlib_works" >&6
16590 if test $ac_cv_shlib_works = no
; then
16595 # this updates our target list if we can build shared libs
16596 if test $BLDSHARED = true
; then
16597 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
16599 LIBSMBCLIENT_SHARED
=
16604 echo "$as_me:$LINENO: checking for long long" >&5
16605 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16606 if test "${samba_cv_have_longlong+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 if test "$cross_compiling" = yes; then
16611 samba_cv_have_longlong
=cross
16613 cat >conftest.
$ac_ext <<_ACEOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16617 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
16619 rm -f conftest
$ac_exeext
16620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16621 (eval $ac_link) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_have_longlong
=yes
16632 echo "$as_me: program exited with status $ac_status" >&5
16633 echo "$as_me: failed program was:" >&5
16634 cat conftest.
$ac_ext >&5
16635 ( exit $ac_status )
16636 samba_cv_have_longlong
=no
16638 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16641 echo "$as_me:$LINENO: result: $samba_cv_have_longlong" >&5
16642 echo "${ECHO_T}$samba_cv_have_longlong" >&6
16643 if test x
"$samba_cv_have_longlong" = x
"yes"; then
16645 cat >>confdefs.h
<<\_ACEOF
16646 #define HAVE_LONGLONG 1
16652 # Check if the compiler supports the LL prefix on long long integers.
16655 echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
16656 echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
16657 if test "${samba_cv_compiler_supports_ll+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 cat >conftest.
$ac_ext <<_ACEOF
16662 #line $LINENO "configure"
16663 #include "confdefs.h"
16665 #ifdef F77_DUMMY_MAIN
16666 # ifdef __cplusplus
16669 int F77_DUMMY_MAIN() { return 1; }
16674 long long i = 0x8000000000LL
16679 rm -f conftest.
$ac_objext
16680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16681 (eval $ac_compile) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try
='test -s conftest.$ac_objext'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; }; then
16691 samba_cv_compiler_supports_ll
=yes
16693 echo "$as_me: failed program was:" >&5
16694 cat conftest.
$ac_ext >&5
16695 samba_cv_compiler_supports_ll
=no
16697 rm -f conftest.
$ac_objext conftest.
$ac_ext
16699 echo "$as_me:$LINENO: result: $samba_cv_compiler_supports_ll" >&5
16700 echo "${ECHO_T}$samba_cv_compiler_supports_ll" >&6
16701 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
16703 cat >>confdefs.h
<<\_ACEOF
16704 #define COMPILER_SUPPORTS_LL 1
16710 echo "$as_me:$LINENO: checking for 64 bit off_t" >&5
16711 echo $ECHO_N "checking for 64 bit off_t... $ECHO_C" >&6
16712 if test "${samba_cv_SIZEOF_OFF_T+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 if test "$cross_compiling" = yes; then
16717 samba_cv_SIZEOF_OFF_T
=cross
16719 cat >conftest.
$ac_ext <<_ACEOF
16720 #line $LINENO "configure"
16721 #include "confdefs.h"
16723 #include <sys/stat.h>
16724 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
16726 rm -f conftest
$ac_exeext
16727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16728 (eval $ac_link) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16737 samba_cv_SIZEOF_OFF_T
=yes
16739 echo "$as_me: program exited with status $ac_status" >&5
16740 echo "$as_me: failed program was:" >&5
16741 cat conftest.
$ac_ext >&5
16742 ( exit $ac_status )
16743 samba_cv_SIZEOF_OFF_T
=no
16745 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16748 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_OFF_T" >&5
16749 echo "${ECHO_T}$samba_cv_SIZEOF_OFF_T" >&6
16750 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
16752 cat >>confdefs.h
<<\_ACEOF
16753 #define SIZEOF_OFF_T 8
16758 echo "$as_me:$LINENO: checking for off64_t" >&5
16759 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
16760 if test "${samba_cv_HAVE_OFF64_T+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 if test "$cross_compiling" = yes; then
16765 samba_cv_HAVE_OFF64_T
=cross
16767 cat >conftest.
$ac_ext <<_ACEOF
16768 #line $LINENO "configure"
16769 #include "confdefs.h"
16771 #if defined(HAVE_UNISTD_H)
16772 #include <unistd.h>
16775 #include <sys/stat.h>
16776 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16778 rm -f conftest
$ac_exeext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780 (eval $ac_link) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785 (eval $ac_try) 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 samba_cv_HAVE_OFF64_T
=yes
16791 echo "$as_me: program exited with status $ac_status" >&5
16792 echo "$as_me: failed program was:" >&5
16793 cat conftest.
$ac_ext >&5
16794 ( exit $ac_status )
16795 samba_cv_HAVE_OFF64_T
=no
16797 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16800 echo "$as_me:$LINENO: result: $samba_cv_HAVE_OFF64_T" >&5
16801 echo "${ECHO_T}$samba_cv_HAVE_OFF64_T" >&6
16802 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
16804 cat >>confdefs.h
<<\_ACEOF
16805 #define HAVE_OFF64_T 1
16810 echo "$as_me:$LINENO: checking for 64 bit ino_t" >&5
16811 echo $ECHO_N "checking for 64 bit ino_t... $ECHO_C" >&6
16812 if test "${samba_cv_SIZEOF_INO_T+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 if test "$cross_compiling" = yes; then
16817 samba_cv_SIZEOF_INO_T
=cross
16819 cat >conftest.
$ac_ext <<_ACEOF
16820 #line $LINENO "configure"
16821 #include "confdefs.h"
16823 #include <sys/stat.h>
16824 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
16826 rm -f conftest
$ac_exeext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16828 (eval $ac_link) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 samba_cv_SIZEOF_INO_T
=yes
16839 echo "$as_me: program exited with status $ac_status" >&5
16840 echo "$as_me: failed program was:" >&5
16841 cat conftest.
$ac_ext >&5
16842 ( exit $ac_status )
16843 samba_cv_SIZEOF_INO_T
=no
16845 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16848 echo "$as_me:$LINENO: result: $samba_cv_SIZEOF_INO_T" >&5
16849 echo "${ECHO_T}$samba_cv_SIZEOF_INO_T" >&6
16850 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
16852 cat >>confdefs.h
<<\_ACEOF
16853 #define SIZEOF_INO_T 8
16858 echo "$as_me:$LINENO: checking for ino64_t" >&5
16859 echo $ECHO_N "checking for ino64_t... $ECHO_C" >&6
16860 if test "${samba_cv_HAVE_INO64_T+set}" = set; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 if test "$cross_compiling" = yes; then
16865 samba_cv_HAVE_INO64_T
=cross
16867 cat >conftest.
$ac_ext <<_ACEOF
16868 #line $LINENO "configure"
16869 #include "confdefs.h"
16871 #if defined(HAVE_UNISTD_H)
16872 #include <unistd.h>
16875 #include <sys/stat.h>
16876 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16878 rm -f conftest
$ac_exeext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 samba_cv_HAVE_INO64_T
=yes
16891 echo "$as_me: program exited with status $ac_status" >&5
16892 echo "$as_me: failed program was:" >&5
16893 cat conftest.
$ac_ext >&5
16894 ( exit $ac_status )
16895 samba_cv_HAVE_INO64_T
=no
16897 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16900 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INO64_T" >&5
16901 echo "${ECHO_T}$samba_cv_HAVE_INO64_T" >&6
16902 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
16904 cat >>confdefs.h
<<\_ACEOF
16905 #define HAVE_INO64_T 1
16910 echo "$as_me:$LINENO: checking for dev64_t" >&5
16911 echo $ECHO_N "checking for dev64_t... $ECHO_C" >&6
16912 if test "${samba_cv_HAVE_DEV64_T+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 if test "$cross_compiling" = yes; then
16917 samba_cv_HAVE_DEV64_T
=cross
16919 cat >conftest.
$ac_ext <<_ACEOF
16920 #line $LINENO "configure"
16921 #include "confdefs.h"
16923 #if defined(HAVE_UNISTD_H)
16924 #include <unistd.h>
16927 #include <sys/stat.h>
16928 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
16930 rm -f conftest
$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 samba_cv_HAVE_DEV64_T
=yes
16943 echo "$as_me: program exited with status $ac_status" >&5
16944 echo "$as_me: failed program was:" >&5
16945 cat conftest.
$ac_ext >&5
16946 ( exit $ac_status )
16947 samba_cv_HAVE_DEV64_T
=no
16949 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16952 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEV64_T" >&5
16953 echo "${ECHO_T}$samba_cv_HAVE_DEV64_T" >&6
16954 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
16956 cat >>confdefs.h
<<\_ACEOF
16957 #define HAVE_DEV64_T 1
16962 echo "$as_me:$LINENO: checking for struct dirent64" >&5
16963 echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6
16964 if test "${samba_cv_HAVE_STRUCT_DIRENT64+set}" = set; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 cat >conftest.
$ac_ext <<_ACEOF
16969 #line $LINENO "configure"
16970 #include "confdefs.h"
16972 #if defined(HAVE_UNISTD_H)
16973 #include <unistd.h>
16975 #include <sys/types.h>
16976 #include <dirent.h>
16977 #ifdef F77_DUMMY_MAIN
16978 # ifdef __cplusplus
16981 int F77_DUMMY_MAIN() { return 1; }
16986 struct dirent64 de;
16991 rm -f conftest.
$ac_objext
16992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16993 (eval $ac_compile) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
16997 { ac_try
='test -s conftest.$ac_objext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 samba_cv_HAVE_STRUCT_DIRENT64
=yes
17005 echo "$as_me: failed program was:" >&5
17006 cat conftest.
$ac_ext >&5
17007 samba_cv_HAVE_STRUCT_DIRENT64
=no
17009 rm -f conftest.
$ac_objext conftest.
$ac_ext
17011 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_DIRENT64" >&5
17012 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_DIRENT64" >&6
17013 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
17015 cat >>confdefs.h
<<\_ACEOF
17016 #define HAVE_STRUCT_DIRENT64 1
17021 echo "$as_me:$LINENO: checking for major macro" >&5
17022 echo $ECHO_N "checking for major macro... $ECHO_C" >&6
17023 if test "${samba_cv_HAVE_DEVICE_MAJOR_FN+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 if test "$cross_compiling" = yes; then
17028 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
17030 cat >conftest.
$ac_ext <<_ACEOF
17031 #line $LINENO "configure"
17032 #include "confdefs.h"
17034 #if defined(HAVE_UNISTD_H)
17035 #include <unistd.h>
17037 #include <sys/types.h>
17038 main() { dev_t dev; int i = major(dev); return 0; }
17040 rm -f conftest
$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
17053 echo "$as_me: program exited with status $ac_status" >&5
17054 echo "$as_me: failed program was:" >&5
17055 cat conftest.
$ac_ext >&5
17056 ( exit $ac_status )
17057 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
17059 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17062 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MAJOR_FN" >&5
17063 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MAJOR_FN" >&6
17064 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
17066 cat >>confdefs.h
<<\_ACEOF
17067 #define HAVE_DEVICE_MAJOR_FN 1
17072 echo "$as_me:$LINENO: checking for minor macro" >&5
17073 echo $ECHO_N "checking for minor macro... $ECHO_C" >&6
17074 if test "${samba_cv_HAVE_DEVICE_MINOR_FN+set}" = set; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 if test "$cross_compiling" = yes; then
17079 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
17081 cat >conftest.
$ac_ext <<_ACEOF
17082 #line $LINENO "configure"
17083 #include "confdefs.h"
17085 #if defined(HAVE_UNISTD_H)
17086 #include <unistd.h>
17088 #include <sys/types.h>
17089 main() { dev_t dev; int i = minor(dev); return 0; }
17091 rm -f conftest
$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
17104 echo "$as_me: program exited with status $ac_status" >&5
17105 echo "$as_me: failed program was:" >&5
17106 cat conftest.
$ac_ext >&5
17107 ( exit $ac_status )
17108 samba_cv_HAVE_DEVICE_MINOR_FN
=no
17110 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17113 echo "$as_me:$LINENO: result: $samba_cv_HAVE_DEVICE_MINOR_FN" >&5
17114 echo "${ECHO_T}$samba_cv_HAVE_DEVICE_MINOR_FN" >&6
17115 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
17117 cat >>confdefs.h
<<\_ACEOF
17118 #define HAVE_DEVICE_MINOR_FN 1
17123 echo "$as_me:$LINENO: checking for unsigned char" >&5
17124 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6
17125 if test "${samba_cv_HAVE_UNSIGNED_CHAR+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 if test "$cross_compiling" = yes; then
17130 samba_cv_HAVE_UNSIGNED_CHAR
=cross
17132 cat >conftest.
$ac_ext <<_ACEOF
17133 #line $LINENO "configure"
17134 #include "confdefs.h"
17136 main() { char c; c=250; exit((c > 0)?0:1); }
17138 rm -f conftest
$ac_exeext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17140 (eval $ac_link) 2>&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 samba_cv_HAVE_UNSIGNED_CHAR
=yes
17151 echo "$as_me: program exited with status $ac_status" >&5
17152 echo "$as_me: failed program was:" >&5
17153 cat conftest.
$ac_ext >&5
17154 ( exit $ac_status )
17155 samba_cv_HAVE_UNSIGNED_CHAR
=no
17157 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17160 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UNSIGNED_CHAR" >&5
17161 echo "${ECHO_T}$samba_cv_HAVE_UNSIGNED_CHAR" >&6
17162 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
17164 cat >>confdefs.h
<<\_ACEOF
17165 #define HAVE_UNSIGNED_CHAR 1
17170 echo "$as_me:$LINENO: checking for sin_len in sock" >&5
17171 echo $ECHO_N "checking for sin_len in sock... $ECHO_C" >&6
17172 if test "${samba_cv_HAVE_SOCK_SIN_LEN+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 cat >conftest.
$ac_ext <<_ACEOF
17177 #line $LINENO "configure"
17178 #include "confdefs.h"
17179 #include <sys/types.h>
17180 #include <sys/socket.h>
17181 #include <netinet/in.h>
17182 #ifdef F77_DUMMY_MAIN
17183 # ifdef __cplusplus
17186 int F77_DUMMY_MAIN() { return 1; }
17191 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
17196 rm -f conftest.
$ac_objext
17197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17198 (eval $ac_compile) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try
='test -s conftest.$ac_objext'
17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 samba_cv_HAVE_SOCK_SIN_LEN
=yes
17210 echo "$as_me: failed program was:" >&5
17211 cat conftest.
$ac_ext >&5
17212 samba_cv_HAVE_SOCK_SIN_LEN
=no
17214 rm -f conftest.
$ac_objext conftest.
$ac_ext
17216 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SOCK_SIN_LEN" >&5
17217 echo "${ECHO_T}$samba_cv_HAVE_SOCK_SIN_LEN" >&6
17218 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
17220 cat >>confdefs.h
<<\_ACEOF
17221 #define HAVE_SOCK_SIN_LEN 1
17226 echo "$as_me:$LINENO: checking whether seekdir returns void" >&5
17227 echo $ECHO_N "checking whether seekdir returns void... $ECHO_C" >&6
17228 if test "${samba_cv_SEEKDIR_RETURNS_VOID+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 cat >conftest.
$ac_ext <<_ACEOF
17233 #line $LINENO "configure"
17234 #include "confdefs.h"
17235 #include <sys/types.h>
17236 #include <dirent.h>
17237 void seekdir(DIR *d, long loc) { return; }
17238 #ifdef F77_DUMMY_MAIN
17239 # ifdef __cplusplus
17242 int F77_DUMMY_MAIN() { return 1; }
17252 rm -f conftest.
$ac_objext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17254 (eval $ac_compile) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try
='test -s conftest.$ac_objext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 samba_cv_SEEKDIR_RETURNS_VOID
=yes
17266 echo "$as_me: failed program was:" >&5
17267 cat conftest.
$ac_ext >&5
17268 samba_cv_SEEKDIR_RETURNS_VOID
=no
17270 rm -f conftest.
$ac_objext conftest.
$ac_ext
17272 echo "$as_me:$LINENO: result: $samba_cv_SEEKDIR_RETURNS_VOID" >&5
17273 echo "${ECHO_T}$samba_cv_SEEKDIR_RETURNS_VOID" >&6
17274 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
17276 cat >>confdefs.h
<<\_ACEOF
17277 #define SEEKDIR_RETURNS_VOID 1
17282 echo "$as_me:$LINENO: checking for __FUNCTION__ macro" >&5
17283 echo $ECHO_N "checking for __FUNCTION__ macro... $ECHO_C" >&6
17284 if test "${samba_cv_HAVE_FUNCTION_MACRO+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 cat >conftest.
$ac_ext <<_ACEOF
17289 #line $LINENO "configure"
17290 #include "confdefs.h"
17292 #ifdef F77_DUMMY_MAIN
17293 # ifdef __cplusplus
17296 int F77_DUMMY_MAIN() { return 1; }
17301 printf("%s\n", __FUNCTION__);
17306 rm -f conftest.
$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try
='test -s conftest.$ac_objext'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 samba_cv_HAVE_FUNCTION_MACRO
=yes
17320 echo "$as_me: failed program was:" >&5
17321 cat conftest.
$ac_ext >&5
17322 samba_cv_HAVE_FUNCTION_MACRO
=no
17324 rm -f conftest.
$ac_objext conftest.
$ac_ext
17326 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FUNCTION_MACRO" >&5
17327 echo "${ECHO_T}$samba_cv_HAVE_FUNCTION_MACRO" >&6
17328 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
17330 cat >>confdefs.h
<<\_ACEOF
17331 #define HAVE_FUNCTION_MACRO 1
17336 echo "$as_me:$LINENO: checking if gettimeofday takes tz argument" >&5
17337 echo $ECHO_N "checking if gettimeofday takes tz argument... $ECHO_C" >&6
17338 if test "${samba_cv_HAVE_GETTIMEOFDAY_TZ+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 if test "$cross_compiling" = yes; then
17343 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
17345 cat >conftest.
$ac_ext <<_ACEOF
17346 #line $LINENO "configure"
17347 #include "confdefs.h"
17349 #include <sys/time.h>
17350 #include <unistd.h>
17351 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
17353 rm -f conftest
$ac_exeext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355 (eval $ac_link) 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
17366 echo "$as_me: program exited with status $ac_status" >&5
17367 echo "$as_me: failed program was:" >&5
17368 cat conftest.
$ac_ext >&5
17369 ( exit $ac_status )
17370 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
17372 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17375 echo "$as_me:$LINENO: result: $samba_cv_HAVE_GETTIMEOFDAY_TZ" >&5
17376 echo "${ECHO_T}$samba_cv_HAVE_GETTIMEOFDAY_TZ" >&6
17377 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
17379 cat >>confdefs.h
<<\_ACEOF
17380 #define HAVE_GETTIMEOFDAY_TZ 1
17385 echo "$as_me:$LINENO: checking for __va_copy" >&5
17386 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
17387 if test "${samba_cv_HAVE_VA_COPY+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 cat >conftest.
$ac_ext <<_ACEOF
17392 #line $LINENO "configure"
17393 #include "confdefs.h"
17394 #include <stdarg.h>
17396 #ifdef F77_DUMMY_MAIN
17397 # ifdef __cplusplus
17400 int F77_DUMMY_MAIN() { return 1; }
17405 __va_copy(ap1,ap2);
17410 rm -f conftest.
$ac_objext conftest
$ac_exeext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17412 (eval $ac_link) 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
17416 { ac_try
='test -s conftest$ac_exeext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 samba_cv_HAVE_VA_COPY
=yes
17424 echo "$as_me: failed program was:" >&5
17425 cat conftest.
$ac_ext >&5
17426 samba_cv_HAVE_VA_COPY
=no
17428 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17430 echo "$as_me:$LINENO: result: $samba_cv_HAVE_VA_COPY" >&5
17431 echo "${ECHO_T}$samba_cv_HAVE_VA_COPY" >&6
17432 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
17434 cat >>confdefs.h
<<\_ACEOF
17435 #define HAVE_VA_COPY 1
17440 echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
17441 echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
17442 if test "${samba_cv_HAVE_C99_VSNPRINTF+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 if test "$cross_compiling" = yes; then
17447 samba_cv_HAVE_C99_VSNPRINTF
=cross
17449 cat >conftest.
$ac_ext <<_ACEOF
17450 #line $LINENO "configure"
17451 #include "confdefs.h"
17453 #include <sys/types.h>
17454 #include <stdarg.h>
17455 void foo(const char *format, ...) {
17460 va_start(ap, format);
17461 len = vsnprintf(buf, 0, format, ap);
17463 if (len != 5) exit(1);
17465 va_start(ap, format);
17466 len = vsnprintf(0, 0, format, ap);
17468 if (len != 5) exit(1);
17470 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
17474 main() { foo("hello"); }
17477 rm -f conftest
$ac_exeext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479 (eval $ac_link) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 samba_cv_HAVE_C99_VSNPRINTF
=yes
17490 echo "$as_me: program exited with status $ac_status" >&5
17491 echo "$as_me: failed program was:" >&5
17492 cat conftest.
$ac_ext >&5
17493 ( exit $ac_status )
17494 samba_cv_HAVE_C99_VSNPRINTF
=no
17496 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17499 echo "$as_me:$LINENO: result: $samba_cv_HAVE_C99_VSNPRINTF" >&5
17500 echo "${ECHO_T}$samba_cv_HAVE_C99_VSNPRINTF" >&6
17501 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
17503 cat >>confdefs.h
<<\_ACEOF
17504 #define HAVE_C99_VSNPRINTF 1
17509 echo "$as_me:$LINENO: checking for broken readdir" >&5
17510 echo $ECHO_N "checking for broken readdir... $ECHO_C" >&6
17511 if test "${samba_cv_HAVE_BROKEN_READDIR+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17515 if test "$cross_compiling" = yes; then
17516 samba_cv_HAVE_BROKEN_READDIR
=cross
17518 cat >conftest.
$ac_ext <<_ACEOF
17519 #line $LINENO "configure"
17520 #include "confdefs.h"
17521 #include <sys/types.h>
17522 #include <dirent.h>
17523 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
17524 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
17525 di->d_name[0] == 0) exit(0); exit(1);}
17527 rm -f conftest
$ac_exeext
17528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529 (eval $ac_link) 2>&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 samba_cv_HAVE_BROKEN_READDIR
=yes
17540 echo "$as_me: program exited with status $ac_status" >&5
17541 echo "$as_me: failed program was:" >&5
17542 cat conftest.
$ac_ext >&5
17543 ( exit $ac_status )
17544 samba_cv_HAVE_BROKEN_READDIR
=no
17546 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17549 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_READDIR" >&5
17550 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_READDIR" >&6
17551 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
17553 cat >>confdefs.h
<<\_ACEOF
17554 #define HAVE_BROKEN_READDIR 1
17559 echo "$as_me:$LINENO: checking for utimbuf" >&5
17560 echo $ECHO_N "checking for utimbuf... $ECHO_C" >&6
17561 if test "${samba_cv_HAVE_UTIMBUF+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.
$ac_ext <<_ACEOF
17566 #line $LINENO "configure"
17567 #include "confdefs.h"
17568 #include <sys/types.h>
17570 #ifdef F77_DUMMY_MAIN
17571 # ifdef __cplusplus
17574 int F77_DUMMY_MAIN() { return 1; }
17579 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
17584 rm -f conftest.
$ac_objext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586 (eval $ac_compile) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try
='test -s conftest.$ac_objext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 samba_cv_HAVE_UTIMBUF
=yes
17598 echo "$as_me: failed program was:" >&5
17599 cat conftest.
$ac_ext >&5
17600 samba_cv_HAVE_UTIMBUF
=no
17602 rm -f conftest.
$ac_objext conftest.
$ac_ext
17604 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UTIMBUF" >&5
17605 echo "${ECHO_T}$samba_cv_HAVE_UTIMBUF" >&6
17606 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
17608 cat >>confdefs.h
<<\_ACEOF
17609 #define HAVE_UTIMBUF 1
17620 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
17622 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17623 echo "$as_me:$LINENO: checking for $ac_func" >&5
17624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17625 if eval "test \"\${$as_ac_var+set}\" = set"; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 cat >conftest.
$ac_ext <<_ACEOF
17629 #line $LINENO "configure"
17630 #include "confdefs.h"
17631 /* System header to define __stub macros and hopefully few prototypes,
17632 which can conflict with char $ac_func (); below. */
17633 #include <assert.h>
17634 /* Override any gcc2 internal prototype to avoid an error. */
17638 /* We use char because int might match the return type of a gcc2
17639 builtin and then its argument prototype would still apply. */
17643 #ifdef F77_DUMMY_MAIN
17644 # ifdef __cplusplus
17647 int F77_DUMMY_MAIN() { return 1; }
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17665 rm -f conftest.
$ac_objext conftest
$ac_exeext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17667 (eval $ac_link) 2>&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try
='test -s conftest$ac_exeext'
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 eval "$as_ac_var=yes"
17679 echo "$as_me: failed program was:" >&5
17680 cat conftest.
$ac_ext >&5
17681 eval "$as_ac_var=no"
17683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17687 if test `eval echo '${'$as_ac_var'}'` = yes; then
17688 cat >>confdefs.h
<<_ACEOF
17689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17696 echo "$as_me:$LINENO: checking for ut_name in utmp" >&5
17697 echo $ECHO_N "checking for ut_name in utmp... $ECHO_C" >&6
17698 if test "${samba_cv_HAVE_UT_UT_NAME+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 cat >conftest.
$ac_ext <<_ACEOF
17703 #line $LINENO "configure"
17704 #include "confdefs.h"
17705 #include <sys/types.h>
17707 #ifdef F77_DUMMY_MAIN
17708 # ifdef __cplusplus
17711 int F77_DUMMY_MAIN() { return 1; }
17716 struct utmp ut; ut.ut_name[0] = 'a';
17721 rm -f conftest.
$ac_objext
17722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17723 (eval $ac_compile) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try
='test -s conftest.$ac_objext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 samba_cv_HAVE_UT_UT_NAME
=yes
17735 echo "$as_me: failed program was:" >&5
17736 cat conftest.
$ac_ext >&5
17737 samba_cv_HAVE_UT_UT_NAME
=no
17739 rm -f conftest.
$ac_objext conftest.
$ac_ext
17741 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_NAME" >&5
17742 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_NAME" >&6
17743 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
17745 cat >>confdefs.h
<<\_ACEOF
17746 #define HAVE_UT_UT_NAME 1
17751 echo "$as_me:$LINENO: checking for ut_user in utmp" >&5
17752 echo $ECHO_N "checking for ut_user in utmp... $ECHO_C" >&6
17753 if test "${samba_cv_HAVE_UT_UT_USER+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 cat >conftest.
$ac_ext <<_ACEOF
17758 #line $LINENO "configure"
17759 #include "confdefs.h"
17760 #include <sys/types.h>
17762 #ifdef F77_DUMMY_MAIN
17763 # ifdef __cplusplus
17766 int F77_DUMMY_MAIN() { return 1; }
17771 struct utmp ut; ut.ut_user[0] = 'a';
17776 rm -f conftest.
$ac_objext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17778 (eval $ac_compile) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try
='test -s conftest.$ac_objext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 samba_cv_HAVE_UT_UT_USER
=yes
17790 echo "$as_me: failed program was:" >&5
17791 cat conftest.
$ac_ext >&5
17792 samba_cv_HAVE_UT_UT_USER
=no
17794 rm -f conftest.
$ac_objext conftest.
$ac_ext
17796 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_USER" >&5
17797 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_USER" >&6
17798 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
17800 cat >>confdefs.h
<<\_ACEOF
17801 #define HAVE_UT_UT_USER 1
17806 echo "$as_me:$LINENO: checking for ut_id in utmp" >&5
17807 echo $ECHO_N "checking for ut_id in utmp... $ECHO_C" >&6
17808 if test "${samba_cv_HAVE_UT_UT_ID+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 cat >conftest.
$ac_ext <<_ACEOF
17813 #line $LINENO "configure"
17814 #include "confdefs.h"
17815 #include <sys/types.h>
17817 #ifdef F77_DUMMY_MAIN
17818 # ifdef __cplusplus
17821 int F77_DUMMY_MAIN() { return 1; }
17826 struct utmp ut; ut.ut_id[0] = 'a';
17831 rm -f conftest.
$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try
='test -s conftest.$ac_objext'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 samba_cv_HAVE_UT_UT_ID
=yes
17845 echo "$as_me: failed program was:" >&5
17846 cat conftest.
$ac_ext >&5
17847 samba_cv_HAVE_UT_UT_ID
=no
17849 rm -f conftest.
$ac_objext conftest.
$ac_ext
17851 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ID" >&5
17852 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ID" >&6
17853 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
17855 cat >>confdefs.h
<<\_ACEOF
17856 #define HAVE_UT_UT_ID 1
17861 echo "$as_me:$LINENO: checking for ut_host in utmp" >&5
17862 echo $ECHO_N "checking for ut_host in utmp... $ECHO_C" >&6
17863 if test "${samba_cv_HAVE_UT_UT_HOST+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 cat >conftest.
$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 #include "confdefs.h"
17870 #include <sys/types.h>
17872 #ifdef F77_DUMMY_MAIN
17873 # ifdef __cplusplus
17876 int F77_DUMMY_MAIN() { return 1; }
17881 struct utmp ut; ut.ut_host[0] = 'a';
17886 rm -f conftest.
$ac_objext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17888 (eval $ac_compile) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
17892 { ac_try
='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 samba_cv_HAVE_UT_UT_HOST
=yes
17900 echo "$as_me: failed program was:" >&5
17901 cat conftest.
$ac_ext >&5
17902 samba_cv_HAVE_UT_UT_HOST
=no
17904 rm -f conftest.
$ac_objext conftest.
$ac_ext
17906 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_HOST" >&5
17907 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_HOST" >&6
17908 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
17910 cat >>confdefs.h
<<\_ACEOF
17911 #define HAVE_UT_UT_HOST 1
17916 echo "$as_me:$LINENO: checking for ut_time in utmp" >&5
17917 echo $ECHO_N "checking for ut_time in utmp... $ECHO_C" >&6
17918 if test "${samba_cv_HAVE_UT_UT_TIME+set}" = set; then
17919 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 cat >conftest.
$ac_ext <<_ACEOF
17923 #line $LINENO "configure"
17924 #include "confdefs.h"
17925 #include <sys/types.h>
17927 #ifdef F77_DUMMY_MAIN
17928 # ifdef __cplusplus
17931 int F77_DUMMY_MAIN() { return 1; }
17936 struct utmp ut; time_t t; ut.ut_time = t;
17941 rm -f conftest.
$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try
='test -s conftest.$ac_objext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 samba_cv_HAVE_UT_UT_TIME
=yes
17955 echo "$as_me: failed program was:" >&5
17956 cat conftest.
$ac_ext >&5
17957 samba_cv_HAVE_UT_UT_TIME
=no
17959 rm -f conftest.
$ac_objext conftest.
$ac_ext
17961 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TIME" >&5
17962 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TIME" >&6
17963 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
17965 cat >>confdefs.h
<<\_ACEOF
17966 #define HAVE_UT_UT_TIME 1
17971 echo "$as_me:$LINENO: checking for ut_tv in utmp" >&5
17972 echo $ECHO_N "checking for ut_tv in utmp... $ECHO_C" >&6
17973 if test "${samba_cv_HAVE_UT_UT_TV+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 cat >conftest.
$ac_ext <<_ACEOF
17978 #line $LINENO "configure"
17979 #include "confdefs.h"
17980 #include <sys/types.h>
17982 #ifdef F77_DUMMY_MAIN
17983 # ifdef __cplusplus
17986 int F77_DUMMY_MAIN() { return 1; }
17991 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
17996 rm -f conftest.
$ac_objext
17997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17998 (eval $ac_compile) 2>&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
18002 { ac_try
='test -s conftest.$ac_objext'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 samba_cv_HAVE_UT_UT_TV
=yes
18010 echo "$as_me: failed program was:" >&5
18011 cat conftest.
$ac_ext >&5
18012 samba_cv_HAVE_UT_UT_TV
=no
18014 rm -f conftest.
$ac_objext conftest.
$ac_ext
18016 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TV" >&5
18017 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TV" >&6
18018 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
18020 cat >>confdefs.h
<<\_ACEOF
18021 #define HAVE_UT_UT_TV 1
18026 echo "$as_me:$LINENO: checking for ut_type in utmp" >&5
18027 echo $ECHO_N "checking for ut_type in utmp... $ECHO_C" >&6
18028 if test "${samba_cv_HAVE_UT_UT_TYPE+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 cat >conftest.
$ac_ext <<_ACEOF
18033 #line $LINENO "configure"
18034 #include "confdefs.h"
18035 #include <sys/types.h>
18037 #ifdef F77_DUMMY_MAIN
18038 # ifdef __cplusplus
18041 int F77_DUMMY_MAIN() { return 1; }
18046 struct utmp ut; ut.ut_type = 0;
18051 rm -f conftest.
$ac_objext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18053 (eval $ac_compile) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try
='test -s conftest.$ac_objext'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; }; then
18063 samba_cv_HAVE_UT_UT_TYPE
=yes
18065 echo "$as_me: failed program was:" >&5
18066 cat conftest.
$ac_ext >&5
18067 samba_cv_HAVE_UT_UT_TYPE
=no
18069 rm -f conftest.
$ac_objext conftest.
$ac_ext
18071 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_TYPE" >&5
18072 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_TYPE" >&6
18073 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
18075 cat >>confdefs.h
<<\_ACEOF
18076 #define HAVE_UT_UT_TYPE 1
18081 echo "$as_me:$LINENO: checking for ut_pid in utmp" >&5
18082 echo $ECHO_N "checking for ut_pid in utmp... $ECHO_C" >&6
18083 if test "${samba_cv_HAVE_UT_UT_PID+set}" = set; then
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 cat >conftest.
$ac_ext <<_ACEOF
18088 #line $LINENO "configure"
18089 #include "confdefs.h"
18090 #include <sys/types.h>
18092 #ifdef F77_DUMMY_MAIN
18093 # ifdef __cplusplus
18096 int F77_DUMMY_MAIN() { return 1; }
18101 struct utmp ut; ut.ut_pid = 0;
18106 rm -f conftest.
$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108 (eval $ac_compile) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } &&
18112 { ac_try
='test -s conftest.$ac_objext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 samba_cv_HAVE_UT_UT_PID
=yes
18120 echo "$as_me: failed program was:" >&5
18121 cat conftest.
$ac_ext >&5
18122 samba_cv_HAVE_UT_UT_PID
=no
18124 rm -f conftest.
$ac_objext conftest.
$ac_ext
18126 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_PID" >&5
18127 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_PID" >&6
18128 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
18130 cat >>confdefs.h
<<\_ACEOF
18131 #define HAVE_UT_UT_PID 1
18136 echo "$as_me:$LINENO: checking for ut_exit in utmp" >&5
18137 echo $ECHO_N "checking for ut_exit in utmp... $ECHO_C" >&6
18138 if test "${samba_cv_HAVE_UT_UT_EXIT+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 cat >conftest.
$ac_ext <<_ACEOF
18143 #line $LINENO "configure"
18144 #include "confdefs.h"
18145 #include <sys/types.h>
18147 #ifdef F77_DUMMY_MAIN
18148 # ifdef __cplusplus
18151 int F77_DUMMY_MAIN() { return 1; }
18156 struct utmp ut; ut.ut_exit.e_exit = 0;
18161 rm -f conftest.
$ac_objext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try
='test -s conftest.$ac_objext'
18168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18169 (eval $ac_try) 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 samba_cv_HAVE_UT_UT_EXIT
=yes
18175 echo "$as_me: failed program was:" >&5
18176 cat conftest.
$ac_ext >&5
18177 samba_cv_HAVE_UT_UT_EXIT
=no
18179 rm -f conftest.
$ac_objext conftest.
$ac_ext
18181 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_EXIT" >&5
18182 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_EXIT" >&6
18183 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
18185 cat >>confdefs.h
<<\_ACEOF
18186 #define HAVE_UT_UT_EXIT 1
18191 echo "$as_me:$LINENO: checking for ut_addr in utmp" >&5
18192 echo $ECHO_N "checking for ut_addr in utmp... $ECHO_C" >&6
18193 if test "${samba_cv_HAVE_UT_UT_ADDR+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 cat >conftest.
$ac_ext <<_ACEOF
18198 #line $LINENO "configure"
18199 #include "confdefs.h"
18200 #include <sys/types.h>
18202 #ifdef F77_DUMMY_MAIN
18203 # ifdef __cplusplus
18206 int F77_DUMMY_MAIN() { return 1; }
18211 struct utmp ut; ut.ut_addr = 0;
18216 rm -f conftest.
$ac_objext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18218 (eval $ac_compile) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try
='test -s conftest.$ac_objext'
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; }; then
18228 samba_cv_HAVE_UT_UT_ADDR
=yes
18230 echo "$as_me: failed program was:" >&5
18231 cat conftest.
$ac_ext >&5
18232 samba_cv_HAVE_UT_UT_ADDR
=no
18234 rm -f conftest.
$ac_objext conftest.
$ac_ext
18236 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UT_UT_ADDR" >&5
18237 echo "${ECHO_T}$samba_cv_HAVE_UT_UT_ADDR" >&6
18238 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
18240 cat >>confdefs.h
<<\_ACEOF
18241 #define HAVE_UT_UT_ADDR 1
18246 if test x
$ac_cv_func_pututline = xyes
; then
18247 echo "$as_me:$LINENO: checking whether pututline returns pointer" >&5
18248 echo $ECHO_N "checking whether pututline returns pointer... $ECHO_C" >&6
18249 if test "${samba_cv_PUTUTLINE_RETURNS_UTMP+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 cat >conftest.
$ac_ext <<_ACEOF
18254 #line $LINENO "configure"
18255 #include "confdefs.h"
18256 #include <sys/types.h>
18258 #ifdef F77_DUMMY_MAIN
18259 # ifdef __cplusplus
18262 int F77_DUMMY_MAIN() { return 1; }
18267 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
18272 rm -f conftest.
$ac_objext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274 (eval $ac_compile) 2>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } &&
18278 { ac_try
='test -s conftest.$ac_objext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
18286 echo "$as_me: failed program was:" >&5
18287 cat conftest.
$ac_ext >&5
18288 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
18290 rm -f conftest.
$ac_objext conftest.
$ac_ext
18292 echo "$as_me:$LINENO: result: $samba_cv_PUTUTLINE_RETURNS_UTMP" >&5
18293 echo "${ECHO_T}$samba_cv_PUTUTLINE_RETURNS_UTMP" >&6
18294 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
18296 cat >>confdefs.h
<<\_ACEOF
18297 #define PUTUTLINE_RETURNS_UTMP 1
18303 echo "$as_me:$LINENO: checking for ut_syslen in utmpx" >&5
18304 echo $ECHO_N "checking for ut_syslen in utmpx... $ECHO_C" >&6
18305 if test "${samba_cv_HAVE_UX_UT_SYSLEN+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18309 cat >conftest.
$ac_ext <<_ACEOF
18310 #line $LINENO "configure"
18311 #include "confdefs.h"
18312 #include <sys/types.h>
18314 #ifdef F77_DUMMY_MAIN
18315 # ifdef __cplusplus
18318 int F77_DUMMY_MAIN() { return 1; }
18323 struct utmpx ux; ux.ut_syslen = 0;
18328 rm -f conftest.
$ac_objext
18329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18330 (eval $ac_compile) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } &&
18334 { ac_try
='test -s conftest.$ac_objext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 samba_cv_HAVE_UX_UT_SYSLEN
=yes
18342 echo "$as_me: failed program was:" >&5
18343 cat conftest.
$ac_ext >&5
18344 samba_cv_HAVE_UX_UT_SYSLEN
=no
18346 rm -f conftest.
$ac_objext conftest.
$ac_ext
18348 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UX_UT_SYSLEN" >&5
18349 echo "${ECHO_T}$samba_cv_HAVE_UX_UT_SYSLEN" >&6
18350 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
18352 cat >>confdefs.h
<<\_ACEOF
18353 #define HAVE_UX_UT_SYSLEN 1
18359 #################################################
18360 # check for libiconv support
18361 echo "$as_me:$LINENO: checking whether to use libiconv" >&5
18362 echo $ECHO_N "checking whether to use libiconv... $ECHO_C" >&6
18364 # Check whether --with-libiconv or --without-libiconv was given.
18365 if test "${with_libiconv+set}" = set; then
18366 withval
="$with_libiconv"
18369 echo "$as_me:$LINENO: result: no" >&5
18370 echo "${ECHO_T}no" >&6
18373 echo "$as_me:$LINENO: result: yes" >&5
18374 echo "${ECHO_T}yes" >&6
18375 CFLAGS
="$CFLAGS -I$withval/include"
18376 LDFLAGS
="$LDFLAGS -L$withval/lib"
18378 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
18379 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
18380 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 ac_check_lib_save_LIBS
=$LIBS
18384 LIBS
="-liconv $LIBS"
18385 cat >conftest.
$ac_ext <<_ACEOF
18386 #line $LINENO "configure"
18387 #include "confdefs.h"
18389 /* Override any gcc2 internal prototype to avoid an error. */
18393 /* We use char because int might match the return type of a gcc2
18394 builtin and then its argument prototype would still apply. */
18395 char iconv_open ();
18396 #ifdef F77_DUMMY_MAIN
18397 # ifdef __cplusplus
18400 int F77_DUMMY_MAIN() { return 1; }
18410 rm -f conftest.
$ac_objext conftest
$ac_exeext
18411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18412 (eval $ac_link) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } &&
18416 { ac_try
='test -s conftest$ac_exeext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_cv_lib_iconv_iconv_open
=yes
18424 echo "$as_me: failed program was:" >&5
18425 cat conftest.
$ac_ext >&5
18426 ac_cv_lib_iconv_iconv_open
=no
18428 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
18429 LIBS
=$ac_check_lib_save_LIBS
18431 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
18432 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
18433 if test $ac_cv_lib_iconv_iconv_open = yes; then
18434 cat >>confdefs.h
<<_ACEOF
18435 #define HAVE_LIBICONV 1
18438 LIBS
="-liconv $LIBS"
18443 cat >>confdefs.h
<<_ACEOF
18444 #define WITH_LIBICONV "${withval}"
18450 echo "$as_me:$LINENO: result: no" >&5
18451 echo "${ECHO_T}no" >&6
18457 # check for iconv in libc
18458 echo "$as_me:$LINENO: checking for working iconv" >&5
18459 echo $ECHO_N "checking for working iconv... $ECHO_C" >&6
18460 if test "${samba_cv_HAVE_NATIVE_ICONV+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18464 if test "$cross_compiling" = yes; then
18465 samba_cv_HAVE_NATIVE_ICONV
=cross
18467 cat >conftest.
$ac_ext <<_ACEOF
18468 #line $LINENO "configure"
18469 #include "confdefs.h"
18473 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
18474 if (cd == 0 || cd == (iconv_t)-1) return -1;
18479 rm -f conftest
$ac_exeext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18481 (eval $ac_link) 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 samba_cv_HAVE_NATIVE_ICONV
=yes
18492 echo "$as_me: program exited with status $ac_status" >&5
18493 echo "$as_me: failed program was:" >&5
18494 cat conftest.
$ac_ext >&5
18495 ( exit $ac_status )
18496 samba_cv_HAVE_NATIVE_ICONV
=no
18498 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18501 echo "$as_me:$LINENO: result: $samba_cv_HAVE_NATIVE_ICONV" >&5
18502 echo "${ECHO_T}$samba_cv_HAVE_NATIVE_ICONV" >&6
18503 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
18505 cat >>confdefs.h
<<\_ACEOF
18506 #define HAVE_NATIVE_ICONV 1
18512 echo "$as_me:$LINENO: checking for Linux kernel oplocks" >&5
18513 echo $ECHO_N "checking for Linux kernel oplocks... $ECHO_C" >&6
18514 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_LINUX+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 if test "$cross_compiling" = yes; then
18519 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
18521 cat >conftest.
$ac_ext <<_ACEOF
18522 #line $LINENO "configure"
18523 #include "confdefs.h"
18525 #include <sys/types.h>
18528 #define F_GETLEASE 1025
18531 int fd = open("/dev/null", O_RDONLY);
18532 return fcntl(fd, F_GETLEASE, 0) == -1;
18536 rm -f conftest
$ac_exeext
18537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18538 (eval $ac_link) 2>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543 (eval $ac_try) 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
18549 echo "$as_me: program exited with status $ac_status" >&5
18550 echo "$as_me: failed program was:" >&5
18551 cat conftest.
$ac_ext >&5
18552 ( exit $ac_status )
18553 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
18555 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18558 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&5
18559 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" >&6
18560 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
18562 cat >>confdefs.h
<<\_ACEOF
18563 #define HAVE_KERNEL_OPLOCKS_LINUX 1
18568 echo "$as_me:$LINENO: checking for kernel change notify support" >&5
18569 echo $ECHO_N "checking for kernel change notify support... $ECHO_C" >&6
18570 if test "${samba_cv_HAVE_KERNEL_CHANGE_NOTIFY+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 if test "$cross_compiling" = yes; then
18575 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
18577 cat >conftest.
$ac_ext <<_ACEOF
18578 #line $LINENO "configure"
18579 #include "confdefs.h"
18581 #include <sys/types.h>
18583 #include <signal.h>
18585 #define F_NOTIFY 1026
18588 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
18592 rm -f conftest
$ac_exeext
18593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18594 (eval $ac_link) 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
18605 echo "$as_me: program exited with status $ac_status" >&5
18606 echo "$as_me: failed program was:" >&5
18607 cat conftest.
$ac_ext >&5
18608 ( exit $ac_status )
18609 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
18611 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18614 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&5
18615 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" >&6
18616 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
18618 cat >>confdefs.h
<<\_ACEOF
18619 #define HAVE_KERNEL_CHANGE_NOTIFY 1
18624 echo "$as_me:$LINENO: checking for kernel share modes" >&5
18625 echo $ECHO_N "checking for kernel share modes... $ECHO_C" >&6
18626 if test "${samba_cv_HAVE_KERNEL_SHARE_MODES+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 if test "$cross_compiling" = yes; then
18631 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
18633 cat >conftest.
$ac_ext <<_ACEOF
18634 #line $LINENO "configure"
18635 #include "confdefs.h"
18637 #include <sys/types.h>
18639 #include <signal.h>
18640 #include <sys/file.h>
18642 #define LOCK_MAND 32
18643 #define LOCK_READ 64
18646 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
18650 rm -f conftest
$ac_exeext
18651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18652 (eval $ac_link) 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_SHARE_MODES
=yes
18663 echo "$as_me: program exited with status $ac_status" >&5
18664 echo "$as_me: failed program was:" >&5
18665 cat conftest.
$ac_ext >&5
18666 ( exit $ac_status )
18667 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
18669 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18672 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_SHARE_MODES" >&5
18673 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_SHARE_MODES" >&6
18674 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
18676 cat >>confdefs.h
<<\_ACEOF
18677 #define HAVE_KERNEL_SHARE_MODES 1
18685 echo "$as_me:$LINENO: checking for IRIX kernel oplock type definitions" >&5
18686 echo $ECHO_N "checking for IRIX kernel oplock type definitions... $ECHO_C" >&6
18687 if test "${samba_cv_HAVE_KERNEL_OPLOCKS_IRIX+set}" = set; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 cat >conftest.
$ac_ext <<_ACEOF
18692 #line $LINENO "configure"
18693 #include "confdefs.h"
18694 #include <sys/types.h>
18696 #ifdef F77_DUMMY_MAIN
18697 # ifdef __cplusplus
18700 int F77_DUMMY_MAIN() { return 1; }
18705 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
18710 rm -f conftest.
$ac_objext
18711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18712 (eval $ac_compile) 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } &&
18716 { ac_try
='test -s conftest.$ac_objext'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
18724 echo "$as_me: failed program was:" >&5
18725 cat conftest.
$ac_ext >&5
18726 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
18728 rm -f conftest.
$ac_objext conftest.
$ac_ext
18730 echo "$as_me:$LINENO: result: $samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&5
18731 echo "${ECHO_T}$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" >&6
18732 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
18734 cat >>confdefs.h
<<\_ACEOF
18735 #define HAVE_KERNEL_OPLOCKS_IRIX 1
18740 echo "$as_me:$LINENO: checking for irix specific capabilities" >&5
18741 echo $ECHO_N "checking for irix specific capabilities... $ECHO_C" >&6
18742 if test "${samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 if test "$cross_compiling" = yes; then
18747 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
18749 cat >conftest.
$ac_ext <<_ACEOF
18750 #line $LINENO "configure"
18751 #include "confdefs.h"
18752 #include <sys/types.h>
18753 #include <sys/capability.h>
18756 if ((cap = cap_get_proc()) == NULL)
18758 cap->cap_effective |= CAP_NETWORK_MGT;
18759 cap->cap_inheritable |= CAP_NETWORK_MGT;
18765 rm -f conftest
$ac_exeext
18766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18767 (eval $ac_link) 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
18778 echo "$as_me: program exited with status $ac_status" >&5
18779 echo "$as_me: failed program was:" >&5
18780 cat conftest.
$ac_ext >&5
18781 ( exit $ac_status )
18782 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
18784 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18787 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&5
18788 echo "${ECHO_T}$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" >&6
18789 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
18791 cat >>confdefs.h
<<\_ACEOF
18792 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
18798 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
18799 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
18802 echo "$as_me:$LINENO: checking for int16 typedef included by rpc/rpc.h" >&5
18803 echo $ECHO_N "checking for int16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18804 if test "${samba_cv_HAVE_INT16_FROM_RPC_RPC_H+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 cat >conftest.
$ac_ext <<_ACEOF
18809 #line $LINENO "configure"
18810 #include "confdefs.h"
18811 #include <sys/types.h>
18812 #if defined(HAVE_RPC_RPC_H)
18813 #include <rpc/rpc.h>
18815 #ifdef F77_DUMMY_MAIN
18816 # ifdef __cplusplus
18819 int F77_DUMMY_MAIN() { return 1; }
18829 rm -f conftest.
$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
18835 { ac_try
='test -s conftest.$ac_objext'
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
18843 echo "$as_me: failed program was:" >&5
18844 cat conftest.
$ac_ext >&5
18845 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
18847 rm -f conftest.
$ac_objext conftest.
$ac_ext
18849 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&5
18850 echo "${ECHO_T}$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" >&6
18851 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
18853 cat >>confdefs.h
<<\_ACEOF
18854 #define HAVE_INT16_FROM_RPC_RPC_H 1
18859 echo "$as_me:$LINENO: checking for uint16 typedef included by rpc/rpc.h" >&5
18860 echo $ECHO_N "checking for uint16 typedef included by rpc/rpc.h... $ECHO_C" >&6
18861 if test "${samba_cv_HAVE_UINT16_FROM_RPC_RPC_H+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18865 cat >conftest.
$ac_ext <<_ACEOF
18866 #line $LINENO "configure"
18867 #include "confdefs.h"
18868 #include <sys/types.h>
18869 #if defined(HAVE_RPC_RPC_H)
18870 #include <rpc/rpc.h>
18872 #ifdef F77_DUMMY_MAIN
18873 # ifdef __cplusplus
18876 int F77_DUMMY_MAIN() { return 1; }
18886 rm -f conftest.
$ac_objext
18887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18888 (eval $ac_compile) 2>&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } &&
18892 { ac_try
='test -s conftest.$ac_objext'
18893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894 (eval $ac_try) 2>&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
18898 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
18900 echo "$as_me: failed program was:" >&5
18901 cat conftest.
$ac_ext >&5
18902 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
18904 rm -f conftest.
$ac_objext conftest.
$ac_ext
18906 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&5
18907 echo "${ECHO_T}$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" >&6
18908 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
18910 cat >>confdefs.h
<<\_ACEOF
18911 #define HAVE_UINT16_FROM_RPC_RPC_H 1
18916 echo "$as_me:$LINENO: checking for int32 typedef included by rpc/rpc.h" >&5
18917 echo $ECHO_N "checking for int32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18918 if test "${samba_cv_HAVE_INT32_FROM_RPC_RPC_H+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 cat >conftest.
$ac_ext <<_ACEOF
18923 #line $LINENO "configure"
18924 #include "confdefs.h"
18925 #include <sys/types.h>
18926 #if defined(HAVE_RPC_RPC_H)
18927 #include <rpc/rpc.h>
18929 #ifdef F77_DUMMY_MAIN
18930 # ifdef __cplusplus
18933 int F77_DUMMY_MAIN() { return 1; }
18943 rm -f conftest.
$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945 (eval $ac_compile) 2>&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try
='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
18957 echo "$as_me: failed program was:" >&5
18958 cat conftest.
$ac_ext >&5
18959 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
18961 rm -f conftest.
$ac_objext conftest.
$ac_ext
18963 echo "$as_me:$LINENO: result: $samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&5
18964 echo "${ECHO_T}$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" >&6
18965 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
18967 cat >>confdefs.h
<<\_ACEOF
18968 #define HAVE_INT32_FROM_RPC_RPC_H 1
18973 echo "$as_me:$LINENO: checking for uint32 typedef included by rpc/rpc.h" >&5
18974 echo $ECHO_N "checking for uint32 typedef included by rpc/rpc.h... $ECHO_C" >&6
18975 if test "${samba_cv_HAVE_UINT32_FROM_RPC_RPC_H+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 cat >conftest.
$ac_ext <<_ACEOF
18980 #line $LINENO "configure"
18981 #include "confdefs.h"
18982 #include <sys/types.h>
18983 #if defined(HAVE_RPC_RPC_H)
18984 #include <rpc/rpc.h>
18986 #ifdef F77_DUMMY_MAIN
18987 # ifdef __cplusplus
18990 int F77_DUMMY_MAIN() { return 1; }
19000 rm -f conftest.
$ac_objext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try
='test -s conftest.$ac_objext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
19014 echo "$as_me: failed program was:" >&5
19015 cat conftest.
$ac_ext >&5
19016 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
19018 rm -f conftest.
$ac_objext conftest.
$ac_ext
19020 echo "$as_me:$LINENO: result: $samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&5
19021 echo "${ECHO_T}$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" >&6
19022 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
19024 cat >>confdefs.h
<<\_ACEOF
19025 #define HAVE_UINT32_FROM_RPC_RPC_H 1
19031 echo "$as_me:$LINENO: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
19032 echo $ECHO_N "checking for conflicting AUTH_ERROR define in rpc/rpc.h... $ECHO_C" >&6
19033 if test "${samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 cat >conftest.
$ac_ext <<_ACEOF
19038 #line $LINENO "configure"
19039 #include "confdefs.h"
19040 #include <sys/types.h>
19041 #ifdef HAVE_SYS_SECURITY_H
19042 #include <sys/security.h>
19044 #endif /* HAVE_SYS_SECURITY_H */
19045 #if defined(HAVE_RPC_RPC_H)
19046 #include <rpc/rpc.h>
19048 #ifdef F77_DUMMY_MAIN
19049 # ifdef __cplusplus
19052 int F77_DUMMY_MAIN() { return 1; }
19062 rm -f conftest.
$ac_objext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try
='test -s conftest.$ac_objext'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
19076 echo "$as_me: failed program was:" >&5
19077 cat conftest.
$ac_ext >&5
19078 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
19080 rm -f conftest.
$ac_objext conftest.
$ac_ext
19082 echo "$as_me:$LINENO: result: $samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&5
19083 echo "${ECHO_T}$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" >&6
19084 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
19086 cat >>confdefs.h
<<\_ACEOF
19087 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
19092 echo "$as_me:$LINENO: checking for test routines" >&5
19093 echo $ECHO_N "checking for test routines... $ECHO_C" >&6
19094 if test "$cross_compiling" = yes; then
19095 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
19096 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
19098 cat >conftest.
$ac_ext <<_ACEOF
19099 #line $LINENO "configure"
19100 #include "confdefs.h"
19101 #include "${srcdir-.}/tests/trivial.c"
19103 rm -f conftest
$ac_exeext
19104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 echo "$as_me:$LINENO: result: yes" >&5
19115 echo "${ECHO_T}yes" >&6
19117 echo "$as_me: program exited with status $ac_status" >&5
19118 echo "$as_me: failed program was:" >&5
19119 cat conftest.
$ac_ext >&5
19120 ( exit $ac_status )
19121 { { echo "$as_me:$LINENO: error: cant find test code. Aborting config" >&5
19122 echo "$as_me: error: cant find test code. Aborting config" >&2;}
19123 { (exit 1); exit 1; }; }
19125 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19128 echo "$as_me:$LINENO: checking for ftruncate extend" >&5
19129 echo $ECHO_N "checking for ftruncate extend... $ECHO_C" >&6
19130 if test "${samba_cv_HAVE_FTRUNCATE_EXTEND+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 if test "$cross_compiling" = yes; then
19135 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
19137 cat >conftest.
$ac_ext <<_ACEOF
19138 #line $LINENO "configure"
19139 #include "confdefs.h"
19140 #include "${srcdir-.}/tests/ftruncate.c"
19142 rm -f conftest
$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; }; then
19153 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
19155 echo "$as_me: program exited with status $ac_status" >&5
19156 echo "$as_me: failed program was:" >&5
19157 cat conftest.
$ac_ext >&5
19158 ( exit $ac_status )
19159 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
19161 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19164 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FTRUNCATE_EXTEND" >&5
19165 echo "${ECHO_T}$samba_cv_HAVE_FTRUNCATE_EXTEND" >&6
19166 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
19168 cat >>confdefs.h
<<\_ACEOF
19169 #define HAVE_FTRUNCATE_EXTEND 1
19174 echo "$as_me:$LINENO: checking for AF_LOCAL socket support" >&5
19175 echo $ECHO_N "checking for AF_LOCAL socket support... $ECHO_C" >&6
19176 if test "${samba_cv_HAVE_WORKING_AF_LOCAL+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 if test "$cross_compiling" = yes; then
19181 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
19183 cat >conftest.
$ac_ext <<_ACEOF
19184 #line $LINENO "configure"
19185 #include "confdefs.h"
19186 #include "${srcdir-.}/tests/unixsock.c"
19188 rm -f conftest
$ac_exeext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
19201 echo "$as_me: program exited with status $ac_status" >&5
19202 echo "$as_me: failed program was:" >&5
19203 cat conftest.
$ac_ext >&5
19204 ( exit $ac_status )
19205 samba_cv_HAVE_WORKING_AF_LOCAL
=no
19207 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19210 echo "$as_me:$LINENO: result: $samba_cv_HAVE_WORKING_AF_LOCAL" >&5
19211 echo "${ECHO_T}$samba_cv_HAVE_WORKING_AF_LOCAL" >&6
19212 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
19215 cat >>confdefs.h
<<\_ACEOF
19216 #define HAVE_WORKING_AF_LOCAL 1
19221 echo "$as_me:$LINENO: checking for broken getgroups" >&5
19222 echo $ECHO_N "checking for broken getgroups... $ECHO_C" >&6
19223 if test "${samba_cv_HAVE_BROKEN_GETGROUPS+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 if test "$cross_compiling" = yes; then
19228 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
19230 cat >conftest.
$ac_ext <<_ACEOF
19231 #line $LINENO "configure"
19232 #include "confdefs.h"
19233 #include "${srcdir-.}/tests/getgroups.c"
19235 rm -f conftest
$ac_exeext
19236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19237 (eval $ac_link) 2>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
19248 echo "$as_me: program exited with status $ac_status" >&5
19249 echo "$as_me: failed program was:" >&5
19250 cat conftest.
$ac_ext >&5
19251 ( exit $ac_status )
19252 samba_cv_HAVE_BROKEN_GETGROUPS
=no
19254 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19257 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_GETGROUPS" >&5
19258 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_GETGROUPS" >&6
19259 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
19261 cat >>confdefs.h
<<\_ACEOF
19262 #define HAVE_BROKEN_GETGROUPS 1
19267 echo "$as_me:$LINENO: checking whether getpass should be replaced" >&5
19268 echo $ECHO_N "checking whether getpass should be replaced... $ECHO_C" >&6
19269 if test "${samba_cv_REPLACE_GETPASS+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 SAVE_CPPFLAGS
="$CPPFLAGS"
19274 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
19275 cat >conftest.
$ac_ext <<_ACEOF
19276 #line $LINENO "configure"
19277 #include "confdefs.h"
19279 #define REPLACE_GETPASS 1
19280 #define NO_CONFIG_H 1
19281 #define main dont_declare_main
19282 #include "${srcdir-.}/lib/getsmbpass.c"
19285 #ifdef F77_DUMMY_MAIN
19286 # ifdef __cplusplus
19289 int F77_DUMMY_MAIN() { return 1; }
19299 rm -f conftest.
$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301 (eval $ac_compile) 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
19305 { ac_try
='test -s conftest.$ac_objext'
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 samba_cv_REPLACE_GETPASS
=yes
19313 echo "$as_me: failed program was:" >&5
19314 cat conftest.
$ac_ext >&5
19315 samba_cv_REPLACE_GETPASS
=no
19317 rm -f conftest.
$ac_objext conftest.
$ac_ext
19318 CPPFLAGS
="$SAVE_CPPFLAGS"
19321 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_GETPASS" >&5
19322 echo "${ECHO_T}$samba_cv_REPLACE_GETPASS" >&6
19323 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
19325 cat >>confdefs.h
<<\_ACEOF
19326 #define REPLACE_GETPASS 1
19331 echo "$as_me:$LINENO: checking for broken inet_ntoa" >&5
19332 echo $ECHO_N "checking for broken inet_ntoa... $ECHO_C" >&6
19333 if test "${samba_cv_REPLACE_INET_NTOA+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 if test "$cross_compiling" = yes; then
19338 samba_cv_REPLACE_INET_NTOA
=cross
19340 cat >conftest.
$ac_ext <<_ACEOF
19341 #line $LINENO "configure"
19342 #include "confdefs.h"
19345 #include <sys/types.h>
19346 #include <netinet/in.h>
19347 #ifdef HAVE_ARPA_INET_H
19348 #include <arpa/inet.h>
19350 main() { struct in_addr ip; ip.s_addr = 0x12345678;
19351 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
19352 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
19355 rm -f conftest
$ac_exeext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362 (eval $ac_try) 2>&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); }; }; then
19366 samba_cv_REPLACE_INET_NTOA
=yes
19368 echo "$as_me: program exited with status $ac_status" >&5
19369 echo "$as_me: failed program was:" >&5
19370 cat conftest.
$ac_ext >&5
19371 ( exit $ac_status )
19372 samba_cv_REPLACE_INET_NTOA
=no
19374 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19377 echo "$as_me:$LINENO: result: $samba_cv_REPLACE_INET_NTOA" >&5
19378 echo "${ECHO_T}$samba_cv_REPLACE_INET_NTOA" >&6
19379 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
19381 cat >>confdefs.h
<<\_ACEOF
19382 #define REPLACE_INET_NTOA 1
19387 echo "$as_me:$LINENO: checking for secure mkstemp" >&5
19388 echo $ECHO_N "checking for secure mkstemp... $ECHO_C" >&6
19389 if test "${samba_cv_HAVE_SECURE_MKSTEMP+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 if test "$cross_compiling" = yes; then
19394 samba_cv_HAVE_SECURE_MKSTEMP
=cross
19396 cat >conftest.
$ac_ext <<_ACEOF
19397 #line $LINENO "configure"
19398 #include "confdefs.h"
19399 #include <stdlib.h>
19400 #include <sys/types.h>
19401 #include <sys/stat.h>
19402 #include <unistd.h>
19405 char tpl[20]="/tmp/test.XXXXXX";
19406 int fd = mkstemp(tpl);
19407 if (fd == -1) exit(1);
19409 if (fstat(fd, &st) != 0) exit(1);
19410 if ((st.st_mode & 0777) != 0600) exit(1);
19414 rm -f conftest
$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416 (eval $ac_link) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 samba_cv_HAVE_SECURE_MKSTEMP
=yes
19427 echo "$as_me: program exited with status $ac_status" >&5
19428 echo "$as_me: failed program was:" >&5
19429 cat conftest.
$ac_ext >&5
19430 ( exit $ac_status )
19431 samba_cv_HAVE_SECURE_MKSTEMP
=no
19433 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19436 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SECURE_MKSTEMP" >&5
19437 echo "${ECHO_T}$samba_cv_HAVE_SECURE_MKSTEMP" >&6
19438 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
19440 cat >>confdefs.h
<<\_ACEOF
19441 #define HAVE_SECURE_MKSTEMP 1
19446 echo "$as_me:$LINENO: checking for sysconf(_SC_NGROUPS_MAX)" >&5
19447 echo $ECHO_N "checking for sysconf(_SC_NGROUPS_MAX)... $ECHO_C" >&6
19448 if test "${samba_cv_SYSCONF_SC_NGROUPS_MAX+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 if test "$cross_compiling" = yes; then
19453 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
19455 cat >conftest.
$ac_ext <<_ACEOF
19456 #line $LINENO "configure"
19457 #include "confdefs.h"
19458 #include <unistd.h>
19459 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
19461 rm -f conftest
$ac_exeext
19462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19463 (eval $ac_link) 2>&5
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
19474 echo "$as_me: program exited with status $ac_status" >&5
19475 echo "$as_me: failed program was:" >&5
19476 cat conftest.
$ac_ext >&5
19477 ( exit $ac_status )
19478 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
19480 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19483 echo "$as_me:$LINENO: result: $samba_cv_SYSCONF_SC_NGROUPS_MAX" >&5
19484 echo "${ECHO_T}$samba_cv_SYSCONF_SC_NGROUPS_MAX" >&6
19485 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
19487 cat >>confdefs.h
<<\_ACEOF
19488 #define SYSCONF_SC_NGROUPS_MAX 1
19493 echo "$as_me:$LINENO: checking for root" >&5
19494 echo $ECHO_N "checking for root... $ECHO_C" >&6
19495 if test "${samba_cv_HAVE_ROOT+set}" = set; then
19496 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 if test "$cross_compiling" = yes; then
19500 samba_cv_HAVE_ROOT
=cross
19502 cat >conftest.
$ac_ext <<_ACEOF
19503 #line $LINENO "configure"
19504 #include "confdefs.h"
19505 main() { exit(getuid() != 0); }
19507 rm -f conftest
$ac_exeext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19509 (eval $ac_link) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 samba_cv_HAVE_ROOT
=yes
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 cat conftest.
$ac_ext >&5
19523 ( exit $ac_status )
19524 samba_cv_HAVE_ROOT
=no
19526 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19529 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ROOT" >&5
19530 echo "${ECHO_T}$samba_cv_HAVE_ROOT" >&6
19531 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
19533 cat >>confdefs.h
<<\_ACEOF
19534 #define HAVE_ROOT 1
19538 { echo "$as_me:$LINENO: WARNING: running as non-root will disable some tests" >&5
19539 echo "$as_me: WARNING: running as non-root will disable some tests" >&2;}
19543 # look for a method of finding the list of network interfaces
19545 echo "$as_me:$LINENO: checking for iface AIX" >&5
19546 echo $ECHO_N "checking for iface AIX... $ECHO_C" >&6
19547 if test "${samba_cv_HAVE_IFACE_AIX+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 if test "$cross_compiling" = yes; then
19552 samba_cv_HAVE_IFACE_AIX
=cross
19554 cat >conftest.
$ac_ext <<_ACEOF
19555 #line $LINENO "configure"
19556 #include "confdefs.h"
19558 #define HAVE_IFACE_AIX 1
19559 #define AUTOCONF_TEST 1
19560 #include "confdefs.h"
19561 #include "${srcdir-.}/lib/interfaces.c"
19563 rm -f conftest
$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565 (eval $ac_link) 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 samba_cv_HAVE_IFACE_AIX
=yes
19576 echo "$as_me: program exited with status $ac_status" >&5
19577 echo "$as_me: failed program was:" >&5
19578 cat conftest.
$ac_ext >&5
19579 ( exit $ac_status )
19580 samba_cv_HAVE_IFACE_AIX
=no
19582 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19585 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_AIX" >&5
19586 echo "${ECHO_T}$samba_cv_HAVE_IFACE_AIX" >&6
19587 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
19589 cat >>confdefs.h
<<\_ACEOF
19590 #define HAVE_IFACE_AIX 1
19595 if test $iface = no
; then
19596 echo "$as_me:$LINENO: checking for iface ifconf" >&5
19597 echo $ECHO_N "checking for iface ifconf... $ECHO_C" >&6
19598 if test "${samba_cv_HAVE_IFACE_IFCONF+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 if test "$cross_compiling" = yes; then
19603 samba_cv_HAVE_IFACE_IFCONF
=cross
19605 cat >conftest.
$ac_ext <<_ACEOF
19606 #line $LINENO "configure"
19607 #include "confdefs.h"
19609 #define HAVE_IFACE_IFCONF 1
19610 #define AUTOCONF_TEST 1
19611 #include "confdefs.h"
19612 #include "${srcdir-.}/lib/interfaces.c"
19614 rm -f conftest
$ac_exeext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19616 (eval $ac_link) 2>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 samba_cv_HAVE_IFACE_IFCONF
=yes
19627 echo "$as_me: program exited with status $ac_status" >&5
19628 echo "$as_me: failed program was:" >&5
19629 cat conftest.
$ac_ext >&5
19630 ( exit $ac_status )
19631 samba_cv_HAVE_IFACE_IFCONF
=no
19633 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19636 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFCONF" >&5
19637 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFCONF" >&6
19638 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
19640 cat >>confdefs.h
<<\_ACEOF
19641 #define HAVE_IFACE_IFCONF 1
19647 if test $iface = no
; then
19648 echo "$as_me:$LINENO: checking for iface ifreq" >&5
19649 echo $ECHO_N "checking for iface ifreq... $ECHO_C" >&6
19650 if test "${samba_cv_HAVE_IFACE_IFREQ+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 if test "$cross_compiling" = yes; then
19655 samba_cv_HAVE_IFACE_IFREQ
=cross
19657 cat >conftest.
$ac_ext <<_ACEOF
19658 #line $LINENO "configure"
19659 #include "confdefs.h"
19661 #define HAVE_IFACE_IFREQ 1
19662 #define AUTOCONF_TEST 1
19663 #include "confdefs.h"
19664 #include "${srcdir-.}/lib/interfaces.c"
19666 rm -f conftest
$ac_exeext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19668 (eval $ac_link) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; }; then
19677 samba_cv_HAVE_IFACE_IFREQ
=yes
19679 echo "$as_me: program exited with status $ac_status" >&5
19680 echo "$as_me: failed program was:" >&5
19681 cat conftest.
$ac_ext >&5
19682 ( exit $ac_status )
19683 samba_cv_HAVE_IFACE_IFREQ
=no
19685 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19688 echo "$as_me:$LINENO: result: $samba_cv_HAVE_IFACE_IFREQ" >&5
19689 echo "${ECHO_T}$samba_cv_HAVE_IFACE_IFREQ" >&6
19690 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
19692 cat >>confdefs.h
<<\_ACEOF
19693 #define HAVE_IFACE_IFREQ 1
19700 ################################################
19701 # look for a method of setting the effective uid
19703 if test $seteuid = no
; then
19704 echo "$as_me:$LINENO: checking for setresuid" >&5
19705 echo $ECHO_N "checking for setresuid... $ECHO_C" >&6
19706 if test "${samba_cv_USE_SETRESUID+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 if test "$cross_compiling" = yes; then
19711 samba_cv_USE_SETRESUID
=cross
19713 cat >conftest.
$ac_ext <<_ACEOF
19714 #line $LINENO "configure"
19715 #include "confdefs.h"
19717 #define AUTOCONF_TEST 1
19718 #define USE_SETRESUID 1
19719 #include "confdefs.h"
19720 #include "${srcdir-.}/lib/util_sec.c"
19722 rm -f conftest
$ac_exeext
19723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19724 (eval $ac_link) 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 (eval $ac_try) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 samba_cv_USE_SETRESUID
=yes
19735 echo "$as_me: program exited with status $ac_status" >&5
19736 echo "$as_me: failed program was:" >&5
19737 cat conftest.
$ac_ext >&5
19738 ( exit $ac_status )
19739 samba_cv_USE_SETRESUID
=no
19741 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19744 echo "$as_me:$LINENO: result: $samba_cv_USE_SETRESUID" >&5
19745 echo "${ECHO_T}$samba_cv_USE_SETRESUID" >&6
19746 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
19748 cat >>confdefs.h
<<\_ACEOF
19749 #define USE_SETRESUID 1
19756 if test $seteuid = no
; then
19757 echo "$as_me:$LINENO: checking for setreuid" >&5
19758 echo $ECHO_N "checking for setreuid... $ECHO_C" >&6
19759 if test "${samba_cv_USE_SETREUID+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 if test "$cross_compiling" = yes; then
19764 samba_cv_USE_SETREUID
=cross
19766 cat >conftest.
$ac_ext <<_ACEOF
19767 #line $LINENO "configure"
19768 #include "confdefs.h"
19770 #define AUTOCONF_TEST 1
19771 #define USE_SETREUID 1
19772 #include "confdefs.h"
19773 #include "${srcdir-.}/lib/util_sec.c"
19775 rm -f conftest
$ac_exeext
19776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19777 (eval $ac_link) 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 samba_cv_USE_SETREUID
=yes
19788 echo "$as_me: program exited with status $ac_status" >&5
19789 echo "$as_me: failed program was:" >&5
19790 cat conftest.
$ac_ext >&5
19791 ( exit $ac_status )
19792 samba_cv_USE_SETREUID
=no
19794 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19797 echo "$as_me:$LINENO: result: $samba_cv_USE_SETREUID" >&5
19798 echo "${ECHO_T}$samba_cv_USE_SETREUID" >&6
19799 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
19801 cat >>confdefs.h
<<\_ACEOF
19802 #define USE_SETREUID 1
19808 if test $seteuid = no
; then
19809 echo "$as_me:$LINENO: checking for seteuid" >&5
19810 echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
19811 if test "${samba_cv_USE_SETEUID+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 if test "$cross_compiling" = yes; then
19816 samba_cv_USE_SETEUID
=cross
19818 cat >conftest.
$ac_ext <<_ACEOF
19819 #line $LINENO "configure"
19820 #include "confdefs.h"
19822 #define AUTOCONF_TEST 1
19823 #define USE_SETEUID 1
19824 #include "confdefs.h"
19825 #include "${srcdir-.}/lib/util_sec.c"
19827 rm -f conftest
$ac_exeext
19828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19829 (eval $ac_link) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; }; then
19838 samba_cv_USE_SETEUID
=yes
19840 echo "$as_me: program exited with status $ac_status" >&5
19841 echo "$as_me: failed program was:" >&5
19842 cat conftest.
$ac_ext >&5
19843 ( exit $ac_status )
19844 samba_cv_USE_SETEUID
=no
19846 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19849 echo "$as_me:$LINENO: result: $samba_cv_USE_SETEUID" >&5
19850 echo "${ECHO_T}$samba_cv_USE_SETEUID" >&6
19851 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
19853 cat >>confdefs.h
<<\_ACEOF
19854 #define USE_SETEUID 1
19860 if test $seteuid = no
; then
19861 echo "$as_me:$LINENO: checking for setuidx" >&5
19862 echo $ECHO_N "checking for setuidx... $ECHO_C" >&6
19863 if test "${samba_cv_USE_SETUIDX+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 if test "$cross_compiling" = yes; then
19868 samba_cv_USE_SETUIDX
=cross
19870 cat >conftest.
$ac_ext <<_ACEOF
19871 #line $LINENO "configure"
19872 #include "confdefs.h"
19874 #define AUTOCONF_TEST 1
19875 #define USE_SETUIDX 1
19876 #include "confdefs.h"
19877 #include "${srcdir-.}/lib/util_sec.c"
19879 rm -f conftest
$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 samba_cv_USE_SETUIDX
=yes
19892 echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 cat conftest.
$ac_ext >&5
19895 ( exit $ac_status )
19896 samba_cv_USE_SETUIDX
=no
19898 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19901 echo "$as_me:$LINENO: result: $samba_cv_USE_SETUIDX" >&5
19902 echo "${ECHO_T}$samba_cv_USE_SETUIDX" >&6
19903 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
19905 cat >>confdefs.h
<<\_ACEOF
19906 #define USE_SETUIDX 1
19913 echo "$as_me:$LINENO: checking for working mmap" >&5
19914 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19915 if test "${samba_cv_HAVE_MMAP+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 if test "$cross_compiling" = yes; then
19920 samba_cv_HAVE_MMAP
=cross
19922 cat >conftest.
$ac_ext <<_ACEOF
19923 #line $LINENO "configure"
19924 #include "confdefs.h"
19925 #include "${srcdir-.}/tests/shared_mmap.c"
19927 rm -f conftest
$ac_exeext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19929 (eval $ac_link) 2>&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; }; then
19938 samba_cv_HAVE_MMAP
=yes
19940 echo "$as_me: program exited with status $ac_status" >&5
19941 echo "$as_me: failed program was:" >&5
19942 cat conftest.
$ac_ext >&5
19943 ( exit $ac_status )
19944 samba_cv_HAVE_MMAP
=no
19946 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19949 echo "$as_me:$LINENO: result: $samba_cv_HAVE_MMAP" >&5
19950 echo "${ECHO_T}$samba_cv_HAVE_MMAP" >&6
19951 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
19953 cat >>confdefs.h
<<\_ACEOF
19954 #define HAVE_MMAP 1
19959 echo "$as_me:$LINENO: checking for ftruncate needs root" >&5
19960 echo $ECHO_N "checking for ftruncate needs root... $ECHO_C" >&6
19961 if test "${samba_cv_FTRUNCATE_NEEDS_ROOT+set}" = set; then
19962 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 if test "$cross_compiling" = yes; then
19966 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
19968 cat >conftest.
$ac_ext <<_ACEOF
19969 #line $LINENO "configure"
19970 #include "confdefs.h"
19971 #include "${srcdir-.}/tests/ftruncroot.c"
19973 rm -f conftest
$ac_exeext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19975 (eval $ac_link) 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
19986 echo "$as_me: program exited with status $ac_status" >&5
19987 echo "$as_me: failed program was:" >&5
19988 cat conftest.
$ac_ext >&5
19989 ( exit $ac_status )
19990 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
19992 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19995 echo "$as_me:$LINENO: result: $samba_cv_FTRUNCATE_NEEDS_ROOT" >&5
19996 echo "${ECHO_T}$samba_cv_FTRUNCATE_NEEDS_ROOT" >&6
19997 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
19999 cat >>confdefs.h
<<\_ACEOF
20000 #define FTRUNCATE_NEEDS_ROOT 1
20005 echo "$as_me:$LINENO: checking for fcntl locking" >&5
20006 echo $ECHO_N "checking for fcntl locking... $ECHO_C" >&6
20007 if test "${samba_cv_HAVE_FCNTL_LOCK+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 if test "$cross_compiling" = yes; then
20012 samba_cv_HAVE_FCNTL_LOCK
=cross
20014 cat >conftest.
$ac_ext <<_ACEOF
20015 #line $LINENO "configure"
20016 #include "confdefs.h"
20017 #include "${srcdir-.}/tests/fcntl_lock.c"
20019 rm -f conftest
$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021 (eval $ac_link) 2>&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 samba_cv_HAVE_FCNTL_LOCK
=yes
20032 echo "$as_me: program exited with status $ac_status" >&5
20033 echo "$as_me: failed program was:" >&5
20034 cat conftest.
$ac_ext >&5
20035 ( exit $ac_status )
20036 samba_cv_HAVE_FCNTL_LOCK
=no
20038 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20041 echo "$as_me:$LINENO: result: $samba_cv_HAVE_FCNTL_LOCK" >&5
20042 echo "${ECHO_T}$samba_cv_HAVE_FCNTL_LOCK" >&6
20043 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
20045 cat >>confdefs.h
<<\_ACEOF
20046 #define HAVE_FCNTL_LOCK 1
20051 echo "$as_me:$LINENO: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
20052 echo $ECHO_N "checking for broken (glibc2.1/x86) 64 bit fcntl locking... $ECHO_C" >&6
20053 if test "${samba_cv_HAVE_BROKEN_FCNTL64_LOCKS+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 if test "$cross_compiling" = yes; then
20058 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
20060 cat >conftest.
$ac_ext <<_ACEOF
20061 #line $LINENO "configure"
20062 #include "confdefs.h"
20063 #include "${srcdir-.}/tests/fcntl_lock64.c"
20065 rm -f conftest
$ac_exeext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20067 (eval $ac_link) 2>&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
20078 echo "$as_me: program exited with status $ac_status" >&5
20079 echo "$as_me: failed program was:" >&5
20080 cat conftest.
$ac_ext >&5
20081 ( exit $ac_status )
20082 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
20084 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20087 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&5
20088 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" >&6
20089 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
20091 cat >>confdefs.h
<<\_ACEOF
20092 #define HAVE_BROKEN_FCNTL64_LOCKS 1
20099 echo "$as_me:$LINENO: checking for 64 bit fcntl locking" >&5
20100 echo $ECHO_N "checking for 64 bit fcntl locking... $ECHO_C" >&6
20101 if test "${samba_cv_HAVE_STRUCT_FLOCK64+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 if test "$cross_compiling" = yes; then
20106 samba_cv_HAVE_STRUCT_FLOCK64
=cross
20108 cat >conftest.
$ac_ext <<_ACEOF
20109 #line $LINENO "configure"
20110 #include "confdefs.h"
20112 #if defined(HAVE_UNISTD_H)
20113 #include <unistd.h>
20116 #include <stdlib.h>
20118 #ifdef HAVE_FCNTL_H
20122 #ifdef HAVE_SYS_FCNTL_H
20123 #include <sys/fcntl.h>
20125 main() { struct flock64 fl64;
20126 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
20133 rm -f conftest
$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135 (eval $ac_link) 2>&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_STRUCT_FLOCK64
=yes
20146 echo "$as_me: program exited with status $ac_status" >&5
20147 echo "$as_me: failed program was:" >&5
20148 cat conftest.
$ac_ext >&5
20149 ( exit $ac_status )
20150 samba_cv_HAVE_STRUCT_FLOCK64
=no
20152 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20155 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STRUCT_FLOCK64" >&5
20156 echo "${ECHO_T}$samba_cv_HAVE_STRUCT_FLOCK64" >&6
20158 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
20160 cat >>confdefs.h
<<\_ACEOF
20161 #define HAVE_STRUCT_FLOCK64 1
20167 echo "$as_me:$LINENO: checking for st_blocks in struct stat" >&5
20168 echo $ECHO_N "checking for st_blocks in struct stat... $ECHO_C" >&6
20169 if test "${samba_cv_HAVE_STAT_ST_BLOCKS+set}" = set; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 cat >conftest.
$ac_ext <<_ACEOF
20174 #line $LINENO "configure"
20175 #include "confdefs.h"
20176 #include <sys/types.h>
20177 #include <sys/stat.h>
20178 #include <unistd.h>
20179 #ifdef F77_DUMMY_MAIN
20180 # ifdef __cplusplus
20183 int F77_DUMMY_MAIN() { return 1; }
20188 struct stat st; st.st_blocks = 0;
20193 rm -f conftest.
$ac_objext
20194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20195 (eval $ac_compile) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try
='test -s conftest.$ac_objext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
20207 echo "$as_me: failed program was:" >&5
20208 cat conftest.
$ac_ext >&5
20209 samba_cv_HAVE_STAT_ST_BLOCKS
=no
20211 rm -f conftest.
$ac_objext conftest.
$ac_ext
20213 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLOCKS" >&5
20214 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLOCKS" >&6
20215 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
20217 cat >>confdefs.h
<<\_ACEOF
20218 #define HAVE_STAT_ST_BLOCKS 1
20223 echo "$as_me:$LINENO: checking for st_blksize in struct stat" >&5
20224 echo $ECHO_N "checking for st_blksize in struct stat... $ECHO_C" >&6
20225 if test "${samba_cv_HAVE_STAT_ST_BLKSIZE+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 cat >conftest.
$ac_ext <<_ACEOF
20230 #line $LINENO "configure"
20231 #include "confdefs.h"
20232 #include <sys/types.h>
20233 #include <sys/stat.h>
20234 #include <unistd.h>
20235 #ifdef F77_DUMMY_MAIN
20236 # ifdef __cplusplus
20239 int F77_DUMMY_MAIN() { return 1; }
20244 struct stat st; st.st_blksize = 0;
20249 rm -f conftest.
$ac_objext
20250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20251 (eval $ac_compile) 2>&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
20255 { ac_try
='test -s conftest.$ac_objext'
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; }; then
20261 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
20263 echo "$as_me: failed program was:" >&5
20264 cat conftest.
$ac_ext >&5
20265 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
20267 rm -f conftest.
$ac_objext conftest.
$ac_ext
20269 echo "$as_me:$LINENO: result: $samba_cv_HAVE_STAT_ST_BLKSIZE" >&5
20270 echo "${ECHO_T}$samba_cv_HAVE_STAT_ST_BLKSIZE" >&6
20271 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
20273 cat >>confdefs.h
<<\_ACEOF
20274 #define HAVE_STAT_ST_BLKSIZE 1
20281 echo "$as_me:$LINENO: checking for broken RedHat 7.2 system header files" >&5
20282 echo $ECHO_N "checking for broken RedHat 7.2 system header files... $ECHO_C" >&6
20283 if test "${samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 cat >conftest.
$ac_ext <<_ACEOF
20288 #line $LINENO "configure"
20289 #include "confdefs.h"
20291 #ifdef HAVE_SYS_VFS_H
20292 #include <sys/vfs.h>
20294 #ifdef HAVE_SYS_CAPABILITY_H
20295 #include <sys/capability.h>
20298 #ifdef F77_DUMMY_MAIN
20299 # ifdef __cplusplus
20302 int F77_DUMMY_MAIN() { return 1; }
20312 rm -f conftest.
$ac_objext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20314 (eval $ac_compile) 2>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try
='test -s conftest.$ac_objext'
20319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20320 (eval $ac_try) 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); }; }; then
20324 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
20326 echo "$as_me: failed program was:" >&5
20327 cat conftest.
$ac_ext >&5
20328 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
20330 rm -f conftest.
$ac_objext conftest.
$ac_ext
20332 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&5
20333 echo "${ECHO_T}$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" >&6
20334 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
20336 cat >>confdefs.h
<<\_ACEOF
20337 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
20344 echo "$as_me:$LINENO: checking for broken nisplus include files" >&5
20345 echo $ECHO_N "checking for broken nisplus include files... $ECHO_C" >&6
20346 if test "${samba_cv_BROKEN_NISPLUS_INCLUDE_FILES+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20350 cat >conftest.
$ac_ext <<_ACEOF
20351 #line $LINENO "configure"
20352 #include "confdefs.h"
20353 #include <sys/acl.h>
20354 #if defined(HAVE_RPCSVC_NIS_H)
20355 #include <rpcsvc/nis.h>
20357 #ifdef F77_DUMMY_MAIN
20358 # ifdef __cplusplus
20361 int F77_DUMMY_MAIN() { return 1; }
20371 rm -f conftest.
$ac_objext
20372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20373 (eval $ac_compile) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } &&
20377 { ac_try
='test -s conftest.$ac_objext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
20385 echo "$as_me: failed program was:" >&5
20386 cat conftest.
$ac_ext >&5
20387 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
20389 rm -f conftest.
$ac_objext conftest.
$ac_ext
20391 echo "$as_me:$LINENO: result: $samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&5
20392 echo "${ECHO_T}$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" >&6
20393 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
20395 cat >>confdefs.h
<<\_ACEOF
20396 #define BROKEN_NISPLUS_INCLUDE_FILES 1
20402 #################################################
20403 # check for smbwrapper support
20404 echo "$as_me:$LINENO: checking whether to use smbwrapper" >&5
20405 echo $ECHO_N "checking whether to use smbwrapper... $ECHO_C" >&6
20407 # Check whether --with-smbwrapper or --without-smbwrapper was given.
20408 if test "${with_smbwrapper+set}" = set; then
20409 withval
="$with_smbwrapper"
20412 echo "$as_me:$LINENO: result: yes" >&5
20413 echo "${ECHO_T}yes" >&6
20415 cat >>confdefs.h
<<\_ACEOF
20416 #define WITH_SMBWRAPPER 1
20419 WRAPPROG
="bin/smbsh\$(EXEEXT)"
20420 WRAP
="bin/smbwrapper.$SHLIBEXT"
20422 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
20425 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
20428 # Conditions under which smbwrapper should not be built.
20430 if test x
$PICFLAG = x
; then
20431 echo No support
for PIC code
- disabling smbwrapper and smbsh
20435 elif test x
$ac_cv_func_syscall = xno
; then
20436 echo "$as_me:$LINENO: result: No syscall() -- disabling smbwrapper and smbsh" >&5
20437 echo "${ECHO_T}No syscall() -- disabling smbwrapper and smbsh" >&6
20442 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
20443 SMBWRAPPER
="$WRAPPROG $WRAP $WRAP32"
20446 echo "$as_me:$LINENO: result: no" >&5
20447 echo "${ECHO_T}no" >&6
20451 echo "$as_me:$LINENO: result: no" >&5
20452 echo "${ECHO_T}no" >&6
20456 #################################################
20457 # check for AFS clear-text auth support
20458 echo "$as_me:$LINENO: checking whether to use AFS clear-text auth" >&5
20459 echo $ECHO_N "checking whether to use AFS clear-text auth... $ECHO_C" >&6
20461 # Check whether --with-afs or --without-afs was given.
20462 if test "${with_afs+set}" = set; then
20463 withval
="$with_afs"
20466 echo "$as_me:$LINENO: result: yes" >&5
20467 echo "${ECHO_T}yes" >&6
20469 cat >>confdefs.h
<<\_ACEOF
20475 echo "$as_me:$LINENO: result: no" >&5
20476 echo "${ECHO_T}no" >&6
20480 echo "$as_me:$LINENO: result: no" >&5
20481 echo "${ECHO_T}no" >&6
20486 #################################################
20487 # check for the DFS clear-text auth system
20488 echo "$as_me:$LINENO: checking whether to use DFS clear-text auth" >&5
20489 echo $ECHO_N "checking whether to use DFS clear-text auth... $ECHO_C" >&6
20491 # Check whether --with-dfs or --without-dfs was given.
20492 if test "${with_dfs+set}" = set; then
20493 withval
="$with_dfs"
20496 echo "$as_me:$LINENO: result: yes" >&5
20497 echo "${ECHO_T}yes" >&6
20499 cat >>confdefs.h
<<\_ACEOF
20505 echo "$as_me:$LINENO: result: no" >&5
20506 echo "${ECHO_T}no" >&6
20510 echo "$as_me:$LINENO: result: no" >&5
20511 echo "${ECHO_T}no" >&6
20515 #################################################
20516 # active directory support
20518 with_ads_support
=yes
20519 echo "$as_me:$LINENO: checking whether to use Active Directory" >&5
20520 echo $ECHO_N "checking whether to use Active Directory... $ECHO_C" >&6
20523 # Check whether --with-ads or --without-ads was given.
20524 if test "${with_ads+set}" = set; then
20525 withval
="$with_ads"
20528 with_ads_support
=no
20533 if test x
"$with_ads_support" = x
"yes"; then
20535 cat >>confdefs.h
<<\_ACEOF
20541 echo "$as_me:$LINENO: result: $with_ads_support" >&5
20542 echo "${ECHO_T}$with_ads_support" >&6
20545 if test x
"$with_ads_support" = x
"yes"; then
20547 #################################################
20548 # check for location of Kerberos 5 install
20549 echo "$as_me:$LINENO: checking for kerberos 5 install path" >&5
20550 echo $ECHO_N "checking for kerberos 5 install path... $ECHO_C" >&6
20552 # Check whether --with-krb5 or --without-krb5 was given.
20553 if test "${with_krb5+set}" = set; then
20554 withval
="$with_krb5"
20557 echo "$as_me:$LINENO: result: no" >&5
20558 echo "${ECHO_T}no" >&6
20561 echo "$as_me:$LINENO: result: yes" >&5
20562 echo "${ECHO_T}yes" >&6
20563 LIBS
="$LIBS -lkrb5"
20564 CFLAGS
="$CFLAGS -I$withval/include"
20565 CPPFLAGS
="$CPPFLAGS -I$withval/include"
20566 LDFLAGS
="$LDFLAGS -L$withval/lib"
20571 echo "$as_me:$LINENO: result: no" >&5
20572 echo "${ECHO_T}no" >&6
20577 if test x
$FOUND_KRB5 = x
"no"; then
20578 #################################################
20579 # see if this box has the SuSE location for the heimdal kerberos implementation
20580 echo "$as_me:$LINENO: checking for /usr/include/heimdal" >&5
20581 echo $ECHO_N "checking for /usr/include/heimdal... $ECHO_C" >&6
20582 if test -d /usr
/include
/heimdal
; then
20583 CFLAGS
="$CFLAGS -I/usr/include/heimdal"
20584 CPPFLAGS
="$CPPFLAGS -I/usr/include/heimdal"
20585 echo "$as_me:$LINENO: result: yes" >&5
20586 echo "${ECHO_T}yes" >&6
20588 echo "$as_me:$LINENO: result: no" >&5
20589 echo "${ECHO_T}no" >&6
20594 if test x
$FOUND_KRB5 = x
"no"; then
20595 #################################################
20596 # see if this box has the RedHat location for kerberos
20597 echo "$as_me:$LINENO: checking for /usr/kerberos" >&5
20598 echo $ECHO_N "checking for /usr/kerberos... $ECHO_C" >&6
20599 if test -d /usr
/kerberos
; then
20600 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
20601 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
20602 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
20603 echo "$as_me:$LINENO: result: yes" >&5
20604 echo "${ECHO_T}yes" >&6
20606 echo "$as_me:$LINENO: result: no" >&5
20607 echo "${ECHO_T}no" >&6
20612 # now check for krb5.h. Some systems have the libraries without the headers!
20613 # note that this check is done here to allow for different kerberos
20616 for ac_header
in krb5.h
20618 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20620 echo "$as_me:$LINENO: checking for $ac_header" >&5
20621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20628 # Is the header compilable?
20629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20631 cat >conftest.
$ac_ext <<_ACEOF
20632 #line $LINENO "configure"
20633 #include "confdefs.h"
20634 $ac_includes_default
20635 #include <$ac_header>
20637 rm -f conftest.
$ac_objext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20639 (eval $ac_compile) 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try
='test -s conftest.$ac_objext'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; }; then
20649 ac_header_compiler
=yes
20651 echo "$as_me: failed program was:" >&5
20652 cat conftest.
$ac_ext >&5
20653 ac_header_compiler
=no
20655 rm -f conftest.
$ac_objext conftest.
$ac_ext
20656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20657 echo "${ECHO_T}$ac_header_compiler" >&6
20659 # Is the header present?
20660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20662 cat >conftest.
$ac_ext <<_ACEOF
20663 #line $LINENO "configure"
20664 #include "confdefs.h"
20665 #include <$ac_header>
20667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20668 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20670 egrep -v '^ *\+' conftest.er1
>conftest.err
20672 cat conftest.err
>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); } >/dev
/null
; then
20675 if test -s conftest.err
; then
20676 ac_cpp_err
=$ac_c_preproc_warn_flag
20683 if test -z "$ac_cpp_err"; then
20684 ac_header_preproc
=yes
20686 echo "$as_me: failed program was:" >&5
20687 cat conftest.
$ac_ext >&5
20688 ac_header_preproc
=no
20690 rm -f conftest.err conftest.
$ac_ext
20691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20692 echo "${ECHO_T}$ac_header_preproc" >&6
20694 # So? What about this header?
20695 case $ac_header_compiler:$ac_header_preproc in
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20709 echo "$as_me:$LINENO: checking for $ac_header" >&5
20710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 eval "$as_ac_Header=$ac_header_preproc"
20716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20721 cat >>confdefs.h
<<_ACEOF
20722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20730 # now check for gssapi headers. This is also done here to allow for
20731 # different kerberos include paths
20736 for ac_header
in gssapi.h gssapi
/gssapi_generic.h gssapi
/gssapi.h com_err.h
20738 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20740 echo "$as_me:$LINENO: checking for $ac_header" >&5
20741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20748 # Is the header compilable?
20749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20751 cat >conftest.
$ac_ext <<_ACEOF
20752 #line $LINENO "configure"
20753 #include "confdefs.h"
20754 $ac_includes_default
20755 #include <$ac_header>
20757 rm -f conftest.
$ac_objext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20759 (eval $ac_compile) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try
='test -s conftest.$ac_objext'
20764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765 (eval $ac_try) 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_header_compiler
=yes
20771 echo "$as_me: failed program was:" >&5
20772 cat conftest.
$ac_ext >&5
20773 ac_header_compiler
=no
20775 rm -f conftest.
$ac_objext conftest.
$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782 cat >conftest.
$ac_ext <<_ACEOF
20783 #line $LINENO "configure"
20784 #include "confdefs.h"
20785 #include <$ac_header>
20787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20790 egrep -v '^ *\+' conftest.er1
>conftest.err
20792 cat conftest.err
>&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } >/dev
/null
; then
20795 if test -s conftest.err
; then
20796 ac_cpp_err
=$ac_c_preproc_warn_flag
20803 if test -z "$ac_cpp_err"; then
20804 ac_header_preproc
=yes
20806 echo "$as_me: failed program was:" >&5
20807 cat conftest.
$ac_ext >&5
20808 ac_header_preproc
=no
20810 rm -f conftest.err conftest.
$ac_ext
20811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20812 echo "${ECHO_T}$ac_header_preproc" >&6
20814 # So? What about this header?
20815 case $ac_header_compiler:$ac_header_preproc in
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20829 echo "$as_me:$LINENO: checking for $ac_header" >&5
20830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 eval "$as_ac_Header=$ac_header_preproc"
20836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20841 cat >>confdefs.h
<<_ACEOF
20842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20850 ##################################################################
20851 # we might need the k5crypto and com_err libraries on some systems
20852 echo "$as_me:$LINENO: checking for _et_list in -lcom_err" >&5
20853 echo $ECHO_N "checking for _et_list in -lcom_err... $ECHO_C" >&6
20854 if test "${ac_cv_lib_com_err__et_list+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 ac_check_lib_save_LIBS
=$LIBS
20858 LIBS
="-lcom_err $LIBS"
20859 cat >conftest.
$ac_ext <<_ACEOF
20860 #line $LINENO "configure"
20861 #include "confdefs.h"
20863 /* Override any gcc2 internal prototype to avoid an error. */
20867 /* We use char because int might match the return type of a gcc2
20868 builtin and then its argument prototype would still apply. */
20870 #ifdef F77_DUMMY_MAIN
20871 # ifdef __cplusplus
20874 int F77_DUMMY_MAIN() { return 1; }
20884 rm -f conftest.
$ac_objext conftest
$ac_exeext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try
='test -s conftest$ac_exeext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_lib_com_err__et_list
=yes
20898 echo "$as_me: failed program was:" >&5
20899 cat conftest.
$ac_ext >&5
20900 ac_cv_lib_com_err__et_list
=no
20902 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
20903 LIBS
=$ac_check_lib_save_LIBS
20905 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err__et_list" >&5
20906 echo "${ECHO_T}$ac_cv_lib_com_err__et_list" >&6
20907 if test $ac_cv_lib_com_err__et_list = yes; then
20908 LIBS
="$LIBS -lcom_err"
20911 echo "$as_me:$LINENO: checking for krb5_encrypt_data in -lk5crypto" >&5
20912 echo $ECHO_N "checking for krb5_encrypt_data in -lk5crypto... $ECHO_C" >&6
20913 if test "${ac_cv_lib_k5crypto_krb5_encrypt_data+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 ac_check_lib_save_LIBS
=$LIBS
20917 LIBS
="-lk5crypto $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_encrypt_data ();
20929 #ifdef F77_DUMMY_MAIN
20930 # ifdef __cplusplus
20933 int F77_DUMMY_MAIN() { return 1; }
20938 krb5_encrypt_data ();
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_k5crypto_krb5_encrypt_data
=yes
20957 echo "$as_me: failed program was:" >&5
20958 cat conftest.
$ac_ext >&5
20959 ac_cv_lib_k5crypto_krb5_encrypt_data
=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_k5crypto_krb5_encrypt_data" >&5
20965 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_encrypt_data" >&6
20966 if test $ac_cv_lib_k5crypto_krb5_encrypt_data = yes; then
20967 LIBS
="$LIBS -lk5crypto"
20971 echo "$as_me:$LINENO: checking for des_set_key in -lcrypto" >&5
20972 echo $ECHO_N "checking for des_set_key in -lcrypto... $ECHO_C" >&6
20973 if test "${ac_cv_lib_crypto_des_set_key+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 ac_check_lib_save_LIBS
=$LIBS
20977 LIBS
="-lcrypto $LIBS"
20978 cat >conftest.
$ac_ext <<_ACEOF
20979 #line $LINENO "configure"
20980 #include "confdefs.h"
20982 /* Override any gcc2 internal prototype to avoid an error. */
20986 /* We use char because int might match the return type of a gcc2
20987 builtin and then its argument prototype would still apply. */
20988 char des_set_key ();
20989 #ifdef F77_DUMMY_MAIN
20990 # ifdef __cplusplus
20993 int F77_DUMMY_MAIN() { return 1; }
21003 rm -f conftest.
$ac_objext conftest
$ac_exeext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try
='test -s conftest$ac_exeext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_cv_lib_crypto_des_set_key
=yes
21017 echo "$as_me: failed program was:" >&5
21018 cat conftest.
$ac_ext >&5
21019 ac_cv_lib_crypto_des_set_key
=no
21021 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21022 LIBS
=$ac_check_lib_save_LIBS
21024 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_set_key" >&5
21025 echo "${ECHO_T}$ac_cv_lib_crypto_des_set_key" >&6
21026 if test $ac_cv_lib_crypto_des_set_key = yes; then
21027 LIBS
="$LIBS -lcrypto"
21030 echo "$as_me:$LINENO: checking for copy_Authenticator in -lasn1" >&5
21031 echo $ECHO_N "checking for copy_Authenticator in -lasn1... $ECHO_C" >&6
21032 if test "${ac_cv_lib_asn1_copy_Authenticator+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 ac_check_lib_save_LIBS
=$LIBS
21036 LIBS
="-lasn1 $LIBS"
21037 cat >conftest.
$ac_ext <<_ACEOF
21038 #line $LINENO "configure"
21039 #include "confdefs.h"
21041 /* Override any gcc2 internal prototype to avoid an error. */
21045 /* We use char because int might match the return type of a gcc2
21046 builtin and then its argument prototype would still apply. */
21047 char copy_Authenticator ();
21048 #ifdef F77_DUMMY_MAIN
21049 # ifdef __cplusplus
21052 int F77_DUMMY_MAIN() { return 1; }
21057 copy_Authenticator ();
21062 rm -f conftest.
$ac_objext conftest
$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } &&
21068 { ac_try
='test -s conftest$ac_exeext'
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_lib_asn1_copy_Authenticator
=yes
21076 echo "$as_me: failed program was:" >&5
21077 cat conftest.
$ac_ext >&5
21078 ac_cv_lib_asn1_copy_Authenticator
=no
21080 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21081 LIBS
=$ac_check_lib_save_LIBS
21083 echo "$as_me:$LINENO: result: $ac_cv_lib_asn1_copy_Authenticator" >&5
21084 echo "${ECHO_T}$ac_cv_lib_asn1_copy_Authenticator" >&6
21085 if test $ac_cv_lib_asn1_copy_Authenticator = yes; then
21086 LIBS
="$LIBS -lasn1 -lroken"
21089 echo "$as_me:$LINENO: checking for krb5_set_real_time in -lkrb5" >&5
21090 echo $ECHO_N "checking for krb5_set_real_time in -lkrb5... $ECHO_C" >&6
21091 if test "${ac_cv_lib_krb5_krb5_set_real_time+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 ac_check_lib_save_LIBS
=$LIBS
21095 LIBS
="-lkrb5 $LIBS"
21096 cat >conftest.
$ac_ext <<_ACEOF
21097 #line $LINENO "configure"
21098 #include "confdefs.h"
21100 /* Override any gcc2 internal prototype to avoid an error. */
21104 /* We use char because int might match the return type of a gcc2
21105 builtin and then its argument prototype would still apply. */
21106 char krb5_set_real_time ();
21107 #ifdef F77_DUMMY_MAIN
21108 # ifdef __cplusplus
21111 int F77_DUMMY_MAIN() { return 1; }
21116 krb5_set_real_time ();
21121 rm -f conftest.
$ac_objext conftest
$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try
='test -s conftest$ac_exeext'
21128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129 (eval $ac_try) 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; }; then
21133 ac_cv_lib_krb5_krb5_set_real_time
=yes
21135 echo "$as_me: failed program was:" >&5
21136 cat conftest.
$ac_ext >&5
21137 ac_cv_lib_krb5_krb5_set_real_time
=no
21139 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21140 LIBS
=$ac_check_lib_save_LIBS
21142 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_real_time" >&5
21143 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_real_time" >&6
21144 if test $ac_cv_lib_krb5_krb5_set_real_time = yes; then
21146 cat >>confdefs.h
<<\_ACEOF
21147 #define HAVE_KRB5_SET_REAL_TIME 1
21152 echo "$as_me:$LINENO: checking for krb5_set_default_in_tkt_etypes in -lkrb5" >&5
21153 echo $ECHO_N "checking for krb5_set_default_in_tkt_etypes in -lkrb5... $ECHO_C" >&6
21154 if test "${ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 ac_check_lib_save_LIBS
=$LIBS
21158 LIBS
="-lkrb5 $LIBS"
21159 cat >conftest.
$ac_ext <<_ACEOF
21160 #line $LINENO "configure"
21161 #include "confdefs.h"
21163 /* Override any gcc2 internal prototype to avoid an error. */
21167 /* We use char because int might match the return type of a gcc2
21168 builtin and then its argument prototype would still apply. */
21169 char krb5_set_default_in_tkt_etypes ();
21170 #ifdef F77_DUMMY_MAIN
21171 # ifdef __cplusplus
21174 int F77_DUMMY_MAIN() { return 1; }
21179 krb5_set_default_in_tkt_etypes ();
21184 rm -f conftest.
$ac_objext conftest
$ac_exeext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186 (eval $ac_link) 2>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try
='test -s conftest$ac_exeext'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes
=yes
21198 echo "$as_me: failed program was:" >&5
21199 cat conftest.
$ac_ext >&5
21200 ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes
=no
21202 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21203 LIBS
=$ac_check_lib_save_LIBS
21205 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes" >&5
21206 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes" >&6
21207 if test $ac_cv_lib_krb5_krb5_set_default_in_tkt_etypes = yes; then
21209 cat >>confdefs.h
<<\_ACEOF
21210 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
21215 echo "$as_me:$LINENO: checking for krb5_set_default_tgs_ktypes in -lkrb5" >&5
21216 echo $ECHO_N "checking for krb5_set_default_tgs_ktypes in -lkrb5... $ECHO_C" >&6
21217 if test "${ac_cv_lib_krb5_krb5_set_default_tgs_ktypes+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 ac_check_lib_save_LIBS
=$LIBS
21221 LIBS
="-lkrb5 $LIBS"
21222 cat >conftest.
$ac_ext <<_ACEOF
21223 #line $LINENO "configure"
21224 #include "confdefs.h"
21226 /* Override any gcc2 internal prototype to avoid an error. */
21230 /* We use char because int might match the return type of a gcc2
21231 builtin and then its argument prototype would still apply. */
21232 char krb5_set_default_tgs_ktypes ();
21233 #ifdef F77_DUMMY_MAIN
21234 # ifdef __cplusplus
21237 int F77_DUMMY_MAIN() { return 1; }
21242 krb5_set_default_tgs_ktypes ();
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 ac_cv_lib_krb5_krb5_set_default_tgs_ktypes
=yes
21261 echo "$as_me: failed program was:" >&5
21262 cat conftest.
$ac_ext >&5
21263 ac_cv_lib_krb5_krb5_set_default_tgs_ktypes
=no
21265 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21266 LIBS
=$ac_check_lib_save_LIBS
21268 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_set_default_tgs_ktypes" >&5
21269 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_set_default_tgs_ktypes" >&6
21270 if test $ac_cv_lib_krb5_krb5_set_default_tgs_ktypes = yes; then
21272 cat >>confdefs.h
<<\_ACEOF
21273 #define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
21279 echo "$as_me:$LINENO: checking for addrtype in krb5_address" >&5
21280 echo $ECHO_N "checking for addrtype in krb5_address... $ECHO_C" >&6
21281 if test "${samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 cat >conftest.
$ac_ext <<_ACEOF
21286 #line $LINENO "configure"
21287 #include "confdefs.h"
21289 #ifdef F77_DUMMY_MAIN
21290 # ifdef __cplusplus
21293 int F77_DUMMY_MAIN() { return 1; }
21298 krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
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 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS
=yes
21317 echo "$as_me: failed program was:" >&5
21318 cat conftest.
$ac_ext >&5
21319 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS
=no
21321 rm -f conftest.
$ac_objext conftest.
$ac_ext
21323 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&5
21324 echo "${ECHO_T}$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" >&6
21325 if test x
"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x
"yes"; then
21327 cat >>confdefs.h
<<\_ACEOF
21328 #define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
21333 echo "$as_me:$LINENO: checking for addr_type in krb5_address" >&5
21334 echo $ECHO_N "checking for addr_type in krb5_address... $ECHO_C" >&6
21335 if test "${samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS+set}" = set; then
21336 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 cat >conftest.
$ac_ext <<_ACEOF
21340 #line $LINENO "configure"
21341 #include "confdefs.h"
21343 #ifdef F77_DUMMY_MAIN
21344 # ifdef __cplusplus
21347 int F77_DUMMY_MAIN() { return 1; }
21352 krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
21357 rm -f conftest.
$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
21363 { ac_try
='test -s conftest.$ac_objext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
=yes
21371 echo "$as_me: failed program was:" >&5
21372 cat conftest.
$ac_ext >&5
21373 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
=no
21375 rm -f conftest.
$ac_objext conftest.
$ac_ext
21377 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&5
21378 echo "${ECHO_T}$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" >&6
21379 if test x
"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x
"yes"; then
21381 cat >>confdefs.h
<<\_ACEOF
21382 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
21387 ########################################################
21388 # now see if we can find the krb5 libs in standard paths
21389 # or as specified above
21390 echo "$as_me:$LINENO: checking for krb5_mk_req_extended in -lkrb5" >&5
21391 echo $ECHO_N "checking for krb5_mk_req_extended in -lkrb5... $ECHO_C" >&6
21392 if test "${ac_cv_lib_krb5_krb5_mk_req_extended+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 ac_check_lib_save_LIBS
=$LIBS
21396 LIBS
="-lkrb5 $LIBS"
21397 cat >conftest.
$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21399 #include "confdefs.h"
21401 /* Override any gcc2 internal prototype to avoid an error. */
21405 /* We use char because int might match the return type of a gcc2
21406 builtin and then its argument prototype would still apply. */
21407 char krb5_mk_req_extended ();
21408 #ifdef F77_DUMMY_MAIN
21409 # ifdef __cplusplus
21412 int F77_DUMMY_MAIN() { return 1; }
21417 krb5_mk_req_extended ();
21422 rm -f conftest.
$ac_objext conftest
$ac_exeext
21423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21424 (eval $ac_link) 2>&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); } &&
21428 { ac_try
='test -s conftest$ac_exeext'
21429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430 (eval $ac_try) 2>&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); }; }; then
21434 ac_cv_lib_krb5_krb5_mk_req_extended
=yes
21436 echo "$as_me: failed program was:" >&5
21437 cat conftest.
$ac_ext >&5
21438 ac_cv_lib_krb5_krb5_mk_req_extended
=no
21440 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21441 LIBS
=$ac_check_lib_save_LIBS
21443 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_mk_req_extended" >&5
21444 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_mk_req_extended" >&6
21445 if test $ac_cv_lib_krb5_krb5_mk_req_extended = yes; then
21446 LIBS
="$LIBS -lkrb5";
21448 cat >>confdefs.h
<<\_ACEOF
21449 #define HAVE_KRB5 1
21455 ########################################################
21456 # now see if we can find the gssapi libs in standard paths
21457 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi_krb5" >&5
21458 echo $ECHO_N "checking for gss_display_status in -lgssapi_krb5... $ECHO_C" >&6
21459 if test "${ac_cv_lib_gssapi_krb5_gss_display_status+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 ac_check_lib_save_LIBS
=$LIBS
21463 LIBS
="-lgssapi_krb5 $LIBS"
21464 cat >conftest.
$ac_ext <<_ACEOF
21465 #line $LINENO "configure"
21466 #include "confdefs.h"
21468 /* Override any gcc2 internal prototype to avoid an error. */
21472 /* We use char because int might match the return type of a gcc2
21473 builtin and then its argument prototype would still apply. */
21474 char gss_display_status ();
21475 #ifdef F77_DUMMY_MAIN
21476 # ifdef __cplusplus
21479 int F77_DUMMY_MAIN() { return 1; }
21484 gss_display_status ();
21489 rm -f conftest.
$ac_objext conftest
$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } &&
21495 { ac_try
='test -s conftest$ac_exeext'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; }; then
21501 ac_cv_lib_gssapi_krb5_gss_display_status
=yes
21503 echo "$as_me: failed program was:" >&5
21504 cat conftest.
$ac_ext >&5
21505 ac_cv_lib_gssapi_krb5_gss_display_status
=no
21507 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21508 LIBS
=$ac_check_lib_save_LIBS
21510 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_display_status" >&5
21511 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_display_status" >&6
21512 if test $ac_cv_lib_gssapi_krb5_gss_display_status = yes; then
21513 LIBS
="$LIBS -lgssapi_krb5";
21515 cat >>confdefs.h
<<\_ACEOF
21516 #define HAVE_GSSAPI 1
21522 echo "$as_me:$LINENO: checking for gss_display_status in -lgssapi" >&5
21523 echo $ECHO_N "checking for gss_display_status in -lgssapi... $ECHO_C" >&6
21524 if test "${ac_cv_lib_gssapi_gss_display_status+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 ac_check_lib_save_LIBS
=$LIBS
21528 LIBS
="-lgssapi $LIBS"
21529 cat >conftest.
$ac_ext <<_ACEOF
21530 #line $LINENO "configure"
21531 #include "confdefs.h"
21533 /* Override any gcc2 internal prototype to avoid an error. */
21537 /* We use char because int might match the return type of a gcc2
21538 builtin and then its argument prototype would still apply. */
21539 char gss_display_status ();
21540 #ifdef F77_DUMMY_MAIN
21541 # ifdef __cplusplus
21544 int F77_DUMMY_MAIN() { return 1; }
21549 gss_display_status ();
21554 rm -f conftest.
$ac_objext conftest
$ac_exeext
21555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21556 (eval $ac_link) 2>&5
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); } &&
21560 { ac_try
='test -s conftest$ac_exeext'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_lib_gssapi_gss_display_status
=yes
21568 echo "$as_me: failed program was:" >&5
21569 cat conftest.
$ac_ext >&5
21570 ac_cv_lib_gssapi_gss_display_status
=no
21572 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21573 LIBS
=$ac_check_lib_save_LIBS
21575 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_display_status" >&5
21576 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_display_status" >&6
21577 if test $ac_cv_lib_gssapi_gss_display_status = yes; then
21578 LIBS
="$LIBS -lgssapi";
21580 cat >>confdefs.h
<<\_ACEOF
21581 #define HAVE_GSSAPI 1
21588 ########################################################
21589 # Compile with LDAP support?
21591 with_ldap_support
=yes
21592 echo "$as_me:$LINENO: checking whether to use LDAP" >&5
21593 echo $ECHO_N "checking whether to use LDAP... $ECHO_C" >&6
21596 # Check whether --with-ldap or --without-ldap was given.
21597 if test "${with_ldap+set}" = set; then
21598 withval
="$with_ldap"
21601 with_ldap_support
=no
21606 echo "$as_me:$LINENO: result: $with_ldap_support" >&5
21607 echo "${ECHO_T}$with_ldap_support" >&6
21609 if test x
"$with_ldap_support" = x
"yes"; then
21611 ##################################################################
21612 # we might need the lber lib on some systems. To avoid link errors
21613 # this test must be before the libldap test
21614 echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
21615 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6
21616 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 ac_check_lib_save_LIBS
=$LIBS
21620 LIBS
="-llber $LIBS"
21621 cat >conftest.
$ac_ext <<_ACEOF
21622 #line $LINENO "configure"
21623 #include "confdefs.h"
21625 /* Override any gcc2 internal prototype to avoid an error. */
21629 /* We use char because int might match the return type of a gcc2
21630 builtin and then its argument prototype would still apply. */
21632 #ifdef F77_DUMMY_MAIN
21633 # ifdef __cplusplus
21636 int F77_DUMMY_MAIN() { return 1; }
21646 rm -f conftest.
$ac_objext conftest
$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648 (eval $ac_link) 2>&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try
='test -s conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_lib_lber_ber_scanf
=yes
21660 echo "$as_me: failed program was:" >&5
21661 cat conftest.
$ac_ext >&5
21662 ac_cv_lib_lber_ber_scanf
=no
21664 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21665 LIBS
=$ac_check_lib_save_LIBS
21667 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
21668 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6
21669 if test $ac_cv_lib_lber_ber_scanf = yes; then
21670 LIBS
="$LIBS -llber"
21674 ########################################################
21675 # now see if we can find the ldap libs in standard paths
21676 if test x
$have_ldap != xyes
; then
21677 echo "$as_me:$LINENO: checking for ldap_domain2hostlist in -lldap" >&5
21678 echo $ECHO_N "checking for ldap_domain2hostlist in -lldap... $ECHO_C" >&6
21679 if test "${ac_cv_lib_ldap_ldap_domain2hostlist+set}" = set; then
21680 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 ac_check_lib_save_LIBS
=$LIBS
21683 LIBS
="-lldap $LIBS"
21684 cat >conftest.
$ac_ext <<_ACEOF
21685 #line $LINENO "configure"
21686 #include "confdefs.h"
21688 /* Override any gcc2 internal prototype to avoid an error. */
21692 /* We use char because int might match the return type of a gcc2
21693 builtin and then its argument prototype would still apply. */
21694 char ldap_domain2hostlist ();
21695 #ifdef F77_DUMMY_MAIN
21696 # ifdef __cplusplus
21699 int F77_DUMMY_MAIN() { return 1; }
21704 ldap_domain2hostlist ();
21709 rm -f conftest.
$ac_objext conftest
$ac_exeext
21710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21711 (eval $ac_link) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try
='test -s conftest$ac_exeext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_cv_lib_ldap_ldap_domain2hostlist
=yes
21723 echo "$as_me: failed program was:" >&5
21724 cat conftest.
$ac_ext >&5
21725 ac_cv_lib_ldap_ldap_domain2hostlist
=no
21727 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21728 LIBS
=$ac_check_lib_save_LIBS
21730 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_domain2hostlist" >&5
21731 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_domain2hostlist" >&6
21732 if test $ac_cv_lib_ldap_ldap_domain2hostlist = yes; then
21733 LIBS
="$LIBS -lldap";
21735 cat >>confdefs.h
<<\_ACEOF
21736 #define HAVE_LDAP 1
21742 ########################################################
21743 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
21744 # Check found in pam_ldap 145.
21746 for ac_func
in ldap_set_rebind_proc
21748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21749 echo "$as_me:$LINENO: checking for $ac_func" >&5
21750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21751 if eval "test \"\${$as_ac_var+set}\" = set"; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 cat >conftest.
$ac_ext <<_ACEOF
21755 #line $LINENO "configure"
21756 #include "confdefs.h"
21757 /* System header to define __stub macros and hopefully few prototypes,
21758 which can conflict with char $ac_func (); below. */
21759 #include <assert.h>
21760 /* Override any gcc2 internal prototype to avoid an error. */
21764 /* We use char because int might match the return type of a gcc2
21765 builtin and then its argument prototype would still apply. */
21769 #ifdef F77_DUMMY_MAIN
21770 # ifdef __cplusplus
21773 int F77_DUMMY_MAIN() { return 1; }
21778 /* The GNU C library defines this for functions which it implements
21779 to always fail with ENOSYS. Some functions are actually named
21780 something starting with __ and the normal name is an alias. */
21781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21791 rm -f conftest.
$ac_objext conftest
$ac_exeext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21793 (eval $ac_link) 2>&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } &&
21797 { ac_try
='test -s conftest$ac_exeext'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; }; then
21803 eval "$as_ac_var=yes"
21805 echo "$as_me: failed program was:" >&5
21806 cat conftest.
$ac_ext >&5
21807 eval "$as_ac_var=no"
21809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
21811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21813 if test `eval echo '${'$as_ac_var'}'` = yes; then
21814 cat >>confdefs.h
<<_ACEOF
21815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21821 echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
21822 echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6
21823 if test "${pam_ldap_cv_ldap_set_rebind_proc+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21827 cat >conftest.
$ac_ext <<_ACEOF
21828 #line $LINENO "configure"
21829 #include "confdefs.h"
21833 #ifdef F77_DUMMY_MAIN
21834 # ifdef __cplusplus
21837 int F77_DUMMY_MAIN() { return 1; }
21842 ldap_set_rebind_proc(0, 0, 0);
21847 rm -f conftest.
$ac_objext
21848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21849 (eval $ac_compile) 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } &&
21853 { ac_try
='test -s conftest.$ac_objext'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 pam_ldap_cv_ldap_set_rebind_proc
=3
21861 echo "$as_me: failed program was:" >&5
21862 cat conftest.
$ac_ext >&5
21863 pam_ldap_cv_ldap_set_rebind_proc
=2
21865 rm -f conftest.
$ac_objext conftest.
$ac_ext
21867 echo "$as_me:$LINENO: result: $pam_ldap_cv_ldap_set_rebind_proc" >&5
21868 echo "${ECHO_T}$pam_ldap_cv_ldap_set_rebind_proc" >&6
21870 cat >>confdefs.h
<<_ACEOF
21871 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
21877 ########################################################
21878 # Compile with MySQL support?
21880 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
21881 if test "${with_mysql_prefix+set}" = set; then
21882 withval
="$with_mysql_prefix"
21883 mysql_prefix
="$withval"
21888 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
21889 if test "${with_mysql_exec_prefix+set}" = set; then
21890 withval
="$with_mysql_exec_prefix"
21891 mysql_exec_prefix
="$withval"
21893 mysql_exec_prefix
=""
21895 # Check whether --enable-mysqltest or --disable-mysqltest was given.
21896 if test "${enable_mysqltest+set}" = set; then
21897 enableval
="$enable_mysqltest"
21900 enable_mysqltest
=yes
21903 if test x
$mysql_exec_prefix != x
; then
21904 mysql_args
="$mysql_args --exec-prefix=$mysql_exec_prefix"
21905 if test x
${MYSQL_CONFIG+set} != xset
; then
21906 MYSQL_CONFIG
=$mysql_exec_prefix/bin
/mysql_config
21909 if test x
$mysql_prefix != x
; then
21910 mysql_args
="$mysql_args --prefix=$mysql_prefix"
21911 if test x
${MYSQL_CONFIG+set} != xset
; then
21912 MYSQL_CONFIG
=$mysql_prefix/bin
/mysql_config
21917 # Extract the first word of "mysql_config", so it can be a program name with args.
21918 set dummy mysql_config
; ac_word
=$2
21919 echo "$as_me:$LINENO: checking for $ac_word" >&5
21920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21921 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 case $MYSQL_CONFIG in
21926 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
21929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21930 for as_dir
in $PATH
21933 test -z "$as_dir" && as_dir
=.
21934 for ac_exec_ext
in '' $ac_executable_extensions; do
21935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21936 ac_cv_path_MYSQL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
21937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21943 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG
="no"
21947 MYSQL_CONFIG
=$ac_cv_path_MYSQL_CONFIG
21949 if test -n "$MYSQL_CONFIG"; then
21950 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
21951 echo "${ECHO_T}$MYSQL_CONFIG" >&6
21953 echo "$as_me:$LINENO: result: no" >&5
21954 echo "${ECHO_T}no" >&6
21957 min_mysql_version
=0.11.0
21958 echo "$as_me:$LINENO: checking for MYSQL - version >= $min_mysql_version" >&5
21959 echo $ECHO_N "checking for MYSQL - version >= $min_mysql_version... $ECHO_C" >&6
21961 if test "$MYSQL_CONFIG" = "no" ; then
21964 MYSQL_CFLAGS
=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
21965 MYSQL_LIBS
=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
21967 mysql_major_version
=`$MYSQL_CONFIG $mysql_args --version | \
21968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21969 mysql_minor_version
=`$MYSQL_CONFIG $mysql_args --version | \
21970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21971 mysql_micro_version
=`$MYSQL_CONFIG $mysql_config_args --version | \
21972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21973 if test "x$enable_mysqltest" = "xyes" ; then
21974 ac_save_CFLAGS
="$CFLAGS"
21975 ac_save_LIBS
="$LIBS"
21976 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
21977 LIBS
="$LIBS $MYSQL_LIBS"
21978 rm -f conf.mysqltest
21979 if test "$cross_compiling" = yes; then
21980 echo $ac_n "cross compiling; assumed OK... $ac_c"
21982 cat >conftest.
$ac_ext <<_ACEOF
21983 #line $LINENO "configure"
21984 #include "confdefs.h"
21987 #include <stdlib.h>
21988 #include <string.h>
21992 my_strdup (char *str)
21998 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
21999 strcpy (new_str, str);
22007 int main (int argc, char *argv[])
22009 int major, minor, micro;
22012 /* This hangs on some systems (?)
22013 system ("touch conf.mysqltest");
22015 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
22017 /* HP/UX 9 (%@#!) writes to sscanf strings */
22018 tmp_version = my_strdup("$min_mysql_version");
22019 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
22020 printf("%s, bad version string\n", "$min_mysql_version");
22024 if (($mysql_major_version > major) ||
22025 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
22026 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
22032 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
22033 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
22034 printf("*** best to upgrade to the required version.\n");
22035 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
22036 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
22037 printf("*** config.cache before re-running configure\n");
22044 rm -f conftest
$ac_exeext
22045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046 (eval $ac_link) 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22057 echo "$as_me: program exited with status $ac_status" >&5
22058 echo "$as_me: failed program was:" >&5
22059 cat conftest.
$ac_ext >&5
22060 ( exit $ac_status )
22063 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22065 CFLAGS
="$ac_save_CFLAGS"
22066 LIBS
="$ac_save_LIBS"
22069 if test "x$no_mysql" = x
; then
22070 echo "$as_me:$LINENO: result: yes" >&5
22071 echo "${ECHO_T}yes" >&6
22072 MODULE_MYSQL
=bin
/mysql.so
22074 echo "$as_me:$LINENO: result: no" >&5
22075 echo "${ECHO_T}no" >&6
22076 if test "$MYSQL_CONFIG" = "no" ; then
22077 echo "*** The mysql_config script installed by MYSQL could not be found"
22078 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
22079 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
22080 echo "*** full path to mysql_config."
22082 if test -f conf.mysqltest
; then
22085 echo "*** Could not run MYSQL test program, checking why..."
22086 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
22087 LIBS
="$LIBS $MYSQL_LIBS"
22088 cat >conftest.
$ac_ext <<_ACEOF
22089 #line $LINENO "configure"
22090 #include "confdefs.h"
22095 int main(int argc, char *argv[])
22098 #define main K_and_R_C_main
22100 #ifdef F77_DUMMY_MAIN
22101 # ifdef __cplusplus
22104 int F77_DUMMY_MAIN() { return 1; }
22114 rm -f conftest.
$ac_objext conftest
$ac_exeext
22115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22116 (eval $ac_link) 2>&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } &&
22120 { ac_try
='test -s conftest$ac_exeext'
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 echo "*** The test program compiled, but did not run. This usually means"
22127 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
22128 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
22129 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22130 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22131 echo "*** is required on your system"
22133 echo "*** If you have an old version installed, it is best to remove it, although"
22134 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22136 echo "$as_me: failed program was:" >&5
22137 cat conftest.
$ac_ext >&5
22138 echo "*** The test program failed to compile or link. See the file config.log for the"
22139 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
22140 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
22141 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
22143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22144 CFLAGS
="$ac_save_CFLAGS"
22145 LIBS
="$ac_save_LIBS"
22154 rm -f conf.mysqltest
22156 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
22159 ########################################################
22160 # Compile with XML support?
22163 # Check whether --with-xml-prefix or --without-xml-prefix was given.
22164 if test "${with_xml_prefix+set}" = set; then
22165 withval
="$with_xml_prefix"
22166 xml_config_prefix
="$withval"
22168 xml_config_prefix
=""
22171 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
22172 if test "${with_xml_exec_prefix+set}" = set; then
22173 withval
="$with_xml_exec_prefix"
22174 xml_config_exec_prefix
="$withval"
22176 xml_config_exec_prefix
=""
22178 # Check whether --enable-xmltest or --disable-xmltest was given.
22179 if test "${enable_xmltest+set}" = set; then
22180 enableval
="$enable_xmltest"
22186 if test x
$xml_config_exec_prefix != x
; then
22187 xml_config_args
="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
22188 if test x
${XML2_CONFIG+set} != xset
; then
22189 XML2_CONFIG
=$xml_config_exec_prefix/bin
/xml2-config
22192 if test x
$xml_config_prefix != x
; then
22193 xml_config_args
="$xml_config_args --prefix=$xml_config_prefix"
22194 if test x
${XML2_CONFIG+set} != xset
; then
22195 XML2_CONFIG
=$xml_config_prefix/bin
/xml2-config
22199 # Extract the first word of "xml2-config", so it can be a program name with args.
22200 set dummy xml2-config
; ac_word
=$2
22201 echo "$as_me:$LINENO: checking for $ac_word" >&5
22202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22203 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
22204 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 case $XML2_CONFIG in
22208 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
22211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22212 for as_dir
in $PATH
22215 test -z "$as_dir" && as_dir
=.
22216 for ac_exec_ext
in '' $ac_executable_extensions; do
22217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22218 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
22219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22225 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG
="no"
22229 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
22231 if test -n "$XML2_CONFIG"; then
22232 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
22233 echo "${ECHO_T}$XML2_CONFIG" >&6
22235 echo "$as_me:$LINENO: result: no" >&5
22236 echo "${ECHO_T}no" >&6
22239 min_xml_version
=2.0.0
22240 echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
22241 echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6
22243 if test "$XML2_CONFIG" = "no" ; then
22246 XML_CFLAGS
=`$XML2_CONFIG $xml_config_args --cflags`
22247 XML_LIBS
=`$XML2_CONFIG $xml_config_args --libs`
22248 xml_config_major_version
=`$XML2_CONFIG $xml_config_args --version | \
22249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22250 xml_config_minor_version
=`$XML2_CONFIG $xml_config_args --version | \
22251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22252 xml_config_micro_version
=`$XML2_CONFIG $xml_config_args --version | \
22253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22254 if test "x$enable_xmltest" = "xyes" ; then
22255 ac_save_CFLAGS
="$CFLAGS"
22256 ac_save_LIBS
="$LIBS"
22257 CFLAGS
="$CFLAGS $XML_CFLAGS"
22258 LIBS
="$XML_LIBS $LIBS"
22260 if test "$cross_compiling" = yes; then
22261 echo $ac_n "cross compiling; assumed OK... $ac_c"
22263 cat >conftest.
$ac_ext <<_ACEOF
22264 #line $LINENO "configure"
22265 #include "confdefs.h"
22267 #include <stdlib.h>
22269 #include <string.h>
22270 #include <libxml/xmlversion.h>
22275 int xml_major_version, xml_minor_version, xml_micro_version;
22276 int major, minor, micro;
22279 system("touch conf.xmltest");
22281 /* Capture xml2-config output via autoconf/configure variables */
22282 /* HP/UX 9 (%@#!) writes to sscanf strings */
22283 tmp_version = (char *)strdup("$min_xml_version");
22284 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
22285 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
22290 /* Capture the version information from the header files */
22291 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
22292 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
22293 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
22298 /* Compare xml2-config output to the libxml headers */
22299 if ((xml_major_version != $xml_config_major_version) ||
22300 (xml_minor_version != $xml_config_minor_version) ||
22301 (xml_micro_version != $xml_config_micro_version))
22303 printf("*** libxml header files (version %d.%d.%d) do not match\n",
22304 xml_major_version, xml_minor_version, xml_micro_version);
22305 printf("*** xml2-config (version %d.%d.%d)\n",
22306 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
22309 /* Compare the headers to the library to make sure we match */
22310 /* Less than ideal -- doesn't provide us with return value feedback,
22311 * only exits if there's a serious mismatch between header and library.
22313 LIBXML_TEST_VERSION;
22315 /* Test that the library is greater than our minimum version */
22316 if ((xml_major_version > major) ||
22317 ((xml_major_version == major) && (xml_minor_version > minor)) ||
22318 ((xml_major_version == major) && (xml_minor_version == minor) &&
22319 (xml_micro_version >= micro)))
22325 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
22326 xml_major_version, xml_minor_version, xml_micro_version);
22327 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
22328 major, minor, micro);
22329 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
22331 printf("*** If you have already installed a sufficiently new version, this error\n");
22332 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
22333 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22334 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
22335 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
22336 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22337 printf("*** so that the correct libraries are found at run-time))\n");
22343 rm -f conftest
$ac_exeext
22344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22345 (eval $ac_link) 2>&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; }; then
22356 echo "$as_me: program exited with status $ac_status" >&5
22357 echo "$as_me: failed program was:" >&5
22358 cat conftest.
$ac_ext >&5
22359 ( exit $ac_status )
22362 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22364 CFLAGS
="$ac_save_CFLAGS"
22365 LIBS
="$ac_save_LIBS"
22369 if test "x$no_xml" = x
; then
22370 echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
22371 echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6
22372 MODULE_XML
=bin
/xml.so
22374 echo "$as_me:$LINENO: result: no" >&5
22375 echo "${ECHO_T}no" >&6
22376 if test "$XML2_CONFIG" = "no" ; then
22377 echo "*** The xml2-config script installed by LIBXML could not be found"
22378 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
22379 echo "*** your path, or set the XML2_CONFIG environment variable to the"
22380 echo "*** full path to xml2-config."
22382 if test -f conf.xmltest
; then
22385 echo "*** Could not run libxml test program, checking why..."
22386 CFLAGS
="$CFLAGS $XML_CFLAGS"
22387 LIBS
="$LIBS $XML_LIBS"
22388 cat >conftest.
$ac_ext <<_ACEOF
22389 #line $LINENO "configure"
22390 #include "confdefs.h"
22392 #include <libxml/xmlversion.h>
22395 #ifdef F77_DUMMY_MAIN
22396 # ifdef __cplusplus
22399 int F77_DUMMY_MAIN() { return 1; }
22404 LIBXML_TEST_VERSION; return 0;
22409 rm -f conftest.
$ac_objext conftest
$ac_exeext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22411 (eval $ac_link) 2>&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
22415 { ac_try
='test -s conftest$ac_exeext'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22421 echo "*** The test program compiled, but did not run. This usually means"
22422 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
22423 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
22424 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22425 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22426 echo "*** is required on your system"
22428 echo "*** If you have an old version installed, it is best to remove it, although"
22429 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22431 echo "$as_me: failed program was:" >&5
22432 cat conftest.
$ac_ext >&5
22433 echo "*** The test program failed to compile or link. See the file config.log for the"
22434 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
22435 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
22436 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
22438 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22439 CFLAGS
="$ac_save_CFLAGS"
22440 LIBS
="$ac_save_LIBS"
22452 CFLAGS
="$CFLAGS $XML_CFLAGS"
22455 #################################################
22456 # check for automount support
22457 echo "$as_me:$LINENO: checking whether to use automount" >&5
22458 echo $ECHO_N "checking whether to use automount... $ECHO_C" >&6
22460 # Check whether --with-automount or --without-automount was given.
22461 if test "${with_automount+set}" = set; then
22462 withval
="$with_automount"
22465 echo "$as_me:$LINENO: result: yes" >&5
22466 echo "${ECHO_T}yes" >&6
22468 cat >>confdefs.h
<<\_ACEOF
22469 #define WITH_AUTOMOUNT 1
22474 echo "$as_me:$LINENO: result: no" >&5
22475 echo "${ECHO_T}no" >&6
22479 echo "$as_me:$LINENO: result: no" >&5
22480 echo "${ECHO_T}no" >&6
22484 #################################################
22485 # check for smbmount support
22486 echo "$as_me:$LINENO: checking whether to use smbmount" >&5
22487 echo $ECHO_N "checking whether to use smbmount... $ECHO_C" >&6
22489 # Check whether --with-smbmount or --without-smbmount was given.
22490 if test "${with_smbmount+set}" = set; then
22491 withval
="$with_smbmount"
22496 echo "$as_me:$LINENO: result: yes" >&5
22497 echo "${ECHO_T}yes" >&6
22499 cat >>confdefs.h
<<\_ACEOF
22500 #define WITH_SMBMOUNT 1
22503 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
22506 { { echo "$as_me:$LINENO: error: not on a linux system!" >&5
22507 echo "$as_me: error: not on a linux system!" >&2;}
22508 { (exit 1); exit 1; }; }
22513 echo "$as_me:$LINENO: result: no" >&5
22514 echo "${ECHO_T}no" >&6
22518 echo "$as_me:$LINENO: result: no" >&5
22519 echo "${ECHO_T}no" >&6
22524 #################################################
22525 # check for a PAM clear-text auth, accounts, password and session support
22526 with_pam_for_crypt
=no
22527 echo "$as_me:$LINENO: checking whether to use PAM" >&5
22528 echo $ECHO_N "checking whether to use PAM... $ECHO_C" >&6
22530 # Check whether --with-pam or --without-pam was given.
22531 if test "${with_pam+set}" = set; then
22532 withval
="$with_pam"
22535 echo "$as_me:$LINENO: result: yes" >&5
22536 echo "${ECHO_T}yes" >&6
22538 cat >>confdefs.h
<<\_ACEOF
22542 AUTHLIBS
="$AUTHLIBS -lpam"
22543 with_pam_for_crypt
=yes
22546 echo "$as_me:$LINENO: result: no" >&5
22547 echo "${ECHO_T}no" >&6
22551 echo "$as_me:$LINENO: result: no" >&5
22552 echo "${ECHO_T}no" >&6
22556 # we can't build a pam module if we don't have pam.
22557 echo "$as_me:$LINENO: checking for pam_get_data in -lpam" >&5
22558 echo $ECHO_N "checking for pam_get_data in -lpam... $ECHO_C" >&6
22559 if test "${ac_cv_lib_pam_pam_get_data+set}" = set; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22562 ac_check_lib_save_LIBS
=$LIBS
22564 cat >conftest.
$ac_ext <<_ACEOF
22565 #line $LINENO "configure"
22566 #include "confdefs.h"
22568 /* Override any gcc2 internal prototype to avoid an error. */
22572 /* We use char because int might match the return type of a gcc2
22573 builtin and then its argument prototype would still apply. */
22574 char pam_get_data ();
22575 #ifdef F77_DUMMY_MAIN
22576 # ifdef __cplusplus
22579 int F77_DUMMY_MAIN() { return 1; }
22589 rm -f conftest.
$ac_objext conftest
$ac_exeext
22590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22591 (eval $ac_link) 2>&5
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); } &&
22595 { ac_try
='test -s conftest$ac_exeext'
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 ac_cv_lib_pam_pam_get_data
=yes
22603 echo "$as_me: failed program was:" >&5
22604 cat conftest.
$ac_ext >&5
22605 ac_cv_lib_pam_pam_get_data
=no
22607 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22608 LIBS
=$ac_check_lib_save_LIBS
22610 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_get_data" >&5
22611 echo "${ECHO_T}$ac_cv_lib_pam_pam_get_data" >&6
22612 if test $ac_cv_lib_pam_pam_get_data = yes; then
22614 cat >>confdefs.h
<<\_ACEOF
22615 #define HAVE_LIBPAM 1
22621 #################################################
22622 # check for pam_smbpass support
22623 echo "$as_me:$LINENO: checking whether to use pam_smbpass" >&5
22624 echo $ECHO_N "checking whether to use pam_smbpass... $ECHO_C" >&6
22626 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
22627 if test "${with_pam_smbpass+set}" = set; then
22628 withval
="$with_pam_smbpass"
22631 echo "$as_me:$LINENO: result: yes" >&5
22632 echo "${ECHO_T}yes" >&6
22634 # Conditions under which pam_smbpass should not be built.
22636 if test x
$PICFLAG = x
; then
22637 echo "$as_me:$LINENO: result: No support for PIC code - disabling pam_smbpass" >&5
22638 echo "${ECHO_T}No support for PIC code - disabling pam_smbpass" >&6
22639 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
22640 echo "$as_me:$LINENO: result: No libpam found -- disabling pam_smbpass" >&5
22641 echo "${ECHO_T}No libpam found -- disabling pam_smbpass" >&6
22643 SHLIB_PROGS
="$SHLIB_PROGS bin/pam_smbpass.so"
22647 echo "$as_me:$LINENO: result: no" >&5
22648 echo "${ECHO_T}no" >&6
22652 echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6
22658 ###############################################
22659 # test for where we get crypt() from, but only
22661 if test x
"$with_pam_for_crypt" = x
"no"; then
22663 for ac_func
in crypt
22665 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22666 echo "$as_me:$LINENO: checking for $ac_func" >&5
22667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22668 if eval "test \"\${$as_ac_var+set}\" = set"; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22671 cat >conftest.
$ac_ext <<_ACEOF
22672 #line $LINENO "configure"
22673 #include "confdefs.h"
22674 /* System header to define __stub macros and hopefully few prototypes,
22675 which can conflict with char $ac_func (); below. */
22676 #include <assert.h>
22677 /* Override any gcc2 internal prototype to avoid an error. */
22681 /* We use char because int might match the return type of a gcc2
22682 builtin and then its argument prototype would still apply. */
22686 #ifdef F77_DUMMY_MAIN
22687 # ifdef __cplusplus
22690 int F77_DUMMY_MAIN() { return 1; }
22695 /* The GNU C library defines this for functions which it implements
22696 to always fail with ENOSYS. Some functions are actually named
22697 something starting with __ and the normal name is an alias. */
22698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22708 rm -f conftest.
$ac_objext conftest
$ac_exeext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22710 (eval $ac_link) 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } &&
22714 { ac_try
='test -s conftest$ac_exeext'
22715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716 (eval $ac_try) 2>&5
22718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); }; }; then
22720 eval "$as_ac_var=yes"
22722 echo "$as_me: failed program was:" >&5
22723 cat conftest.
$ac_ext >&5
22724 eval "$as_ac_var=no"
22726 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22730 if test `eval echo '${'$as_ac_var'}'` = yes; then
22731 cat >>confdefs.h
<<_ACEOF
22732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22738 if test x
"$ac_cv_func_crypt" = x
"no"; then
22739 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22740 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22741 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 ac_check_lib_save_LIBS
=$LIBS
22745 LIBS
="-lcrypt $LIBS"
22746 cat >conftest.
$ac_ext <<_ACEOF
22747 #line $LINENO "configure"
22748 #include "confdefs.h"
22750 /* Override any gcc2 internal prototype to avoid an error. */
22754 /* We use char because int might match the return type of a gcc2
22755 builtin and then its argument prototype would still apply. */
22757 #ifdef F77_DUMMY_MAIN
22758 # ifdef __cplusplus
22761 int F77_DUMMY_MAIN() { return 1; }
22771 rm -f conftest.
$ac_objext conftest
$ac_exeext
22772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22773 (eval $ac_link) 2>&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
22777 { ac_try
='test -s conftest$ac_exeext'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22783 ac_cv_lib_crypt_crypt
=yes
22785 echo "$as_me: failed program was:" >&5
22786 cat conftest.
$ac_ext >&5
22787 ac_cv_lib_crypt_crypt
=no
22789 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
22790 LIBS
=$ac_check_lib_save_LIBS
22792 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22793 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22794 if test $ac_cv_lib_crypt_crypt = yes; then
22795 AUTHLIBS
="$AUTHLIBS -lcrypt";
22797 cat >>confdefs.h
<<\_ACEOF
22798 #define HAVE_CRYPT 1
22807 ## moved after the check for -lcrypt in order to
22808 ## ensure that the necessary libraries are included
22809 ## check checking for truncated salt. Wrapped by the
22810 ## $with_pam_for_crypt variable as above --jerry
22812 if test $with_pam_for_crypt = no
; then
22813 echo "$as_me:$LINENO: checking for a crypt that needs truncated salt" >&5
22814 echo $ECHO_N "checking for a crypt that needs truncated salt... $ECHO_C" >&6
22815 if test "${samba_cv_HAVE_TRUNCATED_SALT+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 LIBS
="$AUTHLIBS $LIBS"
22821 if test "$cross_compiling" = yes; then
22822 samba_cv_HAVE_TRUNCATED_SALT
=cross
22824 cat >conftest.
$ac_ext <<_ACEOF
22825 #line $LINENO "configure"
22826 #include "confdefs.h"
22827 #include "${srcdir-.}/tests/crypttest.c"
22829 rm -f conftest
$ac_exeext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22831 (eval $ac_link) 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 samba_cv_HAVE_TRUNCATED_SALT
=no
22842 echo "$as_me: program exited with status $ac_status" >&5
22843 echo "$as_me: failed program was:" >&5
22844 cat conftest.
$ac_ext >&5
22845 ( exit $ac_status )
22846 samba_cv_HAVE_TRUNCATED_SALT
=yes
22848 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22852 echo "$as_me:$LINENO: result: $samba_cv_HAVE_TRUNCATED_SALT" >&5
22853 echo "${ECHO_T}$samba_cv_HAVE_TRUNCATED_SALT" >&6
22854 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
22856 cat >>confdefs.h
<<\_ACEOF
22857 #define HAVE_TRUNCATED_SALT 1
22863 # New experimental SAM system
22865 echo "$as_me:$LINENO: checking whether to build the new (experimental) SAM database" >&5
22866 echo $ECHO_N "checking whether to build the new (experimental) SAM database... $ECHO_C" >&6
22868 # Check whether --with-sam or --without-sam was given.
22869 if test "${with_sam+set}" = set; then
22870 withval
="$with_sam"
22873 echo "$as_me:$LINENO: result: yes" >&5
22874 echo "${ECHO_T}yes" >&6
22876 cat >>confdefs.h
<<\_ACEOF
22882 echo "$as_me:$LINENO: result: no" >&5
22883 echo "${ECHO_T}no" >&6
22887 echo "$as_me:$LINENO: result: no" >&5
22888 echo "${ECHO_T}no" >&6
22893 ########################################################################################
22895 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
22897 ########################################################################################
22899 #################################################
22900 # check for a LDAP password database configuration backwards compatibility
22901 echo "$as_me:$LINENO: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
22902 echo $ECHO_N "checking whether to use LDAP SAM 2.2 compatible configuration... $ECHO_C" >&6
22904 # Check whether --with-ldapsam or --without-ldapsam was given.
22905 if test "${with_ldapsam+set}" = set; then
22906 withval
="$with_ldapsam"
22909 echo "$as_me:$LINENO: result: yes" >&5
22910 echo "${ECHO_T}yes" >&6
22912 cat >>confdefs.h
<<\_ACEOF
22913 #define WITH_LDAP_SAMCONFIG 1
22918 echo "$as_me:$LINENO: result: no" >&5
22919 echo "${ECHO_T}no" >&6
22923 echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22928 #################################################
22929 # check for a TDB password database
22930 echo "$as_me:$LINENO: checking whether to use TDB SAM database" >&5
22931 echo $ECHO_N "checking whether to use TDB SAM database... $ECHO_C" >&6
22933 # Check whether --with-tdbsam or --without-tdbsam was given.
22934 if test "${with_tdbsam+set}" = set; then
22935 withval
="$with_tdbsam"
22938 echo "$as_me:$LINENO: result: yes" >&5
22939 echo "${ECHO_T}yes" >&6
22941 cat >>confdefs.h
<<\_ACEOF
22942 #define WITH_TDB_SAM 1
22947 echo "$as_me:$LINENO: result: no" >&5
22948 echo "${ECHO_T}no" >&6
22952 echo "$as_me:$LINENO: result: no" >&5
22953 echo "${ECHO_T}no" >&6
22957 #################################################
22958 # check for a NISPLUS password database
22959 echo "$as_me:$LINENO: checking whether to use NISPLUS SAM database" >&5
22960 echo $ECHO_N "checking whether to use NISPLUS SAM database... $ECHO_C" >&6
22962 # Check whether --with-nisplussam or --without-nisplussam was given.
22963 if test "${with_nisplussam+set}" = set; then
22964 withval
="$with_nisplussam"
22967 echo "$as_me:$LINENO: result: yes" >&5
22968 echo "${ECHO_T}yes" >&6
22970 cat >>confdefs.h
<<\_ACEOF
22971 #define WITH_NISPLUS_SAM 1
22976 echo "$as_me:$LINENO: result: no" >&5
22977 echo "${ECHO_T}no" >&6
22981 echo "$as_me:$LINENO: result: no" >&5
22982 echo "${ECHO_T}no" >&6
22986 ########################################################################################
22988 ## END OF TESTS FOR SAM BACKENDS.
22990 ########################################################################################
22992 #################################################
22993 # check for a NISPLUS_HOME support
22994 echo "$as_me:$LINENO: checking whether to use NISPLUS_HOME" >&5
22995 echo $ECHO_N "checking whether to use NISPLUS_HOME... $ECHO_C" >&6
22997 # Check whether --with-nisplus-home or --without-nisplus-home was given.
22998 if test "${with_nisplus_home+set}" = set; then
22999 withval
="$with_nisplus_home"
23002 echo "$as_me:$LINENO: result: yes" >&5
23003 echo "${ECHO_T}yes" >&6
23005 cat >>confdefs.h
<<\_ACEOF
23006 #define WITH_NISPLUS_HOME 1
23011 echo "$as_me:$LINENO: result: no" >&5
23012 echo "${ECHO_T}no" >&6
23016 echo "$as_me:$LINENO: result: no" >&5
23017 echo "${ECHO_T}no" >&6
23021 #################################################
23022 # check for syslog logging
23023 echo "$as_me:$LINENO: checking whether to use syslog logging" >&5
23024 echo $ECHO_N "checking whether to use syslog logging... $ECHO_C" >&6
23026 # Check whether --with-syslog or --without-syslog was given.
23027 if test "${with_syslog+set}" = set; then
23028 withval
="$with_syslog"
23031 echo "$as_me:$LINENO: result: yes" >&5
23032 echo "${ECHO_T}yes" >&6
23034 cat >>confdefs.h
<<\_ACEOF
23035 #define WITH_SYSLOG 1
23040 echo "$as_me:$LINENO: result: no" >&5
23041 echo "${ECHO_T}no" >&6
23045 echo "$as_me:$LINENO: result: no" >&5
23046 echo "${ECHO_T}no" >&6
23050 #################################################
23051 # check for a shared memory profiling support
23052 echo "$as_me:$LINENO: checking whether to use profiling" >&5
23053 echo $ECHO_N "checking whether to use profiling... $ECHO_C" >&6
23055 # Check whether --with-profiling-data or --without-profiling-data was given.
23056 if test "${with_profiling_data+set}" = set; then
23057 withval
="$with_profiling_data"
23060 echo "$as_me:$LINENO: result: yes" >&5
23061 echo "${ECHO_T}yes" >&6
23063 cat >>confdefs.h
<<\_ACEOF
23064 #define WITH_PROFILE 1
23069 echo "$as_me:$LINENO: result: no" >&5
23070 echo "${ECHO_T}no" >&6
23074 echo "$as_me:$LINENO: result: no" >&5
23075 echo "${ECHO_T}no" >&6
23080 #################################################
23081 # check for experimental disk-quotas support
23082 QUOTAOBJS
=smbd
/noquotas.o
23084 echo "$as_me:$LINENO: checking whether to support disk-quotas" >&5
23085 echo $ECHO_N "checking whether to support disk-quotas... $ECHO_C" >&6
23087 # Check whether --with-quotas or --without-quotas was given.
23088 if test "${with_quotas+set}" = set; then
23089 withval
="$with_quotas"
23092 echo "$as_me:$LINENO: result: yes" >&5
23093 echo "${ECHO_T}yes" >&6
23096 # Check for kernel 2.4.x quota braindamage...
23097 echo "$as_me:$LINENO: checking for linux 2.4.x quota braindamage.." >&5
23098 echo $ECHO_N "checking for linux 2.4.x quota braindamage..... $ECHO_C" >&6
23099 if test "${samba_cv_linux_2_4_quota_braindamage+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23103 cat >conftest.
$ac_ext <<_ACEOF
23104 #line $LINENO "configure"
23105 #include "confdefs.h"
23107 #include <sys/types.h>
23108 #include <asm/types.h>
23109 #include <linux/quota.h>
23110 #include <mntent.h>
23111 #include <linux/unistd.h>
23112 #ifdef F77_DUMMY_MAIN
23113 # ifdef __cplusplus
23116 int F77_DUMMY_MAIN() { return 1; }
23121 struct mem_dqblk D;
23126 rm -f conftest.
$ac_objext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23128 (eval $ac_compile) 2>&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
23132 { ac_try
='test -s conftest.$ac_objext'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 samba_cv_linux_2_4_quota_braindamage
=yes
23140 echo "$as_me: failed program was:" >&5
23141 cat conftest.
$ac_ext >&5
23142 samba_cv_linux_2_4_quota_braindamage
=no
23144 rm -f conftest.
$ac_objext conftest.
$ac_ext
23146 echo "$as_me:$LINENO: result: $samba_cv_linux_2_4_quota_braindamage" >&5
23147 echo "${ECHO_T}$samba_cv_linux_2_4_quota_braindamage" >&6
23148 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
23150 cat >>confdefs.h
<<\_ACEOF
23151 #define LINUX_QUOTAS_2 1
23156 cat >>confdefs.h
<<\_ACEOF
23157 #define LINUX_QUOTAS_1 1
23165 QUOTAOBJS
=smbd
/quotas.o
23167 cat >>confdefs.h
<<\_ACEOF
23168 #define WITH_QUOTAS 1
23173 echo "$as_me:$LINENO: result: no" >&5
23174 echo "${ECHO_T}no" >&6
23178 echo "$as_me:$LINENO: result: no" >&5
23179 echo "${ECHO_T}no" >&6
23184 #################################################
23185 # check for experimental utmp accounting
23187 echo "$as_me:$LINENO: checking whether to support utmp accounting" >&5
23188 echo $ECHO_N "checking whether to support utmp accounting... $ECHO_C" >&6
23190 # Check whether --with-utmp or --without-utmp was given.
23191 if test "${with_utmp+set}" = set; then
23192 withval
="$with_utmp"
23195 echo "$as_me:$LINENO: result: yes" >&5
23196 echo "${ECHO_T}yes" >&6
23198 cat >>confdefs.h
<<\_ACEOF
23199 #define WITH_UTMP 1
23204 echo "$as_me:$LINENO: result: no" >&5
23205 echo "${ECHO_T}no" >&6
23209 echo "$as_me:$LINENO: result: no" >&5
23210 echo "${ECHO_T}no" >&6
23214 #################################################
23215 # choose native language(s) of man pages
23216 echo "$as_me:$LINENO: checking chosen man pages' language(s)" >&5
23217 echo $ECHO_N "checking chosen man pages' language(s)... $ECHO_C" >&6
23219 # Check whether --with-manpages-langs or --without-manpages-langs was given.
23220 if test "${with_manpages_langs+set}" = set; then
23221 withval
="$with_manpages_langs"
23224 { echo "$as_me:$LINENO: WARNING: --with-manpages-langs called without argument - will use default" >&5
23225 echo "$as_me: WARNING: --with-manpages-langs called without argument - will use default" >&2;}
23229 manlangs
="$withval"
23233 echo "$as_me:$LINENO: result: $manlangs" >&5
23234 echo "${ECHO_T}$manlangs" >&6
23235 manlangs
=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
23239 echo "$as_me:$LINENO: result: $manlangs" >&5
23240 echo "${ECHO_T}$manlangs" >&6
23245 #################################################
23246 # should we build libsmbclient?
23248 LIBSMBCLIENT_SHARED
=
23250 echo "$as_me:$LINENO: checking whether to build the libsmbclient shared library" >&5
23251 echo $ECHO_N "checking whether to build the libsmbclient shared library... $ECHO_C" >&6
23253 # Check whether --with-libsmbclient or --without-libsmbclient was given.
23254 if test "${with_libsmbclient+set}" = set; then
23255 withval
="$with_libsmbclient"
23258 echo "$as_me:$LINENO: result: no" >&5
23259 echo "${ECHO_T}no" >&6
23262 if test $BLDSHARED = true
; then
23263 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
23264 LIBSMBCLIENT
=libsmbclient
23265 echo "$as_me:$LINENO: result: yes" >&5
23266 echo "${ECHO_T}yes" >&6
23268 echo "$as_me:$LINENO: result: no shared library support" >&5
23269 echo "${ECHO_T}no shared library support" >&6
23274 echo "$as_me:$LINENO: result: yes" >&5
23275 echo "${ECHO_T}yes" >&6
23280 #################################################
23281 # these tests are taken from the GNU fileutils package
23282 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
23283 echo "$as_me: checking how to get filesystem space usage..." >&6;}
23286 # Test for statvfs64.
23287 if test $space = no
; then
23289 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
23290 echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
23291 if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23294 if test "$cross_compiling" = yes; then
23295 fu_cv_sys_stat_statvfs64
=cross
23297 cat >conftest.
$ac_ext <<_ACEOF
23298 #line $LINENO "configure"
23299 #include "confdefs.h"
23301 #if defined(HAVE_UNISTD_H)
23302 #include <unistd.h>
23304 #include <sys/types.h>
23305 #include <sys/statvfs.h>
23308 struct statvfs64 fsd;
23309 exit (statvfs64 (".", &fsd));
23312 rm -f conftest
$ac_exeext
23313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23314 (eval $ac_link) 2>&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; }; then
23323 fu_cv_sys_stat_statvfs64
=yes
23325 echo "$as_me: program exited with status $ac_status" >&5
23326 echo "$as_me: failed program was:" >&5
23327 cat conftest.
$ac_ext >&5
23328 ( exit $ac_status )
23329 fu_cv_sys_stat_statvfs64
=no
23331 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23334 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
23335 echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
23336 if test $fu_cv_sys_stat_statvfs64 = yes; then
23339 cat >>confdefs.h
<<\_ACEOF
23340 #define STAT_STATVFS64 1
23346 # Perform only the link test since it seems there are no variants of the
23347 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
23348 # because that got a false positive on SCO OSR5. Adding the declaration
23349 # of a `struct statvfs' causes this test to fail (as it should) on such
23350 # systems. That system is reported to work fine with STAT_STATFS4 which
23351 # is what it gets when this test fails.
23352 if test $space = no
; then
23354 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
23355 echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
23356 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
23357 echo $ECHO_N "(cached) $ECHO_C" >&6
23359 cat >conftest.
$ac_ext <<_ACEOF
23360 #line $LINENO "configure"
23361 #include "confdefs.h"
23362 #include <sys/types.h>
23363 #include <sys/statvfs.h>
23364 #ifdef F77_DUMMY_MAIN
23365 # ifdef __cplusplus
23368 int F77_DUMMY_MAIN() { return 1; }
23373 struct statvfs fsd; statvfs (0, &fsd);
23378 rm -f conftest.
$ac_objext conftest
$ac_exeext
23379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23380 (eval $ac_link) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } &&
23384 { ac_try
='test -s conftest$ac_exeext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 fu_cv_sys_stat_statvfs
=yes
23392 echo "$as_me: failed program was:" >&5
23393 cat conftest.
$ac_ext >&5
23394 fu_cv_sys_stat_statvfs
=no
23396 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23398 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
23399 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
23400 if test $fu_cv_sys_stat_statvfs = yes; then
23403 cat >>confdefs.h
<<\_ACEOF
23404 #define STAT_STATVFS 1
23410 if test $space = no
; then
23411 # DEC Alpha running OSF/1
23412 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
23413 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
23414 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 if test "$cross_compiling" = yes; then
23418 fu_cv_sys_stat_statfs3_osf1
=no
23420 cat >conftest.
$ac_ext <<_ACEOF
23421 #line $LINENO "configure"
23422 #include "confdefs.h"
23424 #include <sys/param.h>
23425 #include <sys/types.h>
23426 #include <sys/mount.h>
23431 exit (statfs (".", &fsd, sizeof (struct statfs)));
23434 rm -f conftest
$ac_exeext
23435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436 (eval $ac_link) 2>&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23445 fu_cv_sys_stat_statfs3_osf1
=yes
23447 echo "$as_me: program exited with status $ac_status" >&5
23448 echo "$as_me: failed program was:" >&5
23449 cat conftest.
$ac_ext >&5
23450 ( exit $ac_status )
23451 fu_cv_sys_stat_statfs3_osf1
=no
23453 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23457 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
23458 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
23459 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
23462 cat >>confdefs.h
<<\_ACEOF
23463 #define STAT_STATFS3_OSF1 1
23469 if test $space = no
; then
23471 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
23472 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
23473 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23476 if test "$cross_compiling" = yes; then
23477 fu_cv_sys_stat_statfs2_bsize
=no
23479 cat >conftest.
$ac_ext <<_ACEOF
23480 #line $LINENO "configure"
23481 #include "confdefs.h"
23483 #ifdef HAVE_SYS_PARAM_H
23484 #include <sys/param.h>
23486 #ifdef HAVE_SYS_MOUNT_H
23487 #include <sys/mount.h>
23489 #ifdef HAVE_SYS_VFS_H
23490 #include <sys/vfs.h>
23496 exit (statfs (".", &fsd));
23499 rm -f conftest
$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501 (eval $ac_link) 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; }; then
23510 fu_cv_sys_stat_statfs2_bsize
=yes
23512 echo "$as_me: program exited with status $ac_status" >&5
23513 echo "$as_me: failed program was:" >&5
23514 cat conftest.
$ac_ext >&5
23515 ( exit $ac_status )
23516 fu_cv_sys_stat_statfs2_bsize
=no
23518 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23522 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
23523 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
23524 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
23527 cat >>confdefs.h
<<\_ACEOF
23528 #define STAT_STATFS2_BSIZE 1
23534 if test $space = no
; then
23536 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
23537 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
23538 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 if test "$cross_compiling" = yes; then
23542 fu_cv_sys_stat_statfs4
=no
23544 cat >conftest.
$ac_ext <<_ACEOF
23545 #line $LINENO "configure"
23546 #include "confdefs.h"
23547 #include <sys/types.h>
23548 #include <sys/statfs.h>
23552 exit (statfs (".", &fsd, sizeof fsd, 0));
23555 rm -f conftest
$ac_exeext
23556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23557 (eval $ac_link) 2>&5
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 fu_cv_sys_stat_statfs4
=yes
23568 echo "$as_me: program exited with status $ac_status" >&5
23569 echo "$as_me: failed program was:" >&5
23570 cat conftest.
$ac_ext >&5
23571 ( exit $ac_status )
23572 fu_cv_sys_stat_statfs4
=no
23574 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23578 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
23579 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
23580 if test $fu_cv_sys_stat_statfs4 = yes; then
23583 cat >>confdefs.h
<<\_ACEOF
23584 #define STAT_STATFS4 1
23590 if test $space = no
; then
23591 # 4.4BSD and NetBSD
23592 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
23593 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
23594 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23597 if test "$cross_compiling" = yes; then
23598 fu_cv_sys_stat_statfs2_fsize
=no
23600 cat >conftest.
$ac_ext <<_ACEOF
23601 #line $LINENO "configure"
23602 #include "confdefs.h"
23603 #include <sys/types.h>
23604 #ifdef HAVE_SYS_PARAM_H
23605 #include <sys/param.h>
23607 #ifdef HAVE_SYS_MOUNT_H
23608 #include <sys/mount.h>
23614 exit (statfs (".", &fsd));
23617 rm -f conftest
$ac_exeext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23619 (eval $ac_link) 2>&5
23621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 fu_cv_sys_stat_statfs2_fsize
=yes
23630 echo "$as_me: program exited with status $ac_status" >&5
23631 echo "$as_me: failed program was:" >&5
23632 cat conftest.
$ac_ext >&5
23633 ( exit $ac_status )
23634 fu_cv_sys_stat_statfs2_fsize
=no
23636 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23640 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
23641 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
23642 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
23645 cat >>confdefs.h
<<\_ACEOF
23646 #define STAT_STATFS2_FSIZE 1
23652 if test $space = no
; then
23654 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
23655 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
23656 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 if test "$cross_compiling" = yes; then
23660 fu_cv_sys_stat_fs_data
=no
23662 cat >conftest.
$ac_ext <<_ACEOF
23663 #line $LINENO "configure"
23664 #include "confdefs.h"
23665 #include <sys/types.h>
23666 #ifdef HAVE_SYS_PARAM_H
23667 #include <sys/param.h>
23669 #ifdef HAVE_SYS_MOUNT_H
23670 #include <sys/mount.h>
23672 #ifdef HAVE_SYS_FS_TYPES_H
23673 #include <sys/fs_types.h>
23677 struct fs_data fsd;
23678 /* Ultrix's statfs returns 1 for success,
23679 0 for not mounted, -1 for failure. */
23680 exit (statfs (".", &fsd) != 1);
23683 rm -f conftest
$ac_exeext
23684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23685 (eval $ac_link) 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690 (eval $ac_try) 2>&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); }; }; then
23694 fu_cv_sys_stat_fs_data
=yes
23696 echo "$as_me: program exited with status $ac_status" >&5
23697 echo "$as_me: failed program was:" >&5
23698 cat conftest.
$ac_ext >&5
23699 ( exit $ac_status )
23700 fu_cv_sys_stat_fs_data
=no
23702 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23706 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
23707 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
23708 if test $fu_cv_sys_stat_fs_data = yes; then
23711 cat >>confdefs.h
<<\_ACEOF
23712 #define STAT_STATFS2_FS_DATA 1
23719 # As a gating factor for large file support, in order to
23720 # use <4GB files we must have the following minimal support
23722 # long long, and a 64 bit off_t or off64_t.
23723 # If we don't have all of these then disable large
23726 echo "$as_me:$LINENO: checking if large file support can be enabled" >&5
23727 echo $ECHO_N "checking if large file support can be enabled... $ECHO_C" >&6
23728 cat >conftest.
$ac_ext <<_ACEOF
23729 #line $LINENO "configure"
23730 #include "confdefs.h"
23732 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
23733 #include <sys/types.h>
23738 #ifdef F77_DUMMY_MAIN
23739 # ifdef __cplusplus
23742 int F77_DUMMY_MAIN() { return 1; }
23752 rm -f conftest.
$ac_objext
23753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23754 (eval $ac_compile) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } &&
23758 { ac_try
='test -s conftest.$ac_objext'
23759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760 (eval $ac_try) 2>&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); }; }; then
23764 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
23766 echo "$as_me: failed program was:" >&5
23767 cat conftest.
$ac_ext >&5
23768 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
23770 rm -f conftest.
$ac_objext conftest.
$ac_ext
23771 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
23773 cat >>confdefs.h
<<\_ACEOF
23774 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
23778 echo "$as_me:$LINENO: result: $samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&5
23779 echo "${ECHO_T}$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" >&6
23782 # Check whether --with-spinlocks or --without-spinlocks was given.
23783 if test "${with_spinlocks+set}" = set; then
23784 withval
="$with_spinlocks"
23787 if test "x$with_spinlocks" = "xyes"; then
23789 cat >>confdefs.h
<<\_ACEOF
23790 #define USE_SPINLOCKS 1
23794 case "$host_cpu" in
23797 cat >>confdefs.h
<<\_ACEOF
23798 #define SPARC_SPINLOCKS 1
23803 i386|i486|i586|i686
)
23805 cat >>confdefs.h
<<\_ACEOF
23806 #define INTEL_SPINLOCKS 1
23813 cat >>confdefs.h
<<\_ACEOF
23814 #define MIPS_SPINLOCKS 1
23821 cat >>confdefs.h
<<\_ACEOF
23822 #define POWERPC_SPINLOCKS 1
23829 #################################################
23830 # check for ACL support
23832 echo "$as_me:$LINENO: checking whether to support ACLs" >&5
23833 echo $ECHO_N "checking whether to support ACLs... $ECHO_C" >&6
23835 # Check whether --with-acl-support or --without-acl-support was given.
23836 if test "${with_acl_support+set}" = set; then
23837 withval
="$with_acl_support"
23843 echo "$as_me:$LINENO: result: Using UnixWare ACLs" >&5
23844 echo "${ECHO_T}Using UnixWare ACLs" >&6
23846 cat >>confdefs.h
<<\_ACEOF
23847 #define HAVE_UNIXWARE_ACLS 1
23852 echo "$as_me:$LINENO: result: Using solaris ACLs" >&5
23853 echo "${ECHO_T}Using solaris ACLs" >&6
23855 cat >>confdefs.h
<<\_ACEOF
23856 #define HAVE_SOLARIS_ACLS 1
23861 echo "$as_me:$LINENO: result: Using HPUX ACLs" >&5
23862 echo "${ECHO_T}Using HPUX ACLs" >&6
23864 cat >>confdefs.h
<<\_ACEOF
23865 #define HAVE_HPUX_ACLS 1
23870 echo "$as_me:$LINENO: result: Using IRIX ACLs" >&5
23871 echo "${ECHO_T}Using IRIX ACLs" >&6
23873 cat >>confdefs.h
<<\_ACEOF
23874 #define HAVE_IRIX_ACLS 1
23879 echo "$as_me:$LINENO: result: Using AIX ACLs" >&5
23880 echo "${ECHO_T}Using AIX ACLs" >&6
23882 cat >>confdefs.h
<<\_ACEOF
23883 #define HAVE_AIX_ACLS 1
23888 echo "$as_me:$LINENO: result: Using Tru64 ACLs" >&5
23889 echo "${ECHO_T}Using Tru64 ACLs" >&6
23891 cat >>confdefs.h
<<\_ACEOF
23892 #define HAVE_TRU64_ACLS 1
23895 LIBS
="$LIBS -lpacl"
23899 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23900 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23901 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23902 echo $ECHO_N "(cached) $ECHO_C" >&6
23904 ac_check_lib_save_LIBS
=$LIBS
23906 cat >conftest.
$ac_ext <<_ACEOF
23907 #line $LINENO "configure"
23908 #include "confdefs.h"
23910 /* Override any gcc2 internal prototype to avoid an error. */
23914 /* We use char because int might match the return type of a gcc2
23915 builtin and then its argument prototype would still apply. */
23916 char acl_get_file ();
23917 #ifdef F77_DUMMY_MAIN
23918 # ifdef __cplusplus
23921 int F77_DUMMY_MAIN() { return 1; }
23931 rm -f conftest.
$ac_objext conftest
$ac_exeext
23932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23933 (eval $ac_link) 2>&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } &&
23937 { ac_try
='test -s conftest$ac_exeext'
23938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939 (eval $ac_try) 2>&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); }; }; then
23943 ac_cv_lib_acl_acl_get_file
=yes
23945 echo "$as_me: failed program was:" >&5
23946 cat conftest.
$ac_ext >&5
23947 ac_cv_lib_acl_acl_get_file
=no
23949 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
23950 LIBS
=$ac_check_lib_save_LIBS
23952 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23953 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23954 if test $ac_cv_lib_acl_acl_get_file = yes; then
23955 cat >>confdefs.h
<<_ACEOF
23956 #define HAVE_LIBACL 1
23963 echo "$as_me:$LINENO: checking for ACL support" >&5
23964 echo $ECHO_N "checking for ACL support... $ECHO_C" >&6
23965 if test "${samba_cv_HAVE_POSIX_ACLS+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 cat >conftest.
$ac_ext <<_ACEOF
23970 #line $LINENO "configure"
23971 #include "confdefs.h"
23972 #include <sys/types.h>
23973 #include <sys/acl.h>
23974 #ifdef F77_DUMMY_MAIN
23975 # ifdef __cplusplus
23978 int F77_DUMMY_MAIN() { return 1; }
23983 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
23988 rm -f conftest.
$ac_objext conftest
$ac_exeext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23990 (eval $ac_link) 2>&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } &&
23994 { ac_try
='test -s conftest$ac_exeext'
23995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23996 (eval $ac_try) 2>&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; }; then
24000 samba_cv_HAVE_POSIX_ACLS
=yes
24002 echo "$as_me: failed program was:" >&5
24003 cat conftest.
$ac_ext >&5
24004 samba_cv_HAVE_POSIX_ACLS
=no
24006 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24008 echo "$as_me:$LINENO: result: $samba_cv_HAVE_POSIX_ACLS" >&5
24009 echo "${ECHO_T}$samba_cv_HAVE_POSIX_ACLS" >&6
24010 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
24011 echo "$as_me:$LINENO: result: Using posix ACLs" >&5
24012 echo "${ECHO_T}Using posix ACLs" >&6
24014 cat >>confdefs.h
<<\_ACEOF
24015 #define HAVE_POSIX_ACLS 1
24018 echo "$as_me:$LINENO: checking for acl_get_perm_np" >&5
24019 echo $ECHO_N "checking for acl_get_perm_np... $ECHO_C" >&6
24020 if test "${samba_cv_HAVE_ACL_GET_PERM_NP+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24024 cat >conftest.
$ac_ext <<_ACEOF
24025 #line $LINENO "configure"
24026 #include "confdefs.h"
24027 #include <sys/types.h>
24028 #include <sys/acl.h>
24029 #ifdef F77_DUMMY_MAIN
24030 # ifdef __cplusplus
24033 int F77_DUMMY_MAIN() { return 1; }
24038 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
24043 rm -f conftest.
$ac_objext conftest
$ac_exeext
24044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24045 (eval $ac_link) 2>&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } &&
24049 { ac_try
='test -s conftest$ac_exeext'
24050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051 (eval $ac_try) 2>&5
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; }; then
24055 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
24057 echo "$as_me: failed program was:" >&5
24058 cat conftest.
$ac_ext >&5
24059 samba_cv_HAVE_ACL_GET_PERM_NP
=no
24061 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24063 echo "$as_me:$LINENO: result: $samba_cv_HAVE_ACL_GET_PERM_NP" >&5
24064 echo "${ECHO_T}$samba_cv_HAVE_ACL_GET_PERM_NP" >&6
24065 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
24067 cat >>confdefs.h
<<\_ACEOF
24068 #define HAVE_ACL_GET_PERM_NP 1
24077 echo "$as_me:$LINENO: result: no" >&5
24078 echo "${ECHO_T}no" >&6
24080 cat >>confdefs.h
<<\_ACEOF
24081 #define HAVE_NO_ACLS 1
24088 cat >>confdefs.h
<<\_ACEOF
24089 #define HAVE_NO_ACLS 1
24092 echo "$as_me:$LINENO: result: no" >&5
24093 echo "${ECHO_T}no" >&6
24097 #################################################
24098 # check for sendfile support
24100 with_sendfile_support
=yes
24101 echo "$as_me:$LINENO: checking whether to check to support sendfile" >&5
24102 echo $ECHO_N "checking whether to check to support sendfile... $ECHO_C" >&6
24104 # Check whether --with-sendfile-support or --without-sendfile-support was given.
24105 if test "${with_sendfile_support+set}" = set; then
24106 withval
="$with_sendfile_support"
24110 echo "$as_me:$LINENO: result: yes" >&5
24111 echo "${ECHO_T}yes" >&6;
24115 echo "$as_me:$LINENO: checking for linux sendfile64 support" >&5
24116 echo $ECHO_N "checking for linux sendfile64 support... $ECHO_C" >&6
24117 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
24118 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 cat >conftest.
$ac_ext <<_ACEOF
24122 #line $LINENO "configure"
24123 #include "confdefs.h"
24124 #include <sys/sendfile.h>
24125 #ifdef F77_DUMMY_MAIN
24126 # ifdef __cplusplus
24129 int F77_DUMMY_MAIN() { return 1; }
24138 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
24144 rm -f conftest.
$ac_objext conftest
$ac_exeext
24145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24146 (eval $ac_link) 2>&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try
='test -s conftest$ac_exeext'
24151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152 (eval $ac_try) 2>&5
24154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155 (exit $ac_status); }; }; then
24156 samba_cv_HAVE_SENDFILE64
=yes
24158 echo "$as_me: failed program was:" >&5
24159 cat conftest.
$ac_ext >&5
24160 samba_cv_HAVE_SENDFILE64
=no
24162 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24164 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
24165 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
24167 echo "$as_me:$LINENO: checking for linux sendfile support" >&5
24168 echo $ECHO_N "checking for linux sendfile support... $ECHO_C" >&6
24169 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24173 cat >conftest.
$ac_ext <<_ACEOF
24174 #line $LINENO "configure"
24175 #include "confdefs.h"
24176 #include <sys/sendfile.h>
24177 #ifdef F77_DUMMY_MAIN
24178 # ifdef __cplusplus
24181 int F77_DUMMY_MAIN() { return 1; }
24190 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
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_SENDFILE
=yes
24210 echo "$as_me: failed program was:" >&5
24211 cat conftest.
$ac_ext >&5
24212 samba_cv_HAVE_SENDFILE
=no
24214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24216 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24217 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24219 # Try and cope with broken Linux sendfile....
24220 echo "$as_me:$LINENO: checking for broken linux sendfile support" >&5
24221 echo $ECHO_N "checking for broken linux sendfile support... $ECHO_C" >&6
24222 if test "${samba_cv_HAVE_BROKEN_LINUX_SENDFILE+set}" = set; then
24223 echo $ECHO_N "(cached) $ECHO_C" >&6
24226 cat >conftest.
$ac_ext <<_ACEOF
24227 #line $LINENO "configure"
24228 #include "confdefs.h"
24230 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
24231 #undef _FILE_OFFSET_BITS
24233 #include <sys/sendfile.h>
24234 #ifdef F77_DUMMY_MAIN
24235 # ifdef __cplusplus
24238 int F77_DUMMY_MAIN() { return 1; }
24247 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
24253 rm -f conftest.
$ac_objext conftest
$ac_exeext
24254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24255 (eval $ac_link) 2>&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } &&
24259 { ac_try
='test -s conftest$ac_exeext'
24260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24261 (eval $ac_try) 2>&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); }; }; then
24265 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
24267 echo "$as_me: failed program was:" >&5
24268 cat conftest.
$ac_ext >&5
24269 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
24271 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24273 echo "$as_me:$LINENO: result: $samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&5
24274 echo "${ECHO_T}$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" >&6
24276 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
24278 cat >>confdefs.h
<<\_ACEOF
24279 #define HAVE_SENDFILE64 1
24283 cat >>confdefs.h
<<\_ACEOF
24284 #define LINUX_SENDFILE_API 1
24288 cat >>confdefs.h
<<\_ACEOF
24289 #define WITH_SENDFILE 1
24292 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
24294 cat >>confdefs.h
<<\_ACEOF
24295 #define HAVE_SENDFILE 1
24299 cat >>confdefs.h
<<\_ACEOF
24300 #define LINUX_SENDFILE_API 1
24304 cat >>confdefs.h
<<\_ACEOF
24305 #define WITH_SENDFILE 1
24308 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
24310 cat >>confdefs.h
<<\_ACEOF
24311 #define LINUX_BROKEN_SENDFILE_API 1
24315 cat >>confdefs.h
<<\_ACEOF
24316 #define WITH_SENDFILE 1
24320 echo "$as_me:$LINENO: result: no" >&5
24321 echo "${ECHO_T}no" >&6;
24326 echo "$as_me:$LINENO: checking for freebsd sendfile support" >&5
24327 echo $ECHO_N "checking for freebsd sendfile support... $ECHO_C" >&6
24328 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24329 echo $ECHO_N "(cached) $ECHO_C" >&6
24332 cat >conftest.
$ac_ext <<_ACEOF
24333 #line $LINENO "configure"
24334 #include "confdefs.h"
24336 #include <sys/types.h>
24337 #include <unistd.h>
24338 #include <sys/socket.h>
24339 #include <sys/uio.h>
24340 #ifdef F77_DUMMY_MAIN
24341 # ifdef __cplusplus
24344 int F77_DUMMY_MAIN() { return 1; }
24350 int fromfd, tofd, ret, total=0;
24351 off_t offset, nwritten;
24352 struct sf_hdtr hdr;
24353 struct iovec hdtrl;
24354 hdr.headers = &hdtrl;
24356 hdr.trailers = NULL;
24358 hdtrl.iov_base = NULL;
24360 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
24366 rm -f conftest.
$ac_objext conftest
$ac_exeext
24367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24368 (eval $ac_link) 2>&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } &&
24372 { ac_try
='test -s conftest$ac_exeext'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 samba_cv_HAVE_SENDFILE
=yes
24380 echo "$as_me: failed program was:" >&5
24381 cat conftest.
$ac_ext >&5
24382 samba_cv_HAVE_SENDFILE
=no
24384 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24386 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24387 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24389 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
24391 cat >>confdefs.h
<<\_ACEOF
24392 #define HAVE_SENDFILE 1
24396 cat >>confdefs.h
<<\_ACEOF
24397 #define FREEBSD_SENDFILE_API 1
24401 cat >>confdefs.h
<<\_ACEOF
24402 #define WITH_SENDFILE 1
24406 echo "$as_me:$LINENO: result: no" >&5
24407 echo "${ECHO_T}no" >&6;
24412 echo "$as_me:$LINENO: checking for hpux sendfile64 support" >&5
24413 echo $ECHO_N "checking for hpux sendfile64 support... $ECHO_C" >&6
24414 if test "${samba_cv_HAVE_SENDFILE64+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24418 cat >conftest.
$ac_ext <<_ACEOF
24419 #line $LINENO "configure"
24420 #include "confdefs.h"
24422 #include <sys/socket.h>
24423 #include <sys/uio.h>
24424 #ifdef F77_DUMMY_MAIN
24425 # ifdef __cplusplus
24428 int F77_DUMMY_MAIN() { return 1; }
24436 struct iovec hdtrl[2];
24440 hdtrl[0].iov_base = 0;
24441 hdtrl[0].iov_len = 0;
24443 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
24449 rm -f conftest.
$ac_objext conftest
$ac_exeext
24450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24451 (eval $ac_link) 2>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try
='test -s conftest$ac_exeext'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; }; then
24461 samba_cv_HAVE_SENDFILE64
=yes
24463 echo "$as_me: failed program was:" >&5
24464 cat conftest.
$ac_ext >&5
24465 samba_cv_HAVE_SENDFILE64
=no
24467 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24469 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE64" >&5
24470 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE64" >&6
24471 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
24473 cat >>confdefs.h
<<\_ACEOF
24474 #define HAVE_SENDFILE64 1
24478 cat >>confdefs.h
<<\_ACEOF
24479 #define HPUX_SENDFILE_API 1
24483 cat >>confdefs.h
<<\_ACEOF
24484 #define WITH_SENDFILE 1
24488 echo "$as_me:$LINENO: result: no" >&5
24489 echo "${ECHO_T}no" >&6;
24492 echo "$as_me:$LINENO: checking for hpux sendfile support" >&5
24493 echo $ECHO_N "checking for hpux sendfile support... $ECHO_C" >&6
24494 if test "${samba_cv_HAVE_SENDFILE+set}" = set; then
24495 echo $ECHO_N "(cached) $ECHO_C" >&6
24498 cat >conftest.
$ac_ext <<_ACEOF
24499 #line $LINENO "configure"
24500 #include "confdefs.h"
24502 #include <sys/socket.h>
24503 #include <sys/uio.h>
24504 #ifdef F77_DUMMY_MAIN
24505 # ifdef __cplusplus
24508 int F77_DUMMY_MAIN() { return 1; }
24516 struct iovec hdtrl[2];
24520 hdtrl[0].iov_base = 0;
24521 hdtrl[0].iov_len = 0;
24523 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
24529 rm -f conftest.
$ac_objext conftest
$ac_exeext
24530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24531 (eval $ac_link) 2>&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
24535 { ac_try
='test -s conftest$ac_exeext'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; }; then
24541 samba_cv_HAVE_SENDFILE
=yes
24543 echo "$as_me: failed program was:" >&5
24544 cat conftest.
$ac_ext >&5
24545 samba_cv_HAVE_SENDFILE
=no
24547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24549 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILE" >&5
24550 echo "${ECHO_T}$samba_cv_HAVE_SENDFILE" >&6
24551 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
24553 cat >>confdefs.h
<<\_ACEOF
24554 #define HAVE_SENDFILE 1
24558 cat >>confdefs.h
<<\_ACEOF
24559 #define HPUX_SENDFILE_API 1
24563 cat >>confdefs.h
<<\_ACEOF
24564 #define WITH_SENDFILE 1
24568 echo "$as_me:$LINENO: result: no" >&5
24569 echo "${ECHO_T}no" >&6;
24575 echo "$as_me:$LINENO: checking for sendfilev in -lsendfile" >&5
24576 echo $ECHO_N "checking for sendfilev in -lsendfile... $ECHO_C" >&6
24577 if test "${ac_cv_lib_sendfile_sendfilev+set}" = set; then
24578 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 ac_check_lib_save_LIBS
=$LIBS
24581 LIBS
="-lsendfile $LIBS"
24582 cat >conftest.
$ac_ext <<_ACEOF
24583 #line $LINENO "configure"
24584 #include "confdefs.h"
24586 /* Override any gcc2 internal prototype to avoid an error. */
24590 /* We use char because int might match the return type of a gcc2
24591 builtin and then its argument prototype would still apply. */
24593 #ifdef F77_DUMMY_MAIN
24594 # ifdef __cplusplus
24597 int F77_DUMMY_MAIN() { return 1; }
24607 rm -f conftest.
$ac_objext conftest
$ac_exeext
24608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24609 (eval $ac_link) 2>&5
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); } &&
24613 { ac_try
='test -s conftest$ac_exeext'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 ac_cv_lib_sendfile_sendfilev
=yes
24621 echo "$as_me: failed program was:" >&5
24622 cat conftest.
$ac_ext >&5
24623 ac_cv_lib_sendfile_sendfilev
=no
24625 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24626 LIBS
=$ac_check_lib_save_LIBS
24628 echo "$as_me:$LINENO: result: $ac_cv_lib_sendfile_sendfilev" >&5
24629 echo "${ECHO_T}$ac_cv_lib_sendfile_sendfilev" >&6
24630 if test $ac_cv_lib_sendfile_sendfilev = yes; then
24631 cat >>confdefs.h
<<_ACEOF
24632 #define HAVE_LIBSENDFILE 1
24635 LIBS
="-lsendfile $LIBS"
24639 echo "$as_me:$LINENO: checking for solaris sendfilev64 support" >&5
24640 echo $ECHO_N "checking for solaris sendfilev64 support... $ECHO_C" >&6
24641 if test "${samba_cv_HAVE_SENDFILEV64+set}" = set; then
24642 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 cat >conftest.
$ac_ext <<_ACEOF
24646 #line $LINENO "configure"
24647 #include "confdefs.h"
24649 #include <sys/sendfile.h>
24650 #ifdef F77_DUMMY_MAIN
24651 # ifdef __cplusplus
24654 int F77_DUMMY_MAIN() { return 1; }
24662 struct sendfilevec vec[2];
24668 vec[0].sfv_fd = SFV_FD_SELF;
24669 vec[0].sfv_flag = 0;
24670 vec[0].sfv_off = 0;
24671 vec[0].sfv_len = 0;
24674 vec[1].sfv_flag = 0;
24675 vec[1].sfv_off = 0;
24676 vec[1].sfv_len = 0;
24677 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
24683 rm -f conftest.
$ac_objext conftest
$ac_exeext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685 (eval $ac_link) 2>&5
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); } &&
24689 { ac_try
='test -s conftest$ac_exeext'
24690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691 (eval $ac_try) 2>&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); }; }; then
24695 samba_cv_HAVE_SENDFILEV64
=yes
24697 echo "$as_me: failed program was:" >&5
24698 cat conftest.
$ac_ext >&5
24699 samba_cv_HAVE_SENDFILEV64
=no
24701 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24703 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV64" >&5
24704 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV64" >&6
24706 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
24708 cat >>confdefs.h
<<\_ACEOF
24709 #define HAVE_SENDFILEV64 1
24713 cat >>confdefs.h
<<\_ACEOF
24714 #define SOLARIS_SENDFILE_API 1
24718 cat >>confdefs.h
<<\_ACEOF
24719 #define WITH_SENDFILE 1
24723 echo "$as_me:$LINENO: result: no" >&5
24724 echo "${ECHO_T}no" >&6;
24727 echo "$as_me:$LINENO: checking for solaris sendfilev support" >&5
24728 echo $ECHO_N "checking for solaris sendfilev support... $ECHO_C" >&6
24729 if test "${samba_cv_HAVE_SENDFILEV+set}" = set; then
24730 echo $ECHO_N "(cached) $ECHO_C" >&6
24733 cat >conftest.
$ac_ext <<_ACEOF
24734 #line $LINENO "configure"
24735 #include "confdefs.h"
24737 #include <sys/sendfile.h>
24738 #ifdef F77_DUMMY_MAIN
24739 # ifdef __cplusplus
24742 int F77_DUMMY_MAIN() { return 1; }
24750 struct sendfilevec vec[2];
24756 vec[0].sfv_fd = SFV_FD_SELF;
24757 vec[0].sfv_flag = 0;
24758 vec[0].sfv_off = 0;
24759 vec[0].sfv_len = 0;
24762 vec[1].sfv_flag = 0;
24763 vec[1].sfv_off = 0;
24764 vec[1].sfv_len = 0;
24765 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
24771 rm -f conftest.
$ac_objext conftest
$ac_exeext
24772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24773 (eval $ac_link) 2>&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } &&
24777 { ac_try
='test -s conftest$ac_exeext'
24778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779 (eval $ac_try) 2>&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); }; }; then
24783 samba_cv_HAVE_SENDFILEV
=yes
24785 echo "$as_me: failed program was:" >&5
24786 cat conftest.
$ac_ext >&5
24787 samba_cv_HAVE_SENDFILEV
=no
24789 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
24791 echo "$as_me:$LINENO: result: $samba_cv_HAVE_SENDFILEV" >&5
24792 echo "${ECHO_T}$samba_cv_HAVE_SENDFILEV" >&6
24794 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
24796 cat >>confdefs.h
<<\_ACEOF
24797 #define HAVE_SENDFILEV 1
24801 cat >>confdefs.h
<<\_ACEOF
24802 #define SOLARIS_SENDFILE_API 1
24806 cat >>confdefs.h
<<\_ACEOF
24807 #define WITH_SENDFILE 1
24811 echo "$as_me:$LINENO: result: no" >&5
24812 echo "${ECHO_T}no" >&6;
24821 echo "$as_me:$LINENO: result: no" >&5
24822 echo "${ECHO_T}no" >&6
24826 echo "$as_me:$LINENO: result: yes" >&5
24827 echo "${ECHO_T}yes" >&6
24832 #################################################
24833 # Check whether winbind is supported on this platform. If so we need to
24834 # build and install client programs, sbin programs and shared libraries
24836 echo "$as_me:$LINENO: checking whether to build winbind" >&5
24837 echo $ECHO_N "checking whether to build winbind... $ECHO_C" >&6
24839 # Initially, the value of $host_os decides whether winbind is supported
24847 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
24848 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
24852 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
24856 winbind_no_reason
=", unsupported on $host_os"
24863 # Check the setting of --with-winbindd
24866 # Check whether --with-winbind or --without-winbind was given.
24867 if test "${with_winbind+set}" = set; then
24868 withval
="$with_winbind"
24881 # We need unix domain sockets for winbind
24883 if test x
"$HAVE_WINBIND" = x
"yes"; then
24884 if test x
"$samba_cv_unixsocket" = x
"no"; then
24885 winbind_no_reason
=", no unix domain socket support on $host_os"
24890 # Display test results
24892 if test x
"$HAVE_WINBIND" = x
"yes"; then
24893 echo "$as_me:$LINENO: result: yes" >&5
24894 echo "${ECHO_T}yes" >&6
24896 cat >>confdefs.h
<<\_ACEOF
24897 #define WITH_WINBIND 1
24901 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
24902 EXTRA_SBIN_PROGS
="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
24903 if test x
"$BLDSHARED" = x
"true"; then
24906 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libns_winbind.so"
24909 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libnss_winbind.so"
24912 if test x
"$with_pam" = x
"yes"; then
24913 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/pam_winbind.so"
24917 echo "$as_me:$LINENO: result: no$winbind_no_reason" >&5
24918 echo "${ECHO_T}no$winbind_no_reason" >&6
24921 # Solaris has some extra fields in struct passwd that need to be
24922 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
24923 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
24926 #AC_CHECK_MEMBER(struct passwd.pw_comment,
24927 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
24928 # [#include <pwd.h>])
24930 echo "$as_me:$LINENO: checking whether struct passwd has pw_comment" >&5
24931 echo $ECHO_N "checking whether struct passwd has pw_comment... $ECHO_C" >&6
24932 if test "${samba_cv_passwd_pw_comment+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 cat >conftest.
$ac_ext <<_ACEOF
24937 #line $LINENO "configure"
24938 #include "confdefs.h"
24940 #ifdef F77_DUMMY_MAIN
24941 # ifdef __cplusplus
24944 int F77_DUMMY_MAIN() { return 1; }
24949 struct passwd p; p.pw_comment;
24954 rm -f conftest.
$ac_objext
24955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24956 (eval $ac_compile) 2>&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } &&
24960 { ac_try
='test -s conftest.$ac_objext'
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; }; then
24966 samba_cv_passwd_pw_comment
=yes
24968 echo "$as_me: failed program was:" >&5
24969 cat conftest.
$ac_ext >&5
24970 samba_cv_passwd_pw_comment
=no
24972 rm -f conftest.
$ac_objext conftest.
$ac_ext
24974 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_comment" >&5
24975 echo "${ECHO_T}$samba_cv_passwd_pw_comment" >&6
24976 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
24978 cat >>confdefs.h
<<\_ACEOF
24979 #define HAVE_PASSWD_PW_COMMENT 1
24984 #AC_CHECK_MEMBER(struct passwd.pw_age,
24985 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
24986 # [#include <pwd.h>])
24988 echo "$as_me:$LINENO: checking whether struct passwd has pw_age" >&5
24989 echo $ECHO_N "checking whether struct passwd has pw_age... $ECHO_C" >&6
24990 if test "${samba_cv_passwd_pw_age+set}" = set; then
24991 echo $ECHO_N "(cached) $ECHO_C" >&6
24994 cat >conftest.
$ac_ext <<_ACEOF
24995 #line $LINENO "configure"
24996 #include "confdefs.h"
24998 #ifdef F77_DUMMY_MAIN
24999 # ifdef __cplusplus
25002 int F77_DUMMY_MAIN() { return 1; }
25007 struct passwd p; p.pw_age;
25012 rm -f conftest.
$ac_objext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25014 (eval $ac_compile) 2>&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
25018 { ac_try
='test -s conftest.$ac_objext'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; }; then
25024 samba_cv_passwd_pw_age
=yes
25026 echo "$as_me: failed program was:" >&5
25027 cat conftest.
$ac_ext >&5
25028 samba_cv_passwd_pw_age
=no
25030 rm -f conftest.
$ac_objext conftest.
$ac_ext
25032 echo "$as_me:$LINENO: result: $samba_cv_passwd_pw_age" >&5
25033 echo "${ECHO_T}$samba_cv_passwd_pw_age" >&6
25034 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
25036 cat >>confdefs.h
<<\_ACEOF
25037 #define HAVE_PASSWD_PW_AGE 1
25042 #################################################
25043 # Check to see if we should use the included popt
25046 # Check whether --with-included-popt or --without-included-popt was given.
25047 if test "${with_included_popt+set}" = set; then
25048 withval
="$with_included_popt"
25059 if test x
"$INCLUDED_POPT" != x
"yes"; then
25060 echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
25061 echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
25062 if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
25063 echo $ECHO_N "(cached) $ECHO_C" >&6
25065 ac_check_lib_save_LIBS
=$LIBS
25066 LIBS
="-lpopt $LIBS"
25067 cat >conftest.
$ac_ext <<_ACEOF
25068 #line $LINENO "configure"
25069 #include "confdefs.h"
25071 /* Override any gcc2 internal prototype to avoid an error. */
25075 /* We use char because int might match the return type of a gcc2
25076 builtin and then its argument prototype would still apply. */
25077 char poptGetContext ();
25078 #ifdef F77_DUMMY_MAIN
25079 # ifdef __cplusplus
25082 int F77_DUMMY_MAIN() { return 1; }
25092 rm -f conftest.
$ac_objext conftest
$ac_exeext
25093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25094 (eval $ac_link) 2>&5
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); } &&
25098 { ac_try
='test -s conftest$ac_exeext'
25099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25100 (eval $ac_try) 2>&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); }; }; then
25104 ac_cv_lib_popt_poptGetContext
=yes
25106 echo "$as_me: failed program was:" >&5
25107 cat conftest.
$ac_ext >&5
25108 ac_cv_lib_popt_poptGetContext
=no
25110 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
25111 LIBS
=$ac_check_lib_save_LIBS
25113 echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
25114 echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
25115 if test $ac_cv_lib_popt_poptGetContext = yes; then
25123 echo "$as_me:$LINENO: checking whether to use included popt" >&5
25124 echo $ECHO_N "checking whether to use included popt... $ECHO_C" >&6
25125 if test x
"$INCLUDED_POPT" = x
"yes"; then
25126 echo "$as_me:$LINENO: result: yes" >&5
25127 echo "${ECHO_T}yes" >&6
25128 BUILD_POPT
='$(POPT_OBJS)'
25129 FLAGS1
="-I$srcdir/popt"
25131 echo "$as_me:$LINENO: result: no" >&5
25132 echo "${ECHO_T}no" >&6
25133 LIBS
="$LIBS -lpopt"
25138 #################################################
25139 # Check if the user wants Python
25141 # At the moment, you can use this to set which Python binary to link
25142 # against. (Libraries built for Python2.2 can't be used by 2.1,
25143 # though they can coexist in different directories.) In the future
25144 # this might make the Python stuff be built by default.
25146 # Defaulting python breaks the clean target if python isn't installed
25151 # Check whether --with-python or --without-python was given.
25152 if test "${with_python+set}" = set; then
25153 withval
="$with_python"
25154 case "${withval-python}" in
25157 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS python_ext"
25163 PYTHON
=${withval-python}
25169 #################################################
25170 # do extra things if we are running insure
25172 if test "${ac_cv_prog_CC}" = "insure"; then
25173 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
25176 #################################################
25177 # final configure stuff
25179 echo "$as_me:$LINENO: checking configure summary" >&5
25180 echo $ECHO_N "checking configure summary... $ECHO_C" >&6
25181 if test "$cross_compiling" = yes; then
25182 { echo "$as_me:$LINENO: WARNING: cannot run when cross-compiling" >&5
25183 echo "$as_me: WARNING: cannot run when cross-compiling" >&2;}
25185 cat >conftest.
$ac_ext <<_ACEOF
25186 #line $LINENO "configure"
25187 #include "confdefs.h"
25188 #include "${srcdir-.}/tests/summary.c"
25190 rm -f conftest
$ac_exeext
25191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25192 (eval $ac_link) 2>&5
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25197 (eval $ac_try) 2>&5
25199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200 (exit $ac_status); }; }; then
25201 echo "$as_me:$LINENO: result: yes" >&5
25202 echo "${ECHO_T}yes" >&6
25204 echo "$as_me: program exited with status $ac_status" >&5
25205 echo "$as_me: failed program was:" >&5
25206 cat conftest.
$ac_ext >&5
25207 ( exit $ac_status )
25208 { { echo "$as_me:$LINENO: error: summary failure. Aborting config" >&5
25209 echo "$as_me: error: summary failure. Aborting config" >&2;}
25210 { (exit 1); exit 1; }; }; exit 1;
25212 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25218 ac_config_files
="$ac_config_files include/stamp-h Makefile script/findsmb"
25219 cat >confcache
<<\_ACEOF
25220 # This file is a shell script that caches the results of configure
25221 # tests run on this system so they can be shared between configure
25222 # scripts and configure runs, see configure's option --config-cache.
25223 # It is not useful on other systems. If it contains results you don't
25224 # want to keep, you may remove or edit it.
25226 # config.status only pays attention to the cache file if you give it
25227 # the --recheck option to rerun configure.
25229 # `ac_cv_env_foo' variables (set or unset) will be overriden when
25230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25231 # following values.
25235 # The following way of writing the cache mishandles newlines in values,
25236 # but we know of no workaround that is simple, portable, and efficient.
25237 # So, don't put newlines in cache variables' values.
25238 # Ultrix sh set writes to stderr and can't be redirected directly,
25239 # and sets the high bit in the cache file unless we assign to the vars.
25242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
25244 # `set' does not quote correctly, so add quotes (double-quote
25245 # substitution turns \\\\ into \\, and sed turns \\ into \).
25248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25251 # `set' quotes correctly as required by POSIX, so do not add quotes.
25253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25264 if cmp -s $cache_file confcache
; then :; else
25265 if test -w $cache_file; then
25266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25267 cat confcache
>$cache_file
25269 echo "not updating unwritable cache $cache_file"
25274 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25275 # Let make expand exec_prefix.
25276 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25278 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25279 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25280 # trailing colons and then remove the whole line if VPATH becomes empty
25281 # (actually we leave an empty line to preserve line numbers).
25282 if test "x$srcdir" = x.
; then
25283 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25284 s/:*\$(srcdir):*/:/;
25285 s/:*\${srcdir}:*/:/;
25287 s/^\([^=]*=[ ]*\):*/\1/;
25293 DEFS
=-DHAVE_CONFIG_H
25296 : ${CONFIG_STATUS=./config.status}
25297 ac_clean_files_save
=$ac_clean_files
25298 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25299 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25300 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25301 cat >$CONFIG_STATUS <<_ACEOF
25303 # Generated by $as_me.
25304 # Run this file to recreate the current configuration.
25305 # Compiler output produced by configure, useful for debugging
25306 # configure, is in config.log if it exists.
25309 SHELL=\${CONFIG_SHELL-$SHELL}
25312 cat >>$CONFIG_STATUS <<\_ACEOF
25314 ## --------------------- ##
25315 ## M4sh Initialization. ##
25316 ## --------------------- ##
25318 # Be Bourne compatible
25319 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25322 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
25327 # Support unset when possible.
25328 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
25334 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
25335 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
25336 { LANG
=C
; export LANG
; }
25337 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
25338 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
25339 { LC_ALL
=C
; export LC_ALL
; }
25340 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
25341 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
25342 { LC_TIME
=C
; export LC_TIME
; }
25343 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
25344 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
25345 { LC_CTYPE
=C
; export LC_CTYPE
; }
25346 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
25347 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
25348 { LANGUAGE
=C
; export LANGUAGE
; }
25349 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
25350 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
25351 { LC_COLLATE
=C
; export LC_COLLATE
; }
25352 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
25353 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
25354 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
25355 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
25356 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
25357 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
25360 # Name of the executable.
25361 as_me
=`(basename "$0") 2>/dev/null ||
25362 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25363 X"$0" : 'X\(//\)$' \| \
25364 X"$0" : 'X\(/\)$' \| \
25365 . : '\(.\)' 2>/dev/null ||
25367 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25368 /^X\/\(\/\/\)$/{ s//\1/; q; }
25369 /^X\/\(\/\).*/{ s//\1/; q; }
25372 # PATH needs CR, and LINENO needs CR and PATH.
25373 # Avoid depending upon Character Ranges.
25374 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25375 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25376 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25377 as_cr_digits
='0123456789'
25378 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25380 # The user is always right.
25381 if test "${PATH_SEPARATOR+set}" != set; then
25382 echo "#! /bin/sh" >conftest.sh
25383 echo "exit 0" >>conftest.sh
25384 chmod +x conftest.sh
25385 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
25394 as_lineno_1
=$LINENO
25395 as_lineno_2
=$LINENO
25396 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
25397 test "x$as_lineno_1" != "x$as_lineno_2" &&
25398 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
25399 # Find who we are. Look in the path if we contain no path at all
25402 *[\\/]* ) as_myself
=$0 ;;
25403 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25404 for as_dir
in $PATH
25407 test -z "$as_dir" && as_dir
=.
25408 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25413 # We did not find ourselves, most probably we were run as `sh COMMAND'
25414 # in which case we are not to be found in the path.
25415 if test "x$as_myself" = x
; then
25418 if test ! -f "$as_myself"; then
25419 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25420 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25421 { (exit 1); exit 1; }; }
25423 case $CONFIG_SHELL in
25425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25426 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
25429 test -z "$as_dir" && as_dir
=.
25430 for as_base
in sh bash ksh sh5
; do
25433 if ("$as_dir/$as_base" -c '
25434 as_lineno_1=$LINENO
25435 as_lineno_2=$LINENO
25436 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25437 test "x$as_lineno_1" != "x$as_lineno_2" &&
25438 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
25439 CONFIG_SHELL
=$as_dir/$as_base
25440 export CONFIG_SHELL
25441 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25450 # uniformly replaced by the line number. The first 'sed' inserts a
25451 # line-number line before each line; the second 'sed' does the real
25452 # work. The second script uses 'N' to pair each line-number line
25453 # with the numbered line, and appends trailing '-' during
25454 # substitution so that $LINENO is not a special case at line end.
25455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25456 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25457 sed '=' <$as_myself |
25462 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25465 s,^['$as_cr_digits']*\n,,
25466 ' >$as_me.lineno
&&
25467 chmod +x
$as_me.lineno ||
25468 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25469 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25470 { (exit 1); exit 1; }; }
25472 # Don't try to exec as it changes $[0], causing all sort of problems
25473 # (the dirname of $[0] is not the place where we might find the
25474 # original and so on. Autoconf is especially sensible to this).
25476 # Exit status is that of the last command.
25481 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25482 *c
*,-n*) ECHO_N
= ECHO_C
='
25484 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
25485 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
25488 if expr a
: '\(a\)' >/dev
/null
2>&1; then
25494 rm -f conf$$ conf$$.exe conf$$.
file
25496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25497 # We could just check for DJGPP; but this test a) works b) is more generic
25498 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25499 if test -f conf$$.exe
; then
25500 # Don't use ln at all; we don't have any links
25505 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25510 rm -f conf$$ conf$$.exe conf$$.
file
25512 as_executable_p
="test -f"
25514 # Sed expression to map a string onto a valid CPP name.
25515 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25517 # Sed expression to map a string onto a valid variable name.
25518 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
25522 # We need space, tab and new line, in precisely that order.
25528 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
25532 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25533 # report actual input values of CONFIG_FILES etc. instead of their
25534 # values after options handling. Logging --version etc. is OK.
25538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25539 ## Running $as_me. ##
25544 This file was extended by $as_me, which was
25545 generated by GNU Autoconf 2.53. Invocation command line was
25547 CONFIG_FILES = $CONFIG_FILES
25548 CONFIG_HEADERS = $CONFIG_HEADERS
25549 CONFIG_LINKS = $CONFIG_LINKS
25550 CONFIG_COMMANDS = $CONFIG_COMMANDS
25554 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25558 # Files that config.status was made for.
25559 if test -n "$ac_config_files"; then
25560 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25563 if test -n "$ac_config_headers"; then
25564 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25567 if test -n "$ac_config_links"; then
25568 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25571 if test -n "$ac_config_commands"; then
25572 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25575 cat >>$CONFIG_STATUS <<\_ACEOF
25578 \`$as_me' instantiates files from templates according to the
25579 current configuration.
25581 Usage: $0 [OPTIONS] [FILE]...
25583 -h, --help print this help, then exit
25584 -V, --version print version number, then exit
25585 -d, --debug don't remove temporary files
25586 --recheck update $as_me by reconfiguring in the same conditions
25587 --file=FILE[:TEMPLATE]
25588 instantiate the configuration file FILE
25589 --header=FILE[:TEMPLATE]
25590 instantiate the configuration header FILE
25592 Configuration files:
25595 Configuration headers:
25598 Report bugs to <bug-autoconf@gnu.org>."
25601 cat >>$CONFIG_STATUS <<_ACEOF
25604 configured by $0, generated by GNU Autoconf 2.53,
25605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25607 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
25608 Free Software Foundation, Inc.
25609 This config.status script is free software; the Free Software Foundation
25610 gives unlimited permission to copy, distribute and modify it."
25615 cat >>$CONFIG_STATUS <<\_ACEOF
25616 # If no file are specified by the user, then we need to provide default
25617 # value. By we need to know if files were specified by the user.
25623 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
25624 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
25626 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
25630 *) # This is not an option, so the user has probably given explicit
25632 ac_need_defaults
=false
;;
25636 # Handling of the options.
25638 cat >>$CONFIG_STATUS <<_ACEOF
25639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
25641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
25643 cat >>$CONFIG_STATUS <<\_ACEOF
25644 --version |
--vers* |
-V )
25645 echo "$ac_cs_version"; exit 0 ;;
25647 # Conflict between --help and --header
25648 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25649 Try \`$0 --help' for more information." >&5
25650 echo "$as_me: error: ambiguous option: $1
25651 Try \`$0 --help' for more information." >&2;}
25652 { (exit 1); exit 1; }; };;
25653 --help |
--hel |
-h )
25654 echo "$ac_cs_usage"; exit 0 ;;
25655 --debug |
--d* |
-d )
25657 --file |
--fil |
--fi |
--f )
25659 CONFIG_FILES
="$CONFIG_FILES $1"
25660 ac_need_defaults
=false
;;
25661 --header |
--heade |
--head |
--hea )
25663 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
25664 ac_need_defaults
=false
;;
25666 # This is an error.
25667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25668 Try \`$0 --help' for more information." >&5
25669 echo "$as_me: error: unrecognized option: $1
25670 Try \`$0 --help' for more information." >&2;}
25671 { (exit 1); exit 1; }; } ;;
25673 *) ac_config_targets
="$ac_config_targets $1" ;;
25685 cat >>$CONFIG_STATUS <<\_ACEOF
25686 for ac_config_target
in $ac_config_targets
25688 case "$ac_config_target" in
25689 # Handling of arguments.
25690 "include/stamp-h" ) CONFIG_FILES
="$CONFIG_FILES include/stamp-h" ;;
25691 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25692 "script/findsmb" ) CONFIG_FILES
="$CONFIG_FILES script/findsmb" ;;
25693 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
25694 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25696 { (exit 1); exit 1; }; };;
25700 # If the user did not use the arguments to specify the items to instantiate,
25701 # then the envvar interface is used. Set only those that are not.
25702 # We use the long form for the default assignment because of an extremely
25703 # bizarre bug on SunOS 4.1.3.
25704 if $ac_need_defaults; then
25705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25709 # Create a temporary directory, and hook for its removal unless debugging.
25712 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25713 trap '{ (exit 1); exit 1; }' 1 2 13 15
25716 # Create a (secure) tmp directory for tmp files.
25719 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
25720 test -n "$tmp" && test -d "$tmp"
25723 tmp
=$TMPDIR/cs$$
-$RANDOM
25724 (umask 077 && mkdir
$tmp)
25727 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
25728 { (exit 1); exit 1; }
25733 cat >>$CONFIG_STATUS <<_ACEOF
25736 # CONFIG_FILES section.
25739 # No need to generate the scripts if there are no CONFIG_FILES.
25740 # This happens for instance when ./config.status config.h
25741 if test -n "\$CONFIG_FILES"; then
25742 # Protect against being on the right side of a sed subst in config.status.
25743 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25744 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25745 s,@SHELL@,$SHELL,;t t
25746 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25747 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25748 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25749 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25750 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25751 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25752 s,@exec_prefix@,$exec_prefix,;t t
25753 s,@prefix@,$prefix,;t t
25754 s,@program_transform_name@,$program_transform_name,;t t
25755 s,@bindir@,$bindir,;t t
25756 s,@sbindir@,$sbindir,;t t
25757 s,@libexecdir@,$libexecdir,;t t
25758 s,@datadir@,$datadir,;t t
25759 s,@sysconfdir@,$sysconfdir,;t t
25760 s,@sharedstatedir@,$sharedstatedir,;t t
25761 s,@localstatedir@,$localstatedir,;t t
25762 s,@libdir@,$libdir,;t t
25763 s,@includedir@,$includedir,;t t
25764 s,@oldincludedir@,$oldincludedir,;t t
25765 s,@infodir@,$infodir,;t t
25766 s,@mandir@,$mandir,;t t
25767 s,@build_alias@,$build_alias,;t t
25768 s,@host_alias@,$host_alias,;t t
25769 s,@target_alias@,$target_alias,;t t
25770 s,@DEFS@,$DEFS,;t t
25771 s,@ECHO_C@,$ECHO_C,;t t
25772 s,@ECHO_N@,$ECHO_N,;t t
25773 s,@ECHO_T@,$ECHO_T,;t t
25774 s,@LIBS@,$LIBS,;t t
25775 s,@configdir@,$configdir,;t t
25776 s,@lockdir@,$lockdir,;t t
25777 s,@piddir@,$piddir,;t t
25778 s,@logfilebase@,$logfilebase,;t t
25779 s,@privatedir@,$privatedir,;t t
25780 s,@swatdir@,$swatdir,;t t
25781 s,@LDSHFLAGS@,$LDSHFLAGS,;t t
25782 s,@SONAMEFLAG@,$SONAMEFLAG,;t t
25783 s,@SHLD@,$SHLD,;t t
25784 s,@HOST_OS@,$HOST_OS,;t t
25785 s,@PICFLAG@,$PICFLAG,;t t
25786 s,@PICSUFFIX@,$PICSUFFIX,;t t
25787 s,@POBAD_CC@,$POBAD_CC,;t t
25788 s,@SHLIBEXT@,$SHLIBEXT,;t t
25789 s,@LIBSMBCLIENT_SHARED@,$LIBSMBCLIENT_SHARED,;t t
25790 s,@LIBSMBCLIENT@,$LIBSMBCLIENT,;t t
25791 s,@PRINTLIBS@,$PRINTLIBS,;t t
25792 s,@AUTHLIBS@,$AUTHLIBS,;t t
25793 s,@SHLIB_PROGS@,$SHLIB_PROGS,;t t
25794 s,@SMBWRAPPER@,$SMBWRAPPER,;t t
25795 s,@EXTRA_BIN_PROGS@,$EXTRA_BIN_PROGS,;t t
25796 s,@EXTRA_SBIN_PROGS@,$EXTRA_SBIN_PROGS,;t t
25797 s,@EXTRA_ALL_TARGETS@,$EXTRA_ALL_TARGETS,;t t
25798 s,@LSA_DYNAMIC@,$LSA_DYNAMIC,;t t
25799 s,@NETLOG_DYNAMIC@,$NETLOG_DYNAMIC,;t t
25800 s,@SAMR_DYNAMIC@,$SAMR_DYNAMIC,;t t
25801 s,@SVC_DYNAMIC@,$SVC_DYNAMIC,;t t
25802 s,@WKS_DYNAMIC@,$WKS_DYNAMIC,;t t
25803 s,@REG_DYNAMIC@,$REG_DYNAMIC,;t t
25804 s,@SPOOLSS_DYNAMIC@,$SPOOLSS_DYNAMIC,;t t
25805 s,@DFS_DYNAMIC@,$DFS_DYNAMIC,;t t
25807 s,@CFLAGS@,$CFLAGS,;t t
25808 s,@LDFLAGS@,$LDFLAGS,;t t
25809 s,@CPPFLAGS@,$CPPFLAGS,;t t
25810 s,@ac_ct_CC@,$ac_ct_CC,;t t
25811 s,@EXEEXT@,$EXEEXT,;t t
25812 s,@OBJEXT@,$OBJEXT,;t t
25813 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25814 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25815 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25817 s,@BROKEN_CC@,$BROKEN_CC,;t t
25818 s,@build@,$build,;t t
25819 s,@build_cpu@,$build_cpu,;t t
25820 s,@build_vendor@,$build_vendor,;t t
25821 s,@build_os@,$build_os,;t t
25822 s,@host@,$host,;t t
25823 s,@host_cpu@,$host_cpu,;t t
25824 s,@host_vendor@,$host_vendor,;t t
25825 s,@host_os@,$host_os,;t t
25826 s,@target@,$target,;t t
25827 s,@target_cpu@,$target_cpu,;t t
25828 s,@target_vendor@,$target_vendor,;t t
25829 s,@target_os@,$target_os,;t t
25831 s,@CUPS_CONFIG@,$CUPS_CONFIG,;t t
25832 s,@LIBOBJS@,$LIBOBJS,;t t
25833 s,@TERMLIBS@,$TERMLIBS,;t t
25834 s,@TERMLDFLAGS@,$TERMLDFLAGS,;t t
25835 s,@ROFF@,$ROFF,;t t
25836 s,@DYNEXP@,$DYNEXP,;t t
25837 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
25838 s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
25839 s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
25840 s,@MODULE_MYSQL@,$MODULE_MYSQL,;t t
25841 s,@XML2_CONFIG@,$XML2_CONFIG,;t t
25842 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
25843 s,@XML_LIBS@,$XML_LIBS,;t t
25844 s,@MODULE_XML@,$MODULE_XML,;t t
25845 s,@QUOTAOBJS@,$QUOTAOBJS,;t t
25846 s,@manlangs@,$manlangs,;t t
25847 s,@WINBIND_NSS_EXTRA_OBJS@,$WINBIND_NSS_EXTRA_OBJS,;t t
25848 s,@WINBIND_NSS_EXTRA_LIBS@,$WINBIND_NSS_EXTRA_LIBS,;t t
25849 s,@BUILD_POPT@,$BUILD_POPT,;t t
25850 s,@FLAGS1@,$FLAGS1,;t t
25851 s,@PYTHON@,$PYTHON,;t t
25852 s,@builddir@,$builddir,;t t
25857 cat >>$CONFIG_STATUS <<\_ACEOF
25858 # Split the substitutions into bite-sized pieces for seds with
25859 # small command number limits, like on Digital OSF/1 and HP-UX.
25860 ac_max_sed_lines
=48
25861 ac_sed_frag
=1 # Number of current file.
25862 ac_beg
=1 # First line for current file.
25863 ac_end
=$ac_max_sed_lines # Line after last line for current file.
25866 while $ac_more_lines; do
25867 if test $ac_beg -gt 1; then
25868 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25870 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
25872 if test ! -s $tmp/subs.frag
; then
25873 ac_more_lines
=false
25875 # The purpose of the label and of the branching condition is to
25876 # speed up the sed processing (if there are no `@' at all, there
25877 # is no need to browse any of the substitutions).
25878 # These are the two extra sed commands mentioned above.
25880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
25881 if test -z "$ac_sed_cmds"; then
25882 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
25884 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25886 ac_sed_frag
=`expr $ac_sed_frag + 1`
25888 ac_end
=`expr $ac_end + $ac_max_sed_lines`
25891 if test -z "$ac_sed_cmds"; then
25894 fi # test -n "$CONFIG_FILES"
25897 cat >>$CONFIG_STATUS <<\_ACEOF
25898 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
25899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25901 - |
*:- |
*:-:* ) # input from stdin
25903 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25904 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25905 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
25906 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
25907 * ) ac_file_in
=$ac_file.
in ;;
25910 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25911 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
25912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25913 X"$ac_file" : 'X\(//\)[^/]' \| \
25914 X"$ac_file" : 'X\(//\)$' \| \
25915 X"$ac_file" : 'X\(/\)' \| \
25916 . : '\(.\)' 2>/dev/null ||
25918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25920 /^X\(\/\/\)$/{ s//\1/; q; }
25921 /^X\(\/\).*/{ s//\1/; q; }
25923 { case "$ac_dir" in
25924 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
25928 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25929 case $as_mkdir_dir in
25930 # Skip DOS drivespec
25931 ?
:) as_incr_dir
=$as_mkdir_dir ;;
25933 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
25934 test -d "$as_incr_dir" ||
25935 mkdir
"$as_incr_dir" ||
25936 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
25937 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
25938 { (exit 1); exit 1; }; }
25945 if test "$ac_dir" != .
; then
25946 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25947 # A "../" for each directory in $ac_dir_suffix.
25948 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25950 ac_dir_suffix
= ac_top_builddir
=
25954 .
) # No --srcdir option. We are building in place.
25956 if test -z "$ac_top_builddir"; then
25959 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
25961 [\\/]* | ?
:[\\/]* ) # Absolute path.
25962 ac_srcdir
=$srcdir$ac_dir_suffix;
25963 ac_top_srcdir
=$srcdir ;;
25964 *) # Relative path.
25965 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
25966 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
25968 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25970 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
25971 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
25972 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25973 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25977 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25978 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
25981 if test x
"$ac_file" != x-
; then
25982 { echo "$as_me:$LINENO: creating $ac_file" >&5
25983 echo "$as_me: creating $ac_file" >&6;}
25986 # Let's still pretend it is `configure' which instantiates (i.e., don't
25987 # use $as_me), people would be surprised to read:
25988 # /* config.h. Generated by config.status. */
25989 if test x
"$ac_file" = x-
; then
25992 configure_input
="$ac_file. "
25994 configure_input
=$configure_input"Generated from `echo $ac_file_in |
25995 sed 's,.*/,,'` by configure."
25997 # First look for the input files in the build tree, otherwise in the
25999 ac_file_inputs
=`IFS=:
26000 for f in $ac_file_in; do
26002 -) echo $tmp/stdin ;;
26004 # Absolute (can't be DOS-style, as IFS=:)
26005 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26006 echo "$as_me: error: cannot find input file: $f" >&2;}
26007 { (exit 1); exit 1; }; }
26010 if test -f "$f"; then
26013 elif test -f "$srcdir/$f"; then
26018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26019 echo "$as_me: error: cannot find input file: $f" >&2;}
26020 { (exit 1); exit 1; }; }
26023 done` ||
{ (exit 1); exit 1; }
26025 cat >>$CONFIG_STATUS <<_ACEOF
26029 cat >>$CONFIG_STATUS <<\_ACEOF
26031 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26032 s
,@configure_input@
,$configure_input,;t t
26033 s
,@srcdir@
,$ac_srcdir,;t t
26034 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
26035 s
,@top_srcdir@
,$ac_top_srcdir,;t t
26036 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
26037 s
,@builddir@
,$ac_builddir,;t t
26038 s
,@abs_builddir@
,$ac_abs_builddir,;t t
26039 s
,@top_builddir@
,$ac_top_builddir,;t t
26040 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
26041 s
,@INSTALL@
,$ac_INSTALL,;t t
26042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26044 if test x"$ac_file" != x-; then
26045 mv $tmp/out $ac_file
26053 cat >>$CONFIG_STATUS <<\_ACEOF
26056 # CONFIG_HEADER section.
26059 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
26060 # NAME is the cpp macro being defined and VALUE is the value it is being given.
26062 # ac_d sets the value in "#define NAME VALUE" lines.
26063 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
26064 ac_dB
='[ ].*$,\1#\2'
26067 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26068 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26069 ac_uB
='$,\1#\2define\3'
26073 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
26074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26076 - |
*:- |
*:-:* ) # input from stdin
26078 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26079 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26080 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
26081 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
26082 * ) ac_file_in
=$ac_file.
in ;;
26085 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
26086 echo "$as_me: creating $ac_file" >&6;}
26088 # First look for the input files in the build tree, otherwise in the
26090 ac_file_inputs
=`IFS=:
26091 for f in $ac_file_in; do
26093 -) echo $tmp/stdin ;;
26095 # Absolute (can't be DOS-style, as IFS=:)
26096 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26097 echo "$as_me: error: cannot find input file: $f" >&2;}
26098 { (exit 1); exit 1; }; }
26101 if test -f "$f"; then
26104 elif test -f "$srcdir/$f"; then
26109 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26110 echo "$as_me: error: cannot find input file: $f" >&2;}
26111 { (exit 1); exit 1; }; }
26114 done` ||
{ (exit 1); exit 1; }
26115 # Remove the trailing spaces.
26116 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26120 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26121 # `conftest.undefs', that substitutes the proper values into
26122 # config.h.in to produce config.h. The first handles `#define'
26123 # templates, and the second `#undef' templates.
26124 # And first: Protect against being on the right side of a sed subst in
26125 # config.status. Protect against being in an unquoted here document
26126 # in config.status.
26127 rm -f conftest.defines conftest.undefs
26128 # Using a here document instead of a string reduces the quoting nightmare.
26129 # Putting comments in sed scripts is not portable.
26131 # `end' is used to avoid that the second main sed command (meant for
26132 # 0-ary CPP macros) applies to n-ary macro definitions.
26133 # See the Autoconf documentation for `clear'.
26134 cat >confdef2sed.
sed <<\_ACEOF
26139 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26141 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26144 # If some macros were called several times there might be several times
26145 # the same #defines, which is useless. Nevertheless, we may not want to
26146 # sort them, since we want the *last* AC-DEFINE to be honored.
26147 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26148 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26149 rm -f confdef2sed.sed
26151 # This sed command replaces #undef with comments. This is necessary, for
26152 # example, in the case of _POSIX_SOURCE, which is predefined and required
26153 # on some systems where configure will not decide to define it.
26154 cat >>conftest.undefs <<\_ACEOF
26155 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26158 # Break up conftest.defines because some shells have a limit on the size
26159 # of here documents, and old seds have small limits too (100 cmds).
26160 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26161 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26162 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26163 echo ' :' >>$CONFIG_STATUS
26164 rm -f conftest.tail
26165 while grep . conftest.defines >/dev/null
26167 # Write a limited-size here document to $tmp/defines.sed.
26168 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26169 # Speed up: don't consider the non `#define' lines.
26170 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26171 # Work around the forget-to-reset-the-flag bug.
26172 echo 't clr' >>$CONFIG_STATUS
26173 echo ': clr' >>$CONFIG_STATUS
26174 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
26176 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26178 mv $tmp/out $tmp/in
26180 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
26181 rm -f conftest.defines
26182 mv conftest.
tail conftest.defines
26184 rm -f conftest.defines
26185 echo ' fi # egrep' >>$CONFIG_STATUS
26186 echo >>$CONFIG_STATUS
26188 # Break up conftest.undefs because some shells have a limit on the size
26189 # of here documents, and old seds have small limits too (100 cmds).
26190 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26191 rm -f conftest.
tail
26192 while grep . conftest.undefs
>/dev
/null
26194 # Write a limited-size here document to $tmp/undefs.sed.
26195 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26196 # Speed up: don't consider the non
`#undef'
26197 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26198 # Work around the forget-to-reset-the-flag bug.
26199 echo 't clr' >>$CONFIG_STATUS
26200 echo ': clr' >>$CONFIG_STATUS
26201 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26203 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26205 mv $tmp/out $tmp/in
26207 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26208 rm -f conftest.undefs
26209 mv conftest.tail conftest.undefs
26211 rm -f conftest.undefs
26213 cat >>$CONFIG_STATUS <<\_ACEOF
26214 # Let's still pretend it is `configure
' which instantiates (i.e., don't
26215 # use $as_me), people would be surprised to read:
26216 # /* config.h. Generated by config.status. */
26217 if test x
"$ac_file" = x-
; then
26218 echo "/* Generated by configure. */" >$tmp/config.h
26220 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26222 cat $tmp/in >>$tmp/config.h
26224 if test x
"$ac_file" != x-
; then
26225 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
26226 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26227 echo "$as_me: $ac_file is unchanged" >&6;}
26229 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
26230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26231 X"$ac_file" : 'X\(//\)[^/]' \| \
26232 X"$ac_file" : 'X\(//\)$' \| \
26233 X"$ac_file" : 'X\(/\)' \| \
26234 . : '\(.\)' 2>/dev/null ||
26236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26238 /^X\(\/\/\)$/{ s//\1/; q; }
26239 /^X\(\/\).*/{ s//\1/; q; }
26241 { case "$ac_dir" in
26242 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
26246 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
26247 case $as_mkdir_dir in
26248 # Skip DOS drivespec
26249 ?
:) as_incr_dir
=$as_mkdir_dir ;;
26251 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
26252 test -d "$as_incr_dir" ||
26253 mkdir
"$as_incr_dir" ||
26254 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
26255 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
26256 { (exit 1); exit 1; }; }
26262 mv $tmp/config.h
$ac_file
26266 rm -f $tmp/config.h
26271 cat >>$CONFIG_STATUS <<\_ACEOF
26273 { (exit 0); exit 0; }
26275 chmod +x
$CONFIG_STATUS
26276 ac_clean_files
=$ac_clean_files_save
26279 # configure is writing to config.log, and then calls config.status.
26280 # config.status does its own redirection, appending to config.log.
26281 # Unfortunately, on DOS this fails, as config.log is still kept open
26282 # by configure, so config.status won't be able to write to it; its
26283 # output is simply discarded. So we exec the FD to /dev/null,
26284 # effectively closing config.log, so it can be properly (re)opened and
26285 # appended to by config.status. When coming back to configure, we
26286 # need to make the FD available again.
26287 if test "$no_create" != yes; then
26290 $SHELL $CONFIG_STATUS || ac_cs_success
=false
26292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26293 # would make configure fail if this is the last instruction.
26294 $ac_cs_success ||
{ (exit 1); exit 1; }
26298 #################################################
26299 # Print very concise instructions on building/use
26300 if test "x$enable_dmalloc" = xyes
26302 echo "$as_me:$LINENO: result: Note: The dmalloc debug library will be included. To turn it on use" >&5
26303 echo "${ECHO_T}Note: The dmalloc debug library will be included. To turn it on use" >&6
26304 echo "$as_me:$LINENO: result: \$ eval \\`dmalloc samba\\`." >&5
26305 echo "${ECHO_T} \$ eval \\`dmalloc samba\\`." >&6