3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-maintainer-mode enable some make rules for maintainers"
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
27 --with-krb4=base-dir Include Kerberos IV support
28 --without-krb4 Don't include Kerbers IV support (default)"
30 --with-krb5=base-dir Include Kerberos 5 support
31 --without-krb5 Don't include Kerbers 5 support (default)"
33 --with-automount Include AUTOMOUNT support
34 --without-automount Don't include AUTOMOUNT support (default)"
36 --with-smbmount Include SMBMOUNT (Linux only) support
37 --without-smbmount Don't include SMBMOUNT support (default)"
39 --with-pam Include PAM password database support
40 --without-pam Don't include PAM password database support (default)"
42 --with-ldap Include LDAP support
43 --without-ldap Don't include LDAP support (default)"
45 --with-nisplus Include NISPLUS password database support
46 --without-nisplus Don't include NISPLUS password database support (default)"
48 --with-nisplus-home Include NISPLUS_HOME support
49 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
51 --with-ssl Include SSL support
52 --without-ssl Don't include SSL support (default)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
55 --with-syslog Include experimental SYSLOG support
56 --without-syslog Don't include SYSLOG support (default)"
58 --with-profile Include profile support
59 --without-profile Don't include profile support (default)"
61 --with-netatalk Include experimental Netatalk support
62 --without-netatalk Don't include experimental Netatalk support (default)"
64 --with-quotas Include experimental disk-quota support
65 --without-quotas Don't include experimental disk-quota support (default)"
67 --with-utmp Include experimental utmp accounting
68 --without-utmp Don't include experimental utmp accounting (default)"
70 --with-msdfs Include MS Dfs support
71 --without-msdfs Don't include MS Dfs support (default)"
73 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
75 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
77 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file=./config.cache
92 program_transform_name=s,x,x,
100 bindir='${exec_prefix}/bin'
101 sbindir='${exec_prefix}/sbin'
102 libexecdir='${exec_prefix}/libexec'
103 datadir='${prefix}/share'
104 sysconfdir='${prefix}/etc'
105 sharedstatedir='${prefix}/com'
106 localstatedir='${prefix}/var'
107 libdir='${exec_prefix}/lib'
108 includedir='${prefix}/include'
109 oldincludedir='/usr/include'
110 infodir='${prefix}/info'
111 mandir='${prefix}/man'
113 # Initialize some other variables.
116 SHELL=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir | --bindir | --bindi | --bind | --bin | --bi)
142 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
143 bindir="$ac_optarg" ;;
145 -build | --build | --buil | --bui | --bu)
147 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
148 build="$ac_optarg" ;;
150 -cache-file | --cache-file | --cache-fil | --cache-fi \
151 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
152 ac_prev=cache_file ;;
153 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
154 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
155 cache_file="$ac_optarg" ;;
157 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
159 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
161 datadir="$ac_optarg" ;;
163 -disable-* | --disable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* | --enable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
187 | --exec | --exe | --ex)
188 ac_prev=exec_prefix ;;
189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
191 | --exec=* | --exe=* | --ex=*)
192 exec_prefix="$ac_optarg" ;;
194 -gas | --gas | --ga | --g)
195 # Obsolete; use --with-gas.
198 -help | --help | --hel | --he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host | --host | --hos | --ho)
255 -host=* | --host=* | --hos=* | --ho=*)
258 -includedir | --includedir | --includedi | --included | --include \
259 | --includ | --inclu | --incl | --inc)
260 ac_prev=includedir ;;
261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
262 | --includ=* | --inclu=* | --incl=* | --inc=*)
263 includedir="$ac_optarg" ;;
265 -infodir | --infodir | --infodi | --infod | --info | --inf)
267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
268 infodir="$ac_optarg" ;;
270 -libdir | --libdir | --libdi | --libd)
272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
273 libdir="$ac_optarg" ;;
275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
276 | --libexe | --libex | --libe)
277 ac_prev=libexecdir ;;
278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
279 | --libexe=* | --libex=* | --libe=*)
280 libexecdir="$ac_optarg" ;;
282 -localstatedir | --localstatedir | --localstatedi | --localstated \
283 | --localstate | --localstat | --localsta | --localst \
284 | --locals | --local | --loca | --loc | --lo)
285 ac_prev=localstatedir ;;
286 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
287 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
288 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
289 localstatedir="$ac_optarg" ;;
291 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
293 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
294 mandir="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
304 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
305 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
308 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
309 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
310 | --oldin | --oldi | --old | --ol | --o)
311 ac_prev=oldincludedir ;;
312 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
313 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
314 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
315 oldincludedir="$ac_optarg" ;;
317 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
319 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
320 prefix="$ac_optarg" ;;
322 -program-prefix | --program-prefix | --program-prefi | --program-pref \
323 | --program-pre | --program-pr | --program-p)
324 ac_prev=program_prefix ;;
325 -program-prefix=* | --program-prefix=* | --program-prefi=* \
326 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
327 program_prefix="$ac_optarg" ;;
329 -program-suffix | --program-suffix | --program-suffi | --program-suff \
330 | --program-suf | --program-su | --program-s)
331 ac_prev=program_suffix ;;
332 -program-suffix=* | --program-suffix=* | --program-suffi=* \
333 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
334 program_suffix="$ac_optarg" ;;
336 -program-transform-name | --program-transform-name \
337 | --program-transform-nam | --program-transform-na \
338 | --program-transform-n | --program-transform- \
339 | --program-transform | --program-transfor \
340 | --program-transfo | --program-transf \
341 | --program-trans | --program-tran \
342 | --progr-tra | --program-tr | --program-t)
343 ac_prev=program_transform_name ;;
344 -program-transform-name=* | --program-transform-name=* \
345 | --program-transform-nam=* | --program-transform-na=* \
346 | --program-transform-n=* | --program-transform-=* \
347 | --program-transform=* | --program-transfor=* \
348 | --program-transfo=* | --program-transf=* \
349 | --program-trans=* | --program-tran=* \
350 | --progr-tra=* | --program-tr=* | --program-t=*)
351 program_transform_name="$ac_optarg" ;;
353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
354 | -silent | --silent | --silen | --sile | --sil)
357 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
359 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
361 sbindir="$ac_optarg" ;;
363 -sharedstatedir | --sharedstatedir | --sharedstatedi \
364 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
365 | --sharedst | --shareds | --shared | --share | --shar \
367 ac_prev=sharedstatedir ;;
368 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
369 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
370 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
372 sharedstatedir="$ac_optarg" ;;
374 -site | --site | --sit)
376 -site=* | --site=* | --sit=*)
379 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
381 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
382 srcdir="$ac_optarg" ;;
384 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
385 | --syscon | --sysco | --sysc | --sys | --sy)
386 ac_prev=sysconfdir ;;
387 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
388 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
389 sysconfdir="$ac_optarg" ;;
391 -target | --target | --targe | --targ | --tar | --ta | --t)
393 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
394 target="$ac_optarg" ;;
396 -v | -verbose | --verbose | --verbos | --verbo | --verb)
399 -version | --version | --versio | --versi | --vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* | --without-*)
417 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
430 | --x-incl | --x-inc | --x-in | --x-i)
431 ac_prev=x_includes ;;
432 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
433 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
434 x_includes="$ac_optarg" ;;
436 -x-libraries | --x-libraries | --x-librarie | --x-librari \
437 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
438 ac_prev=x_libraries ;;
439 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
440 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
441 x_libraries="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
492 | --no-cr | --no-c) ;;
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file=include/includes.h
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE; then
546 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp='$CPP $CPPFLAGS'
569 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
584 ac_n= ac_c='\c' ac_t=
589 # we want to be compatibe with older versions of Samba
602 # compile with optimisation and without debugging by default
603 CFLAGS=${CFLAGS-"-O"}
605 # Extract the first word of "gcc", so it can be a program name with args.
606 set dummy gcc; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 if test -n "$CC"; then
613 ac_cv_prog_CC="$CC" # Let the user override the test.
615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
617 for ac_dir in $ac_dummy; do
618 test -z "$ac_dir" && ac_dir=.
619 if test -f $ac_dir/$ac_word; then
628 if test -n "$CC"; then
629 echo "$ac_t""$CC" 1>&6
631 echo "$ac_t""no" 1>&6
634 if test -z "$CC"; then
635 # Extract the first word of "cc", so it can be a program name with args.
636 set dummy cc; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 if test -n "$CC"; then
643 ac_cv_prog_CC="$CC" # Let the user override the test.
645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
648 for ac_dir in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir=.
650 if test -f $ac_dir/$ac_word; then
651 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
660 if test $ac_prog_rejected = yes; then
661 # We found a bogon in the path, so make sure we never use it.
662 set dummy $ac_cv_prog_CC
664 if test $# -gt 0; then
665 # We chose a different compiler from the bogus one.
666 # However, it has the same basename, so the bogon will be chosen
667 # first if we set CC to just the basename; use the full file name.
669 set dummy "$ac_dir/$ac_word" "$@"
677 if test -n "$CC"; then
678 echo "$ac_t""$CC" 1>&6
680 echo "$ac_t""no" 1>&6
683 if test -z "$CC"; then
686 # Extract the first word of "cl", so it can be a program name with args.
687 set dummy cl; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC="$CC" # Let the user override the test.
696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
698 for ac_dir in $ac_dummy; do
699 test -z "$ac_dir" && ac_dir=.
700 if test -f $ac_dir/$ac_word; then
709 if test -n "$CC"; then
710 echo "$ac_t""$CC" 1>&6
712 echo "$ac_t""no" 1>&6
717 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
721 echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp='$CPP $CPPFLAGS'
726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling=$ac_cv_prog_cc_cross
730 cat > conftest.$ac_ext << EOF
732 #line 733 "configure"
733 #include "confdefs.h"
737 if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
738 ac_cv_prog_cc_works=yes
739 # If we can't run a trivial program, we are probably using a cross compiler.
740 if (./conftest; exit) 2>/dev/null; then
741 ac_cv_prog_cc_cross=no
743 ac_cv_prog_cc_cross=yes
746 echo "configure: failed program was:" >&5
747 cat conftest.$ac_ext >&5
748 ac_cv_prog_cc_works=no
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
759 if test $ac_cv_prog_cc_works = no; then
760 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
765 cross_compiling=$ac_cv_prog_cc_cross
767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
768 echo "configure:769: checking whether we are using GNU C" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 cat > conftest.c <<EOF
777 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
784 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
786 if test $ac_cv_prog_gcc = yes; then
792 ac_test_CFLAGS="${CFLAGS+set}"
793 ac_save_CFLAGS="$CFLAGS"
795 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${CC-cc} accepts -g" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
798 echo $ac_n "(cached) $ac_c" 1>&6
800 echo 'void f(){}' > conftest.c
801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
811 if test "$ac_test_CFLAGS" = set; then
812 CFLAGS="$ac_save_CFLAGS"
813 elif test $ac_cv_prog_cc_g = yes; then
814 if test "$GCC" = yes; then
820 if test "$GCC" = yes; then
828 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
829 if test -f $ac_dir/install-sh; then
831 ac_install_sh="$ac_aux_dir/install-sh -c"
833 elif test -f $ac_dir/install.sh; then
835 ac_install_sh="$ac_aux_dir/install.sh -c"
839 if test -z "$ac_aux_dir"; then
840 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
842 ac_config_guess=$ac_aux_dir/config.guess
843 ac_config_sub=$ac_aux_dir/config.sub
844 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
846 # Find a good install program. We prefer a C program (faster),
847 # so one script is as good as another. But avoid the broken or
848 # incompatible versions:
849 # SysV /etc/install, /usr/sbin/install
850 # SunOS /usr/etc/install
853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
856 # ./install, which can be erroneously created by make from ./install.sh.
857 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
858 echo "configure:859: checking for a BSD compatible install" >&5
859 if test -z "$INSTALL"; then
860 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
864 for ac_dir in $PATH; do
865 # Account for people who put trailing slashes in PATH elements.
867 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869 # OSF1 and SCO ODT 3.0 have their own names for install.
870 # Don't use installbsd from OSF since it installs stuff as root
872 for ac_prog in ginstall scoinst install; do
873 if test -f $ac_dir/$ac_prog; then
874 if test $ac_prog = install &&
875 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
876 # AIX install. It has an incompatible calling convention.
879 ac_cv_path_install="$ac_dir/$ac_prog -c"
890 if test "${ac_cv_path_install+set}" = set; then
891 INSTALL="$ac_cv_path_install"
893 # As a last resort, use the slow shell script. We don't cache a
894 # path for INSTALL within a source directory, because that will
895 # break other packages using the cache if that directory is
896 # removed, or if the path is relative.
897 INSTALL="$ac_install_sh"
900 echo "$ac_t""$INSTALL" 1>&6
902 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
903 # It thinks the first close brace ends the variable substitution.
904 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
906 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
908 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
910 for ac_prog in mawk gawk nawk awk
912 # Extract the first word of "$ac_prog", so it can be a program name with args.
913 set dummy $ac_prog; ac_word=$2
914 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
915 echo "configure:916: checking for $ac_word" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 if test -n "$AWK"; then
920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
924 for ac_dir in $ac_dummy; do
925 test -z "$ac_dir" && ac_dir=.
926 if test -f $ac_dir/$ac_word; then
927 ac_cv_prog_AWK="$ac_prog"
934 AWK="$ac_cv_prog_AWK"
935 if test -n "$AWK"; then
936 echo "$ac_t""$AWK" 1>&6
938 echo "$ac_t""no" 1>&6
941 test -n "$AWK" && break
945 if test "x$CC" != xcc; then
946 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
947 echo "configure:948: checking whether $CC and cc understand -c and -o together" >&5
949 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
950 echo "configure:951: checking whether cc understands -c and -o together" >&5
952 set dummy $CC; ac_cc="`echo $2 |
953 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
954 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 echo 'foo(){}' > conftest.c
958 # Make sure it works both with $CC and with simple cc.
959 # We do the test twice because some compilers refuse to overwrite an
960 # existing .o file with -o, though they will create one.
961 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
962 if { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
963 test -f conftest.o && { (eval echo configure:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
965 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
966 if test "x$CC" != xcc; then
967 # Test first that cc exists at all.
968 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
969 ac_try='cc -c conftest.c -o conftest.o 1>&5'
970 if { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
971 test -f conftest.o && { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
976 # cc exists but doesn't like -o.
977 eval ac_cv_prog_cc_${ac_cc}_c_o=no
982 eval ac_cv_prog_cc_${ac_cc}_c_o=no
987 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
988 echo "$ac_t""yes" 1>&6
990 echo "$ac_t""no" 1>&6
991 cat >> confdefs.h <<\EOF
992 #define NO_MINUS_C_MINUS_O 1
997 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1004 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1005 echo "configure:1006: checking that the C compiler understands volatile" >&5
1006 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1010 cat > conftest.$ac_ext <<EOF
1011 #line 1012 "configure"
1012 #include "confdefs.h"
1013 #include <sys/types.h>
1018 if { (eval echo configure:1019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1020 samba_cv_volatile=yes
1022 echo "configure: failed program was:" >&5
1023 cat conftest.$ac_ext >&5
1025 samba_cv_volatile=no
1030 echo "$ac_t""$samba_cv_volatile" 1>&6
1031 if test x"$samba_cv_volatile" = x"yes"; then
1032 cat >> confdefs.h <<\EOF
1033 #define HAVE_VOLATILE 1
1041 # Do some error checking and defaulting for the host and target type.
1043 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1046 # 1. You are not allowed to specify --host, --target, and nonopt at the
1048 # 2. Host defaults to nonopt.
1049 # 3. If nonopt is not specified, then host defaults to the current host,
1050 # as determined by config.guess.
1051 # 4. Target and build default to nonopt.
1052 # 5. If nonopt is not specified, then target and build default to host.
1054 # The aliases save the names the user supplied, while $host etc.
1055 # will get canonicalized.
1056 case $host---$target---$nonopt in
1057 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1058 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1062 # Make sure we can run config.sub.
1063 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1064 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1067 echo $ac_n "checking host system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking host system type" >&5
1071 case "$host_alias" in
1075 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1076 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1078 *) host_alias=$nonopt ;;
1082 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1083 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1084 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1085 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086 echo "$ac_t""$host" 1>&6
1088 echo $ac_n "checking target system type""... $ac_c" 1>&6
1089 echo "configure:1090: checking target system type" >&5
1091 target_alias=$target
1092 case "$target_alias" in
1095 NONE) target_alias=$host_alias ;;
1096 *) target_alias=$nonopt ;;
1100 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1101 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1102 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1103 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1104 echo "$ac_t""$target" 1>&6
1106 echo $ac_n "checking build system type""... $ac_c" 1>&6
1107 echo "configure:1108: checking build system type" >&5
1110 case "$build_alias" in
1113 NONE) build_alias=$host_alias ;;
1114 *) build_alias=$nonopt ;;
1118 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1119 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122 echo "$ac_t""$build" 1>&6
1124 test "$host_alias" != "$target_alias" &&
1125 test "$program_prefix$program_suffix$program_transform_name" = \
1127 program_prefix=${target_alias}-
1131 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1132 echo "configure:1133: checking config.cache system type" >&5
1133 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1134 test x"$ac_cv_host_system_type" != x"$host"; } ||
1135 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1136 test x"$ac_cv_build_system_type" != x"$build"; } ||
1137 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1138 test x"$ac_cv_target_system_type" != x"$target"; }; then
1139 echo "$ac_t""different" 1>&6
1140 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1142 echo "$ac_t""same" 1>&6
1144 ac_cv_host_system_type="$host"
1145 ac_cv_build_system_type="$build"
1146 ac_cv_target_system_type="$target"
1149 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1150 if test "${enable_maintainer_mode+set}" = set; then
1151 enableval="$enable_maintainer_mode"
1152 maint_mode=$enableval
1157 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1159 # Extract the first word of "autoconf", so it can be a program name with args.
1160 set dummy autoconf; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1168 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1171 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1179 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1184 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1188 AUTOCONF="$ac_cv_path_AUTOCONF"
1189 if test -n "$AUTOCONF"; then
1190 echo "$ac_t""$AUTOCONF" 1>&6
1192 echo "$ac_t""no" 1>&6
1196 # Extract the first word of "autoheader", so it can be a program name with args.
1197 set dummy autoheader; ac_word=$2
1198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1199 echo "configure:1200: checking for $ac_word" >&5
1200 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 case "$AUTOHEADER" in
1205 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1208 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a dos path.
1211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1213 for ac_dir in $ac_dummy; do
1214 test -z "$ac_dir" && ac_dir=.
1215 if test -f $ac_dir/$ac_word; then
1216 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1221 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1225 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1226 if test -n "$AUTOHEADER"; then
1227 echo "$ac_t""$AUTOHEADER" 1>&6
1229 echo "$ac_t""no" 1>&6
1236 # Config CPPFLAG settings for strange OS's that must be set
1237 # before other tests.
1240 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1242 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether ${CC-cc} accepts -Ae" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 echo 'void f(){}' > conftest.c
1248 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1249 ac_cv_prog_cc_Ae=yes
1257 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1258 if test $ac_cv_prog_cc_Ae = yes; then
1259 CPPFLAGS="$CPPFLAGS -Ae"
1262 # Defines needed for HPUX support.
1263 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1264 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1268 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1269 cat >> confdefs.h <<\EOF
1270 #define USE_BOTH_CRYPT_CALLS 1
1275 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1276 cat >> confdefs.h <<\EOF
1277 #define USE_BOTH_CRYPT_CALLS 1
1284 # AIX4.x doesn't even admit to having large
1285 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1288 echo "$ac_t""enabling large file support" 1>&6
1289 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1292 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1293 # to the existance of large files..
1294 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1295 # recommendations on large file support, however it makes the
1296 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1297 # recommendation makes the compile fail on gcc2.7. JRA.
1302 echo "$ac_t""enabling large file support" 1>&6
1303 if test "$ac_cv_prog_gcc" = yes; then
1304 ${CC-cc} -v >conftest.c 2>&1
1305 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1307 case "$ac_cv_gcc_compiler_version_number" in
1308 *"gcc version 2.6"*|*"gcc version 2.7"*)
1309 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1312 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1316 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1322 # Tests needed for SINIX large file support.
1325 if test $host = mips-sni-sysv4 ; then
1326 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1327 echo "configure:1328: checking for LFS support" >&5
1328 old_CPPFLAGS="$CPPFLAGS"
1329 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1330 if test "$cross_compiling" = yes; then
1331 SINIX_LFS_SUPPORT=cross
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1339 #if _LFS64_LARGEFILE == 1
1346 if { (eval echo configure:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1348 SINIX_LFS_SUPPORT=yes
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1353 SINIX_LFS_SUPPORT=no
1358 CPPFLAGS="$old_CPPFLAGS"
1359 if test x$SINIX_LFS_SUPPORT = xyes ; then
1360 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1361 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1362 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1363 LIBS="`getconf LFS64_LIBS` $LIBS"
1365 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1370 # Tests needed for glibc 2.1 large file support.
1373 echo "$ac_t""disabling large file support for glibc2.1 on Linux" 1>&6
1376 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1377 echo "configure:1378: checking for LFS support" >&5
1378 old_CPPFLAGS="$CPPFLAGS"
1379 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1380 if test "$cross_compiling" = yes; then
1381 GLIBC_LFS_SUPPORT=cross
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1389 #if _LFS64_LARGEFILE == 1
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1398 GLIBC_LFS_SUPPORT=yes
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 GLIBC_LFS_SUPPORT=no
1408 CPPFLAGS="$old_CPPFLAGS"
1409 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1410 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1412 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1417 echo $ac_n "checking for inline""... $ac_c" 1>&6
1418 echo "configure:1419: checking for inline" >&5
1419 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1423 for ac_kw in inline __inline__ __inline; do
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1432 if { (eval echo configure:1433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1434 ac_cv_c_inline=$ac_kw; break
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1444 echo "$ac_t""$ac_cv_c_inline" 1>&6
1445 case "$ac_cv_c_inline" in
1447 no) cat >> confdefs.h <<\EOF
1451 *) cat >> confdefs.h <<EOF
1452 #define inline $ac_cv_c_inline
1457 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1458 echo "configure:1459: checking how to run the C preprocessor" >&5
1459 # On Suns, sometimes $CPP names a directory.
1460 if test -n "$CPP" && test -d "$CPP"; then
1463 if test -z "$CPP"; then
1464 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 # This must be in double quotes, not single quotes, because CPP may get
1468 # substituted into the Makefile and "${CC-cc}" will confuse make.
1470 # On the NeXT, cc -E runs the code through the compiler's parser,
1471 # not just through cpp.
1472 cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1479 { (eval echo configure:1480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1481 if test -z "$ac_err"; then
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1488 CPP="${CC-cc} -E -traditional-cpp"
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496 { (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498 if test -z "$ac_err"; then
1502 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1505 CPP="${CC-cc} -nologo -E"
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1529 ac_cv_prog_CPP="$CPP"
1531 CPP="$ac_cv_prog_CPP"
1533 ac_cv_prog_CPP="$CPP"
1535 echo "$ac_t""$CPP" 1>&6
1537 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1538 echo "configure:1539: checking for ANSI C header files" >&5
1539 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1553 if test -z "$ac_err"; then
1555 ac_cv_header_stdc=yes
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1561 ac_cv_header_stdc=no
1565 if test $ac_cv_header_stdc = yes; then
1566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1573 egrep "memchr" >/dev/null 2>&1; then
1577 ac_cv_header_stdc=no
1583 if test $ac_cv_header_stdc = yes; then
1584 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1591 egrep "free" >/dev/null 2>&1; then
1595 ac_cv_header_stdc=no
1601 if test $ac_cv_header_stdc = yes; then
1602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1603 if test "$cross_compiling" = yes; then
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1610 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1611 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1612 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1613 int main () { int i; for (i = 0; i < 256; i++)
1614 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1618 if { (eval echo configure:1619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 ac_cv_header_stdc=no
1633 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1634 if test $ac_cv_header_stdc = yes; then
1635 cat >> confdefs.h <<\EOF
1636 #define STDC_HEADERS 1
1642 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1645 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_hdr that defines DIR" >&5
1647 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 #include <sys/types.h>
1659 if { (eval echo configure:1660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1661 eval "ac_cv_header_dirent_$ac_safe=yes"
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1666 eval "ac_cv_header_dirent_$ac_safe=no"
1670 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1671 echo "$ac_t""yes" 1>&6
1672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1673 cat >> confdefs.h <<EOF
1674 #define $ac_tr_hdr 1
1676 ac_header_dirent=$ac_hdr; break
1678 echo "$ac_t""no" 1>&6
1681 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1682 if test $ac_header_dirent = dirent.h; then
1683 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1684 echo "configure:1685: checking for opendir in -ldir" >&5
1685 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 ac_save_LIBS="$LIBS"
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* Override any gcc2 internal prototype to avoid an error. */
1695 /* We use char because int might match the return type of a gcc2
1696 builtin and then its argument prototype would still apply. */
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1705 eval "ac_cv_lib_$ac_lib_var=yes"
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1710 eval "ac_cv_lib_$ac_lib_var=no"
1713 LIBS="$ac_save_LIBS"
1716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1717 echo "$ac_t""yes" 1>&6
1720 echo "$ac_t""no" 1>&6
1724 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1725 echo "configure:1726: checking for opendir in -lx" >&5
1726 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_save_LIBS="$LIBS"
1732 cat > conftest.$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 /* Override any gcc2 internal prototype to avoid an error. */
1736 /* We use char because int might match the return type of a gcc2
1737 builtin and then its argument prototype would still apply. */
1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1746 eval "ac_cv_lib_$ac_lib_var=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_lib_$ac_lib_var=no"
1754 LIBS="$ac_save_LIBS"
1757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1761 echo "$ac_t""no" 1>&6
1766 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1767 echo "configure:1768: checking whether time.h and sys/time.h may both be included" >&5
1768 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <sys/types.h>
1775 #include <sys/time.h>
1781 if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1783 ac_cv_header_time=yes
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 ac_cv_header_time=no
1793 echo "$ac_t""$ac_cv_header_time" 1>&6
1794 if test $ac_cv_header_time = yes; then
1795 cat >> confdefs.h <<\EOF
1796 #define TIME_WITH_SYS_TIME 1
1801 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1802 echo "configure:1803: checking for sys/wait.h that is POSIX.1 compatible" >&5
1803 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 #include <sys/types.h>
1810 #include <sys/wait.h>
1812 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1815 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1820 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1823 if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1825 ac_cv_header_sys_wait_h=yes
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 ac_cv_header_sys_wait_h=no
1835 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1836 if test $ac_cv_header_sys_wait_h = yes; then
1837 cat >> confdefs.h <<\EOF
1838 #define HAVE_SYS_WAIT_H 1
1843 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1847 echo "configure:1848: checking for $ac_hdr" >&5
1848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1857 { (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1859 if test -z "$ac_err"; then
1861 eval "ac_cv_header_$ac_safe=yes"
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1867 eval "ac_cv_header_$ac_safe=no"
1871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1872 echo "$ac_t""yes" 1>&6
1873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1874 cat >> confdefs.h <<EOF
1875 #define $ac_tr_hdr 1
1879 echo "$ac_t""no" 1>&6
1883 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1887 echo "configure:1888: checking for $ac_hdr" >&5
1888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1897 { (eval echo configure:1898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1899 if test -z "$ac_err"; then
1901 eval "ac_cv_header_$ac_safe=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_header_$ac_safe=no"
1911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1912 echo "$ac_t""yes" 1>&6
1913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1914 cat >> confdefs.h <<EOF
1915 #define $ac_tr_hdr 1
1919 echo "$ac_t""no" 1>&6
1923 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1927 echo "configure:1928: checking for $ac_hdr" >&5
1928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1937 { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939 if test -z "$ac_err"; then
1941 eval "ac_cv_header_$ac_safe=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1947 eval "ac_cv_header_$ac_safe=no"
1951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1952 echo "$ac_t""yes" 1>&6
1953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1954 cat >> confdefs.h <<EOF
1955 #define $ac_tr_hdr 1
1959 echo "$ac_t""no" 1>&6
1963 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1967 echo "configure:1968: checking for $ac_hdr" >&5
1968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1977 { (eval echo configure:1978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1979 if test -z "$ac_err"; then
1981 eval "ac_cv_header_$ac_safe=yes"
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 eval "ac_cv_header_$ac_safe=no"
1991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1993 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1994 cat >> confdefs.h <<EOF
1995 #define $ac_tr_hdr 1
1999 echo "$ac_t""no" 1>&6
2003 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h
2005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2007 echo "configure:2008: checking for $ac_hdr" >&5
2008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2017 { (eval echo configure:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2019 if test -z "$ac_err"; then
2021 eval "ac_cv_header_$ac_safe=yes"
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2027 eval "ac_cv_header_$ac_safe=no"
2031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2032 echo "$ac_t""yes" 1>&6
2033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2034 cat >> confdefs.h <<EOF
2035 #define $ac_tr_hdr 1
2039 echo "$ac_t""no" 1>&6
2043 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_hdr" >&5
2048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2057 { (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2059 if test -z "$ac_err"; then
2061 eval "ac_cv_header_$ac_safe=yes"
2064 echo "configure: failed program was:" >&5
2065 cat conftest.$ac_ext >&5
2067 eval "ac_cv_header_$ac_safe=no"
2071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2074 cat >> confdefs.h <<EOF
2075 #define $ac_tr_hdr 1
2079 echo "$ac_t""no" 1>&6
2083 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2087 echo "configure:2088: checking for $ac_hdr" >&5
2088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2097 { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2099 if test -z "$ac_err"; then
2101 eval "ac_cv_header_$ac_safe=yes"
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2107 eval "ac_cv_header_$ac_safe=no"
2111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2114 cat >> confdefs.h <<EOF
2115 #define $ac_tr_hdr 1
2119 echo "$ac_t""no" 1>&6
2124 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2125 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2137 if { (eval echo configure:2138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2139 ac_cv_header_shadow_h=yes
2141 echo "configure: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2144 ac_cv_header_shadow_h=no
2147 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2148 cat >> confdefs.h <<\EOF
2149 #define HAVE_SHADOW_H 1
2155 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2159 echo "configure:2160: checking for $ac_hdr" >&5
2160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 cat > conftest.$ac_ext <<EOF
2164 #line 2165 "configure"
2165 #include "confdefs.h"
2168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2169 { (eval echo configure:2170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2171 if test -z "$ac_err"; then
2173 eval "ac_cv_header_$ac_safe=yes"
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 eval "ac_cv_header_$ac_safe=no"
2183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2184 echo "$ac_t""yes" 1>&6
2185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2186 cat >> confdefs.h <<EOF
2187 #define $ac_tr_hdr 1
2191 echo "$ac_t""no" 1>&6
2195 for ac_hdr in sys/security.h security/pam_appl.h
2197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2199 echo "configure:2200: checking for $ac_hdr" >&5
2200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2209 { (eval echo configure:2210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2211 if test -z "$ac_err"; then
2213 eval "ac_cv_header_$ac_safe=yes"
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 eval "ac_cv_header_$ac_safe=no"
2223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2224 echo "$ac_t""yes" 1>&6
2225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2226 cat >> confdefs.h <<EOF
2227 #define $ac_tr_hdr 1
2231 echo "$ac_t""no" 1>&6
2235 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
2237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_hdr" >&5
2240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249 { (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251 if test -z "$ac_err"; then
2253 eval "ac_cv_header_$ac_safe=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 eval "ac_cv_header_$ac_safe=no"
2263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2266 cat >> confdefs.h <<EOF
2267 #define $ac_tr_hdr 1
2271 echo "$ac_t""no" 1>&6
2275 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_hdr" >&5
2280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291 if test -z "$ac_err"; then
2293 eval "ac_cv_header_$ac_safe=yes"
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2299 eval "ac_cv_header_$ac_safe=no"
2303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_hdr 1
2311 echo "$ac_t""no" 1>&6
2315 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2319 echo "configure:2320: checking for $ac_hdr" >&5
2320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2333 eval "ac_cv_header_$ac_safe=yes"
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2339 eval "ac_cv_header_$ac_safe=no"
2343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2344 echo "$ac_t""yes" 1>&6
2345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2346 cat >> confdefs.h <<EOF
2347 #define $ac_tr_hdr 1
2351 echo "$ac_t""no" 1>&6
2356 # For experimental utmp support
2357 for ac_hdr in utmp.h utmpx.h
2359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2361 echo "configure:2362: checking for $ac_hdr" >&5
2362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2371 { (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2373 if test -z "$ac_err"; then
2375 eval "ac_cv_header_$ac_safe=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 eval "ac_cv_header_$ac_safe=no"
2385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2388 cat >> confdefs.h <<EOF
2389 #define $ac_tr_hdr 1
2393 echo "$ac_t""no" 1>&6
2398 echo $ac_n "checking size of int""... $ac_c" 1>&6
2399 echo "configure:2400: checking size of int" >&5
2400 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 if test "$cross_compiling" = yes; then
2404 ac_cv_sizeof_int=cross
2406 cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2412 FILE *f=fopen("conftestval", "w");
2414 fprintf(f, "%d\n", sizeof(int));
2418 if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2420 ac_cv_sizeof_int=`cat conftestval`
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2431 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2432 cat >> confdefs.h <<EOF
2433 #define SIZEOF_INT $ac_cv_sizeof_int
2437 echo $ac_n "checking size of long""... $ac_c" 1>&6
2438 echo "configure:2439: checking size of long" >&5
2439 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 if test "$cross_compiling" = yes; then
2443 ac_cv_sizeof_long=cross
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2451 FILE *f=fopen("conftestval", "w");
2453 fprintf(f, "%d\n", sizeof(long));
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2459 ac_cv_sizeof_long=`cat conftestval`
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2470 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2471 cat >> confdefs.h <<EOF
2472 #define SIZEOF_LONG $ac_cv_sizeof_long
2476 echo $ac_n "checking size of short""... $ac_c" 1>&6
2477 echo "configure:2478: checking size of short" >&5
2478 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 if test "$cross_compiling" = yes; then
2482 ac_cv_sizeof_short=cross
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2490 FILE *f=fopen("conftestval", "w");
2492 fprintf(f, "%d\n", sizeof(short));
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2498 ac_cv_sizeof_short=`cat conftestval`
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 ac_cv_sizeof_short=0
2509 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2510 cat >> confdefs.h <<EOF
2511 #define SIZEOF_SHORT $ac_cv_sizeof_short
2516 echo $ac_n "checking for working const""... $ac_c" 1>&6
2517 echo "configure:2518: checking for working const" >&5
2518 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2527 /* Ultrix mips cc rejects this. */
2528 typedef int charset[2]; const charset x;
2529 /* SunOS 4.1.1 cc rejects this. */
2530 char const *const *ccp;
2532 /* NEC SVR4.0.2 mips cc rejects this. */
2533 struct point {int x, y;};
2534 static struct point const zero = {0,0};
2535 /* AIX XL C 1.02.0.0 rejects this.
2536 It does not let you subtract one const X* pointer from another in an arm
2537 of an if-expression whose if-part is not a constant expression */
2538 const char *g = "string";
2539 ccp = &g + (g ? g-g : 0);
2540 /* HPUX 7.0 cc rejects these. */
2543 ccp = (char const *const *) p;
2544 { /* SCO 3.2v4 cc rejects this. */
2546 char const *s = 0 ? (char *) 0 : (char const *) 0;
2550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2552 const int *foo = &x[0];
2555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2556 typedef const int *iptr;
2560 { /* AIX XL C 1.02.0.0 rejects this saying
2561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2562 struct s { int j; const int *ap[3]; };
2563 struct s *b; b->j = 5;
2565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2571 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2575 echo "configure: failed program was:" >&5
2576 cat conftest.$ac_ext >&5
2583 echo "$ac_t""$ac_cv_c_const" 1>&6
2584 if test $ac_cv_c_const = no; then
2585 cat >> confdefs.h <<\EOF
2591 echo $ac_n "checking for inline""... $ac_c" 1>&6
2592 echo "configure:2593: checking for inline" >&5
2593 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2597 for ac_kw in inline __inline__ __inline; do
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2606 if { (eval echo configure:2607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 ac_cv_c_inline=$ac_kw; break
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2618 echo "$ac_t""$ac_cv_c_inline" 1>&6
2619 case "$ac_cv_c_inline" in
2621 no) cat >> confdefs.h <<\EOF
2625 *) cat >> confdefs.h <<EOF
2626 #define inline $ac_cv_c_inline
2631 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2632 echo "configure:2633: checking whether byte ordering is bigendian" >&5
2633 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 ac_cv_c_bigendian=unknown
2637 # See if sys/param.h defines the BYTE_ORDER macro.
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #include <sys/types.h>
2642 #include <sys/param.h>
2645 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2650 if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2652 # It does; now see whether it defined to BIG_ENDIAN or not.
2653 cat > conftest.$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2656 #include <sys/types.h>
2657 #include <sys/param.h>
2660 #if BYTE_ORDER != BIG_ENDIAN
2665 if { (eval echo configure:2666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2667 ac_cv_c_bigendian=yes
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 ac_cv_c_bigendian=no
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2680 if test $ac_cv_c_bigendian = unknown; then
2681 if test "$cross_compiling" = yes; then
2682 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2688 /* Are we little or big endian? From Harbison&Steele. */
2692 char c[sizeof (long)];
2695 exit (u.c[sizeof (long) - 1] == 1);
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2700 ac_cv_c_bigendian=no
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 ac_cv_c_bigendian=yes
2713 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2714 if test $ac_cv_c_bigendian = yes; then
2715 cat >> confdefs.h <<\EOF
2716 #define WORDS_BIGENDIAN 1
2721 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2722 echo "configure:2723: checking whether char is unsigned" >&5
2723 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 if test "$GCC" = yes; then
2727 # GCC predefines this symbol on systems where it applies.
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 #ifdef __CHAR_UNSIGNED__
2736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2737 egrep "yes" >/dev/null 2>&1; then
2739 ac_cv_c_char_unsigned=yes
2742 ac_cv_c_char_unsigned=no
2747 if test "$cross_compiling" = yes; then
2748 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2750 cat > conftest.$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2754 #if !defined(__STDC__) || __STDC__ != 1
2758 volatile char c = 255; exit(c < 0);
2761 if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2763 ac_cv_c_char_unsigned=yes
2765 echo "configure: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2768 ac_cv_c_char_unsigned=no
2776 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2777 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2778 cat >> confdefs.h <<\EOF
2779 #define __CHAR_UNSIGNED__ 1
2785 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2786 echo "configure:2787: checking return type of signal handlers" >&5
2787 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 #include <sys/types.h>
2799 extern "C" void (*signal (int, void (*)(int)))(int);
2801 void (*signal ()) ();
2808 if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2810 ac_cv_type_signal=void
2812 echo "configure: failed program was:" >&5
2813 cat conftest.$ac_ext >&5
2815 ac_cv_type_signal=int
2820 echo "$ac_t""$ac_cv_type_signal" 1>&6
2821 cat >> confdefs.h <<EOF
2822 #define RETSIGTYPE $ac_cv_type_signal
2826 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking for uid_t in sys/types.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <sys/types.h>
2836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2837 egrep "uid_t" >/dev/null 2>&1; then
2839 ac_cv_type_uid_t=yes
2848 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2849 if test $ac_cv_type_uid_t = no; then
2850 cat >> confdefs.h <<\EOF
2854 cat >> confdefs.h <<\EOF
2860 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2861 echo "configure:2862: checking for mode_t" >&5
2862 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868 #include <sys/types.h>
2874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2875 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2877 ac_cv_type_mode_t=yes
2880 ac_cv_type_mode_t=no
2885 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2886 if test $ac_cv_type_mode_t = no; then
2887 cat >> confdefs.h <<\EOF
2893 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2894 echo "configure:2895: checking for off_t" >&5
2895 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 #include <sys/types.h>
2907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2908 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2910 ac_cv_type_off_t=yes
2918 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2919 if test $ac_cv_type_off_t = no; then
2920 cat >> confdefs.h <<\EOF
2926 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2927 echo "configure:2928: checking for size_t" >&5
2928 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 #include <sys/types.h>
2940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2941 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2943 ac_cv_type_size_t=yes
2946 ac_cv_type_size_t=no
2951 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2952 if test $ac_cv_type_size_t = no; then
2953 cat >> confdefs.h <<\EOF
2954 #define size_t unsigned
2959 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2960 echo "configure:2961: checking for pid_t" >&5
2961 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2967 #include <sys/types.h>
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2976 ac_cv_type_pid_t=yes
2984 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2985 if test $ac_cv_type_pid_t = no; then
2986 cat >> confdefs.h <<\EOF
2992 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2993 echo "configure:2994: checking for st_rdev in struct stat" >&5
2994 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3003 struct stat s; s.st_rdev;
3006 if { (eval echo configure:3007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3008 ac_cv_struct_st_rdev=yes
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 ac_cv_struct_st_rdev=no
3018 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3019 if test $ac_cv_struct_st_rdev = yes; then
3020 cat >> confdefs.h <<\EOF
3021 #define HAVE_ST_RDEV 1
3026 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3027 echo "configure:3028: checking for d_off in dirent" >&5
3028 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3036 #include <sys/types.h>
3039 struct dirent d; d.d_off;
3042 if { (eval echo configure:3043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3044 ac_cv_dirent_d_off=yes
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3049 ac_cv_dirent_d_off=no
3054 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3055 if test $ac_cv_dirent_d_off = yes; then
3056 cat >> confdefs.h <<\EOF
3057 #define HAVE_DIRENT_D_OFF 1
3062 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3063 echo "configure:3064: checking for ino_t" >&5
3064 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 #include <sys/types.h>
3076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3077 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3079 ac_cv_type_ino_t=yes
3087 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3088 if test $ac_cv_type_ino_t = no; then
3089 cat >> confdefs.h <<\EOF
3090 #define ino_t unsigned
3095 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3096 echo "configure:3097: checking for loff_t" >&5
3097 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <sys/types.h>
3109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3112 ac_cv_type_loff_t=yes
3115 ac_cv_type_loff_t=no
3120 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3121 if test $ac_cv_type_loff_t = no; then
3122 cat >> confdefs.h <<\EOF
3123 #define loff_t off_t
3128 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3129 echo "configure:3130: checking for offset_t" >&5
3130 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 #include <sys/types.h>
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3145 ac_cv_type_offset_t=yes
3148 ac_cv_type_offset_t=no
3153 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3154 if test $ac_cv_type_offset_t = no; then
3155 cat >> confdefs.h <<\EOF
3156 #define offset_t loff_t
3161 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3162 echo "configure:3163: checking for ssize_t" >&5
3163 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3169 #include <sys/types.h>
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3178 ac_cv_type_ssize_t=yes
3181 ac_cv_type_ssize_t=no
3186 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3187 if test $ac_cv_type_ssize_t = no; then
3188 cat >> confdefs.h <<\EOF
3194 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3195 echo "configure:3196: checking for wchar_t" >&5
3196 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202 #include <sys/types.h>
3208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3209 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3211 ac_cv_type_wchar_t=yes
3214 ac_cv_type_wchar_t=no
3219 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3220 if test $ac_cv_type_wchar_t = no; then
3221 cat >> confdefs.h <<\EOF
3222 #define wchar_t unsigned short
3228 # we need libcups for CUPS support...
3229 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3230 echo "configure:3231: checking for httpConnect in -lcups" >&5
3231 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 ac_save_LIBS="$LIBS"
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3251 eval "ac_cv_lib_$ac_lib_var=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 eval "ac_cv_lib_$ac_lib_var=no"
3259 LIBS="$ac_save_LIBS"
3262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3263 echo "$ac_t""yes" 1>&6
3264 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3266 cat >> confdefs.h <<EOF
3267 #define $ac_tr_lib 1
3273 echo "$ac_t""no" 1>&6
3277 # we need libdl for PAM and the new VFS code
3278 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3279 echo "configure:3280: checking for dlopen in -ldl" >&5
3280 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 ac_save_LIBS="$LIBS"
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* Override any gcc2 internal prototype to avoid an error. */
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3300 eval "ac_cv_lib_$ac_lib_var=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5
3305 eval "ac_cv_lib_$ac_lib_var=no"
3308 LIBS="$ac_save_LIBS"
3311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3314 cat >> confdefs.h <<\EOF
3315 #define HAVE_LIBDL 1
3319 echo "$ac_t""no" 1>&6
3323 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3324 echo "configure:3325: checking for sig_atomic_t type" >&5
3325 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3333 #include <sys/types.h>
3343 if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3345 samba_cv_sig_atomic_t=yes
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 samba_cv_sig_atomic_t=no
3355 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3356 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3357 cat >> confdefs.h <<\EOF
3358 #define HAVE_SIG_ATOMIC_T_TYPE 1
3363 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3364 echo "configure:3365: checking for errno in errno.h" >&5
3365 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3377 if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3384 samba_cv_have_errno=no
3389 echo "$ac_t""$samba_cv_errno" 1>&6
3390 if test x"$samba_cv_errno" = x"yes"; then
3391 cat >> confdefs.h <<\EOF
3392 #define HAVE_ERRNO_DECL 1
3397 # stupid glibc has the functions but no declaration. grrrr.
3398 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3399 echo "configure:3400: checking for setresuid declaration" >&5
3400 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3409 int i = (int)setresuid
3412 if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 samba_cv_have_setresuid_decl=yes
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3419 samba_cv_have_setresuid_decl=no
3424 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3425 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3426 cat >> confdefs.h <<\EOF
3427 #define HAVE_SETRESUID_DECL 1
3432 # stupid glibc has the functions but no declaration. grrrr.
3433 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3434 echo "configure:3435: checking for setresgid declaration" >&5
3435 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3444 int i = (int)setresgid
3447 if { (eval echo configure:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3449 samba_cv_have_setresgid_decl=yes
3451 echo "configure: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3454 samba_cv_have_setresgid_decl=no
3459 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
3460 if test x"$samba_cv_have_setresgid_decl" = x"yes"; then
3461 cat >> confdefs.h <<\EOF
3462 #define HAVE_SETRESGID_DECL 1
3467 # and glibc has setresuid under linux but the function does
3468 # nothing until kernel 2.1.44! very dumb.
3469 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3470 echo "configure:3471: checking for real setresuid" >&5
3471 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3475 if test "$cross_compiling" = yes; then
3476 samba_cv_have_setresuid=cross
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3482 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3484 if { (eval echo configure:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3486 samba_cv_have_setresuid=yes
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 samba_cv_have_setresuid=no
3498 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3499 if test x"$samba_cv_have_setresuid" = x"yes"; then
3500 cat >> confdefs.h <<\EOF
3501 #define HAVE_SETRESUID 1
3506 # Do the same check for setresguid...
3508 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3509 echo "configure:3510: checking for real setresgid" >&5
3510 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3514 if test "$cross_compiling" = yes; then
3515 samba_cv_have_setresgid=cross
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3522 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3526 samba_cv_have_setresgid=yes
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3531 samba_cv_have_setresgid=no
3538 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3539 if test x"$samba_cv_have_setresgid" = x"yes"; then
3540 cat >> confdefs.h <<\EOF
3541 #define HAVE_SETRESGID 1
3546 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3547 echo "configure:3548: checking for 8-bit clean memcmp" >&5
3548 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 if test "$cross_compiling" = yes; then
3552 ac_cv_func_memcmp_clean=no
3554 cat > conftest.$ac_ext <<EOF
3555 #line 3556 "configure"
3556 #include "confdefs.h"
3560 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3561 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3565 if { (eval echo configure:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3567 ac_cv_func_memcmp_clean=yes
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3572 ac_cv_func_memcmp_clean=no
3579 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3580 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3583 ###############################################
3584 # test for where we get crypt() from
3585 for ac_func in crypt
3587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_func" >&5
3589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* System header to define __stub macros and hopefully few prototypes,
3596 which can conflict with char $ac_func(); below. */
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3605 /* The GNU C library defines this for functions which it implements
3606 to always fail with ENOSYS. Some functions are actually named
3607 something starting with __ and the normal name is an alias. */
3608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3618 eval "ac_cv_func_$ac_func=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 eval "ac_cv_func_$ac_func=no"
3628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3629 echo "$ac_t""yes" 1>&6
3630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3631 cat >> confdefs.h <<EOF
3632 #define $ac_tr_func 1
3636 echo "$ac_t""no" 1>&6
3640 if test x"$ac_cv_func_crypt" = x"no"; then
3641 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3642 echo "configure:3643: checking for crypt in -lcrypt" >&5
3643 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 ac_save_LIBS="$LIBS"
3648 LIBS="-lcrypt $LIBS"
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_lib_$ac_lib_var=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_lib_$ac_lib_var=no"
3671 LIBS="$ac_save_LIBS"
3674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3675 echo "$ac_t""yes" 1>&6
3676 LIBS="$LIBS -lcrypt";
3677 cat >> confdefs.h <<\EOF
3678 #define HAVE_CRYPT 1
3682 echo "$ac_t""no" 1>&6
3688 ###############################################
3689 # test for where we get readline() from
3690 if test "$ac_cv_header_readline_h" = "yes" ||
3691 test "$ac_cv_header_readline_readline_h" = "yes"; then
3692 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3693 echo "configure:3694: checking for readline in -lreadline" >&5
3694 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3698 ac_save_LIBS="$LIBS"
3699 LIBS="-lreadline $LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error. */
3704 /* We use char because int might match the return type of a gcc2
3705 builtin and then its argument prototype would still apply. */
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_lib 1
3733 LIBS="-lreadline $LIBS"
3736 echo "$ac_t""no" 1>&6
3742 # The following test taken from the cvs sources
3743 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3744 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3745 # libsocket.so which has a bad implementation of gethostbyname (it
3746 # only looks in /etc/hosts), so we only look for -lsocket if we need
3748 for ac_func in connect
3750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3751 echo "configure:3752: checking for $ac_func" >&5
3752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 /* System header to define __stub macros and hopefully few prototypes,
3759 which can conflict with char $ac_func(); below. */
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 /* We use char because int might match the return type of a gcc2
3763 builtin and then its argument prototype would still apply. */
3768 /* The GNU C library defines this for functions which it implements
3769 to always fail with ENOSYS. Some functions are actually named
3770 something starting with __ and the normal name is an alias. */
3771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 eval "ac_cv_func_$ac_func=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_func_$ac_func=no"
3791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3792 echo "$ac_t""yes" 1>&6
3793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3794 cat >> confdefs.h <<EOF
3795 #define $ac_tr_func 1
3799 echo "$ac_t""no" 1>&6
3803 if test x"$ac_cv_func_connect" = x"no"; then
3806 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3807 echo "configure:3808: checking for printf in -lnsl_s" >&5
3808 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 ac_save_LIBS="$LIBS"
3813 LIBS="-lnsl_s $LIBS"
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_lib_$ac_lib_var=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_lib_$ac_lib_var=no"
3836 LIBS="$ac_save_LIBS"
3839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3842 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3843 cat >> confdefs.h <<EOF
3844 #define $ac_tr_lib 1
3847 LIBS="-lnsl_s $LIBS"
3850 echo "$ac_t""no" 1>&6
3856 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3857 echo "configure:3858: checking for printf in -lnsl" >&5
3858 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 ac_save_LIBS="$LIBS"
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_lib_$ac_lib_var=no"
3886 LIBS="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3893 cat >> confdefs.h <<EOF
3894 #define $ac_tr_lib 1
3900 echo "$ac_t""no" 1>&6
3906 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3907 echo "configure:3908: checking for connect in -lsocket" >&5
3908 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 ac_save_LIBS="$LIBS"
3913 LIBS="-lsocket $LIBS"
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3928 eval "ac_cv_lib_$ac_lib_var=yes"
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 eval "ac_cv_lib_$ac_lib_var=no"
3936 LIBS="$ac_save_LIBS"
3939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3943 cat >> confdefs.h <<EOF
3944 #define $ac_tr_lib 1
3947 LIBS="-lsocket $LIBS"
3950 echo "$ac_t""no" 1>&6
3956 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3957 echo "configure:3958: checking for connect in -linet" >&5
3958 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 ac_save_LIBS="$LIBS"
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 /* Override any gcc2 internal prototype to avoid an error. */
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 eval "ac_cv_lib_$ac_lib_var=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_lib_$ac_lib_var=no"
3986 LIBS="$ac_save_LIBS"
3989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3990 echo "$ac_t""yes" 1>&6
3991 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3992 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3993 cat >> confdefs.h <<EOF
3994 #define $ac_tr_lib 1
4000 echo "$ac_t""no" 1>&6
4004 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4005 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4006 # ac_cv_func_connect=yes
4007 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4008 cat >> confdefs.h <<\EOF
4009 #define HAVE_CONNECT 1
4015 # Check if we have execl, if not we need to compile smbrun.
4016 for ac_func in execl
4018 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4019 echo "configure:4020: checking for $ac_func" >&5
4020 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* System header to define __stub macros and hopefully few prototypes,
4027 which can conflict with char $ac_func(); below. */
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4036 /* The GNU C library defines this for functions which it implements
4037 to always fail with ENOSYS. Some functions are actually named
4038 something starting with __ and the normal name is an alias. */
4039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4049 eval "ac_cv_func_$ac_func=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4054 eval "ac_cv_func_$ac_func=no"
4059 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6
4061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4062 cat >> confdefs.h <<EOF
4063 #define $ac_tr_func 1
4067 echo "$ac_t""no" 1>&6
4071 if test x"$ac_cv_func_execl" = x"no"; then
4072 RUNPROG="bin/smbrun"
4077 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_func" >&5
4081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* System header to define __stub macros and hopefully few prototypes,
4088 which can conflict with char $ac_func(); below. */
4090 /* Override any gcc2 internal prototype to avoid an error. */
4091 /* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4097 /* The GNU C library defines this for functions which it implements
4098 to always fail with ENOSYS. Some functions are actually named
4099 something starting with __ and the normal name is an alias. */
4100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 eval "ac_cv_func_$ac_func=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 eval "ac_cv_func_$ac_func=no"
4120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4123 cat >> confdefs.h <<EOF
4124 #define $ac_tr_func 1
4128 echo "$ac_t""no" 1>&6
4132 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_func" >&5
4136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* System header to define __stub macros and hopefully few prototypes,
4143 which can conflict with char $ac_func(); below. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4152 /* The GNU C library defines this for functions which it implements
4153 to always fail with ENOSYS. Some functions are actually named
4154 something starting with __ and the normal name is an alias. */
4155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4163 if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 eval "ac_cv_func_$ac_func=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 eval "ac_cv_func_$ac_func=no"
4175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4178 cat >> confdefs.h <<EOF
4179 #define $ac_tr_func 1
4183 echo "$ac_t""no" 1>&6
4187 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_func" >&5
4191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* System header to define __stub macros and hopefully few prototypes,
4198 which can conflict with char $ac_func(); below. */
4200 /* Override any gcc2 internal prototype to avoid an error. */
4201 /* We use char because int might match the return type of a gcc2
4202 builtin and then its argument prototype would still apply. */
4207 /* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220 eval "ac_cv_func_$ac_func=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4225 eval "ac_cv_func_$ac_func=no"
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h <<EOF
4234 #define $ac_tr_func 1
4238 echo "$ac_t""no" 1>&6
4242 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4245 echo "configure:4246: checking for $ac_func" >&5
4246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 /* System header to define __stub macros and hopefully few prototypes,
4253 which can conflict with char $ac_func(); below. */
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4262 /* The GNU C library defines this for functions which it implements
4263 to always fail with ENOSYS. Some functions are actually named
4264 something starting with __ and the normal name is an alias. */
4265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4275 eval "ac_cv_func_$ac_func=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 eval "ac_cv_func_$ac_func=no"
4285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4286 echo "$ac_t""yes" 1>&6
4287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4288 cat >> confdefs.h <<EOF
4289 #define $ac_tr_func 1
4293 echo "$ac_t""no" 1>&6
4297 for ac_func in initgroups select rdchk getgrnam getgrent pathconf
4299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_func" >&5
4301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4304 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure"
4306 #include "confdefs.h"
4307 /* System header to define __stub macros and hopefully few prototypes,
4308 which can conflict with char $ac_func(); below. */
4310 /* Override any gcc2 internal prototype to avoid an error. */
4311 /* We use char because int might match the return type of a gcc2
4312 builtin and then its argument prototype would still apply. */
4317 /* The GNU C library defines this for functions which it implements
4318 to always fail with ENOSYS. Some functions are actually named
4319 something starting with __ and the normal name is an alias. */
4320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4328 if { (eval echo configure:4329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4330 eval "ac_cv_func_$ac_func=yes"
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4335 eval "ac_cv_func_$ac_func=no"
4340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4343 cat >> confdefs.h <<EOF
4344 #define $ac_tr_func 1
4348 echo "$ac_t""no" 1>&6
4352 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
4354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_func" >&5
4356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 /* System header to define __stub macros and hopefully few prototypes,
4363 which can conflict with char $ac_func(); below. */
4365 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4372 /* The GNU C library defines this for functions which it implements
4373 to always fail with ENOSYS. Some functions are actually named
4374 something starting with __ and the normal name is an alias. */
4375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4385 eval "ac_cv_func_$ac_func=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4390 eval "ac_cv_func_$ac_func=no"
4395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4398 cat >> confdefs.h <<EOF
4399 #define $ac_tr_func 1
4403 echo "$ac_t""no" 1>&6
4407 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
4409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4410 echo "configure:4411: checking for $ac_func" >&5
4411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* System header to define __stub macros and hopefully few prototypes,
4418 which can conflict with char $ac_func(); below. */
4420 /* Override any gcc2 internal prototype to avoid an error. */
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4427 /* The GNU C library defines this for functions which it implements
4428 to always fail with ENOSYS. Some functions are actually named
4429 something starting with __ and the normal name is an alias. */
4430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_func_$ac_func=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_func_$ac_func=no"
4450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4453 cat >> confdefs.h <<EOF
4454 #define $ac_tr_func 1
4458 echo "$ac_t""no" 1>&6
4462 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid yp_get_default_domain getpwanam
4464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_func" >&5
4466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char $ac_func(); below. */
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4482 /* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
4485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 eval "ac_cv_func_$ac_func=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_func_$ac_func=no"
4505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508 cat >> confdefs.h <<EOF
4509 #define $ac_tr_func 1
4513 echo "$ac_t""no" 1>&6
4517 for ac_func in srandom random srand rand setenv usleep mmap64 strcasecmp fcvt fcvtl
4519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4520 echo "configure:4521: checking for $ac_func" >&5
4521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 /* System header to define __stub macros and hopefully few prototypes,
4528 which can conflict with char $ac_func(); below. */
4530 /* Override any gcc2 internal prototype to avoid an error. */
4531 /* We use char because int might match the return type of a gcc2
4532 builtin and then its argument prototype would still apply. */
4537 /* The GNU C library defines this for functions which it implements
4538 to always fail with ENOSYS. Some functions are actually named
4539 something starting with __ and the normal name is an alias. */
4540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 eval "ac_cv_func_$ac_func=yes"
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 eval "ac_cv_func_$ac_func=no"
4560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4563 cat >> confdefs.h <<EOF
4564 #define $ac_tr_func 1
4568 echo "$ac_t""no" 1>&6
4573 # syscall() is needed for smbwrapper.
4574 for ac_func in syscall
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 eval "ac_cv_func_$ac_func=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_func_$ac_func=no"
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4620 cat >> confdefs.h <<EOF
4621 #define $ac_tr_func 1
4625 echo "$ac_t""no" 1>&6
4630 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_func" >&5
4634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 /* System header to define __stub macros and hopefully few prototypes,
4641 which can conflict with char $ac_func(); below. */
4643 /* Override any gcc2 internal prototype to avoid an error. */
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4650 /* The GNU C library defines this for functions which it implements
4651 to always fail with ENOSYS. Some functions are actually named
4652 something starting with __ and the normal name is an alias. */
4653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4663 eval "ac_cv_func_$ac_func=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_func_$ac_func=no"
4673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4676 cat >> confdefs.h <<EOF
4677 #define $ac_tr_func 1
4681 echo "$ac_t""no" 1>&6
4685 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4688 echo "configure:4689: checking for $ac_func" >&5
4689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4690 echo $ac_n "(cached) $ac_c" 1>&6
4692 cat > conftest.$ac_ext <<EOF
4693 #line 4694 "configure"
4694 #include "confdefs.h"
4695 /* System header to define __stub macros and hopefully few prototypes,
4696 which can conflict with char $ac_func(); below. */
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4705 /* The GNU C library defines this for functions which it implements
4706 to always fail with ENOSYS. Some functions are actually named
4707 something starting with __ and the normal name is an alias. */
4708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4716 if { (eval echo configure:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4718 eval "ac_cv_func_$ac_func=yes"
4720 echo "configure: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4723 eval "ac_cv_func_$ac_func=no"
4728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4731 cat >> confdefs.h <<EOF
4732 #define $ac_tr_func 1
4736 echo "$ac_t""no" 1>&6
4740 for ac_func in __getcwd _getcwd
4742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4743 echo "configure:4744: checking for $ac_func" >&5
4744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 cat > conftest.$ac_ext <<EOF
4748 #line 4749 "configure"
4749 #include "confdefs.h"
4750 /* System header to define __stub macros and hopefully few prototypes,
4751 which can conflict with char $ac_func(); below. */
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4760 /* The GNU C library defines this for functions which it implements
4761 to always fail with ENOSYS. Some functions are actually named
4762 something starting with __ and the normal name is an alias. */
4763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4773 eval "ac_cv_func_$ac_func=yes"
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4778 eval "ac_cv_func_$ac_func=no"
4783 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4785 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4786 cat >> confdefs.h <<EOF
4787 #define $ac_tr_func 1
4791 echo "$ac_t""no" 1>&6
4795 for ac_func in __xstat __fxstat __lxstat
4797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4798 echo "configure:4799: checking for $ac_func" >&5
4799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* System header to define __stub macros and hopefully few prototypes,
4806 which can conflict with char $ac_func(); below. */
4808 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */
4815 /* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
4818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828 eval "ac_cv_func_$ac_func=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 eval "ac_cv_func_$ac_func=no"
4838 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4841 cat >> confdefs.h <<EOF
4842 #define $ac_tr_func 1
4846 echo "$ac_t""no" 1>&6
4850 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4853 echo "configure:4854: checking for $ac_func" >&5
4854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 /* System header to define __stub macros and hopefully few prototypes,
4861 which can conflict with char $ac_func(); below. */
4863 /* Override any gcc2 internal prototype to avoid an error. */
4864 /* We use char because int might match the return type of a gcc2
4865 builtin and then its argument prototype would still apply. */
4870 /* The GNU C library defines this for functions which it implements
4871 to always fail with ENOSYS. Some functions are actually named
4872 something starting with __ and the normal name is an alias. */
4873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 eval "ac_cv_func_$ac_func=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_func_$ac_func=no"
4893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4894 echo "$ac_t""yes" 1>&6
4895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4896 cat >> confdefs.h <<EOF
4897 #define $ac_tr_func 1
4901 echo "$ac_t""no" 1>&6
4905 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4908 echo "configure:4909: checking for $ac_func" >&5
4909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 /* System header to define __stub macros and hopefully few prototypes,
4916 which can conflict with char $ac_func(); below. */
4918 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4925 /* The GNU C library defines this for functions which it implements
4926 to always fail with ENOSYS. Some functions are actually named
4927 something starting with __ and the normal name is an alias. */
4928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 eval "ac_cv_func_$ac_func=yes"
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4943 eval "ac_cv_func_$ac_func=no"
4948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4951 cat >> confdefs.h <<EOF
4952 #define $ac_tr_func 1
4956 echo "$ac_t""no" 1>&6
4960 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $ac_func" >&5
4964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* System header to define __stub macros and hopefully few prototypes,
4971 which can conflict with char $ac_func(); below. */
4973 /* Override any gcc2 internal prototype to avoid an error. */
4974 /* We use char because int might match the return type of a gcc2
4975 builtin and then its argument prototype would still apply. */
4980 /* The GNU C library defines this for functions which it implements
4981 to always fail with ENOSYS. Some functions are actually named
4982 something starting with __ and the normal name is an alias. */
4983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4991 if { (eval echo configure:4992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4993 eval "ac_cv_func_$ac_func=yes"
4995 echo "configure: failed program was:" >&5
4996 cat conftest.$ac_ext >&5
4998 eval "ac_cv_func_$ac_func=no"
5003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5004 echo "$ac_t""yes" 1>&6
5005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5006 cat >> confdefs.h <<EOF
5007 #define $ac_tr_func 1
5011 echo "$ac_t""no" 1>&6
5015 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 eval "ac_cv_func_$ac_func=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_func_$ac_func=no"
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h <<EOF
5062 #define $ac_tr_func 1
5066 echo "$ac_t""no" 1>&6
5070 for ac_func in _write __write _fork __fork
5072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5073 echo "configure:5074: checking for $ac_func" >&5
5074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5080 /* System header to define __stub macros and hopefully few prototypes,
5081 which can conflict with char $ac_func(); below. */
5083 /* Override any gcc2 internal prototype to avoid an error. */
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5090 /* The GNU C library defines this for functions which it implements
5091 to always fail with ENOSYS. Some functions are actually named
5092 something starting with __ and the normal name is an alias. */
5093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5103 eval "ac_cv_func_$ac_func=yes"
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5108 eval "ac_cv_func_$ac_func=no"
5113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5114 echo "$ac_t""yes" 1>&6
5115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5116 cat >> confdefs.h <<EOF
5117 #define $ac_tr_func 1
5121 echo "$ac_t""no" 1>&6
5125 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_func" >&5
5129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 /* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char $ac_func(); below. */
5138 /* Override any gcc2 internal prototype to avoid an error. */
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5145 /* The GNU C library defines this for functions which it implements
5146 to always fail with ENOSYS. Some functions are actually named
5147 something starting with __ and the normal name is an alias. */
5148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5158 eval "ac_cv_func_$ac_func=yes"
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5163 eval "ac_cv_func_$ac_func=no"
5168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5169 echo "$ac_t""yes" 1>&6
5170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5171 cat >> confdefs.h <<EOF
5172 #define $ac_tr_func 1
5176 echo "$ac_t""no" 1>&6
5180 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5183 echo "configure:5184: checking for $ac_func" >&5
5184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 /* System header to define __stub macros and hopefully few prototypes,
5191 which can conflict with char $ac_func(); below. */
5193 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
5200 /* The GNU C library defines this for functions which it implements
5201 to always fail with ENOSYS. Some functions are actually named
5202 something starting with __ and the normal name is an alias. */
5203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5213 eval "ac_cv_func_$ac_func=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5218 eval "ac_cv_func_$ac_func=no"
5223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5226 cat >> confdefs.h <<EOF
5227 #define $ac_tr_func 1
5231 echo "$ac_t""no" 1>&6
5235 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5238 echo "configure:5239: checking for $ac_func" >&5
5239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* System header to define __stub macros and hopefully few prototypes,
5246 which can conflict with char $ac_func(); below. */
5248 /* Override any gcc2 internal prototype to avoid an error. */
5249 /* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5255 /* The GNU C library defines this for functions which it implements
5256 to always fail with ENOSYS. Some functions are actually named
5257 something starting with __ and the normal name is an alias. */
5258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5268 eval "ac_cv_func_$ac_func=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 eval "ac_cv_func_$ac_func=no"
5278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5279 echo "$ac_t""yes" 1>&6
5280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5281 cat >> confdefs.h <<EOF
5282 #define $ac_tr_func 1
5286 echo "$ac_t""no" 1>&6
5290 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5293 echo "configure:5294: checking for $ac_func" >&5
5294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5300 /* System header to define __stub macros and hopefully few prototypes,
5301 which can conflict with char $ac_func(); below. */
5303 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5310 /* The GNU C library defines this for functions which it implements
5311 to always fail with ENOSYS. Some functions are actually named
5312 something starting with __ and the normal name is an alias. */
5313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5321 if { (eval echo configure:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5323 eval "ac_cv_func_$ac_func=yes"
5325 echo "configure: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5328 eval "ac_cv_func_$ac_func=no"
5333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5334 echo "$ac_t""yes" 1>&6
5335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5336 cat >> confdefs.h <<EOF
5337 #define $ac_tr_func 1
5341 echo "$ac_t""no" 1>&6
5345 for ac_func in open64 _open64 __open64 creat64
5347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5348 echo "configure:5349: checking for $ac_func" >&5
5349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5352 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 /* System header to define __stub macros and hopefully few prototypes,
5356 which can conflict with char $ac_func(); below. */
5358 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5365 /* The GNU C library defines this for functions which it implements
5366 to always fail with ENOSYS. Some functions are actually named
5367 something starting with __ and the normal name is an alias. */
5368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5376 if { (eval echo configure:5377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 eval "ac_cv_func_$ac_func=yes"
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 eval "ac_cv_func_$ac_func=no"
5388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5391 cat >> confdefs.h <<EOF
5392 #define $ac_tr_func 1
5396 echo "$ac_t""no" 1>&6
5402 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
5405 if test x$ac_cv_func_stat64 = xno ; then
5406 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
5407 echo "configure:5408: checking for stat64 in <sys/stat.h>" >&5
5408 cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5412 #if defined(HAVE_UNISTD_H)
5415 #include <sys/stat.h>
5418 struct stat64 st64; exit(stat64(".",&st64));
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5423 ac_cv_func_stat64=yes
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5429 echo "$ac_t""$ac_cv_func_stat64" 1>&6
5430 if test x$ac_cv_func_stat64 = xyes ; then
5431 cat >> confdefs.h <<\EOF
5432 #define HAVE_STAT64 1
5438 if test x$ac_cv_func_lstat64 = xno ; then
5439 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
5440 echo "configure:5441: checking for lstat64 in <sys/stat.h>" >&5
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5445 #if defined(HAVE_UNISTD_H)
5448 #include <sys/stat.h>
5451 struct stat64 st64; exit(lstat64(".",&st64));
5454 if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5456 ac_cv_func_lstat64=yes
5458 echo "configure: failed program was:" >&5
5459 cat conftest.$ac_ext >&5
5462 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
5463 if test x$ac_cv_func_lstat64 = xyes ; then
5464 cat >> confdefs.h <<\EOF
5465 #define HAVE_LSTAT64 1
5471 if test x$ac_cv_func_fstat64 = xno ; then
5472 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
5473 echo "configure:5474: checking for fstat64 in <sys/stat.h>" >&5
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5478 #if defined(HAVE_UNISTD_H)
5481 #include <sys/stat.h>
5484 struct stat64 st64; exit(fstat64(0,&st64));
5487 if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5489 ac_cv_func_fstat64=yes
5491 echo "configure: failed program was:" >&5
5492 cat conftest.$ac_ext >&5
5495 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
5496 if test x$ac_cv_func_fstat64 = xyes ; then
5497 cat >> confdefs.h <<\EOF
5498 #define HAVE_FSTAT64 1
5505 # If no strcasecmp, check for it in some known places
5506 # It is in -lresolv on ReliantUNIX and UnixWare
5507 # -lresolve *must* follow -lnsl for name resolution to work properly
5510 if test x$ac_cv_func_strcasecmp = xno ; then
5511 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
5512 echo "configure:5513: checking for strcasecmp in -lresolv" >&5
5513 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
5514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5515 echo $ac_n "(cached) $ac_c" 1>&6
5517 ac_save_LIBS="$LIBS"
5518 LIBS="-lresolv $LIBS"
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533 eval "ac_cv_lib_$ac_lib_var=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5538 eval "ac_cv_lib_$ac_lib_var=no"
5541 LIBS="$ac_save_LIBS"
5544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5545 echo "$ac_t""yes" 1>&6
5546 LIBS="$LIBS -lresolv"
5547 cat >> confdefs.h <<\EOF
5548 #define HAVE_STRCASECMP 1
5552 echo "$ac_t""no" 1>&6
5558 # Check for the functions putprpwnam, set_auth_parameters,
5559 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5560 # Needed for OSF1 and HPUX.
5564 *-lsecurity*) for ac_func in putprpwnam
5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5567 echo "configure:5568: checking for $ac_func" >&5
5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 /* System header to define __stub macros and hopefully few prototypes,
5575 which can conflict with char $ac_func(); below. */
5577 /* Override any gcc2 internal prototype to avoid an error. */
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5584 /* The GNU C library defines this for functions which it implements
5585 to always fail with ENOSYS. Some functions are actually named
5586 something starting with __ and the normal name is an alias. */
5587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5597 eval "ac_cv_func_$ac_func=yes"
5599 echo "configure: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5602 eval "ac_cv_func_$ac_func=no"
5607 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5608 echo "$ac_t""yes" 1>&6
5609 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5610 cat >> confdefs.h <<EOF
5611 #define $ac_tr_func 1
5615 echo "$ac_t""no" 1>&6
5619 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5620 echo "configure:5621: checking for putprpwnam in -lsecurity" >&5
5621 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 ac_save_LIBS="$LIBS"
5626 LIBS="-lsecurity $LIBS"
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_lib_$ac_lib_var=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_lib_$ac_lib_var=no"
5649 LIBS="$ac_save_LIBS"
5652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5654 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5655 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5656 cat >> confdefs.h <<EOF
5657 #define $ac_tr_lib 1
5660 LIBS="-lsecurity $LIBS"
5663 echo "$ac_t""no" 1>&6
5666 for ac_func in putprpwnam
5668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_func" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char $ac_func(); below. */
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5686 /* The GNU C library defines this for functions which it implements
5687 to always fail with ENOSYS. Some functions are actually named
5688 something starting with __ and the normal name is an alias. */
5689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5697 if { (eval echo configure:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5699 eval "ac_cv_func_$ac_func=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.$ac_ext >&5
5704 eval "ac_cv_func_$ac_func=no"
5709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712 cat >> confdefs.h <<EOF
5713 #define $ac_tr_func 1
5717 echo "$ac_t""no" 1>&6
5725 *-lsec*) for ac_func in putprpwnam
5727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5728 echo "configure:5729: checking for $ac_func" >&5
5729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5730 echo $ac_n "(cached) $ac_c" 1>&6
5732 cat > conftest.$ac_ext <<EOF
5733 #line 5734 "configure"
5734 #include "confdefs.h"
5735 /* System header to define __stub macros and hopefully few prototypes,
5736 which can conflict with char $ac_func(); below. */
5738 /* Override any gcc2 internal prototype to avoid an error. */
5739 /* We use char because int might match the return type of a gcc2
5740 builtin and then its argument prototype would still apply. */
5745 /* The GNU C library defines this for functions which it implements
5746 to always fail with ENOSYS. Some functions are actually named
5747 something starting with __ and the normal name is an alias. */
5748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5756 if { (eval echo configure:5757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5758 eval "ac_cv_func_$ac_func=yes"
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5763 eval "ac_cv_func_$ac_func=no"
5768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5769 echo "$ac_t""yes" 1>&6
5770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5771 cat >> confdefs.h <<EOF
5772 #define $ac_tr_func 1
5776 echo "$ac_t""no" 1>&6
5780 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5781 echo "configure:5782: checking for putprpwnam in -lsec" >&5
5782 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5786 ac_save_LIBS="$LIBS"
5788 cat > conftest.$ac_ext <<EOF
5789 #line 5790 "configure"
5790 #include "confdefs.h"
5791 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5800 if { (eval echo configure:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 eval "ac_cv_lib_$ac_lib_var=yes"
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 eval "ac_cv_lib_$ac_lib_var=no"
5810 LIBS="$ac_save_LIBS"
5813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5816 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5817 cat >> confdefs.h <<EOF
5818 #define $ac_tr_lib 1
5824 echo "$ac_t""no" 1>&6
5827 for ac_func in putprpwnam
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5887 *-lsecurity*) for ac_func in set_auth_parameters
5889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_func" >&5
5891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5894 cat > conftest.$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 /* System header to define __stub macros and hopefully few prototypes,
5898 which can conflict with char $ac_func(); below. */
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5907 /* The GNU C library defines this for functions which it implements
5908 to always fail with ENOSYS. Some functions are actually named
5909 something starting with __ and the normal name is an alias. */
5910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5918 if { (eval echo configure:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5920 eval "ac_cv_func_$ac_func=yes"
5922 echo "configure: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 eval "ac_cv_func_$ac_func=no"
5930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5933 cat >> confdefs.h <<EOF
5934 #define $ac_tr_func 1
5938 echo "$ac_t""no" 1>&6
5942 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5943 echo "configure:5944: checking for set_auth_parameters in -lsecurity" >&5
5944 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 ac_save_LIBS="$LIBS"
5949 LIBS="-lsecurity $LIBS"
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* Override any gcc2 internal prototype to avoid an error. */
5954 /* We use char because int might match the return type of a gcc2
5955 builtin and then its argument prototype would still apply. */
5956 char set_auth_parameters();
5959 set_auth_parameters()
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_lib_$ac_lib_var=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_lib_$ac_lib_var=no"
5972 LIBS="$ac_save_LIBS"
5975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5978 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5979 cat >> confdefs.h <<EOF
5980 #define $ac_tr_lib 1
5983 LIBS="-lsecurity $LIBS"
5986 echo "$ac_t""no" 1>&6
5989 for ac_func in set_auth_parameters
5991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5992 echo "configure:5993: checking for $ac_func" >&5
5993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 /* System header to define __stub macros and hopefully few prototypes,
6000 which can conflict with char $ac_func(); below. */
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6009 /* The GNU C library defines this for functions which it implements
6010 to always fail with ENOSYS. Some functions are actually named
6011 something starting with __ and the normal name is an alias. */
6012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6022 eval "ac_cv_func_$ac_func=yes"
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6027 eval "ac_cv_func_$ac_func=no"
6032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6035 cat >> confdefs.h <<EOF
6036 #define $ac_tr_func 1
6040 echo "$ac_t""no" 1>&6
6048 *-lsec*) for ac_func in set_auth_parameters
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 if { (eval echo configure:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6081 eval "ac_cv_func_$ac_func=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6086 eval "ac_cv_func_$ac_func=no"
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h <<EOF
6095 #define $ac_tr_func 1
6099 echo "$ac_t""no" 1>&6
6103 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6104 echo "configure:6105: checking for set_auth_parameters in -lsec" >&5
6105 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6107 echo $ac_n "(cached) $ac_c" 1>&6
6109 ac_save_LIBS="$LIBS"
6111 cat > conftest.$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6117 char set_auth_parameters();
6120 set_auth_parameters()
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6125 eval "ac_cv_lib_$ac_lib_var=yes"
6127 echo "configure: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6130 eval "ac_cv_lib_$ac_lib_var=no"
6133 LIBS="$ac_save_LIBS"
6136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6137 echo "$ac_t""yes" 1>&6
6138 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6140 cat >> confdefs.h <<EOF
6141 #define $ac_tr_lib 1
6147 echo "$ac_t""no" 1>&6
6150 for ac_func in set_auth_parameters
6152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6153 echo "configure:6154: checking for $ac_func" >&5
6154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char $ac_func(); below. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6164 /* We use char because int might match the return type of a gcc2
6165 builtin and then its argument prototype would still apply. */
6170 /* The GNU C library defines this for functions which it implements
6171 to always fail with ENOSYS. Some functions are actually named
6172 something starting with __ and the normal name is an alias. */
6173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 eval "ac_cv_func_$ac_func=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_func_$ac_func=no"
6193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6196 cat >> confdefs.h <<EOF
6197 #define $ac_tr_func 1
6201 echo "$ac_t""no" 1>&6
6209 # UnixWare 7.x has its getspnam in -lgen
6211 *-lgen*) for ac_func in getspnam
6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6214 echo "configure:6215: checking for $ac_func" >&5
6215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* System header to define __stub macros and hopefully few prototypes,
6222 which can conflict with char $ac_func(); below. */
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6231 /* The GNU C library defines this for functions which it implements
6232 to always fail with ENOSYS. Some functions are actually named
6233 something starting with __ and the normal name is an alias. */
6234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6244 eval "ac_cv_func_$ac_func=yes"
6246 echo "configure: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6249 eval "ac_cv_func_$ac_func=no"
6254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6257 cat >> confdefs.h <<EOF
6258 #define $ac_tr_func 1
6262 echo "$ac_t""no" 1>&6
6266 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6267 echo "configure:6268: checking for getspnam in -lgen" >&5
6268 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6
6272 ac_save_LIBS="$LIBS"
6274 cat > conftest.$ac_ext <<EOF
6275 #line 6276 "configure"
6276 #include "confdefs.h"
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 eval "ac_cv_lib_$ac_lib_var=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_lib_$ac_lib_var=no"
6296 LIBS="$ac_save_LIBS"
6299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6300 echo "$ac_t""yes" 1>&6
6301 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6303 cat >> confdefs.h <<EOF
6304 #define $ac_tr_lib 1
6310 echo "$ac_t""no" 1>&6
6313 for ac_func in getspnam
6315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6316 echo "configure:6317: checking for $ac_func" >&5
6317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6318 echo $ac_n "(cached) $ac_c" 1>&6
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure"
6322 #include "confdefs.h"
6323 /* System header to define __stub macros and hopefully few prototypes,
6324 which can conflict with char $ac_func(); below. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6333 /* The GNU C library defines this for functions which it implements
6334 to always fail with ENOSYS. Some functions are actually named
6335 something starting with __ and the normal name is an alias. */
6336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6344 if { (eval echo configure:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6346 eval "ac_cv_func_$ac_func=yes"
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 eval "ac_cv_func_$ac_func=no"
6356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6359 cat >> confdefs.h <<EOF
6360 #define $ac_tr_func 1
6364 echo "$ac_t""no" 1>&6
6373 *-lsecurity*) for ac_func in getspnam
6375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6376 echo "configure:6377: checking for $ac_func" >&5
6377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6378 echo $ac_n "(cached) $ac_c" 1>&6
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6383 /* System header to define __stub macros and hopefully few prototypes,
6384 which can conflict with char $ac_func(); below. */
6386 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6393 /* The GNU C library defines this for functions which it implements
6394 to always fail with ENOSYS. Some functions are actually named
6395 something starting with __ and the normal name is an alias. */
6396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6406 eval "ac_cv_func_$ac_func=yes"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 eval "ac_cv_func_$ac_func=no"
6416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6417 echo "$ac_t""yes" 1>&6
6418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6419 cat >> confdefs.h <<EOF
6420 #define $ac_tr_func 1
6424 echo "$ac_t""no" 1>&6
6428 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6429 echo "configure:6430: checking for getspnam in -lsecurity" >&5
6430 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6432 echo $ac_n "(cached) $ac_c" 1>&6
6434 ac_save_LIBS="$LIBS"
6435 LIBS="-lsecurity $LIBS"
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6448 if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6450 eval "ac_cv_lib_$ac_lib_var=yes"
6452 echo "configure: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 eval "ac_cv_lib_$ac_lib_var=no"
6458 LIBS="$ac_save_LIBS"
6461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6463 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6465 cat >> confdefs.h <<EOF
6466 #define $ac_tr_lib 1
6469 LIBS="-lsecurity $LIBS"
6472 echo "$ac_t""no" 1>&6
6475 for ac_func in getspnam
6477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6478 echo "configure:6479: checking for $ac_func" >&5
6479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6480 echo $ac_n "(cached) $ac_c" 1>&6
6482 cat > conftest.$ac_ext <<EOF
6483 #line 6484 "configure"
6484 #include "confdefs.h"
6485 /* System header to define __stub macros and hopefully few prototypes,
6486 which can conflict with char $ac_func(); below. */
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6495 /* The GNU C library defines this for functions which it implements
6496 to always fail with ENOSYS. Some functions are actually named
6497 something starting with __ and the normal name is an alias. */
6498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508 eval "ac_cv_func_$ac_func=yes"
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 eval "ac_cv_func_$ac_func=no"
6518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6521 cat >> confdefs.h <<EOF
6522 #define $ac_tr_func 1
6526 echo "$ac_t""no" 1>&6
6534 *-lsec*) for ac_func in getspnam
6536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6537 echo "configure:6538: checking for $ac_func" >&5
6538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 /* System header to define __stub macros and hopefully few prototypes,
6545 which can conflict with char $ac_func(); below. */
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6554 /* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */
6557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6565 if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6567 eval "ac_cv_func_$ac_func=yes"
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6572 eval "ac_cv_func_$ac_func=no"
6577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6578 echo "$ac_t""yes" 1>&6
6579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6580 cat >> confdefs.h <<EOF
6581 #define $ac_tr_func 1
6585 echo "$ac_t""no" 1>&6
6589 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6590 echo "configure:6591: checking for getspnam in -lsec" >&5
6591 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6593 echo $ac_n "(cached) $ac_c" 1>&6
6595 ac_save_LIBS="$LIBS"
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_lib_$ac_lib_var=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_lib_$ac_lib_var=no"
6619 LIBS="$ac_save_LIBS"
6622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6625 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6626 cat >> confdefs.h <<EOF
6627 #define $ac_tr_lib 1
6633 echo "$ac_t""no" 1>&6
6636 for ac_func in getspnam
6638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6639 echo "configure:6640: checking for $ac_func" >&5
6640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6641 echo $ac_n "(cached) $ac_c" 1>&6
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* System header to define __stub macros and hopefully few prototypes,
6647 which can conflict with char $ac_func(); below. */
6649 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6656 /* The GNU C library defines this for functions which it implements
6657 to always fail with ENOSYS. Some functions are actually named
6658 something starting with __ and the normal name is an alias. */
6659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 eval "ac_cv_func_$ac_func=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_func_$ac_func=no"
6679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6680 echo "$ac_t""yes" 1>&6
6681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6682 cat >> confdefs.h <<EOF
6683 #define $ac_tr_func 1
6687 echo "$ac_t""no" 1>&6
6696 *-lsecurity*) for ac_func in bigcrypt
6698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6699 echo "configure:6700: checking for $ac_func" >&5
6700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6701 echo $ac_n "(cached) $ac_c" 1>&6
6703 cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6706 /* System header to define __stub macros and hopefully few prototypes,
6707 which can conflict with char $ac_func(); below. */
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6716 /* The GNU C library defines this for functions which it implements
6717 to always fail with ENOSYS. Some functions are actually named
6718 something starting with __ and the normal name is an alias. */
6719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6729 eval "ac_cv_func_$ac_func=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 eval "ac_cv_func_$ac_func=no"
6739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6740 echo "$ac_t""yes" 1>&6
6741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6742 cat >> confdefs.h <<EOF
6743 #define $ac_tr_func 1
6747 echo "$ac_t""no" 1>&6
6751 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6752 echo "configure:6753: checking for bigcrypt in -lsecurity" >&5
6753 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 ac_save_LIBS="$LIBS"
6758 LIBS="-lsecurity $LIBS"
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 eval "ac_cv_lib_$ac_lib_var=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_lib_$ac_lib_var=no"
6781 LIBS="$ac_save_LIBS"
6784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6788 cat >> confdefs.h <<EOF
6789 #define $ac_tr_lib 1
6792 LIBS="-lsecurity $LIBS"
6795 echo "$ac_t""no" 1>&6
6798 for ac_func in bigcrypt
6800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6801 echo "configure:6802: checking for $ac_func" >&5
6802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6808 /* System header to define __stub macros and hopefully few prototypes,
6809 which can conflict with char $ac_func(); below. */
6811 /* Override any gcc2 internal prototype to avoid an error. */
6812 /* We use char because int might match the return type of a gcc2
6813 builtin and then its argument prototype would still apply. */
6818 /* The GNU C library defines this for functions which it implements
6819 to always fail with ENOSYS. Some functions are actually named
6820 something starting with __ and the normal name is an alias. */
6821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6829 if { (eval echo configure:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6831 eval "ac_cv_func_$ac_func=yes"
6833 echo "configure: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6836 eval "ac_cv_func_$ac_func=no"
6841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6842 echo "$ac_t""yes" 1>&6
6843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6844 cat >> confdefs.h <<EOF
6845 #define $ac_tr_func 1
6849 echo "$ac_t""no" 1>&6
6857 *-lsec*) for ac_func in bigcrypt
6859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6860 echo "configure:6861: checking for $ac_func" >&5
6861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* System header to define __stub macros and hopefully few prototypes,
6868 which can conflict with char $ac_func(); below. */
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6877 /* The GNU C library defines this for functions which it implements
6878 to always fail with ENOSYS. Some functions are actually named
6879 something starting with __ and the normal name is an alias. */
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6890 eval "ac_cv_func_$ac_func=yes"
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6895 eval "ac_cv_func_$ac_func=no"
6900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6903 cat >> confdefs.h <<EOF
6904 #define $ac_tr_func 1
6908 echo "$ac_t""no" 1>&6
6912 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6913 echo "configure:6914: checking for bigcrypt in -lsec" >&5
6914 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 ac_save_LIBS="$LIBS"
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 if { (eval echo configure:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.$ac_ext >&5
6939 eval "ac_cv_lib_$ac_lib_var=no"
6942 LIBS="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6949 cat >> confdefs.h <<EOF
6950 #define $ac_tr_lib 1
6956 echo "$ac_t""no" 1>&6
6959 for ac_func in bigcrypt
6961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6962 echo "configure:6963: checking for $ac_func" >&5
6963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char $ac_func(); below. */
6972 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6979 /* The GNU C library defines this for functions which it implements
6980 to always fail with ENOSYS. Some functions are actually named
6981 something starting with __ and the normal name is an alias. */
6982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6992 eval "ac_cv_func_$ac_func=yes"
6994 echo "configure: failed program was:" >&5
6995 cat conftest.$ac_ext >&5
6997 eval "ac_cv_func_$ac_func=no"
7002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7003 echo "$ac_t""yes" 1>&6
7004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7005 cat >> confdefs.h <<EOF
7006 #define $ac_tr_func 1
7010 echo "$ac_t""no" 1>&6
7019 *-lsecurity*) for ac_func in getprpwnam
7021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_func" >&5
7023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* System header to define __stub macros and hopefully few prototypes,
7030 which can conflict with char $ac_func(); below. */
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 eval "ac_cv_func_$ac_func=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_func_$ac_func=no"
7062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7065 cat >> confdefs.h <<EOF
7066 #define $ac_tr_func 1
7070 echo "$ac_t""no" 1>&6
7074 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7075 echo "configure:7076: checking for getprpwnam in -lsecurity" >&5
7076 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7080 ac_save_LIBS="$LIBS"
7081 LIBS="-lsecurity $LIBS"
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7085 /* Override any gcc2 internal prototype to avoid an error. */
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7094 if { (eval echo configure:7095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7096 eval "ac_cv_lib_$ac_lib_var=yes"
7098 echo "configure: failed program was:" >&5
7099 cat conftest.$ac_ext >&5
7101 eval "ac_cv_lib_$ac_lib_var=no"
7104 LIBS="$ac_save_LIBS"
7107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7108 echo "$ac_t""yes" 1>&6
7109 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7110 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7111 cat >> confdefs.h <<EOF
7112 #define $ac_tr_lib 1
7115 LIBS="-lsecurity $LIBS"
7118 echo "$ac_t""no" 1>&6
7121 for ac_func in getprpwnam
7123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7124 echo "configure:7125: checking for $ac_func" >&5
7125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7131 /* System header to define __stub macros and hopefully few prototypes,
7132 which can conflict with char $ac_func(); below. */
7134 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7141 /* The GNU C library defines this for functions which it implements
7142 to always fail with ENOSYS. Some functions are actually named
7143 something starting with __ and the normal name is an alias. */
7144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7154 eval "ac_cv_func_$ac_func=yes"
7156 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 eval "ac_cv_func_$ac_func=no"
7164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7165 echo "$ac_t""yes" 1>&6
7166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7167 cat >> confdefs.h <<EOF
7168 #define $ac_tr_func 1
7172 echo "$ac_t""no" 1>&6
7180 *-lsec*) for ac_func in getprpwnam
7182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7183 echo "configure:7184: checking for $ac_func" >&5
7184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7185 echo $ac_n "(cached) $ac_c" 1>&6
7187 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* System header to define __stub macros and hopefully few prototypes,
7191 which can conflict with char $ac_func(); below. */
7193 /* Override any gcc2 internal prototype to avoid an error. */
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7200 /* The GNU C library defines this for functions which it implements
7201 to always fail with ENOSYS. Some functions are actually named
7202 something starting with __ and the normal name is an alias. */
7203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7211 if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7213 eval "ac_cv_func_$ac_func=yes"
7215 echo "configure: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7218 eval "ac_cv_func_$ac_func=no"
7223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7224 echo "$ac_t""yes" 1>&6
7225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7226 cat >> confdefs.h <<EOF
7227 #define $ac_tr_func 1
7231 echo "$ac_t""no" 1>&6
7235 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7236 echo "configure:7237: checking for getprpwnam in -lsec" >&5
7237 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 ac_save_LIBS="$LIBS"
7243 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7257 eval "ac_cv_lib_$ac_lib_var=yes"
7259 echo "configure: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 eval "ac_cv_lib_$ac_lib_var=no"
7265 LIBS="$ac_save_LIBS"
7268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7270 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7272 cat >> confdefs.h <<EOF
7273 #define $ac_tr_lib 1
7279 echo "$ac_t""no" 1>&6
7282 for ac_func in getprpwnam
7284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7285 echo "configure:7286: checking for $ac_func" >&5
7286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func(); below. */
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7302 /* The GNU C library defines this for functions which it implements
7303 to always fail with ENOSYS. Some functions are actually named
7304 something starting with __ and the normal name is an alias. */
7305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 eval "ac_cv_func_$ac_func=yes"
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7320 eval "ac_cv_func_$ac_func=no"
7325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7328 cat >> confdefs.h <<EOF
7329 #define $ac_tr_func 1
7333 echo "$ac_t""no" 1>&6
7341 # this bit needs to be modified for each OS that is suported by
7342 # smbwrapper. You need to specify how to created a shared library and
7343 # how to compile C code to produce PIC object files
7345 # these are the defaults, good for lots of systems
7351 # and these are for particular systems
7353 *linux*) cat >> confdefs.h <<\EOF
7357 *solaris*) cat >> confdefs.h <<\EOF
7363 *sunos*) cat >> confdefs.h <<\EOF
7369 *bsd*) LDSHFLAGS="-shared -Bshareable"
7371 *irix*) cat >> confdefs.h <<\EOF
7376 *irix6*) cat >> confdefs.h <<\EOF
7382 ATTEMPT_WRAP32_BUILD=yes
7384 *aix*) cat >> confdefs.h <<\EOF
7388 *hpux*) cat >> confdefs.h <<\EOF
7393 # Use special PIC flags for the native HP-UX compiler.
7394 if test $ac_cv_prog_cc_Ae = yes; then
7399 *qnx*) cat >> confdefs.h <<\EOF
7403 *osf*) cat >> confdefs.h <<\EOF
7407 *sco*) cat >> confdefs.h <<\EOF
7411 *next2*) cat >> confdefs.h <<\EOF
7415 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7416 set dummy groff; ac_word=$2
7417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7418 echo "configure:7419: checking for $ac_word" >&5
7419 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 if test -n "$ROFF"; then
7423 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7427 for ac_dir in $ac_dummy; do
7428 test -z "$ac_dir" && ac_dir=.
7429 if test -f $ac_dir/$ac_word; then
7430 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7437 ROFF="$ac_cv_prog_ROFF"
7438 if test -n "$ROFF"; then
7439 echo "$ac_t""$ROFF" 1>&6
7441 echo "$ac_t""no" 1>&6
7446 *-univel-*) if test "$GCC" != yes ; then
7447 cat >> confdefs.h <<\EOF
7448 #define HAVE_MEMSET 1
7454 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
7455 #define RELIANTUNIX 1
7461 if test "$GCC" != yes ; then
7462 cat >> confdefs.h <<\EOF
7463 #define HAVE_MEMSET 1
7471 # try to work out how to produce pic code with this compiler
7472 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7473 echo "configure:7474: checking whether ${CC-cc} accepts -fpic" >&5
7474 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7477 echo 'void f(){}' > conftest.c
7478 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7479 ac_cv_prog_cc_fpic=yes
7481 ac_cv_prog_cc_fpic=no
7487 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7488 if test $ac_cv_prog_cc_fpic = yes; then
7491 if test x$PICFLAG = x; then
7492 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7493 echo "configure:7494: checking whether ${CC-cc} accepts -Kpic" >&5
7494 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7495 echo $ac_n "(cached) $ac_c" 1>&6
7497 echo 'void f(){}' > conftest.c
7498 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7499 ac_cv_prog_cc_Kpic=yes
7501 ac_cv_prog_cc_Kpic=no
7507 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7508 if test $ac_cv_prog_cc_Kpic = yes; then
7512 if test x$PICFLAG = x; then
7513 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7514 echo "configure:7515: checking whether ${CC-cc} accepts -KPIC" >&5
7515 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7516 echo $ac_n "(cached) $ac_c" 1>&6
7518 echo 'void f(){}' > conftest.c
7519 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7520 ac_cv_prog_cc_KPIC=yes
7522 ac_cv_prog_cc_KPIC=no
7528 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7529 if test $ac_cv_prog_cc_KPIC = yes; then
7536 echo $ac_n "checking for long long""... $ac_c" 1>&6
7537 echo "configure:7538: checking for long long" >&5
7538 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7542 if test "$cross_compiling" = yes; then
7543 samba_cv_have_longlong=cross
7545 cat > conftest.$ac_ext <<EOF
7546 #line 7547 "configure"
7547 #include "confdefs.h"
7549 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7551 if { (eval echo configure:7552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7553 samba_cv_have_longlong=yes
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 samba_cv_have_longlong=no
7565 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7566 if test x"$samba_cv_have_longlong" = x"yes"; then
7567 cat >> confdefs.h <<\EOF
7568 #define HAVE_LONGLONG 1
7573 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7574 echo "configure:7575: checking for 64 bit off_t" >&5
7575 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7576 echo $ac_n "(cached) $ac_c" 1>&6
7579 if test "$cross_compiling" = yes; then
7580 samba_cv_SIZEOF_OFF_T=cross
7582 cat > conftest.$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7586 #include <sys/stat.h>
7587 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7591 samba_cv_SIZEOF_OFF_T=yes
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 samba_cv_SIZEOF_OFF_T=no
7603 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7604 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
7605 cat >> confdefs.h <<\EOF
7606 #define SIZEOF_OFF_T 8
7611 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7612 echo "configure:7613: checking for off64_t" >&5
7613 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7614 echo $ac_n "(cached) $ac_c" 1>&6
7617 if test "$cross_compiling" = yes; then
7618 samba_cv_HAVE_OFF64_T=cross
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7624 #if defined(HAVE_UNISTD_H)
7628 #include <sys/stat.h>
7629 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7633 samba_cv_HAVE_OFF64_T=yes
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7638 samba_cv_HAVE_OFF64_T=no
7645 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7646 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
7647 cat >> confdefs.h <<\EOF
7648 #define HAVE_OFF64_T 1
7653 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7654 echo "configure:7655: checking for 64 bit ino_t" >&5
7655 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7656 echo $ac_n "(cached) $ac_c" 1>&6
7659 if test "$cross_compiling" = yes; then
7660 samba_cv_SIZEOF_INO_T=cross
7662 cat > conftest.$ac_ext <<EOF
7663 #line 7664 "configure"
7664 #include "confdefs.h"
7666 #include <sys/stat.h>
7667 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7669 if { (eval echo configure:7670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7671 samba_cv_SIZEOF_INO_T=yes
7673 echo "configure: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 samba_cv_SIZEOF_INO_T=no
7683 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7684 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
7685 cat >> confdefs.h <<\EOF
7686 #define SIZEOF_INO_T 8
7691 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7692 echo "configure:7693: checking for ino64_t" >&5
7693 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7697 if test "$cross_compiling" = yes; then
7698 samba_cv_HAVE_INO64_T=cross
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7704 #if defined(HAVE_UNISTD_H)
7708 #include <sys/stat.h>
7709 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7711 if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7713 samba_cv_HAVE_INO64_T=yes
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7718 samba_cv_HAVE_INO64_T=no
7725 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7726 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7727 cat >> confdefs.h <<\EOF
7728 #define HAVE_INO64_T 1
7733 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
7734 echo "configure:7735: checking for struct dirent64" >&5
7735 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7743 #if defined(HAVE_UNISTD_H)
7746 #include <sys/types.h>
7752 if { (eval echo configure:7753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7754 samba_cv_HAVE_STRUCT_DIRENT64=yes
7756 echo "configure: failed program was:" >&5
7757 cat conftest.$ac_ext >&5
7759 samba_cv_HAVE_STRUCT_DIRENT64=no
7764 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
7765 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
7766 cat >> confdefs.h <<\EOF
7767 #define HAVE_STRUCT_DIRENT64 1
7772 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7773 echo "configure:7774: checking for union semun" >&5
7774 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7778 if test "$cross_compiling" = yes; then
7779 samba_cv_HAVE_UNION_SEMUN=cross
7781 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure"
7783 #include "confdefs.h"
7785 #include <sys/types.h>
7786 #include <sys/ipc.h>
7787 #include <sys/sem.h>
7788 main() { union semun ss; exit(0); }
7790 if { (eval echo configure:7791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7792 samba_cv_HAVE_UNION_SEMUN=yes
7794 echo "configure: failed program was:" >&5
7795 cat conftest.$ac_ext >&5
7797 samba_cv_HAVE_UNION_SEMUN=no
7804 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7805 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7806 cat >> confdefs.h <<\EOF
7807 #define HAVE_UNION_SEMUN 1
7812 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7813 echo "configure:7814: checking for unsigned char" >&5
7814 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7818 if test "$cross_compiling" = yes; then
7819 samba_cv_HAVE_UNSIGNED_CHAR=cross
7821 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure"
7823 #include "confdefs.h"
7825 main() { char c; c=250; exit((c > 0)?0:1); }
7827 if { (eval echo configure:7828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7829 samba_cv_HAVE_UNSIGNED_CHAR=yes
7831 echo "configure: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7834 samba_cv_HAVE_UNSIGNED_CHAR=no
7841 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7842 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7843 cat >> confdefs.h <<\EOF
7844 #define HAVE_UNSIGNED_CHAR 1
7849 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7850 echo "configure:7851: checking for sin_len in sock" >&5
7851 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858 #include <sys/types.h>
7859 #include <sys/socket.h>
7860 #include <netinet/in.h>
7862 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7865 if { (eval echo configure:7866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7867 samba_cv_HAVE_SOCK_SIN_LEN=yes
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 samba_cv_HAVE_SOCK_SIN_LEN=no
7877 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7878 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7879 cat >> confdefs.h <<\EOF
7880 #define HAVE_SOCK_SIN_LEN 1
7885 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7886 echo "configure:7887: checking whether seekdir returns void" >&5
7887 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7894 #include <sys/types.h>
7896 void seekdir(DIR *d, long loc) { return; }
7901 if { (eval echo configure:7902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 samba_cv_SEEKDIR_RETURNS_VOID=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 samba_cv_SEEKDIR_RETURNS_VOID=no
7913 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7914 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7915 cat >> confdefs.h <<\EOF
7916 #define SEEKDIR_RETURNS_VOID 1
7921 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7922 echo "configure:7923: checking for __FILE__ macro" >&5
7923 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7924 echo $ac_n "(cached) $ac_c" 1>&6
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7932 printf("%s\n", __FILE__);
7935 if { (eval echo configure:7936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7937 samba_cv_HAVE_FILE_MACRO=yes
7939 echo "configure: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7942 samba_cv_HAVE_FILE_MACRO=no
7947 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7948 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7949 cat >> confdefs.h <<\EOF
7950 #define HAVE_FILE_MACRO 1
7955 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7956 echo "configure:7957: checking for __FUNCTION__ macro" >&5
7957 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7958 echo $ac_n "(cached) $ac_c" 1>&6
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7966 printf("%s\n", __FUNCTION__);
7969 if { (eval echo configure:7970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7971 samba_cv_HAVE_FUNCTION_MACRO=yes
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 samba_cv_HAVE_FUNCTION_MACRO=no
7981 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7982 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7983 cat >> confdefs.h <<\EOF
7984 #define HAVE_FUNCTION_MACRO 1
7989 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7990 echo "configure:7991: checking if gettimeofday takes tz argument" >&5
7991 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7995 if test "$cross_compiling" = yes; then
7996 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8002 #include <sys/time.h>
8004 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8006 if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8008 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8013 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8020 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8021 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8022 cat >> confdefs.h <<\EOF
8023 #define HAVE_GETTIMEOFDAY_TZ 1
8029 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8030 echo "configure:8031: checking for broken readdir" >&5
8031 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8032 echo $ac_n "(cached) $ac_c" 1>&6
8035 if test "$cross_compiling" = yes; then
8036 samba_cv_HAVE_BROKEN_READDIR=cross
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 #include <sys/types.h>
8043 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8044 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8045 di->d_name[0] == 0) exit(0); exit(1);}
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8049 samba_cv_HAVE_BROKEN_READDIR=yes
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8054 samba_cv_HAVE_BROKEN_READDIR=no
8061 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8062 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8063 cat >> confdefs.h <<\EOF
8064 #define HAVE_BROKEN_READDIR 1
8069 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8070 echo "configure:8071: checking for utimbuf" >&5
8071 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8072 echo $ac_n "(cached) $ac_c" 1>&6
8075 cat > conftest.$ac_ext <<EOF
8076 #line 8077 "configure"
8077 #include "confdefs.h"
8078 #include <sys/types.h>
8081 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8084 if { (eval echo configure:8085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8086 samba_cv_HAVE_UTIMBUF=yes
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 samba_cv_HAVE_UTIMBUF=no
8096 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8097 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8098 cat >> confdefs.h <<\EOF
8099 #define HAVE_UTIMBUF 1
8104 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
8105 echo "configure:8106: checking for kernel oplock type definitions" >&5
8106 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8110 cat > conftest.$ac_ext <<EOF
8111 #line 8112 "configure"
8112 #include "confdefs.h"
8113 #include <sys/types.h>
8116 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
8119 if { (eval echo configure:8120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8121 samba_cv_HAVE_KERNEL_OPLOCKS=yes
8123 echo "configure: failed program was:" >&5
8124 cat conftest.$ac_ext >&5
8126 samba_cv_HAVE_KERNEL_OPLOCKS=no
8131 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
8132 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_KERNEL_OPLOCKS 1
8139 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
8140 echo "configure:8141: checking for irix specific capabilities" >&5
8141 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8145 if test "$cross_compiling" = yes; then
8146 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
8148 cat > conftest.$ac_ext <<EOF
8149 #line 8150 "configure"
8150 #include "confdefs.h"
8151 #include <sys/types.h>
8152 #include <sys/capability.h>
8155 if ((cap = cap_get_proc()) == NULL)
8157 cap->cap_effective |= CAP_NETWORK_MGT;
8158 cap->cap_inheritable |= CAP_NETWORK_MGT;
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8166 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8171 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
8178 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
8179 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
8180 cat >> confdefs.h <<\EOF
8181 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
8187 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
8188 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
8191 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8192 echo "configure:8193: checking for int16 typedef included by rpc/rpc.h" >&5
8193 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8194 echo $ac_n "(cached) $ac_c" 1>&6
8197 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8200 #include <sys/types.h>
8201 #if defined(HAVE_RPC_RPC_H)
8202 #include <rpc/rpc.h>
8208 if { (eval echo configure:8209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8210 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8215 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
8220 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8221 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
8222 cat >> confdefs.h <<\EOF
8223 #define HAVE_INT16_FROM_RPC_RPC_H 1
8228 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8229 echo "configure:8230: checking for uint16 typedef included by rpc/rpc.h" >&5
8230 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 #include <sys/types.h>
8238 #if defined(HAVE_RPC_RPC_H)
8239 #include <rpc/rpc.h>
8245 if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8247 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8252 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
8257 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8258 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
8259 cat >> confdefs.h <<\EOF
8260 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8265 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8266 echo "configure:8267: checking for int32 typedef included by rpc/rpc.h" >&5
8267 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8268 echo $ac_n "(cached) $ac_c" 1>&6
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8274 #include <sys/types.h>
8275 #if defined(HAVE_RPC_RPC_H)
8276 #include <rpc/rpc.h>
8282 if { (eval echo configure:8283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8284 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
8286 echo "configure: failed program was:" >&5
8287 cat conftest.$ac_ext >&5
8289 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
8294 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8295 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
8296 cat >> confdefs.h <<\EOF
8297 #define HAVE_INT32_FROM_RPC_RPC_H 1
8302 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8303 echo "configure:8304: checking for uint32 typedef included by rpc/rpc.h" >&5
8304 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8305 echo $ac_n "(cached) $ac_c" 1>&6
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8311 #include <sys/types.h>
8312 #if defined(HAVE_RPC_RPC_H)
8313 #include <rpc/rpc.h>
8319 if { (eval echo configure:8320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8321 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8323 echo "configure: failed program was:" >&5
8324 cat conftest.$ac_ext >&5
8326 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8331 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8332 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8333 cat >> confdefs.h <<\EOF
8334 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8340 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
8341 echo "configure:8342: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
8342 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 #include <sys/types.h>
8350 #ifdef HAVE_SYS_SECURITY_H
8351 #include <sys/security.h>
8353 #endif /* HAVE_SYS_SECURITY_H */
8354 #if defined(HAVE_RPC_RPC_H)
8355 #include <rpc/rpc.h>
8361 if { (eval echo configure:8362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8363 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8368 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
8373 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
8374 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
8375 cat >> confdefs.h <<\EOF
8376 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
8381 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8382 echo "configure:8383: checking for test routines" >&5
8383 if test "$cross_compiling" = yes; then
8384 echo "configure: warning: cannot run when cross-compiling" 1>&2
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 #include "${srcdir-.}/tests/trivial.c"
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8393 echo "$ac_t""yes" 1>&6
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8398 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8404 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8405 echo "configure:8406: checking for ftruncate extend" >&5
8406 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8410 if test "$cross_compiling" = yes; then
8411 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
8413 cat > conftest.$ac_ext <<EOF
8414 #line 8415 "configure"
8415 #include "confdefs.h"
8416 #include "${srcdir-.}/tests/ftruncate.c"
8418 if { (eval echo configure:8419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8420 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
8422 echo "configure: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8425 samba_cv_HAVE_FTRUNCATE_EXTEND=no
8432 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8433 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
8434 cat >> confdefs.h <<\EOF
8435 #define HAVE_FTRUNCATE_EXTEND 1
8440 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8441 echo "configure:8442: checking for broken getgroups" >&5
8442 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8443 echo $ac_n "(cached) $ac_c" 1>&6
8446 if test "$cross_compiling" = yes; then
8447 samba_cv_HAVE_BROKEN_GETGROUPS=cross
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8452 #include "${srcdir-.}/tests/getgroups.c"
8454 if { (eval echo configure:8455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8456 samba_cv_HAVE_BROKEN_GETGROUPS=yes
8458 echo "configure: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8461 samba_cv_HAVE_BROKEN_GETGROUPS=no
8468 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8469 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
8470 cat >> confdefs.h <<\EOF
8471 #define HAVE_BROKEN_GETGROUPS 1
8476 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8477 echo "configure:8478: checking whether getpass should be replaced" >&5
8478 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8479 echo $ac_n "(cached) $ac_c" 1>&6
8482 SAVE_CPPFLAGS="$CPPFLAGS"
8483 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8488 #define REPLACE_GETPASS 1
8489 #define NO_CONFIG_H 1
8490 #define main dont_declare_main
8491 #include "${srcdir-.}/lib/getsmbpass.c"
8498 if { (eval echo configure:8499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8500 samba_cv_REPLACE_GETPASS=yes
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 samba_cv_REPLACE_GETPASS=no
8508 CPPFLAGS="$SAVE_CPPFLAGS"
8512 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8513 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
8514 cat >> confdefs.h <<\EOF
8515 #define REPLACE_GETPASS 1
8520 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
8521 echo "configure:8522: checking for working fnmatch" >&5
8522 if eval "test \"`echo '$''{'samba_cv_HAVE_FNMATCH'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8526 if test "$cross_compiling" = yes; then
8527 samba_cv_HAVE_FNMATCH=cross
8529 cat > conftest.$ac_ext <<EOF
8530 #line 8531 "configure"
8531 #include "confdefs.h"
8532 #include <fnmatch.h>
8533 main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8537 samba_cv_HAVE_FNMATCH=yes
8539 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5
8542 samba_cv_HAVE_FNMATCH=no
8549 echo "$ac_t""$samba_cv_HAVE_FNMATCH" 1>&6
8550 if test x"$samba_cv_HAVE_FNMATCH" = x"yes"; then
8551 cat >> confdefs.h <<\EOF
8552 #define HAVE_FNMATCH 1
8557 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8558 echo "configure:8559: checking for broken inet_ntoa" >&5
8559 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8563 if test "$cross_compiling" = yes; then
8564 samba_cv_REPLACE_INET_NTOA=cross
8566 cat > conftest.$ac_ext <<EOF
8567 #line 8568 "configure"
8568 #include "confdefs.h"
8571 #include <sys/types.h>
8572 #include <netinet/in.h>
8573 #ifdef HAVE_ARPA_INET_H
8574 #include <arpa/inet.h>
8576 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8577 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8578 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8583 samba_cv_REPLACE_INET_NTOA=yes
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 samba_cv_REPLACE_INET_NTOA=no
8595 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8596 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
8597 cat >> confdefs.h <<\EOF
8598 #define REPLACE_INET_NTOA 1
8603 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
8604 echo "configure:8605: checking for sysconf(_SC_NGROUPS_MAX)" >&5
8605 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8609 if test "$cross_compiling" = yes; then
8610 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8616 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
8618 if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8620 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8625 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
8632 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
8633 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
8634 cat >> confdefs.h <<\EOF
8635 #define SYSCONF_SC_NGROUPS_MAX 1
8640 echo $ac_n "checking for root""... $ac_c" 1>&6
8641 echo "configure:8642: checking for root" >&5
8642 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8646 if test "$cross_compiling" = yes; then
8647 samba_cv_HAVE_ROOT=cross
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 main() { exit(getuid() != 0); }
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8656 samba_cv_HAVE_ROOT=yes
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8661 samba_cv_HAVE_ROOT=no
8668 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8669 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
8670 cat >> confdefs.h <<\EOF
8675 echo "configure: warning: running as non-root will disable some tests" 1>&2
8679 # look for a method of finding the list of network interfaces
8681 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
8682 echo "configure:8683: checking for iface AIX" >&5
8683 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8687 if test "$cross_compiling" = yes; then
8688 samba_cv_HAVE_IFACE_AIX=cross
8690 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8694 #define HAVE_IFACE_AIX 1
8695 #define AUTOCONF_TEST 1
8696 #include "confdefs.h"
8697 #include "${srcdir-.}/lib/interfaces.c"
8699 if { (eval echo configure:8700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8701 samba_cv_HAVE_IFACE_AIX=yes
8703 echo "configure: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 samba_cv_HAVE_IFACE_AIX=no
8713 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
8714 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
8715 iface=yes;cat >> confdefs.h <<\EOF
8716 #define HAVE_IFACE_AIX 1
8721 if test $iface = no; then
8722 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
8723 echo "configure:8724: checking for iface ifconf" >&5
8724 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8728 if test "$cross_compiling" = yes; then
8729 samba_cv_HAVE_IFACE_IFCONF=cross
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8735 #define HAVE_IFACE_IFCONF 1
8736 #define AUTOCONF_TEST 1
8737 #include "confdefs.h"
8738 #include "${srcdir-.}/lib/interfaces.c"
8740 if { (eval echo configure:8741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8742 samba_cv_HAVE_IFACE_IFCONF=yes
8744 echo "configure: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8747 samba_cv_HAVE_IFACE_IFCONF=no
8754 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
8755 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
8756 iface=yes;cat >> confdefs.h <<\EOF
8757 #define HAVE_IFACE_IFCONF 1
8763 if test $iface = no; then
8764 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
8765 echo "configure:8766: checking for iface ifreq" >&5
8766 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8770 if test "$cross_compiling" = yes; then
8771 samba_cv_HAVE_IFACE_IFREQ=cross
8773 cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8777 #define HAVE_IFACE_IFREQ 1
8778 #define AUTOCONF_TEST 1
8779 #include "confdefs.h"
8780 #include "${srcdir-.}/lib/interfaces.c"
8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8784 samba_cv_HAVE_IFACE_IFREQ=yes
8786 echo "configure: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8789 samba_cv_HAVE_IFACE_IFREQ=no
8796 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
8797 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
8798 iface=yes;cat >> confdefs.h <<\EOF
8799 #define HAVE_IFACE_IFREQ 1
8806 ################################################
8807 # look for a method of setting the effective uid
8809 if test $seteuid = no; then
8810 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
8811 echo "configure:8812: checking for setresuid" >&5
8812 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8816 if test "$cross_compiling" = yes; then
8817 samba_cv_USE_SETRESUID=cross
8819 cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8823 #define AUTOCONF_TEST 1
8824 #define USE_SETRESUID 1
8825 #include "confdefs.h"
8826 #include "${srcdir-.}/lib/util_sec.c"
8828 if { (eval echo configure:8829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8830 samba_cv_USE_SETRESUID=yes
8832 echo "configure: failed program was:" >&5
8833 cat conftest.$ac_ext >&5
8835 samba_cv_USE_SETRESUID=no
8842 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
8843 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
8844 seteuid=yes;cat >> confdefs.h <<\EOF
8845 #define USE_SETRESUID 1
8852 if test $seteuid = no; then
8853 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
8854 echo "configure:8855: checking for setreuid" >&5
8855 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8859 if test "$cross_compiling" = yes; then
8860 samba_cv_USE_SETREUID=cross
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8866 #define AUTOCONF_TEST 1
8867 #define USE_SETREUID 1
8868 #include "confdefs.h"
8869 #include "${srcdir-.}/lib/util_sec.c"
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8873 samba_cv_USE_SETREUID=yes
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 samba_cv_USE_SETREUID=no
8885 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
8886 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
8887 seteuid=yes;cat >> confdefs.h <<\EOF
8888 #define USE_SETREUID 1
8894 if test $seteuid = no; then
8895 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
8896 echo "configure:8897: checking for seteuid" >&5
8897 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8901 if test "$cross_compiling" = yes; then
8902 samba_cv_USE_SETEUID=cross
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8908 #define AUTOCONF_TEST 1
8909 #define USE_SETEUID 1
8910 #include "confdefs.h"
8911 #include "${srcdir-.}/lib/util_sec.c"
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8915 samba_cv_USE_SETEUID=yes
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 samba_cv_USE_SETEUID=no
8927 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
8928 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
8929 seteuid=yes;cat >> confdefs.h <<\EOF
8930 #define USE_SETEUID 1
8936 if test $seteuid = no; then
8937 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
8938 echo "configure:8939: checking for setuidx" >&5
8939 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8943 if test "$cross_compiling" = yes; then
8944 samba_cv_USE_SETUIDX=cross
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8950 #define AUTOCONF_TEST 1
8951 #define USE_SETUIDX 1
8952 #include "confdefs.h"
8953 #include "${srcdir-.}/lib/util_sec.c"
8955 if { (eval echo configure:8956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8957 samba_cv_USE_SETUIDX=yes
8959 echo "configure: failed program was:" >&5
8960 cat conftest.$ac_ext >&5
8962 samba_cv_USE_SETUIDX=no
8969 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
8970 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
8971 seteuid=yes;cat >> confdefs.h <<\EOF
8972 #define USE_SETUIDX 1
8979 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8980 echo "configure:8981: checking for shared mmap" >&5
8981 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8985 if test "$cross_compiling" = yes; then
8986 samba_cv_HAVE_SHARED_MMAP=cross
8988 cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8991 #include "${srcdir-.}/tests/shared_mmap.c"
8993 if { (eval echo configure:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8995 samba_cv_HAVE_SHARED_MMAP=yes
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
9000 samba_cv_HAVE_SHARED_MMAP=no
9007 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
9008 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
9009 cat >> confdefs.h <<\EOF
9010 #define HAVE_SHARED_MMAP 1
9013 cat >> confdefs.h <<\EOF
9019 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
9020 echo "configure:9021: checking for ftruncate needs root" >&5
9021 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
9022 echo $ac_n "(cached) $ac_c" 1>&6
9025 if test "$cross_compiling" = yes; then
9026 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
9028 cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9031 #include "${srcdir-.}/tests/ftruncroot.c"
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9035 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 samba_cv_FTRUNCATE_NEEDS_ROOT=no
9047 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
9048 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
9049 cat >> confdefs.h <<\EOF
9050 #define FTRUNCATE_NEEDS_ROOT 1
9055 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
9056 echo "configure:9057: checking for fcntl locking" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9061 if test "$cross_compiling" = yes; then
9062 samba_cv_HAVE_FCNTL_LOCK=cross
9064 cat > conftest.$ac_ext <<EOF
9065 #line 9066 "configure"
9066 #include "confdefs.h"
9067 #include "${srcdir-.}/tests/fcntl_lock.c"
9069 if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9071 samba_cv_HAVE_FCNTL_LOCK=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 samba_cv_HAVE_FCNTL_LOCK=no
9083 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
9084 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
9085 cat >> confdefs.h <<\EOF
9086 #define HAVE_FCNTL_LOCK 1
9091 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
9092 echo "configure:9093: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
9093 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
9094 echo $ac_n "(cached) $ac_c" 1>&6
9097 if test "$cross_compiling" = yes; then
9098 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
9100 cat > conftest.$ac_ext <<EOF
9101 #line 9102 "configure"
9102 #include "confdefs.h"
9103 #include "${srcdir-.}/tests/fcntl_lock64.c"
9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9107 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9112 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
9119 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
9120 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
9121 cat >> confdefs.h <<\EOF
9122 #define HAVE_BROKEN_FCNTL64_LOCKS 1
9129 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
9130 echo "configure:9131: checking for 64 bit fcntl locking" >&5
9131 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
9132 echo $ac_n "(cached) $ac_c" 1>&6
9135 if test "$cross_compiling" = yes; then
9136 samba_cv_HAVE_STRUCT_FLOCK64=cross
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9140 "configure"
9140 #include "confdefs.h"
9142 #if defined(HAVE_UNISTD_H)
9152 #ifdef HAVE_SYS_FCNTL_H
9153 #include <sys/fcntl.h>
9155 main() { struct flock64 fl64;
9156 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9165 samba_cv_HAVE_STRUCT_FLOCK64=yes
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 samba_cv_HAVE_STRUCT_FLOCK64=no
9177 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
9179 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
9180 cat >> confdefs.h <<\EOF
9181 #define HAVE_STRUCT_FLOCK64 1
9187 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
9188 echo "configure:9189: checking for sysv ipc" >&5
9189 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
9190 echo $ac_n "(cached) $ac_c" 1>&6
9193 if test "$cross_compiling" = yes; then
9194 samba_cv_HAVE_SYSV_IPC=cross
9196 cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure"
9198 #include "confdefs.h"
9199 #include "${srcdir-.}/tests/sysv_ipc.c"
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9203 samba_cv_HAVE_SYSV_IPC=yes
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 samba_cv_HAVE_SYSV_IPC=no
9215 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
9216 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
9217 cat >> confdefs.h <<\EOF
9218 #define HAVE_SYSV_IPC 1
9223 echo $ac_n "checking for IRIX sysv ipc semun problem using gcc""... $ac_c" 1>&6
9224 echo "configure:9225: checking for IRIX sysv ipc semun problem using gcc" >&5
9225 if eval "test \"`echo '$''{'samba_cv_NEED_SGI_SEMUN_HACK'+set}'`\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9229 if test "$cross_compiling" = yes; then
9230 samba_cv_NEED_SGI_SEMUN_HACK=cross
9232 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure"
9234 #include "confdefs.h"
9235 #include "${srcdir-.}/tests/sgi_sysv_hack.c"
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9239 samba_cv_NEED_SGI_SEMUN_HACK=yes
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9244 samba_cv_NEED_SGI_SEMUN_HACK=no
9251 echo "$ac_t""$samba_cv_NEED_SGI_SEMUN_HACK" 1>&6
9252 if test x"$samba_cv_NEED_SGI_SEMUN_HACK" = x"yes"; then
9253 cat >> confdefs.h <<\EOF
9254 #define NEED_SGI_SEMUN_HACK 1
9259 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
9260 echo "configure:9261: checking for a crypt that needs truncated salt" >&5
9261 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
9262 echo $ac_n "(cached) $ac_c" 1>&6
9265 if test "$cross_compiling" = yes; then
9266 samba_cv_HAVE_TRUNCATED_SALT=cross
9268 cat > conftest.$ac_ext <<EOF
9269 #line 9270 "configure"
9270 #include "confdefs.h"
9271 #include "${srcdir-.}/tests/crypttest.c"
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9275 samba_cv_HAVE_TRUNCATED_SALT=no
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9280 samba_cv_HAVE_TRUNCATED_SALT=yes
9287 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
9288 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
9289 cat >> confdefs.h <<\EOF
9290 #define HAVE_TRUNCATED_SALT 1
9295 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
9296 echo "configure:9297: checking for broken nisplus include files" >&5
9297 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9301 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9304 #include <sys/acl.h>
9305 #if defined(HAVE_RPCSVC_NIS_H)
9306 #include <rpcsvc/nis.h>
9312 if { (eval echo configure:9313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9314 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
9316 echo "configure: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9319 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
9324 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
9325 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
9326 cat >> confdefs.h <<\EOF
9327 #define BROKEN_NISPLUS_INCLUDE_FILES 1
9333 #################################################
9334 # check for smbwrapper support
9335 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
9336 echo "configure:9337: checking whether to use smbwrapper" >&5
9337 # Check whether --with-smbwrapper or --without-smbwrapper was given.
9338 if test "${with_smbwrapper+set}" = set; then
9339 withval="$with_smbwrapper"
9342 echo "$ac_t""yes" 1>&6
9343 cat >> confdefs.h <<\EOF
9344 #define WITH_SMBWRAPPER 1
9347 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
9349 if test x$ATTEMPT_WRAP32_BUILD = x; then
9352 WRAP32=bin/smbwrapper.32.$SHLIBEXT
9355 # Conditions under which smbwrapper should not be built.
9357 if test x$PICFLAG = x; then
9358 echo No support for PIC code - disabling smbwrapper and smbsh
9361 elif test x$ac_cv_func_syscall = xno; then
9362 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
9368 echo "$ac_t""no" 1>&6
9372 echo "$ac_t""no" 1>&6
9377 #################################################
9378 # check for the AFS filesystem
9379 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
9380 echo "configure:9381: checking whether to use AFS" >&5
9381 # Check whether --with-afs or --without-afs was given.
9382 if test "${with_afs+set}" = set; then
9386 echo "$ac_t""yes" 1>&6
9387 cat >> confdefs.h <<\EOF
9393 echo "$ac_t""no" 1>&6
9397 echo "$ac_t""no" 1>&6
9403 #################################################
9404 # check for the DFS auth system
9405 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
9406 echo "configure:9407: checking whether to use DFS auth" >&5
9407 # Check whether --with-dfs or --without-dfs was given.
9408 if test "${with_dfs+set}" = set; then
9412 echo "$ac_t""yes" 1>&6
9413 cat >> confdefs.h <<\EOF
9419 echo "$ac_t""no" 1>&6
9423 echo "$ac_t""no" 1>&6
9428 #################################################
9429 # check for Kerberos IV auth system
9430 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
9431 echo "configure:9432: checking whether to use Kerberos IV" >&5
9432 # Check whether --with-krb4 or --without-krb4 was given.
9433 if test "${with_krb4+set}" = set; then
9434 withval="$with_krb4"
9435 echo "$ac_t""yes" 1>&6
9436 cat >> confdefs.h <<\EOF
9440 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
9441 echo "configure:9442: checking for dn_expand in -lresolv" >&5
9442 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
9443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9446 ac_save_LIBS="$LIBS"
9447 LIBS="-lresolv $LIBS"
9448 cat > conftest.$ac_ext <<EOF
9449 #line 9450 "configure"
9450 #include "confdefs.h"
9451 /* Override any gcc2 internal prototype to avoid an error. */
9452 /* We use char because int might match the return type of a gcc2
9453 builtin and then its argument prototype would still apply. */
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462 eval "ac_cv_lib_$ac_lib_var=yes"
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9467 eval "ac_cv_lib_$ac_lib_var=no"
9470 LIBS="$ac_save_LIBS"
9473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9474 echo "$ac_t""yes" 1>&6
9475 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9477 cat >> confdefs.h <<EOF
9478 #define $ac_tr_lib 1
9481 LIBS="-lresolv $LIBS"
9484 echo "$ac_t""no" 1>&6
9487 LIBS="$LIBS -lkrb -ldes"
9488 CFLAGS="$CFLAGS -I$withval/include"
9489 LDFLAGS="$LDFLAGS -L$withval/lib"
9491 echo "$ac_t""no" 1>&6
9496 #################################################
9497 # check for Kerberos 5 auth system
9498 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
9499 echo "configure:9500: checking whether to use Kerberos 5" >&5
9500 # Check whether --with-krb5 or --without-krb5 was given.
9501 if test "${with_krb5+set}" = set; then
9502 withval="$with_krb5"
9503 echo "$ac_t""yes" 1>&6
9504 cat >> confdefs.h <<\EOF
9508 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
9509 CFLAGS="$CFLAGS -I$withval/include"
9510 LDFLAGS="$LDFLAGS -L$withval/lib"
9512 echo "$ac_t""no" 1>&6
9517 #################################################
9518 # check for automount support
9519 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
9520 echo "configure:9521: checking whether to use AUTOMOUNT" >&5
9521 # Check whether --with-automount or --without-automount was given.
9522 if test "${with_automount+set}" = set; then
9523 withval="$with_automount"
9526 echo "$ac_t""yes" 1>&6
9527 cat >> confdefs.h <<\EOF
9528 #define WITH_AUTOMOUNT 1
9533 echo "$ac_t""no" 1>&6
9537 echo "$ac_t""no" 1>&6
9542 #################################################
9543 # check for smbmount support
9544 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
9545 echo "configure:9546: checking whether to use SMBMOUNT" >&5
9546 # Check whether --with-smbmount or --without-smbmount was given.
9547 if test "${with_smbmount+set}" = set; then
9548 withval="$with_smbmount"
9551 echo "$ac_t""yes" 1>&6
9552 cat >> confdefs.h <<\EOF
9553 #define WITH_SMBMOUNT 1
9556 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
9559 echo "$ac_t""no" 1>&6
9564 echo "$ac_t""no" 1>&6
9571 #################################################
9572 # check for a PAM password database
9573 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
9574 echo "configure:9575: checking whether to use PAM password database" >&5
9575 # Check whether --with-pam or --without-pam was given.
9576 if test "${with_pam+set}" = set; then
9580 echo "$ac_t""yes" 1>&6
9581 cat >> confdefs.h <<\EOF
9588 echo "$ac_t""no" 1>&6
9592 echo "$ac_t""no" 1>&6
9598 #################################################
9599 # check for a LDAP password database
9600 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9601 echo "configure:9602: checking whether to use LDAP password database" >&5
9602 # Check whether --with-ldap or --without-ldap was given.
9603 if test "${with_ldap+set}" = set; then
9604 withval="$with_ldap"
9607 echo "$ac_t""yes" 1>&6
9608 cat >> confdefs.h <<\EOF
9612 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
9615 echo "$ac_t""no" 1>&6
9619 echo "$ac_t""no" 1>&6
9624 #################################################
9625 # check for a NISPLUS password database
9626 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
9627 echo "configure:9628: checking whether to use NISPLUS password database" >&5
9628 # Check whether --with-nisplus or --without-nisplus was given.
9629 if test "${with_nisplus+set}" = set; then
9630 withval="$with_nisplus"
9633 echo "$ac_t""yes" 1>&6
9634 cat >> confdefs.h <<\EOF
9635 #define WITH_NISPLUS 1
9640 echo "$ac_t""no" 1>&6
9644 echo "$ac_t""no" 1>&6
9649 #################################################
9650 # check for a NISPLUS_HOME support
9651 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9652 echo "configure:9653: checking whether to use NISPLUS_HOME" >&5
9653 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9654 if test "${with_nisplus_home+set}" = set; then
9655 withval="$with_nisplus_home"
9658 echo "$ac_t""yes" 1>&6
9659 cat >> confdefs.h <<\EOF
9660 #define WITH_NISPLUS_HOME 1
9665 echo "$ac_t""no" 1>&6
9669 echo "$ac_t""no" 1>&6
9674 #################################################
9675 # check for the secure socket layer
9676 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9677 echo "configure:9678: checking whether to use SSL" >&5
9678 # Check whether --with-ssl or --without-ssl was given.
9679 if test "${with_ssl+set}" = set; then
9683 echo "$ac_t""yes" 1>&6
9684 cat >> confdefs.h <<\EOF
9688 withval="/usr/local/ssl" # default
9690 if test "${with_sslinc+set}" = set; then
9692 withval="$with_sslinc"
9695 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
9696 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9697 LIBS="-lssl -lcrypto $LIBS"
9698 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
9701 CFLAGS="-I${withval}/include $CFLAGS"
9702 LIBS="-lssl -lcrypto $LIBS"
9703 LDFLAGS="-L${withval}/lib $LDFLAGS"
9709 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
9710 LIBS="-lssl -lcrypto $LIBS"
9711 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
9715 if test ! -d ${withval}; then
9716 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
9720 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
9724 echo "$ac_t""no" 1>&6
9728 echo "$ac_t""no" 1>&6
9733 #################################################
9734 # check for syslog logging
9735 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9736 echo "configure:9737: checking whether to use syslog logging" >&5
9737 # Check whether --with-syslog or --without-syslog was given.
9738 if test "${with_syslog+set}" = set; then
9739 withval="$with_syslog"
9742 echo "$ac_t""yes" 1>&6
9743 cat >> confdefs.h <<\EOF
9744 #define WITH_SYSLOG 1
9749 echo "$ac_t""no" 1>&6
9753 echo "$ac_t""no" 1>&6
9758 #################################################
9759 # check for a shared memory profiling support
9760 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
9761 echo "configure:9762: checking whether to use profiling" >&5
9762 # Check whether --with-profile or --without-profile was given.
9763 if test "${with_profile+set}" = set; then
9764 withval="$with_profile"
9767 echo "$ac_t""yes" 1>&6
9768 cat >> confdefs.h <<\EOF
9769 #define WITH_PROFILE 1
9774 echo "$ac_t""no" 1>&6
9778 echo "$ac_t""no" 1>&6
9784 #################################################
9785 # check for experimental netatalk resource fork support
9786 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9787 echo "configure:9788: checking whether to support netatalk" >&5
9788 # Check whether --with-netatalk or --without-netatalk was given.
9789 if test "${with_netatalk+set}" = set; then
9790 withval="$with_netatalk"
9793 echo "$ac_t""yes" 1>&6
9794 cat >> confdefs.h <<\EOF
9795 #define WITH_NETATALK 1
9800 echo "$ac_t""no" 1>&6
9804 echo "$ac_t""no" 1>&6
9809 #################################################
9810 # check for experimental disk-quotas support
9811 QUOTAOBJS=noquotas.o
9813 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9814 echo "configure:9815: checking whether to support disk-quotas" >&5
9815 # Check whether --with-quotas or --without-quotas was given.
9816 if test "${with_quotas+set}" = set; then
9817 withval="$with_quotas"
9820 echo "$ac_t""yes" 1>&6
9824 echo "$ac_t""no" 1>&6
9828 echo "$ac_t""no" 1>&6
9834 #################################################
9835 # check for experimental utmp accounting
9837 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
9838 echo "configure:9839: checking whether to support utmp accounting" >&5
9839 # Check whether --with-utmp or --without-utmp was given.
9840 if test "${with_utmp+set}" = set; then
9841 withval="$with_utmp"
9844 echo "$ac_t""yes" 1>&6
9845 cat >> confdefs.h <<\EOF
9851 echo "$ac_t""no" 1>&6
9855 echo "$ac_t""no" 1>&6
9860 #################################################
9861 # check for MS Dfs support
9863 echo $ac_n "checking whether to support MS Dfs""... $ac_c" 1>&6
9864 echo "configure:9865: checking whether to support MS Dfs" >&5
9865 # Check whether --with-msdfs or --without-msdfs was given.
9866 if test "${with_msdfs+set}" = set; then
9867 withval="$with_msdfs"
9870 echo "$ac_t""yes" 1>&6
9871 cat >> confdefs.h <<\EOF
9877 echo "$ac_t""no" 1>&6
9881 echo "$ac_t""no" 1>&6
9886 #################################################
9887 # set private directory location
9888 # Check whether --with-privatedir or --without-privatedir was given.
9889 if test "${with_privatedir+set}" = set; then
9890 withval="$with_privatedir"
9894 # Just in case anybody calls it without argument
9896 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
9897 privatedir='${prefix}/private'
9900 privatedir="$withval"
9905 privatedir='${prefix}/private'
9911 #################################################
9912 # set lock directory location
9913 # Check whether --with-lockdir or --without-lockdir was given.
9914 if test "${with_lockdir+set}" = set; then
9915 withval="$with_lockdir"
9919 # Just in case anybody calls it without argument
9921 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
9922 lockdir='$(VARDIR)/locks'
9930 lockdir='$(VARDIR)/locks'
9936 #################################################
9937 # set SWAT directory location
9938 # Check whether --with-swatdir or --without-swatdir was given.
9939 if test "${with_swatdir+set}" = set; then
9940 withval="$with_swatdir"
9944 # Just in case anybody does it
9946 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
9947 swatdir='${prefix}/swat'
9955 swatdir='${prefix}/swat'
9961 #################################################
9962 # these tests are taken from the GNU fileutils package
9963 echo "checking how to get filesystem space usage" 1>&6
9964 echo "configure:9965: checking how to get filesystem space usage" >&5
9967 # Test for statvfs64.
9968 if test $space = no; then
9970 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9971 echo "configure:9972: checking statvfs64 function (SVR4)" >&5
9972 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9975 if test "$cross_compiling" = yes; then
9976 fu_cv_sys_stat_statvfs64=cross
9978 cat > conftest.$ac_ext <<EOF
9979 #line 9980 "configure"
9980 #include "confdefs.h"
9982 #if defined(HAVE_UNISTD_H)
9985 #include <sys/types.h>
9986 #include <sys/statvfs.h>
9989 struct statvfs64 fsd;
9990 exit (statvfs64 (".", &fsd));
9993 if { (eval echo configure:9994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9995 fu_cv_sys_stat_statvfs64=yes
9997 echo "configure: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
10000 fu_cv_sys_stat_statvfs64=no
10007 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
10008 if test $fu_cv_sys_stat_statvfs64 = yes; then
10010 cat >> confdefs.h <<\EOF
10011 #define STAT_STATVFS64 1
10017 # Perform only the link test since it seems there are no variants of the
10018 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
10019 # because that got a false positive on SCO OSR5. Adding the declaration
10020 # of a `struct statvfs' causes this test to fail (as it should) on such
10021 # systems. That system is reported to work fine with STAT_STATFS4 which
10022 # is what it gets when this test fails.
10023 if test $space = no; then
10025 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
10026 echo "configure:10027: checking statvfs function (SVR4)" >&5
10027 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10030 cat > conftest.$ac_ext <<EOF
10031 #line 10032 "configure"
10032 #include "confdefs.h"
10033 #include <sys/types.h>
10034 #include <sys/statvfs.h>
10036 struct statvfs fsd; statvfs (0, &fsd);
10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 fu_cv_sys_stat_statvfs=yes
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10046 fu_cv_sys_stat_statvfs=no
10051 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
10052 if test $fu_cv_sys_stat_statvfs = yes; then
10054 cat >> confdefs.h <<\EOF
10055 #define STAT_STATVFS 1
10061 if test $space = no; then
10062 # DEC Alpha running OSF/1
10063 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
10064 echo "configure:10065: checking for 3-argument statfs function (DEC OSF/1)" >&5
10065 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10068 if test "$cross_compiling" = yes; then
10069 fu_cv_sys_stat_statfs3_osf1=no
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10075 #include <sys/param.h>
10076 #include <sys/types.h>
10077 #include <sys/mount.h>
10082 exit (statfs (".", &fsd, sizeof (struct statfs)));
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10087 fu_cv_sys_stat_statfs3_osf1=yes
10089 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5
10092 fu_cv_sys_stat_statfs3_osf1=no
10099 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
10100 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
10102 cat >> confdefs.h <<\EOF
10103 #define STAT_STATFS3_OSF1 1
10109 if test $space = no; then
10111 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
10112 echo "configure:10113: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
10113 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10116 if test "$cross_compiling" = yes; then
10117 fu_cv_sys_stat_statfs2_bsize=no
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10121 "configure"
10121 #include "confdefs.h"
10123 #ifdef HAVE_SYS_PARAM_H
10124 #include <sys/param.h>
10126 #ifdef HAVE_SYS_MOUNT_H
10127 #include <sys/mount.h>
10129 #ifdef HAVE_SYS_VFS_H
10130 #include <sys/vfs.h>
10136 exit (statfs (".", &fsd));
10139 if { (eval echo configure:10140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10141 fu_cv_sys_stat_statfs2_bsize=yes
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10146 fu_cv_sys_stat_statfs2_bsize=no
10153 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
10154 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
10156 cat >> confdefs.h <<\EOF
10157 #define STAT_STATFS2_BSIZE 1
10163 if test $space = no; then
10165 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
10166 echo "configure:10167: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
10167 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10170 if test "$cross_compiling" = yes; then
10171 fu_cv_sys_stat_statfs4=no
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 #include <sys/types.h>
10177 #include <sys/statfs.h>
10181 exit (statfs (".", &fsd, sizeof fsd, 0));
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10186 fu_cv_sys_stat_statfs4=yes
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10191 fu_cv_sys_stat_statfs4=no
10198 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
10199 if test $fu_cv_sys_stat_statfs4 = yes; then
10201 cat >> confdefs.h <<\EOF
10202 #define STAT_STATFS4 1
10208 if test $space = no; then
10209 # 4.4BSD and NetBSD
10210 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
10211 echo "configure:10212: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
10212 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
10213 echo $ac_n "(cached) $ac_c" 1>&6
10215 if test "$cross_compiling" = yes; then
10216 fu_cv_sys_stat_statfs2_fsize=no
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 #include <sys/types.h>
10222 #ifdef HAVE_SYS_PARAM_H
10223 #include <sys/param.h>
10225 #ifdef HAVE_SYS_MOUNT_H
10226 #include <sys/mount.h>
10232 exit (statfs (".", &fsd));
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10237 fu_cv_sys_stat_statfs2_fsize=yes
10239 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5
10242 fu_cv_sys_stat_statfs2_fsize=no
10249 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
10250 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
10252 cat >> confdefs.h <<\EOF
10253 #define STAT_STATFS2_FSIZE 1
10259 if test $space = no; then
10261 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
10262 echo "configure:10263: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
10263 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
10264 echo $ac_n "(cached) $ac_c" 1>&6
10266 if test "$cross_compiling" = yes; then
10267 fu_cv_sys_stat_fs_data=no
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10272 #include <sys/types.h>
10273 #ifdef HAVE_SYS_PARAM_H
10274 #include <sys/param.h>
10276 #ifdef HAVE_SYS_MOUNT_H
10277 #include <sys/mount.h>
10279 #ifdef HAVE_SYS_FS_TYPES_H
10280 #include <sys/fs_types.h>
10284 struct fs_data fsd;
10285 /* Ultrix's statfs returns 1 for success,
10286 0 for not mounted, -1 for failure. */
10287 exit (statfs (".", &fsd) != 1);
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10292 fu_cv_sys_stat_fs_data=yes
10294 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10297 fu_cv_sys_stat_fs_data=no
10304 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
10305 if test $fu_cv_sys_stat_fs_data = yes; then
10307 cat >> confdefs.h <<\EOF
10308 #define STAT_STATFS2_FS_DATA 1
10315 # As a gating factor for large file support, in order to
10316 # use <4GB files we must have the following minimal support
10318 # long long, and a 64 bit off_t or off64_t.
10319 # If we don't have all of these then disable large
10322 echo "checking if large file support can be enabled"
10323 cat > conftest.$ac_ext <<EOF
10324 #line 10325 "configure"
10325 #include "confdefs.h"
10327 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
10328 #include <sys/types.h>
10337 if { (eval echo configure:10338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10339 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10344 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
10347 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
10357 echo "checking configure summary"
10358 if test "$cross_compiling" = yes; then
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 #include "${srcdir-.}/tests/summary.c"
10366 if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10368 echo "configure OK";
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10373 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
10383 cat > confcache <<\EOF
10384 # This file is a shell script that caches the results of configure
10385 # tests run on this system so they can be shared between configure
10386 # scripts and configure runs. It is not useful on other systems.
10387 # If it contains results you don't want to keep, you may remove or edit it.
10389 # By default, configure uses ./config.cache as the cache file,
10390 # creating it if it does not exist already. You can give configure
10391 # the --cache-file=FILE option to use a different cache file; that is
10392 # what configure does when it calls configure scripts in
10393 # subdirectories, so they share the cache.
10394 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10395 # config.status only pays attention to the cache file if you give it the
10396 # --recheck option to rerun configure.
10399 # The following way of writing the cache mishandles newlines in values,
10400 # but we know of no workaround that is simple, portable, and efficient.
10401 # So, don't put newlines in cache variables' values.
10402 # Ultrix sh set writes to stderr and can't be redirected directly,
10403 # and sets the high bit in the cache file unless we assign to the vars.
10405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10407 # `set' does not quote correctly, so add quotes (double-quote substitution
10408 # turns \\\\ into \\, and sed turns \\ into \).
10410 -e "s/'/'\\\\''/g" \
10411 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10414 # `set' quotes correctly as required by POSIX, so do not add quotes.
10415 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10418 if cmp -s $cache_file confcache; then
10421 if test -w $cache_file; then
10422 echo "updating cache $cache_file"
10423 cat confcache > $cache_file
10425 echo "not updating unwritable cache $cache_file"
10430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
10432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10433 # Let make expand exec_prefix.
10434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10436 # Any assignment to VPATH causes Sun make to only execute
10437 # the first set of double-colon rules, so remove it if not needed.
10438 # If there is a colon in the path, we need to keep it.
10439 if test "x$srcdir" = x.; then
10440 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10443 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
10445 DEFS=-DHAVE_CONFIG_H
10447 # Without the "./", some shells look in PATH for config.status.
10448 : ${CONFIG_STATUS=./config.status}
10450 echo creating $CONFIG_STATUS
10451 rm -f $CONFIG_STATUS
10452 cat > $CONFIG_STATUS <<EOF
10454 # Generated automatically by configure.
10455 # Run this file to recreate the current configuration.
10456 # This directory was configured as follows,
10457 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10459 # $0 $ac_configure_args
10461 # Compiler output produced by configure, useful for debugging
10462 # configure, is in ./config.log if it exists.
10464 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
10467 case "\$ac_option" in
10468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10469 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
10470 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
10471 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
10472 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10474 -help | --help | --hel | --he | --h)
10475 echo "\$ac_cs_usage"; exit 0 ;;
10476 *) echo "\$ac_cs_usage"; exit 1 ;;
10480 ac_given_srcdir=$srcdir
10481 ac_given_INSTALL="$INSTALL"
10483 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10485 cat >> $CONFIG_STATUS <<EOF
10487 # Protect against being on the right side of a sed subst in config.status.
10488 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10489 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
10493 s%@CFLAGS@%$CFLAGS%g
10494 s%@CPPFLAGS@%$CPPFLAGS%g
10495 s%@CXXFLAGS@%$CXXFLAGS%g
10496 s%@FFLAGS@%$FFLAGS%g
10498 s%@LDFLAGS@%$LDFLAGS%g
10500 s%@exec_prefix@%$exec_prefix%g
10501 s%@prefix@%$prefix%g
10502 s%@program_transform_name@%$program_transform_name%g
10503 s%@bindir@%$bindir%g
10504 s%@sbindir@%$sbindir%g
10505 s%@libexecdir@%$libexecdir%g
10506 s%@datadir@%$datadir%g
10507 s%@sysconfdir@%$sysconfdir%g
10508 s%@sharedstatedir@%$sharedstatedir%g
10509 s%@localstatedir@%$localstatedir%g
10510 s%@libdir@%$libdir%g
10511 s%@includedir@%$includedir%g
10512 s%@oldincludedir@%$oldincludedir%g
10513 s%@infodir@%$infodir%g
10514 s%@mandir@%$mandir%g
10515 s%@RUNPROG@%$RUNPROG%g
10516 s%@MPROGS@%$MPROGS%g
10517 s%@LDSHFLAGS@%$LDSHFLAGS%g
10518 s%@HOST_OS@%$HOST_OS%g
10520 s%@WRAP32@%$WRAP32%g
10521 s%@PICFLAG@%$PICFLAG%g
10522 s%@SHLIBEXT@%$SHLIBEXT%g
10524 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
10525 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
10526 s%@INSTALL_DATA@%$INSTALL_DATA%g
10528 s%@BROKEN_CC@%$BROKEN_CC%g
10530 s%@host_alias@%$host_alias%g
10531 s%@host_cpu@%$host_cpu%g
10532 s%@host_vendor@%$host_vendor%g
10533 s%@host_os@%$host_os%g
10534 s%@target@%$target%g
10535 s%@target_alias@%$target_alias%g
10536 s%@target_cpu@%$target_cpu%g
10537 s%@target_vendor@%$target_vendor%g
10538 s%@target_os@%$target_os%g
10540 s%@build_alias@%$build_alias%g
10541 s%@build_cpu@%$build_cpu%g
10542 s%@build_vendor@%$build_vendor%g
10543 s%@build_os@%$build_os%g
10545 s%@AUTOCONF@%$AUTOCONF%g
10546 s%@AUTOHEADER@%$AUTOHEADER%g
10548 s%@LIBOBJS@%$LIBOBJS%g
10550 s%@QUOTAOBJS@%$QUOTAOBJS%g
10551 s%@privatedir@%$privatedir%g
10552 s%@lockdir@%$lockdir%g
10553 s%@swatdir@%$swatdir%g
10554 s%@builddir@%$builddir%g
10559 cat >> $CONFIG_STATUS <<\EOF
10561 # Split the substitutions into bite-sized pieces for seds with
10562 # small command number limits, like on Digital OSF/1 and HP-UX.
10563 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10564 ac_file=1 # Number of current file.
10565 ac_beg=1 # First line for current file.
10566 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10569 while $ac_more_lines; do
10570 if test $ac_beg -gt 1; then
10571 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10573 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10575 if test ! -s conftest.s$ac_file; then
10576 ac_more_lines=false
10577 rm -f conftest.s$ac_file
10579 if test -z "$ac_sed_cmds"; then
10580 ac_sed_cmds="sed -f conftest.s$ac_file"
10582 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10584 ac_file=`expr $ac_file + 1`
10586 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10589 if test -z "$ac_sed_cmds"; then
10594 cat >> $CONFIG_STATUS <<EOF
10596 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
10598 cat >> $CONFIG_STATUS <<\EOF
10599 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10602 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10603 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10604 *) ac_file_in="${ac_file}.in" ;;
10607 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10609 # Remove last slash and all that follows it. Not all systems have dirname.
10610 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10612 # The file is in a subdirectory.
10613 test ! -d "$ac_dir" && mkdir "$ac_dir"
10614 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10615 # A "../" for each directory in $ac_dir_suffix.
10616 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10618 ac_dir_suffix= ac_dots=
10621 case "$ac_given_srcdir" in
10623 if test -z "$ac_dots"; then top_srcdir=.
10624 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10625 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10626 *) # Relative path.
10627 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10628 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10631 case "$ac_given_INSTALL" in
10632 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10633 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10636 echo creating "$ac_file"
10638 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10640 *Makefile*) ac_comsub="1i\\
10641 # $configure_input" ;;
10645 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10647 s%@configure_input@%$configure_input%g
10648 s%@srcdir@%$srcdir%g
10649 s%@top_srcdir@%$top_srcdir%g
10650 s%@INSTALL@%$INSTALL%g
10651 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10655 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10656 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10658 # ac_d sets the value in "#define NAME VALUE" lines.
10659 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10660 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10663 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10664 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10665 ac_uB='\([ ]\)%\1#\2define\3'
10668 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10669 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10670 ac_eB='$%\1#\2define\3'
10674 if test "${CONFIG_HEADERS+set}" != set; then
10676 cat >> $CONFIG_STATUS <<EOF
10677 CONFIG_HEADERS="include/config.h"
10679 cat >> $CONFIG_STATUS <<\EOF
10681 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10684 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10685 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10686 *) ac_file_in="${ac_file}.in" ;;
10689 echo creating $ac_file
10691 rm -f conftest.frag conftest.in conftest.out
10692 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10693 cat $ac_file_inputs > conftest.in
10697 # Transform confdefs.h into a sed script conftest.vals that substitutes
10698 # the proper values into config.h.in to produce config.h. And first:
10699 # Protect against being on the right side of a sed subst in config.status.
10700 # Protect against being in an unquoted here document in config.status.
10701 rm -f conftest.vals
10702 cat > conftest.hdr <<\EOF
10705 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10709 sed -n -f conftest.hdr confdefs.h > conftest.vals
10712 # This sed command replaces #undef with comments. This is necessary, for
10713 # example, in the case of _POSIX_SOURCE, which is predefined and required
10714 # on some systems where configure will not decide to define it.
10715 cat >> conftest.vals <<\EOF
10716 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10719 # Break up conftest.vals because some shells have a limit on
10720 # the size of here documents, and old seds have small limits too.
10722 rm -f conftest.tail
10725 ac_lines=`grep -c . conftest.vals`
10726 # grep -c gives empty output for an empty file on some AIX systems.
10727 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10728 # Write a limited-size here document to conftest.frag.
10729 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10730 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10732 sed -f conftest.frag conftest.in > conftest.out
10734 mv conftest.out conftest.in
10735 ' >> $CONFIG_STATUS
10736 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10737 rm -f conftest.vals
10738 mv conftest.tail conftest.vals
10740 rm -f conftest.vals
10742 cat >> $CONFIG_STATUS <<\EOF
10743 rm -f conftest.frag conftest.h
10744 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10745 cat conftest.in >> conftest.h
10747 if cmp -s $ac_file conftest.h 2>/dev/null; then
10748 echo "$ac_file is unchanged"
10751 # Remove last slash and all that follows it. Not all systems have dirname.
10752 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10754 # The file is in a subdirectory.
10755 test ! -d "$ac_dir" && mkdir "$ac_dir"
10758 mv conftest.h $ac_file
10763 cat >> $CONFIG_STATUS <<EOF
10766 cat >> $CONFIG_STATUS <<\EOF
10770 chmod +x $CONFIG_STATUS
10771 rm -fr confdefs* $ac_clean_files
10772 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1