3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
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 --whithout-krb4 Don't include Kerbers IV support (default)"
30 --with-automount Include AUTOMOUNT support
31 --without-automount Don't include AUTOMOUNT support (default)"
33 --with-smbmount Include SMBMOUNT (Linux only) support
34 --without-smbmount Don't include SMBMOUNT support (default)"
36 --with-ldap Include LDAP support
37 --without-ldap Don't include LDAP support (default)"
39 --with-nisplus Include NISPLUS password database support
40 --without-nisplus Don't include NISPLUS password database support (default)"
42 --with-nisplus-home Include NISPLUS_HOME support
43 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
45 --with-ssl Include SSL support
46 --without-ssl Don't include SSL support (default)"
48 --with-mmap Include experimental MMAP support
49 --without-mmap Don't include MMAP support (default)"
51 --with-syslog Include experimental SYSLOG support
52 --without-syslog Don't include SYSLOG support (default)"
54 --with-profile Include profile support
55 --without-profile Don't include profile support (default)"
57 --with-netatalk Include experimental Netatalk support
58 --without-netatalk Don't include experimental Netatalk support (default)"
60 --with-quotas Include experimental disk-quota support
61 --without-quotas Don't include experimental disk-quota support (default)"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
67 cache_file=./config.cache
76 program_transform_name=s,x,x,
84 bindir='${exec_prefix}/bin'
85 sbindir='${exec_prefix}/sbin'
86 libexecdir='${exec_prefix}/libexec'
87 datadir='${prefix}/share'
88 sysconfdir='${prefix}/etc'
89 sharedstatedir='${prefix}/com'
90 localstatedir='${prefix}/var'
91 libdir='${exec_prefix}/lib'
92 includedir='${prefix}/include'
93 oldincludedir='/usr/include'
94 infodir='${prefix}/info'
95 mandir='${prefix}/man'
97 # Initialize some other variables.
100 SHELL=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --version print the version of autoconf that created configure
194 Directory and file names:
195 --prefix=PREFIX install architecture-independent files in PREFIX
197 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 --bindir=DIR user executables in DIR [EPREFIX/bin]
200 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
201 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
202 --datadir=DIR read-only architecture-independent data in DIR
204 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
205 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
208 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
209 --includedir=DIR C header files in DIR [PREFIX/include]
210 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
211 --infodir=DIR info documentation in DIR [PREFIX/info]
212 --mandir=DIR man documentation in DIR [PREFIX/man]
213 --srcdir=DIR find the sources in DIR [configure dir or ..]
214 --program-prefix=PREFIX prepend PREFIX to installed program names
215 --program-suffix=SUFFIX append SUFFIX to installed program names
216 --program-transform-name=PROGRAM
217 run sed PROGRAM on installed program names
221 --build=BUILD configure for building on BUILD [BUILD=HOST]
222 --host=HOST configure for HOST [guessed]
223 --target=TARGET configure for TARGET [TARGET=HOST]
224 Features and packages:
225 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
226 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
227 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
228 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
229 --x-includes=DIR X include files are in DIR
230 --x-libraries=DIR X library files are in DIR
232 if test -n "$ac_help"; then
233 echo "--enable and --with options recognized:$ac_help"
237 -host | --host | --hos | --ho)
239 -host=* | --host=* | --hos=* | --ho=*)
242 -includedir | --includedir | --includedi | --included | --include \
243 | --includ | --inclu | --incl | --inc)
244 ac_prev=includedir ;;
245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
246 | --includ=* | --inclu=* | --incl=* | --inc=*)
247 includedir="$ac_optarg" ;;
249 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
252 infodir="$ac_optarg" ;;
254 -libdir | --libdir | --libdi | --libd)
256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
257 libdir="$ac_optarg" ;;
259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
260 | --libexe | --libex | --libe)
261 ac_prev=libexecdir ;;
262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
263 | --libexe=* | --libex=* | --libe=*)
264 libexecdir="$ac_optarg" ;;
266 -localstatedir | --localstatedir | --localstatedi | --localstated \
267 | --localstate | --localstat | --localsta | --localst \
268 | --locals | --local | --loca | --loc | --lo)
269 ac_prev=localstatedir ;;
270 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
271 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
272 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
273 localstatedir="$ac_optarg" ;;
275 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
278 mandir="$ac_optarg" ;;
281 # Obsolete; use --without-fp.
284 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
289 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
293 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
294 | --oldin | --oldi | --old | --ol | --o)
295 ac_prev=oldincludedir ;;
296 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
297 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
298 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
299 oldincludedir="$ac_optarg" ;;
301 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
304 prefix="$ac_optarg" ;;
306 -program-prefix | --program-prefix | --program-prefi | --program-pref \
307 | --program-pre | --program-pr | --program-p)
308 ac_prev=program_prefix ;;
309 -program-prefix=* | --program-prefix=* | --program-prefi=* \
310 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
311 program_prefix="$ac_optarg" ;;
313 -program-suffix | --program-suffix | --program-suffi | --program-suff \
314 | --program-suf | --program-su | --program-s)
315 ac_prev=program_suffix ;;
316 -program-suffix=* | --program-suffix=* | --program-suffi=* \
317 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
318 program_suffix="$ac_optarg" ;;
320 -program-transform-name | --program-transform-name \
321 | --program-transform-nam | --program-transform-na \
322 | --program-transform-n | --program-transform- \
323 | --program-transform | --program-transfor \
324 | --program-transfo | --program-transf \
325 | --program-trans | --program-tran \
326 | --progr-tra | --program-tr | --program-t)
327 ac_prev=program_transform_name ;;
328 -program-transform-name=* | --program-transform-name=* \
329 | --program-transform-nam=* | --program-transform-na=* \
330 | --program-transform-n=* | --program-transform-=* \
331 | --program-transform=* | --program-transfor=* \
332 | --program-transfo=* | --program-transf=* \
333 | --program-trans=* | --program-tran=* \
334 | --progr-tra=* | --program-tr=* | --program-t=*)
335 program_transform_name="$ac_optarg" ;;
337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
338 | -silent | --silent | --silen | --sile | --sil)
341 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 sbindir="$ac_optarg" ;;
347 -sharedstatedir | --sharedstatedir | --sharedstatedi \
348 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349 | --sharedst | --shareds | --shared | --share | --shar \
351 ac_prev=sharedstatedir ;;
352 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
353 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
354 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 sharedstatedir="$ac_optarg" ;;
358 -site | --site | --sit)
360 -site=* | --site=* | --sit=*)
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.14.1"
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=include/includes.h
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$CONFIG_SITE"; then
529 if test "x$prefix" != xNONE; then
530 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 for ac_site_file in $CONFIG_SITE; do
536 if test -r "$ac_site_file"; then
537 echo "loading site script $ac_site_file"
542 if test -r "$cache_file"; then
543 echo "loading cache $cache_file"
546 echo "creating cache $cache_file"
551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
552 ac_cpp='$CPP $CPPFLAGS'
553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
555 cross_compiling=$ac_cv_prog_cc_cross
559 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
560 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
561 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='\c' ac_t=
573 # we want to be compatibe with older versions of Samba
584 # compile with optimisation and without debugging by default
585 CFLAGS=${CFLAGS-"-O"}
587 # Extract the first word of "gcc", so it can be a program name with args.
588 set dummy gcc; ac_word=$2
589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
590 echo "configure:591: checking for $ac_word" >&5
591 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 if test -n "$CC"; then
595 ac_cv_prog_CC="$CC" # Let the user override the test.
597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
599 for ac_dir in $ac_dummy; do
600 test -z "$ac_dir" && ac_dir=.
601 if test -f $ac_dir/$ac_word; then
610 if test -n "$CC"; then
611 echo "$ac_t""$CC" 1>&6
613 echo "$ac_t""no" 1>&6
616 if test -z "$CC"; then
617 # Extract the first word of "cc", so it can be a program name with args.
618 set dummy cc; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 if test -n "$CC"; then
625 ac_cv_prog_CC="$CC" # Let the user override the test.
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
642 if test $ac_prog_rejected = yes; then
643 # We found a bogon in the path, so make sure we never use it.
644 set dummy $ac_cv_prog_CC
646 if test $# -gt 0; then
647 # We chose a different compiler from the bogus one.
648 # However, it has the same basename, so the bogon will be chosen
649 # first if we set CC to just the basename; use the full file name.
651 set dummy "$ac_dir/$ac_word" "$@"
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
668 # Extract the first word of "cl", so it can be a program name with args.
669 set dummy cl; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
699 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
702 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
703 echo "configure:704: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
706 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
707 ac_cpp='$CPP $CPPFLAGS'
708 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
709 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
710 cross_compiling=$ac_cv_prog_cc_cross
712 cat > conftest.$ac_ext << EOF
714 #line 715 "configure"
715 #include "confdefs.h"
719 if { (eval echo configure:720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
720 ac_cv_prog_cc_works=yes
721 # If we can't run a trivial program, we are probably using a cross compiler.
722 if (./conftest; exit) 2>/dev/null; then
723 ac_cv_prog_cc_cross=no
725 ac_cv_prog_cc_cross=yes
728 echo "configure: failed program was:" >&5
729 cat conftest.$ac_ext >&5
730 ac_cv_prog_cc_works=no
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp='$CPP $CPPFLAGS'
736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling=$ac_cv_prog_cc_cross
740 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
741 if test $ac_cv_prog_cc_works = no; then
742 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
746 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
747 cross_compiling=$ac_cv_prog_cc_cross
749 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
750 echo "configure:751: checking whether we are using GNU C" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftest.c <<EOF
759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
766 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
768 if test $ac_cv_prog_gcc = yes; then
774 ac_test_CFLAGS="${CFLAGS+set}"
775 ac_save_CFLAGS="$CFLAGS"
777 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
778 echo "configure:779: checking whether ${CC-cc} accepts -g" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 echo 'void f(){}' > conftest.c
783 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
792 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
793 if test "$ac_test_CFLAGS" = set; then
794 CFLAGS="$ac_save_CFLAGS"
795 elif test $ac_cv_prog_cc_g = yes; then
796 if test "$GCC" = yes; then
802 if test "$GCC" = yes; then
810 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
811 if test -f $ac_dir/install-sh; then
813 ac_install_sh="$ac_aux_dir/install-sh -c"
815 elif test -f $ac_dir/install.sh; then
817 ac_install_sh="$ac_aux_dir/install.sh -c"
821 if test -z "$ac_aux_dir"; then
822 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
824 ac_config_guess=$ac_aux_dir/config.guess
825 ac_config_sub=$ac_aux_dir/config.sub
826 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
828 # Find a good install program. We prefer a C program (faster),
829 # so one script is as good as another. But avoid the broken or
830 # incompatible versions:
831 # SysV /etc/install, /usr/sbin/install
832 # SunOS /usr/etc/install
835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
838 # ./install, which can be erroneously created by make from ./install.sh.
839 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
840 echo "configure:841: checking for a BSD compatible install" >&5
841 if test -z "$INSTALL"; then
842 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
846 for ac_dir in $PATH; do
847 # Account for people who put trailing slashes in PATH elements.
849 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
851 # OSF1 and SCO ODT 3.0 have their own names for install.
852 # Don't use installbsd from OSF since it installs stuff as root
854 for ac_prog in ginstall scoinst install; do
855 if test -f $ac_dir/$ac_prog; then
856 if test $ac_prog = install &&
857 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
858 # AIX install. It has an incompatible calling convention.
861 ac_cv_path_install="$ac_dir/$ac_prog -c"
872 if test "${ac_cv_path_install+set}" = set; then
873 INSTALL="$ac_cv_path_install"
875 # As a last resort, use the slow shell script. We don't cache a
876 # path for INSTALL within a source directory, because that will
877 # break other packages using the cache if that directory is
878 # removed, or if the path is relative.
879 INSTALL="$ac_install_sh"
882 echo "$ac_t""$INSTALL" 1>&6
884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
885 # It thinks the first close brace ends the variable substitution.
886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
892 for ac_prog in mawk gawk nawk awk
894 # Extract the first word of "$ac_prog", so it can be a program name with args.
895 set dummy $ac_prog; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 if test -n "$AWK"; then
902 ac_cv_prog_AWK="$AWK" # Let the user override the test.
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
906 for ac_dir in $ac_dummy; do
907 test -z "$ac_dir" && ac_dir=.
908 if test -f $ac_dir/$ac_word; then
909 ac_cv_prog_AWK="$ac_prog"
916 AWK="$ac_cv_prog_AWK"
917 if test -n "$AWK"; then
918 echo "$ac_t""$AWK" 1>&6
920 echo "$ac_t""no" 1>&6
923 test -n "$AWK" && break
928 # Do some error checking and defaulting for the host and target type.
930 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
933 # 1. You are not allowed to specify --host, --target, and nonopt at the
935 # 2. Host defaults to nonopt.
936 # 3. If nonopt is not specified, then host defaults to the current host,
937 # as determined by config.guess.
938 # 4. Target and build default to nonopt.
939 # 5. If nonopt is not specified, then target and build default to host.
941 # The aliases save the names the user supplied, while $host etc.
942 # will get canonicalized.
943 case $host---$target---$nonopt in
944 NONE---*---* | *---NONE---* | *---*---NONE) ;;
945 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
949 # Make sure we can run config.sub.
950 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
951 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
954 echo $ac_n "checking host system type""... $ac_c" 1>&6
955 echo "configure:956: checking host system type" >&5
958 case "$host_alias" in
962 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
963 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
965 *) host_alias=$nonopt ;;
969 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
970 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
971 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
972 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973 echo "$ac_t""$host" 1>&6
975 echo $ac_n "checking target system type""... $ac_c" 1>&6
976 echo "configure:977: checking target system type" >&5
979 case "$target_alias" in
982 NONE) target_alias=$host_alias ;;
983 *) target_alias=$nonopt ;;
987 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
988 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
991 echo "$ac_t""$target" 1>&6
993 echo $ac_n "checking build system type""... $ac_c" 1>&6
994 echo "configure:995: checking build system type" >&5
997 case "$build_alias" in
1000 NONE) build_alias=$host_alias ;;
1001 *) build_alias=$nonopt ;;
1005 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1006 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1007 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1008 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1009 echo "$ac_t""$build" 1>&6
1011 test "$host_alias" != "$target_alias" &&
1012 test "$program_prefix$program_suffix$program_transform_name" = \
1014 program_prefix=${target_alias}-
1018 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1019 echo "configure:1020: checking config.cache system type" >&5
1020 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1021 test x"$ac_cv_host_system_type" != x"$host"; } ||
1022 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1023 test x"$ac_cv_build_system_type" != x"$build"; } ||
1024 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1025 test x"$ac_cv_target_system_type" != x"$target"; }; then
1026 echo "$ac_t""different" 1>&6
1027 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1029 echo "$ac_t""same" 1>&6
1031 ac_cv_host_system_type="$host"
1032 ac_cv_build_system_type="$build"
1033 ac_cv_target_system_type="$target"
1036 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1037 if test "${enable_maintainer_mode+set}" = set; then
1038 enableval="$enable_maintainer_mode"
1039 maint_mode=$enableval
1044 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1046 # Extract the first word of "autoconf", so it can be a program name with args.
1047 set dummy autoconf; ac_word=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1055 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1058 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
1061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1063 for ac_dir in $ac_dummy; do
1064 test -z "$ac_dir" && ac_dir=.
1065 if test -f $ac_dir/$ac_word; then
1066 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1071 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1075 AUTOCONF="$ac_cv_path_AUTOCONF"
1076 if test -n "$AUTOCONF"; then
1077 echo "$ac_t""$AUTOCONF" 1>&6
1079 echo "$ac_t""no" 1>&6
1083 # Extract the first word of "autoheader", so it can be a program name with args.
1084 set dummy autoheader; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 case "$AUTOHEADER" in
1092 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1095 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a dos path.
1098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1100 for ac_dir in $ac_dummy; do
1101 test -z "$ac_dir" && ac_dir=.
1102 if test -f $ac_dir/$ac_word; then
1103 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1108 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1112 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1113 if test -n "$AUTOHEADER"; then
1114 echo "$ac_t""$AUTOHEADER" 1>&6
1116 echo "$ac_t""no" 1>&6
1123 # Config CPPFLAG settings for strange OS's that must be set
1124 # before other tests.
1127 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1129 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1130 echo "configure:1131: checking whether ${CC-cc} accepts -Ae" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 echo 'void f(){}' > conftest.c
1135 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1136 ac_cv_prog_cc_Ae=yes
1144 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1145 if test $ac_cv_prog_cc_Ae = yes; then
1146 CPPFLAGS="$CPPFLAGS -Ae"
1150 # AIX4.x is *so* broken. It doesn't even admit to having large
1151 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1154 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1158 echo $ac_n "checking for inline""... $ac_c" 1>&6
1159 echo "configure:1160: checking for inline" >&5
1160 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1164 for ac_kw in inline __inline__ __inline; do
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1173 if { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1175 ac_cv_c_inline=$ac_kw; break
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1185 echo "$ac_t""$ac_cv_c_inline" 1>&6
1186 case "$ac_cv_c_inline" in
1188 no) cat >> confdefs.h <<\EOF
1192 *) cat >> confdefs.h <<EOF
1193 #define inline $ac_cv_c_inline
1198 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1199 echo "configure:1200: checking how to run the C preprocessor" >&5
1200 # On Suns, sometimes $CPP names a directory.
1201 if test -n "$CPP" && test -d "$CPP"; then
1204 if test -z "$CPP"; then
1205 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 # This must be in double quotes, not single quotes, because CPP may get
1209 # substituted into the Makefile and "${CC-cc}" will confuse make.
1211 # On the NeXT, cc -E runs the code through the compiler's parser,
1212 # not just through cpp.
1213 cat > conftest.$ac_ext <<EOF
1214 #line 1215 "configure"
1215 #include "confdefs.h"
1219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1220 { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1222 if test -z "$ac_err"; then
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1229 CPP="${CC-cc} -E -traditional-cpp"
1230 cat > conftest.$ac_ext <<EOF
1231 #line 1232 "configure"
1232 #include "confdefs.h"
1236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1237 { (eval echo configure:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1239 if test -z "$ac_err"; then
1243 echo "configure: failed program was:" >&5
1244 cat conftest.$ac_ext >&5
1246 CPP="${CC-cc} -nologo -E"
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1254 { (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1256 if test -z "$ac_err"; then
1260 echo "configure: failed program was:" >&5
1261 cat conftest.$ac_ext >&5
1270 ac_cv_prog_CPP="$CPP"
1272 CPP="$ac_cv_prog_CPP"
1274 ac_cv_prog_CPP="$CPP"
1276 echo "$ac_t""$CPP" 1>&6
1278 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1279 echo "configure:1280: checking for ANSI C header files" >&5
1280 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 cat > conftest.$ac_ext <<EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1292 { (eval echo configure:1293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1294 if test -z "$ac_err"; then
1296 ac_cv_header_stdc=yes
1299 echo "configure: failed program was:" >&5
1300 cat conftest.$ac_ext >&5
1302 ac_cv_header_stdc=no
1306 if test $ac_cv_header_stdc = yes; then
1307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1308 cat > conftest.$ac_ext <<EOF
1309 #line 1310 "configure"
1310 #include "confdefs.h"
1313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1314 egrep "memchr" >/dev/null 2>&1; then
1318 ac_cv_header_stdc=no
1324 if test $ac_cv_header_stdc = yes; then
1325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1332 egrep "free" >/dev/null 2>&1; then
1336 ac_cv_header_stdc=no
1342 if test $ac_cv_header_stdc = yes; then
1343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1344 if test "$cross_compiling" = yes; then
1347 cat > conftest.$ac_ext <<EOF
1348 #line 1349 "configure"
1349 #include "confdefs.h"
1351 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1352 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1354 int main () { int i; for (i = 0; i < 256; i++)
1355 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1359 if { (eval echo configure:1360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1363 echo "configure: failed program was:" >&5
1364 cat conftest.$ac_ext >&5
1366 ac_cv_header_stdc=no
1374 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1375 if test $ac_cv_header_stdc = yes; then
1376 cat >> confdefs.h <<\EOF
1377 #define STDC_HEADERS 1
1383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1386 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_hdr that defines DIR" >&5
1388 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1391 cat > conftest.$ac_ext <<EOF
1392 #line 1393 "configure"
1393 #include "confdefs.h"
1394 #include <sys/types.h>
1400 if { (eval echo configure:1401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1402 eval "ac_cv_header_dirent_$ac_safe=yes"
1404 echo "configure: failed program was:" >&5
1405 cat conftest.$ac_ext >&5
1407 eval "ac_cv_header_dirent_$ac_safe=no"
1411 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1414 cat >> confdefs.h <<EOF
1415 #define $ac_tr_hdr 1
1417 ac_header_dirent=$ac_hdr; break
1419 echo "$ac_t""no" 1>&6
1422 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1423 if test $ac_header_dirent = dirent.h; then
1424 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1425 echo "configure:1426: checking for opendir in -ldir" >&5
1426 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 ac_save_LIBS="$LIBS"
1432 cat > conftest.$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1435 /* Override any gcc2 internal prototype to avoid an error. */
1436 /* We use char because int might match the return type of a gcc2
1437 builtin and then its argument prototype would still apply. */
1444 if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1446 eval "ac_cv_lib_$ac_lib_var=yes"
1448 echo "configure: failed program was:" >&5
1449 cat conftest.$ac_ext >&5
1451 eval "ac_cv_lib_$ac_lib_var=no"
1454 LIBS="$ac_save_LIBS"
1457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1461 echo "$ac_t""no" 1>&6
1465 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1466 echo "configure:1467: checking for opendir in -lx" >&5
1467 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 ac_save_LIBS="$LIBS"
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1476 /* Override any gcc2 internal prototype to avoid an error. */
1477 /* We use char because int might match the return type of a gcc2
1478 builtin and then its argument prototype would still apply. */
1485 if { (eval echo configure:1486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1487 eval "ac_cv_lib_$ac_lib_var=yes"
1489 echo "configure: failed program was:" >&5
1490 cat conftest.$ac_ext >&5
1492 eval "ac_cv_lib_$ac_lib_var=no"
1495 LIBS="$ac_save_LIBS"
1498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1502 echo "$ac_t""no" 1>&6
1507 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether time.h and sys/time.h may both be included" >&5
1509 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 cat > conftest.$ac_ext <<EOF
1513 #line 1514 "configure"
1514 #include "confdefs.h"
1515 #include <sys/types.h>
1516 #include <sys/time.h>
1522 if { (eval echo configure:1523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1524 ac_cv_header_time=yes
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1529 ac_cv_header_time=no
1534 echo "$ac_t""$ac_cv_header_time" 1>&6
1535 if test $ac_cv_header_time = yes; then
1536 cat >> confdefs.h <<\EOF
1537 #define TIME_WITH_SYS_TIME 1
1542 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1543 echo "configure:1544: checking for sys/wait.h that is POSIX.1 compatible" >&5
1544 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1545 echo $ac_n "(cached) $ac_c" 1>&6
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 #include <sys/types.h>
1551 #include <sys/wait.h>
1553 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1556 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1561 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1564 if { (eval echo configure:1565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1566 ac_cv_header_sys_wait_h=yes
1568 echo "configure: failed program was:" >&5
1569 cat conftest.$ac_ext >&5
1571 ac_cv_header_sys_wait_h=no
1576 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1577 if test $ac_cv_header_sys_wait_h = yes; then
1578 cat >> confdefs.h <<\EOF
1579 #define HAVE_SYS_WAIT_H 1
1584 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_hdr" >&5
1589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1598 { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1600 if test -z "$ac_err"; then
1602 eval "ac_cv_header_$ac_safe=yes"
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1608 eval "ac_cv_header_$ac_safe=no"
1612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1615 cat >> confdefs.h <<EOF
1616 #define $ac_tr_hdr 1
1620 echo "$ac_t""no" 1>&6
1624 for ac_hdr in sys/param.h ctype.h
1626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1628 echo "configure:1629: checking for $ac_hdr" >&5
1629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1642 eval "ac_cv_header_$ac_safe=yes"
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1648 eval "ac_cv_header_$ac_safe=no"
1652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1653 echo "$ac_t""yes" 1>&6
1654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1655 cat >> confdefs.h <<EOF
1656 #define $ac_tr_hdr 1
1660 echo "$ac_t""no" 1>&6
1664 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/route.h net/if.h
1666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_hdr" >&5
1669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 cat > conftest.$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1678 { (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1680 if test -z "$ac_err"; then
1682 eval "ac_cv_header_$ac_safe=yes"
1685 echo "configure: failed program was:" >&5
1686 cat conftest.$ac_ext >&5
1688 eval "ac_cv_header_$ac_safe=no"
1692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1693 echo "$ac_t""yes" 1>&6
1694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1695 cat >> confdefs.h <<EOF
1696 #define $ac_tr_hdr 1
1700 echo "$ac_t""no" 1>&6
1704 for ac_hdr in compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1708 echo "configure:1709: checking for $ac_hdr" >&5
1709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1718 { (eval echo configure:1719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1720 if test -z "$ac_err"; then
1722 eval "ac_cv_header_$ac_safe=yes"
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1728 eval "ac_cv_header_$ac_safe=no"
1732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1733 echo "$ac_t""yes" 1>&6
1734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1735 cat >> confdefs.h <<EOF
1736 #define $ac_tr_hdr 1
1740 echo "$ac_t""no" 1>&6
1744 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h sys/mman.h
1746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_hdr" >&5
1749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1758 { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1760 if test -z "$ac_err"; then
1762 eval "ac_cv_header_$ac_safe=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1768 eval "ac_cv_header_$ac_safe=no"
1772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1775 cat >> confdefs.h <<EOF
1776 #define $ac_tr_hdr 1
1780 echo "$ac_t""no" 1>&6
1784 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1788 echo "configure:1789: checking for $ac_hdr" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1798 { (eval echo configure:1799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1800 if test -z "$ac_err"; then
1802 eval "ac_cv_header_$ac_safe=yes"
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 eval "ac_cv_header_$ac_safe=no"
1812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1813 echo "$ac_t""yes" 1>&6
1814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1815 cat >> confdefs.h <<EOF
1816 #define $ac_tr_hdr 1
1820 echo "$ac_t""no" 1>&6
1824 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1828 echo "configure:1829: checking for $ac_hdr" >&5
1829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1842 eval "ac_cv_header_$ac_safe=yes"
1845 echo "configure: failed program was:" >&5
1846 cat conftest.$ac_ext >&5
1848 eval "ac_cv_header_$ac_safe=no"
1852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1854 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1855 cat >> confdefs.h <<EOF
1856 #define $ac_tr_hdr 1
1860 echo "$ac_t""no" 1>&6
1864 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1868 echo "configure:1869: checking for $ac_hdr" >&5
1869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1878 { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1880 if test -z "$ac_err"; then
1882 eval "ac_cv_header_$ac_safe=yes"
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 eval "ac_cv_header_$ac_safe=no"
1892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1893 echo "$ac_t""yes" 1>&6
1894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1895 cat >> confdefs.h <<EOF
1896 #define $ac_tr_hdr 1
1900 echo "$ac_t""no" 1>&6
1904 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1908 echo "configure:1909: checking for $ac_hdr" >&5
1909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1918 { (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1920 if test -z "$ac_err"; then
1922 eval "ac_cv_header_$ac_safe=yes"
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 eval "ac_cv_header_$ac_safe=no"
1932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1933 echo "$ac_t""yes" 1>&6
1934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1935 cat >> confdefs.h <<EOF
1936 #define $ac_tr_hdr 1
1940 echo "$ac_t""no" 1>&6
1944 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1948 echo "configure:1949: checking for $ac_hdr" >&5
1949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1958 { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1960 if test -z "$ac_err"; then
1962 eval "ac_cv_header_$ac_safe=yes"
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1968 eval "ac_cv_header_$ac_safe=no"
1972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1975 cat >> confdefs.h <<EOF
1976 #define $ac_tr_hdr 1
1980 echo "$ac_t""no" 1>&6
1984 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_hdr" >&5
1989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1998 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2000 if test -z "$ac_err"; then
2002 eval "ac_cv_header_$ac_safe=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_header_$ac_safe=no"
2012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2015 cat >> confdefs.h <<EOF
2016 #define $ac_tr_hdr 1
2020 echo "$ac_t""no" 1>&6
2024 for ac_hdr in sys/acl.h sys/cdefs.h glob.h mysql.h
2026 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2027 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2028 echo "configure:2029: checking for $ac_hdr" >&5
2029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2038 { (eval echo configure:2039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2040 if test -z "$ac_err"; then
2042 eval "ac_cv_header_$ac_safe=yes"
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 eval "ac_cv_header_$ac_safe=no"
2052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2053 echo "$ac_t""yes" 1>&6
2054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2055 cat >> confdefs.h <<EOF
2056 #define $ac_tr_hdr 1
2060 echo "$ac_t""no" 1>&6
2065 echo $ac_n "checking size of int""... $ac_c" 1>&6
2066 echo "configure:2067: checking size of int" >&5
2067 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 if test "$cross_compiling" = yes; then
2071 ac_cv_sizeof_int=cross
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2079 FILE *f=fopen("conftestval", "w");
2081 fprintf(f, "%d\n", sizeof(int));
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2087 ac_cv_sizeof_int=`cat conftestval`
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2098 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2099 cat >> confdefs.h <<EOF
2100 #define SIZEOF_INT $ac_cv_sizeof_int
2104 echo $ac_n "checking size of long""... $ac_c" 1>&6
2105 echo "configure:2106: checking size of long" >&5
2106 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test "$cross_compiling" = yes; then
2110 ac_cv_sizeof_long=cross
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2118 FILE *f=fopen("conftestval", "w");
2120 fprintf(f, "%d\n", sizeof(long));
2124 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2126 ac_cv_sizeof_long=`cat conftestval`
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2137 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2138 cat >> confdefs.h <<EOF
2139 #define SIZEOF_LONG $ac_cv_sizeof_long
2143 echo $ac_n "checking size of short""... $ac_c" 1>&6
2144 echo "configure:2145: checking size of short" >&5
2145 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test "$cross_compiling" = yes; then
2149 ac_cv_sizeof_short=cross
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2157 FILE *f=fopen("conftestval", "w");
2159 fprintf(f, "%d\n", sizeof(short));
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2165 ac_cv_sizeof_short=`cat conftestval`
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 ac_cv_sizeof_short=0
2176 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2177 cat >> confdefs.h <<EOF
2178 #define SIZEOF_SHORT $ac_cv_sizeof_short
2183 echo $ac_n "checking for working const""... $ac_c" 1>&6
2184 echo "configure:2185: checking for working const" >&5
2185 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2194 /* Ultrix mips cc rejects this. */
2195 typedef int charset[2]; const charset x;
2196 /* SunOS 4.1.1 cc rejects this. */
2197 char const *const *ccp;
2199 /* NEC SVR4.0.2 mips cc rejects this. */
2200 struct point {int x, y;};
2201 static struct point const zero = {0,0};
2202 /* AIX XL C 1.02.0.0 rejects this.
2203 It does not let you subtract one const X* pointer from another in an arm
2204 of an if-expression whose if-part is not a constant expression */
2205 const char *g = "string";
2206 ccp = &g + (g ? g-g : 0);
2207 /* HPUX 7.0 cc rejects these. */
2210 ccp = (char const *const *) p;
2211 { /* SCO 3.2v4 cc rejects this. */
2213 char const *s = 0 ? (char *) 0 : (char const *) 0;
2217 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2219 const int *foo = &x[0];
2222 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2223 typedef const int *iptr;
2227 { /* AIX XL C 1.02.0.0 rejects this saying
2228 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2229 struct s { int j; const int *ap[3]; };
2230 struct s *b; b->j = 5;
2232 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2238 if { (eval echo configure:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2250 echo "$ac_t""$ac_cv_c_const" 1>&6
2251 if test $ac_cv_c_const = no; then
2252 cat >> confdefs.h <<\EOF
2258 echo $ac_n "checking for inline""... $ac_c" 1>&6
2259 echo "configure:2260: checking for inline" >&5
2260 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2264 for ac_kw in inline __inline__ __inline; do
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2273 if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2275 ac_cv_c_inline=$ac_kw; break
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2285 echo "$ac_t""$ac_cv_c_inline" 1>&6
2286 case "$ac_cv_c_inline" in
2288 no) cat >> confdefs.h <<\EOF
2292 *) cat >> confdefs.h <<EOF
2293 #define inline $ac_cv_c_inline
2298 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether byte ordering is bigendian" >&5
2300 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 ac_cv_c_bigendian=unknown
2304 # See if sys/param.h defines the BYTE_ORDER macro.
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2309 #include <sys/param.h>
2312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 # It does; now see whether it defined to BIG_ENDIAN or not.
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <sys/types.h>
2324 #include <sys/param.h>
2327 #if BYTE_ORDER != BIG_ENDIAN
2332 if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2334 ac_cv_c_bigendian=yes
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2339 ac_cv_c_bigendian=no
2343 echo "configure: failed program was:" >&5
2344 cat conftest.$ac_ext >&5
2347 if test $ac_cv_c_bigendian = unknown; then
2348 if test "$cross_compiling" = yes; then
2349 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2355 /* Are we little or big endian? From Harbison&Steele. */
2359 char c[sizeof (long)];
2362 exit (u.c[sizeof (long) - 1] == 1);
2365 if { (eval echo configure:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2367 ac_cv_c_bigendian=no
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 ac_cv_c_bigendian=yes
2380 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2381 if test $ac_cv_c_bigendian = yes; then
2382 cat >> confdefs.h <<\EOF
2383 #define WORDS_BIGENDIAN 1
2388 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2389 echo "configure:2390: checking whether char is unsigned" >&5
2390 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 if test "$GCC" = yes; then
2394 # GCC predefines this symbol on systems where it applies.
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 #ifdef __CHAR_UNSIGNED__
2403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2404 egrep "yes" >/dev/null 2>&1; then
2406 ac_cv_c_char_unsigned=yes
2409 ac_cv_c_char_unsigned=no
2414 if test "$cross_compiling" = yes; then
2415 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2421 #if !defined(__STDC__) || __STDC__ != 1
2425 volatile char c = 255; exit(c < 0);
2428 if { (eval echo configure:2429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2430 ac_cv_c_char_unsigned=yes
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2435 ac_cv_c_char_unsigned=no
2443 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2444 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2445 cat >> confdefs.h <<\EOF
2446 #define __CHAR_UNSIGNED__ 1
2452 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2453 echo "configure:2454: checking return type of signal handlers" >&5
2454 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 #include <sys/types.h>
2466 extern "C" void (*signal (int, void (*)(int)))(int);
2468 void (*signal ()) ();
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2477 ac_cv_type_signal=void
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 ac_cv_type_signal=int
2487 echo "$ac_t""$ac_cv_type_signal" 1>&6
2488 cat >> confdefs.h <<EOF
2489 #define RETSIGTYPE $ac_cv_type_signal
2493 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2494 echo "configure:2495: checking for uid_t in sys/types.h" >&5
2495 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <sys/types.h>
2503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2504 egrep "uid_t" >/dev/null 2>&1; then
2506 ac_cv_type_uid_t=yes
2515 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2516 if test $ac_cv_type_uid_t = no; then
2517 cat >> confdefs.h <<\EOF
2521 cat >> confdefs.h <<\EOF
2527 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2528 echo "configure:2529: checking for mode_t" >&5
2529 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2535 #include <sys/types.h>
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2544 ac_cv_type_mode_t=yes
2547 ac_cv_type_mode_t=no
2552 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2553 if test $ac_cv_type_mode_t = no; then
2554 cat >> confdefs.h <<\EOF
2560 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2561 echo "configure:2562: checking for off_t" >&5
2562 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <sys/types.h>
2574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2575 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2577 ac_cv_type_off_t=yes
2585 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2586 if test $ac_cv_type_off_t = no; then
2587 cat >> confdefs.h <<\EOF
2593 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2594 echo "configure:2595: checking for size_t" >&5
2595 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2601 #include <sys/types.h>
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2610 ac_cv_type_size_t=yes
2613 ac_cv_type_size_t=no
2618 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2619 if test $ac_cv_type_size_t = no; then
2620 cat >> confdefs.h <<\EOF
2621 #define size_t unsigned
2626 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2627 echo "configure:2628: checking for pid_t" >&5
2628 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <sys/types.h>
2640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2641 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2643 ac_cv_type_pid_t=yes
2651 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2652 if test $ac_cv_type_pid_t = no; then
2653 cat >> confdefs.h <<\EOF
2659 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2660 echo "configure:2661: checking for st_rdev in struct stat" >&5
2661 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 #include <sys/types.h>
2668 #include <sys/stat.h>
2670 struct stat s; s.st_rdev;
2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 ac_cv_struct_st_rdev=yes
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2680 ac_cv_struct_st_rdev=no
2685 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2686 if test $ac_cv_struct_st_rdev = yes; then
2687 cat >> confdefs.h <<\EOF
2688 #define HAVE_ST_RDEV 1
2693 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2694 echo "configure:2695: checking for d_off in dirent" >&5
2695 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 cat > conftest.$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2703 #include <sys/types.h>
2706 struct dirent d; d.d_off;
2709 if { (eval echo configure:2710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2711 ac_cv_dirent_d_off=yes
2713 echo "configure: failed program was:" >&5
2714 cat conftest.$ac_ext >&5
2716 ac_cv_dirent_d_off=no
2721 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2722 if test $ac_cv_dirent_d_off = yes; then
2723 cat >> confdefs.h <<\EOF
2724 #define HAVE_DIRENT_D_OFF 1
2729 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2730 echo "configure:2731: checking for ino_t" >&5
2731 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 #include <sys/types.h>
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2746 ac_cv_type_ino_t=yes
2754 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2755 if test $ac_cv_type_ino_t = no; then
2756 cat >> confdefs.h <<\EOF
2757 #define ino_t unsigned
2762 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2763 echo "configure:2764: checking for loff_t" >&5
2764 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <sys/types.h>
2776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2777 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2779 ac_cv_type_loff_t=yes
2782 ac_cv_type_loff_t=no
2787 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2788 if test $ac_cv_type_loff_t = no; then
2789 cat >> confdefs.h <<\EOF
2790 #define loff_t off_t
2795 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2796 echo "configure:2797: checking for offset_t" >&5
2797 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 cat > conftest.$ac_ext <<EOF
2801 #line 2802 "configure"
2802 #include "confdefs.h"
2803 #include <sys/types.h>
2809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2812 ac_cv_type_offset_t=yes
2815 ac_cv_type_offset_t=no
2820 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2821 if test $ac_cv_type_offset_t = no; then
2822 cat >> confdefs.h <<\EOF
2823 #define offset_t loff_t
2828 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2829 echo "configure:2830: checking for ssize_t" >&5
2830 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <sys/types.h>
2842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2843 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2845 ac_cv_type_ssize_t=yes
2848 ac_cv_type_ssize_t=no
2853 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2854 if test $ac_cv_type_ssize_t = no; then
2855 cat >> confdefs.h <<\EOF
2862 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2863 echo "configure:2864: checking for errno in errno.h" >&5
2864 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2876 if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2880 echo "configure: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2883 samba_cv_have_errno_decl=no
2888 echo "$ac_t""$samba_cv_errno" 1>&6
2889 if test x"$samba_cv_errno" = x"yes"; then
2890 cat >> confdefs.h <<\EOF
2891 #define HAVE_ERRNO_DECL 1
2896 # stupid glibc has the functions but no declaration. grrrr.
2897 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2898 echo "configure:2899: checking for setresuid declaration" >&5
2899 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 int i = (int)setresuid
2911 if { (eval echo configure:2912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2913 samba_cv_have_setresuid_decl=yes
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2918 samba_cv_have_setresuid_decl=no
2923 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2924 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2925 cat >> confdefs.h <<\EOF
2926 #define HAVE_SETRESUID_DECL 1
2931 # stupid glibc has the functions but no declaration. grrrr.
2932 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2933 echo "configure:2934: checking for crypt declaration" >&5
2934 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2935 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2948 samba_cv_have_crypt_decl=yes
2950 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5
2953 samba_cv_have_crypt_decl=no
2958 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2959 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2960 cat >> confdefs.h <<\EOF
2961 #define HAVE_CRYPT_DECL 1
2966 # and glibc has setresuid under linux but the function does
2967 # nothing until kernel 2.1.44! very dumb.
2968 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2969 echo "configure:2970: checking for real setresuid" >&5
2970 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2974 if test "$cross_compiling" = yes; then
2975 samba_cv_have_setresuid=cross
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2981 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2985 samba_cv_have_setresuid=yes
2987 echo "configure: failed program was:" >&5
2988 cat conftest.$ac_ext >&5
2990 samba_cv_have_setresuid=no
2997 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2998 if test x"$samba_cv_have_setresuid" = x"yes"; then
2999 cat >> confdefs.h <<\EOF
3000 #define HAVE_SETRESUID 1
3005 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3006 echo "configure:3007: checking for 8-bit clean memcmp" >&5
3007 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 if test "$cross_compiling" = yes; then
3011 ac_cv_func_memcmp_clean=no
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3019 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3020 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3026 ac_cv_func_memcmp_clean=yes
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 ac_cv_func_memcmp_clean=no
3038 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3039 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3042 ###############################################
3043 # test for where we get crypt() from
3044 for ac_func in crypt
3046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_func" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char $ac_func(); below. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3065 /* The GNU C library defines this for functions which it implements
3066 to always fail with ENOSYS. Some functions are actually named
3067 something starting with __ and the normal name is an alias. */
3068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3076 if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 eval "ac_cv_func_$ac_func=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3083 eval "ac_cv_func_$ac_func=no"
3088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3091 cat >> confdefs.h <<EOF
3092 #define $ac_tr_func 1
3096 echo "$ac_t""no" 1>&6
3100 if test x"$ac_cv_func_crypt" = x"no"; then
3101 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3102 echo "configure:3103: checking for crypt in -lcrypt" >&5
3103 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 ac_save_LIBS="$LIBS"
3108 LIBS="-lcrypt $LIBS"
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_lib_$ac_lib_var=no"
3131 LIBS="$ac_save_LIBS"
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 LIBS="$LIBS -lcrypt";
3137 cat >> confdefs.h <<\EOF
3138 #define HAVE_CRYPT 1
3142 echo "$ac_t""no" 1>&6
3148 ###############################################
3149 # test for where we get pam_authenticate() from
3150 # might need libdl for this to work
3151 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3152 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3153 echo "configure:3154: checking for main in -ldl" >&5
3154 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 ac_save_LIBS="$LIBS"
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170 eval "ac_cv_lib_$ac_lib_var=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 eval "ac_cv_lib_$ac_lib_var=no"
3178 LIBS="$ac_save_LIBS"
3181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3184 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3185 cat >> confdefs.h <<EOF
3186 #define $ac_tr_lib 1
3192 echo "$ac_t""no" 1>&6
3196 for ac_func in pam_authenticate
3198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_func" >&5
3200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* System header to define __stub macros and hopefully few prototypes,
3207 which can conflict with char $ac_func(); below. */
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3217 /* The GNU C library defines this for functions which it implements
3218 to always fail with ENOSYS. Some functions are actually named
3219 something starting with __ and the normal name is an alias. */
3220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3228 if { (eval echo configure:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3230 eval "ac_cv_func_$ac_func=yes"
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3235 eval "ac_cv_func_$ac_func=no"
3240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3243 cat >> confdefs.h <<EOF
3244 #define $ac_tr_func 1
3248 echo "$ac_t""no" 1>&6
3252 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3253 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3254 echo "configure:3255: checking for pam_authenticate in -lpam" >&5
3255 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 ac_save_LIBS="$LIBS"
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* Override any gcc2 internal prototype to avoid an error. */
3265 /* We use char because int might match the return type of a gcc2
3266 builtin and then its argument prototype would still apply. */
3267 char pam_authenticate();
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3275 eval "ac_cv_lib_$ac_lib_var=yes"
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 eval "ac_cv_lib_$ac_lib_var=no"
3283 LIBS="$ac_save_LIBS"
3286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3289 cat >> confdefs.h <<\EOF
3290 #define HAVE_PAM_AUTHENTICATE 1
3294 echo "$ac_t""no" 1>&6
3300 ###############################################
3301 # test for where we get readline() from
3302 if test "$ac_cv_header_readline_h" = "yes" ||
3303 test "$ac_cv_header_readline_readline_h" = "yes"; then
3304 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3305 echo "configure:3306: checking for readline in -lreadline" >&5
3306 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 ac_save_LIBS="$LIBS"
3311 LIBS="-lreadline $LIBS"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_lib_$ac_lib_var=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_lib_$ac_lib_var=no"
3334 LIBS="$ac_save_LIBS"
3337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3340 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3341 cat >> confdefs.h <<EOF
3342 #define $ac_tr_lib 1
3345 LIBS="-lreadline $LIBS"
3348 echo "$ac_t""no" 1>&6
3354 # The following test taken from the cvs sources
3355 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3356 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3357 # libsocket.so which has a bad implementation of gethostbyname (it
3358 # only looks in /etc/hosts), so we only look for -lsocket if we need
3360 for ac_func in connect
3362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3363 echo "configure:3364: checking for $ac_func" >&5
3364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3370 /* System header to define __stub macros and hopefully few prototypes,
3371 which can conflict with char $ac_func(); below. */
3373 /* Override any gcc2 internal prototype to avoid an error. */
3374 /* We use char because int might match the return type of a gcc2
3375 builtin and then its argument prototype would still apply. */
3381 /* The GNU C library defines this for functions which it implements
3382 to always fail with ENOSYS. Some functions are actually named
3383 something starting with __ and the normal name is an alias. */
3384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 eval "ac_cv_func_$ac_func=yes"
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 eval "ac_cv_func_$ac_func=no"
3404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3407 cat >> confdefs.h <<EOF
3408 #define $ac_tr_func 1
3412 echo "$ac_t""no" 1>&6
3416 if test x"$ac_cv_func_connect" = x"no"; then
3419 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3420 echo "configure:3421: checking for printf in -lnsl_s" >&5
3421 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 ac_save_LIBS="$LIBS"
3426 LIBS="-lnsl_s $LIBS"
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3439 if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3441 eval "ac_cv_lib_$ac_lib_var=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 eval "ac_cv_lib_$ac_lib_var=no"
3449 LIBS="$ac_save_LIBS"
3452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_lib 1
3460 LIBS="-lnsl_s $LIBS"
3463 echo "$ac_t""no" 1>&6
3469 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3470 echo "configure:3471: checking for printf in -lnsl" >&5
3471 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 ac_save_LIBS="$LIBS"
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* Override any gcc2 internal prototype to avoid an error. */
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_lib_$ac_lib_var=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_lib_$ac_lib_var=no"
3499 LIBS="$ac_save_LIBS"
3502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3506 cat >> confdefs.h <<EOF
3507 #define $ac_tr_lib 1
3513 echo "$ac_t""no" 1>&6
3519 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3520 echo "configure:3521: checking for connect in -lsocket" >&5
3521 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_save_LIBS="$LIBS"
3526 LIBS="-lsocket $LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 eval "ac_cv_lib_$ac_lib_var=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_lib_$ac_lib_var=no"
3549 LIBS="$ac_save_LIBS"
3552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3554 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3556 cat >> confdefs.h <<EOF
3557 #define $ac_tr_lib 1
3560 LIBS="-lsocket $LIBS"
3563 echo "$ac_t""no" 1>&6
3569 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3570 echo "configure:3571: checking for connect in -linet" >&5
3571 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3591 eval "ac_cv_lib_$ac_lib_var=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_lib_$ac_lib_var=no"
3599 LIBS="$ac_save_LIBS"
3602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3605 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3606 cat >> confdefs.h <<EOF
3607 #define $ac_tr_lib 1
3613 echo "$ac_t""no" 1>&6
3617 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3618 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3619 # ac_cv_func_connect=yes
3620 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3621 cat >> confdefs.h <<\EOF
3622 #define HAVE_CONNECT 1
3629 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3632 echo "configure:3633: checking for $ac_func" >&5
3633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 /* System header to define __stub macros and hopefully few prototypes,
3640 which can conflict with char $ac_func(); below. */
3642 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3650 /* The GNU C library defines this for functions which it implements
3651 to always fail with ENOSYS. Some functions are actually named
3652 something starting with __ and the normal name is an alias. */
3653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_func_$ac_func=no"
3673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3674 echo "$ac_t""yes" 1>&6
3675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3676 cat >> confdefs.h <<EOF
3677 #define $ac_tr_func 1
3681 echo "$ac_t""no" 1>&6
3685 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3688 echo "configure:3689: checking for $ac_func" >&5
3689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 /* System header to define __stub macros and hopefully few prototypes,
3696 which can conflict with char $ac_func(); below. */
3698 /* Override any gcc2 internal prototype to avoid an error. */
3699 /* We use char because int might match the return type of a gcc2
3700 builtin and then its argument prototype would still apply. */
3706 /* The GNU C library defines this for functions which it implements
3707 to always fail with ENOSYS. Some functions are actually named
3708 something starting with __ and the normal name is an alias. */
3709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3719 eval "ac_cv_func_$ac_func=yes"
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 eval "ac_cv_func_$ac_func=no"
3729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3732 cat >> confdefs.h <<EOF
3733 #define $ac_tr_func 1
3737 echo "$ac_t""no" 1>&6
3741 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3744 echo "configure:3745: checking for $ac_func" >&5
3745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 /* System header to define __stub macros and hopefully few prototypes,
3752 which can conflict with char $ac_func(); below. */
3754 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_func_$ac_func=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_func_$ac_func=no"
3785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3788 cat >> confdefs.h <<EOF
3789 #define $ac_tr_func 1
3793 echo "$ac_t""no" 1>&6
3797 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3800 echo "configure:3801: checking for $ac_func" >&5
3801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3807 /* System header to define __stub macros and hopefully few prototypes,
3808 which can conflict with char $ac_func(); below. */
3810 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3818 /* The GNU C library defines this for functions which it implements
3819 to always fail with ENOSYS. Some functions are actually named
3820 something starting with __ and the normal name is an alias. */
3821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3831 eval "ac_cv_func_$ac_func=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 eval "ac_cv_func_$ac_func=no"
3841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_func 1
3849 echo "$ac_t""no" 1>&6
3853 for ac_func in initgroups select rdchk getgrnam pathconf
3855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3856 echo "configure:3857: checking for $ac_func" >&5
3857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* System header to define __stub macros and hopefully few prototypes,
3864 which can conflict with char $ac_func(); below. */
3866 /* Override any gcc2 internal prototype to avoid an error. */
3867 /* We use char because int might match the return type of a gcc2
3868 builtin and then its argument prototype would still apply. */
3874 /* The GNU C library defines this for functions which it implements
3875 to always fail with ENOSYS. Some functions are actually named
3876 something starting with __ and the normal name is an alias. */
3877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3887 eval "ac_cv_func_$ac_func=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_func_$ac_func=no"
3897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3900 cat >> confdefs.h <<EOF
3901 #define $ac_tr_func 1
3905 echo "$ac_t""no" 1>&6
3909 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3912 echo "configure:3913: checking for $ac_func" >&5
3913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 /* System header to define __stub macros and hopefully few prototypes,
3920 which can conflict with char $ac_func(); below. */
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3930 /* The GNU C library defines this for functions which it implements
3931 to always fail with ENOSYS. Some functions are actually named
3932 something starting with __ and the normal name is an alias. */
3933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943 eval "ac_cv_func_$ac_func=yes"
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 eval "ac_cv_func_$ac_func=no"
3953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
3955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3956 cat >> confdefs.h <<EOF
3957 #define $ac_tr_func 1
3961 echo "$ac_t""no" 1>&6
3965 for ac_func in atexit grantpt dup2 lseek64 ftruncate64
3967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3968 echo "configure:3969: checking for $ac_func" >&5
3969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* System header to define __stub macros and hopefully few prototypes,
3976 which can conflict with char $ac_func(); below. */
3978 /* Override any gcc2 internal prototype to avoid an error. */
3979 /* We use char because int might match the return type of a gcc2
3980 builtin and then its argument prototype would still apply. */
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 eval "ac_cv_func_$ac_func=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 eval "ac_cv_func_$ac_func=no"
4009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4011 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4012 cat >> confdefs.h <<EOF
4013 #define $ac_tr_func 1
4017 echo "$ac_t""no" 1>&6
4021 for ac_func in fseek64 ftell64 setluid yp_get_default_domain getpwanam
4023 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4024 echo "configure:4025: checking for $ac_func" >&5
4025 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4031 /* System header to define __stub macros and hopefully few prototypes,
4032 which can conflict with char $ac_func(); below. */
4034 /* Override any gcc2 internal prototype to avoid an error. */
4035 /* We use char because int might match the return type of a gcc2
4036 builtin and then its argument prototype would still apply. */
4042 /* The GNU C library defines this for functions which it implements
4043 to always fail with ENOSYS. Some functions are actually named
4044 something starting with __ and the normal name is an alias. */
4045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4053 if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4055 eval "ac_cv_func_$ac_func=yes"
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4060 eval "ac_cv_func_$ac_func=no"
4065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4066 echo "$ac_t""yes" 1>&6
4067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4068 cat >> confdefs.h <<EOF
4069 #define $ac_tr_func 1
4073 echo "$ac_t""no" 1>&6
4077 for ac_func in srandom random srand rand setenv mmap64
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. */
4098 /* The GNU C library defines this for functions which it implements
4099 to always fail with ENOSYS. Some functions are actually named
4100 something starting with __ and the normal name is an alias. */
4101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4111 eval "ac_cv_func_$ac_func=yes"
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4116 eval "ac_cv_func_$ac_func=no"
4121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4124 cat >> confdefs.h <<EOF
4125 #define $ac_tr_func 1
4129 echo "$ac_t""no" 1>&6
4133 # syscall() is needed for smbwrapper.
4134 for ac_func in syscall
4136 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_func" >&5
4138 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 /* System header to define __stub macros and hopefully few prototypes,
4145 which can conflict with char $ac_func(); below. */
4147 /* Override any gcc2 internal prototype to avoid an error. */
4148 /* We use char because int might match the return type of a gcc2
4149 builtin and then its argument prototype would still apply. */
4155 /* The GNU C library defines this for functions which it implements
4156 to always fail with ENOSYS. Some functions are actually named
4157 something starting with __ and the normal name is an alias. */
4158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 eval "ac_cv_func_$ac_func=yes"
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 eval "ac_cv_func_$ac_func=no"
4178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4181 cat >> confdefs.h <<EOF
4182 #define $ac_tr_func 1
4186 echo "$ac_t""no" 1>&6
4191 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_func" >&5
4195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 /* System header to define __stub macros and hopefully few prototypes,
4202 which can conflict with char $ac_func(); below. */
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4212 /* The GNU C library defines this for functions which it implements
4213 to always fail with ENOSYS. Some functions are actually named
4214 something starting with __ and the normal name is an alias. */
4215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4225 eval "ac_cv_func_$ac_func=yes"
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4230 eval "ac_cv_func_$ac_func=no"
4235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4238 cat >> confdefs.h <<EOF
4239 #define $ac_tr_func 1
4243 echo "$ac_t""no" 1>&6
4247 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_func" >&5
4251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* System header to define __stub macros and hopefully few prototypes,
4258 which can conflict with char $ac_func(); below. */
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4268 /* The GNU C library defines this for functions which it implements
4269 to always fail with ENOSYS. Some functions are actually named
4270 something starting with __ and the normal name is an alias. */
4271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4281 eval "ac_cv_func_$ac_func=yes"
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4286 eval "ac_cv_func_$ac_func=no"
4291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4294 cat >> confdefs.h <<EOF
4295 #define $ac_tr_func 1
4299 echo "$ac_t""no" 1>&6
4303 for ac_func in __getcwd _getcwd
4305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4306 echo "configure:4307: checking for $ac_func" >&5
4307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 /* System header to define __stub macros and hopefully few prototypes,
4314 which can conflict with char $ac_func(); below. */
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4324 /* The GNU C library defines this for functions which it implements
4325 to always fail with ENOSYS. Some functions are actually named
4326 something starting with __ and the normal name is an alias. */
4327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4335 if { (eval echo configure:4336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4337 eval "ac_cv_func_$ac_func=yes"
4339 echo "configure: failed program was:" >&5
4340 cat conftest.$ac_ext >&5
4342 eval "ac_cv_func_$ac_func=no"
4347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4350 cat >> confdefs.h <<EOF
4351 #define $ac_tr_func 1
4355 echo "$ac_t""no" 1>&6
4359 for ac_func in __xstat __fxstat __lxstat
4361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_func" >&5
4363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 /* System header to define __stub macros and hopefully few prototypes,
4370 which can conflict with char $ac_func(); below. */
4372 /* Override any gcc2 internal prototype to avoid an error. */
4373 /* We use char because int might match the return type of a gcc2
4374 builtin and then its argument prototype would still apply. */
4380 /* The GNU C library defines this for functions which it implements
4381 to always fail with ENOSYS. Some functions are actually named
4382 something starting with __ and the normal name is an alias. */
4383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393 eval "ac_cv_func_$ac_func=yes"
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4398 eval "ac_cv_func_$ac_func=no"
4403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4406 cat >> confdefs.h <<EOF
4407 #define $ac_tr_func 1
4411 echo "$ac_t""no" 1>&6
4415 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4418 echo "configure:4419: checking for $ac_func" >&5
4419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char $ac_func(); below. */
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 /* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4436 /* The GNU C library defines this for functions which it implements
4437 to always fail with ENOSYS. Some functions are actually named
4438 something starting with __ and the normal name is an alias. */
4439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4447 if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4449 eval "ac_cv_func_$ac_func=yes"
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4454 eval "ac_cv_func_$ac_func=no"
4459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4462 cat >> confdefs.h <<EOF
4463 #define $ac_tr_func 1
4467 echo "$ac_t""no" 1>&6
4471 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_func" >&5
4475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 /* System header to define __stub macros and hopefully few prototypes,
4482 which can conflict with char $ac_func(); below. */
4484 /* Override any gcc2 internal prototype to avoid an error. */
4485 /* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4492 /* The GNU C library defines this for functions which it implements
4493 to always fail with ENOSYS. Some functions are actually named
4494 something starting with __ and the normal name is an alias. */
4495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 eval "ac_cv_func_$ac_func=yes"
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 eval "ac_cv_func_$ac_func=no"
4515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4518 cat >> confdefs.h <<EOF
4519 #define $ac_tr_func 1
4523 echo "$ac_t""no" 1>&6
4527 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_func" >&5
4531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 /* System header to define __stub macros and hopefully few prototypes,
4538 which can conflict with char $ac_func(); below. */
4540 /* Override any gcc2 internal prototype to avoid an error. */
4541 /* We use char because int might match the return type of a gcc2
4542 builtin and then its argument prototype would still apply. */
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4561 eval "ac_cv_func_$ac_func=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 eval "ac_cv_func_$ac_func=no"
4571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4574 cat >> confdefs.h <<EOF
4575 #define $ac_tr_func 1
4579 echo "$ac_t""no" 1>&6
4583 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_func" >&5
4587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* System header to define __stub macros and hopefully few prototypes,
4594 which can conflict with char $ac_func(); below. */
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4604 /* The GNU C library defines this for functions which it implements
4605 to always fail with ENOSYS. Some functions are actually named
4606 something starting with __ and the normal name is an alias. */
4607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4615 if { (eval echo configure:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 eval "ac_cv_func_$ac_func=yes"
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4622 eval "ac_cv_func_$ac_func=no"
4627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4628 echo "$ac_t""yes" 1>&6
4629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4630 cat >> confdefs.h <<EOF
4631 #define $ac_tr_func 1
4635 echo "$ac_t""no" 1>&6
4639 for ac_func in _write __write _fork __fork
4641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4642 echo "configure:4643: checking for $ac_func" >&5
4643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* System header to define __stub macros and hopefully few prototypes,
4650 which can conflict with char $ac_func(); below. */
4652 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4660 /* The GNU C library defines this for functions which it implements
4661 to always fail with ENOSYS. Some functions are actually named
4662 something starting with __ and the normal name is an alias. */
4663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673 eval "ac_cv_func_$ac_func=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_func_$ac_func=no"
4683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_func 1
4691 echo "$ac_t""no" 1>&6
4695 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_func" >&5
4699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* System header to define __stub macros and hopefully few prototypes,
4706 which can conflict with char $ac_func(); below. */
4708 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_func_$ac_func=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_func_$ac_func=no"
4739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4742 cat >> confdefs.h <<EOF
4743 #define $ac_tr_func 1
4747 echo "$ac_t""no" 1>&6
4751 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4754 echo "configure:4755: checking for $ac_func" >&5
4755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4756 echo $ac_n "(cached) $ac_c" 1>&6
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func(); below. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4772 /* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4785 eval "ac_cv_func_$ac_func=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_func_$ac_func=no"
4795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4798 cat >> confdefs.h <<EOF
4799 #define $ac_tr_func 1
4803 echo "$ac_t""no" 1>&6
4807 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4810 echo "configure:4811: checking for $ac_func" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char $ac_func(); below. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4828 /* The GNU C library defines this for functions which it implements
4829 to always fail with ENOSYS. Some functions are actually named
4830 something starting with __ and the normal name is an alias. */
4831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 eval "ac_cv_func_$ac_func=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 eval "ac_cv_func_$ac_func=no"
4851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4852 echo "$ac_t""yes" 1>&6
4853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4854 cat >> confdefs.h <<EOF
4855 #define $ac_tr_func 1
4859 echo "$ac_t""no" 1>&6
4863 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4866 echo "configure:4867: checking for $ac_func" >&5
4867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 cat > conftest.$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 /* System header to define __stub macros and hopefully few prototypes,
4874 which can conflict with char $ac_func(); below. */
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4884 /* The GNU C library defines this for functions which it implements
4885 to always fail with ENOSYS. Some functions are actually named
4886 something starting with __ and the normal name is an alias. */
4887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 eval "ac_cv_func_$ac_func=yes"
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 eval "ac_cv_func_$ac_func=no"
4907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4910 cat >> confdefs.h <<EOF
4911 #define $ac_tr_func 1
4915 echo "$ac_t""no" 1>&6
4919 for ac_func in open64 _open64 __open64 creat64
4921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4922 echo "configure:4923: checking for $ac_func" >&5
4923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4926 cat > conftest.$ac_ext <<EOF
4927 #line 4928 "configure"
4928 #include "confdefs.h"
4929 /* System header to define __stub macros and hopefully few prototypes,
4930 which can conflict with char $ac_func(); below. */
4932 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4940 /* The GNU C library defines this for functions which it implements
4941 to always fail with ENOSYS. Some functions are actually named
4942 something starting with __ and the normal name is an alias. */
4943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4951 if { (eval echo configure:4952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4953 eval "ac_cv_func_$ac_func=yes"
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4958 eval "ac_cv_func_$ac_func=no"
4963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4966 cat >> confdefs.h <<EOF
4967 #define $ac_tr_func 1
4971 echo "$ac_t""no" 1>&6
4977 # Check for the functions putprpwnam, set_auth_parameters,
4978 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
4979 # Needed for OSF1 and HPUX.
4983 *-lsecurity*) for ac_func in putprpwnam
4985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4986 echo "configure:4987: checking for $ac_func" >&5
4987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993 /* System header to define __stub macros and hopefully few prototypes,
4994 which can conflict with char $ac_func(); below. */
4996 /* Override any gcc2 internal prototype to avoid an error. */
4997 /* We use char because int might match the return type of a gcc2
4998 builtin and then its argument prototype would still apply. */
5004 /* The GNU C library defines this for functions which it implements
5005 to always fail with ENOSYS. Some functions are actually named
5006 something starting with __ and the normal name is an alias. */
5007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5015 if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5017 eval "ac_cv_func_$ac_func=yes"
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5022 eval "ac_cv_func_$ac_func=no"
5027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5030 cat >> confdefs.h <<EOF
5031 #define $ac_tr_func 1
5035 echo "$ac_t""no" 1>&6
5039 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5040 echo "configure:5041: checking for putprpwnam in -lsecurity" >&5
5041 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 ac_save_LIBS="$LIBS"
5046 LIBS="-lsecurity $LIBS"
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5050 /* Override any gcc2 internal prototype to avoid an error. */
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_lib_$ac_lib_var=yes"
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_lib_$ac_lib_var=no"
5069 LIBS="$ac_save_LIBS"
5072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5076 cat >> confdefs.h <<EOF
5077 #define $ac_tr_lib 1
5080 LIBS="-lsecurity $LIBS"
5083 echo "$ac_t""no" 1>&6
5086 for ac_func in putprpwnam
5088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5089 echo "configure:5090: checking for $ac_func" >&5
5090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5096 /* System header to define __stub macros and hopefully few prototypes,
5097 which can conflict with char $ac_func(); below. */
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5107 /* The GNU C library defines this for functions which it implements
5108 to always fail with ENOSYS. Some functions are actually named
5109 something starting with __ and the normal name is an alias. */
5110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5120 eval "ac_cv_func_$ac_func=yes"
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5125 eval "ac_cv_func_$ac_func=no"
5130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5131 echo "$ac_t""yes" 1>&6
5132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5133 cat >> confdefs.h <<EOF
5134 #define $ac_tr_func 1
5138 echo "$ac_t""no" 1>&6
5146 *-lsec*) for ac_func in putprpwnam
5148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5149 echo "configure:5150: checking for $ac_func" >&5
5150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5153 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156 /* System header to define __stub macros and hopefully few prototypes,
5157 which can conflict with char $ac_func(); below. */
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5167 /* The GNU C library defines this for functions which it implements
5168 to always fail with ENOSYS. Some functions are actually named
5169 something starting with __ and the normal name is an alias. */
5170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5180 eval "ac_cv_func_$ac_func=yes"
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 eval "ac_cv_func_$ac_func=no"
5190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5193 cat >> confdefs.h <<EOF
5194 #define $ac_tr_func 1
5198 echo "$ac_t""no" 1>&6
5202 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5203 echo "configure:5204: checking for putprpwnam in -lsec" >&5
5204 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 ac_save_LIBS="$LIBS"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5213 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5224 eval "ac_cv_lib_$ac_lib_var=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5229 eval "ac_cv_lib_$ac_lib_var=no"
5232 LIBS="$ac_save_LIBS"
5235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5236 echo "$ac_t""yes" 1>&6
5237 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5238 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5239 cat >> confdefs.h <<EOF
5240 #define $ac_tr_lib 1
5246 echo "$ac_t""no" 1>&6
5249 for ac_func in putprpwnam
5251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_func" >&5
5253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char $ac_func(); below. */
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5270 /* The GNU C library defines this for functions which it implements
5271 to always fail with ENOSYS. Some functions are actually named
5272 something starting with __ and the normal name is an alias. */
5273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5281 if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5283 eval "ac_cv_func_$ac_func=yes"
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5288 eval "ac_cv_func_$ac_func=no"
5293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5294 echo "$ac_t""yes" 1>&6
5295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5296 cat >> confdefs.h <<EOF
5297 #define $ac_tr_func 1
5301 echo "$ac_t""no" 1>&6
5310 *-lsecurity*) for ac_func in set_auth_parameters
5312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_func" >&5
5314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func(); below. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5331 /* The GNU C library defines this for functions which it implements
5332 to always fail with ENOSYS. Some functions are actually named
5333 something starting with __ and the normal name is an alias. */
5334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 eval "ac_cv_func_$ac_func=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 eval "ac_cv_func_$ac_func=no"
5354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5357 cat >> confdefs.h <<EOF
5358 #define $ac_tr_func 1
5362 echo "$ac_t""no" 1>&6
5366 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5367 echo "configure:5368: checking for set_auth_parameters in -lsecurity" >&5
5368 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 ac_save_LIBS="$LIBS"
5373 LIBS="-lsecurity $LIBS"
5374 cat > conftest.$ac_ext <<EOF
5375 #line 5376 "configure"
5376 #include "confdefs.h"
5377 /* Override any gcc2 internal prototype to avoid an error. */
5378 /* We use char because int might match the return type of a gcc2
5379 builtin and then its argument prototype would still apply. */
5380 char set_auth_parameters();
5383 set_auth_parameters()
5386 if { (eval echo configure:5387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5388 eval "ac_cv_lib_$ac_lib_var=yes"
5390 echo "configure: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5393 eval "ac_cv_lib_$ac_lib_var=no"
5396 LIBS="$ac_save_LIBS"
5399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5400 echo "$ac_t""yes" 1>&6
5401 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5403 cat >> confdefs.h <<EOF
5404 #define $ac_tr_lib 1
5407 LIBS="-lsecurity $LIBS"
5410 echo "$ac_t""no" 1>&6
5413 for ac_func in set_auth_parameters
5415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5416 echo "configure:5417: checking for $ac_func" >&5
5417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5423 /* System header to define __stub macros and hopefully few prototypes,
5424 which can conflict with char $ac_func(); below. */
5426 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5434 /* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5447 eval "ac_cv_func_$ac_func=yes"
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 eval "ac_cv_func_$ac_func=no"
5457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5458 echo "$ac_t""yes" 1>&6
5459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5460 cat >> confdefs.h <<EOF
5461 #define $ac_tr_func 1
5465 echo "$ac_t""no" 1>&6
5473 *-lsec*) for ac_func in set_auth_parameters
5475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5476 echo "configure:5477: checking for $ac_func" >&5
5477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 /* System header to define __stub macros and hopefully few prototypes,
5484 which can conflict with char $ac_func(); below. */
5486 /* Override any gcc2 internal prototype to avoid an error. */
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5494 /* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
5497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507 eval "ac_cv_func_$ac_func=yes"
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5512 eval "ac_cv_func_$ac_func=no"
5517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5518 echo "$ac_t""yes" 1>&6
5519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5520 cat >> confdefs.h <<EOF
5521 #define $ac_tr_func 1
5525 echo "$ac_t""no" 1>&6
5529 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5530 echo "configure:5531: checking for set_auth_parameters in -lsec" >&5
5531 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5533 echo $ac_n "(cached) $ac_c" 1>&6
5535 ac_save_LIBS="$LIBS"
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5543 char set_auth_parameters();
5546 set_auth_parameters()
5549 if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 eval "ac_cv_lib_$ac_lib_var=yes"
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5556 eval "ac_cv_lib_$ac_lib_var=no"
5559 LIBS="$ac_save_LIBS"
5562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5563 echo "$ac_t""yes" 1>&6
5564 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5566 cat >> confdefs.h <<EOF
5567 #define $ac_tr_lib 1
5573 echo "$ac_t""no" 1>&6
5576 for ac_func in set_auth_parameters
5578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5579 echo "configure:5580: checking for $ac_func" >&5
5580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 /* System header to define __stub macros and hopefully few prototypes,
5587 which can conflict with char $ac_func(); below. */
5589 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5597 /* The GNU C library defines this for functions which it implements
5598 to always fail with ENOSYS. Some functions are actually named
5599 something starting with __ and the normal name is an alias. */
5600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5610 eval "ac_cv_func_$ac_func=yes"
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 eval "ac_cv_func_$ac_func=no"
5620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5621 echo "$ac_t""yes" 1>&6
5622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5623 cat >> confdefs.h <<EOF
5624 #define $ac_tr_func 1
5628 echo "$ac_t""no" 1>&6
5637 *-lsecurity*) for ac_func in getspnam
5639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5640 echo "configure:5641: checking for $ac_func" >&5
5641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5647 /* System header to define __stub macros and hopefully few prototypes,
5648 which can conflict with char $ac_func(); below. */
5650 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5671 eval "ac_cv_func_$ac_func=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 eval "ac_cv_func_$ac_func=no"
5681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684 cat >> confdefs.h <<EOF
5685 #define $ac_tr_func 1
5689 echo "$ac_t""no" 1>&6
5693 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5694 echo "configure:5695: checking for getspnam in -lsecurity" >&5
5695 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 ac_save_LIBS="$LIBS"
5700 LIBS="-lsecurity $LIBS"
5701 cat > conftest.$ac_ext <<EOF
5702 #line 5703 "configure"
5703 #include "confdefs.h"
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5713 if { (eval echo configure:5714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 eval "ac_cv_lib_$ac_lib_var=yes"
5717 echo "configure: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 eval "ac_cv_lib_$ac_lib_var=no"
5723 LIBS="$ac_save_LIBS"
5726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5727 echo "$ac_t""yes" 1>&6
5728 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5729 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5730 cat >> confdefs.h <<EOF
5731 #define $ac_tr_lib 1
5734 LIBS="-lsecurity $LIBS"
5737 echo "$ac_t""no" 1>&6
5740 for ac_func in getspnam
5742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5743 echo "configure:5744: checking for $ac_func" >&5
5744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5750 /* System header to define __stub macros and hopefully few prototypes,
5751 which can conflict with char $ac_func(); below. */
5753 /* Override any gcc2 internal prototype to avoid an error. */
5754 /* We use char because int might match the return type of a gcc2
5755 builtin and then its argument prototype would still apply. */
5761 /* The GNU C library defines this for functions which it implements
5762 to always fail with ENOSYS. Some functions are actually named
5763 something starting with __ and the normal name is an alias. */
5764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5774 eval "ac_cv_func_$ac_func=yes"
5776 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5779 eval "ac_cv_func_$ac_func=no"
5784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5785 echo "$ac_t""yes" 1>&6
5786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5787 cat >> confdefs.h <<EOF
5788 #define $ac_tr_func 1
5792 echo "$ac_t""no" 1>&6
5800 *-lsec*) for ac_func in getspnam
5802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5803 echo "configure:5804: checking for $ac_func" >&5
5804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5810 /* System header to define __stub macros and hopefully few prototypes,
5811 which can conflict with char $ac_func(); below. */
5813 /* Override any gcc2 internal prototype to avoid an error. */
5814 /* We use char because int might match the return type of a gcc2
5815 builtin and then its argument prototype would still apply. */
5821 /* The GNU C library defines this for functions which it implements
5822 to always fail with ENOSYS. Some functions are actually named
5823 something starting with __ and the normal name is an alias. */
5824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5832 if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 eval "ac_cv_func_$ac_func=yes"
5836 echo "configure: failed program was:" >&5
5837 cat conftest.$ac_ext >&5
5839 eval "ac_cv_func_$ac_func=no"
5844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5845 echo "$ac_t""yes" 1>&6
5846 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5847 cat >> confdefs.h <<EOF
5848 #define $ac_tr_func 1
5852 echo "$ac_t""no" 1>&6
5856 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5857 echo "configure:5858: checking for getspnam in -lsec" >&5
5858 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5862 ac_save_LIBS="$LIBS"
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5878 eval "ac_cv_lib_$ac_lib_var=yes"
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5883 eval "ac_cv_lib_$ac_lib_var=no"
5886 LIBS="$ac_save_LIBS"
5889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5890 echo "$ac_t""yes" 1>&6
5891 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5893 cat >> confdefs.h <<EOF
5894 #define $ac_tr_lib 1
5900 echo "$ac_t""no" 1>&6
5903 for ac_func in getspnam
5905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5906 echo "configure:5907: checking for $ac_func" >&5
5907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5913 /* System header to define __stub macros and hopefully few prototypes,
5914 which can conflict with char $ac_func(); below. */
5916 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5935 if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5937 eval "ac_cv_func_$ac_func=yes"
5939 echo "configure: failed program was:" >&5
5940 cat conftest.$ac_ext >&5
5942 eval "ac_cv_func_$ac_func=no"
5947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5948 echo "$ac_t""yes" 1>&6
5949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5950 cat >> confdefs.h <<EOF
5951 #define $ac_tr_func 1
5955 echo "$ac_t""no" 1>&6
5964 *-lsecurity*) for ac_func in bigcrypt
5966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5967 echo "configure:5968: checking for $ac_func" >&5
5968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 /* System header to define __stub macros and hopefully few prototypes,
5975 which can conflict with char $ac_func(); below. */
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 /* We use char because int might match the return type of a gcc2
5979 builtin and then its argument prototype would still apply. */
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 eval "ac_cv_func_$ac_func=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_func_$ac_func=no"
6008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6009 echo "$ac_t""yes" 1>&6
6010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6011 cat >> confdefs.h <<EOF
6012 #define $ac_tr_func 1
6016 echo "$ac_t""no" 1>&6
6020 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6021 echo "configure:6022: checking for bigcrypt in -lsecurity" >&5
6022 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 ac_save_LIBS="$LIBS"
6027 LIBS="-lsecurity $LIBS"
6028 cat > conftest.$ac_ext <<EOF
6029 #line 6030 "configure"
6030 #include "confdefs.h"
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6040 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6042 eval "ac_cv_lib_$ac_lib_var=yes"
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6047 eval "ac_cv_lib_$ac_lib_var=no"
6050 LIBS="$ac_save_LIBS"
6053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6054 echo "$ac_t""yes" 1>&6
6055 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6056 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6057 cat >> confdefs.h <<EOF
6058 #define $ac_tr_lib 1
6061 LIBS="-lsecurity $LIBS"
6064 echo "$ac_t""no" 1>&6
6067 for ac_func in bigcrypt
6069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6070 echo "configure:6071: checking for $ac_func" >&5
6071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 cat > conftest.$ac_ext <<EOF
6075 #line 6076 "configure"
6076 #include "confdefs.h"
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char $ac_func(); below. */
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6088 /* The GNU C library defines this for functions which it implements
6089 to always fail with ENOSYS. Some functions are actually named
6090 something starting with __ and the normal name is an alias. */
6091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6099 if { (eval echo configure:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6101 eval "ac_cv_func_$ac_func=yes"
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6106 eval "ac_cv_func_$ac_func=no"
6111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6112 echo "$ac_t""yes" 1>&6
6113 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6114 cat >> confdefs.h <<EOF
6115 #define $ac_tr_func 1
6119 echo "$ac_t""no" 1>&6
6127 *-lsec*) for ac_func in bigcrypt
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6148 /* The GNU C library defines this for functions which it implements
6149 to always fail with ENOSYS. Some functions are actually named
6150 something starting with __ and the normal name is an alias. */
6151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6159 if { (eval echo configure:6160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6161 eval "ac_cv_func_$ac_func=yes"
6163 echo "configure: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6166 eval "ac_cv_func_$ac_func=no"
6171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6172 echo "$ac_t""yes" 1>&6
6173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6174 cat >> confdefs.h <<EOF
6175 #define $ac_tr_func 1
6179 echo "$ac_t""no" 1>&6
6183 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6184 echo "configure:6185: checking for bigcrypt in -lsec" >&5
6185 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6187 echo $ac_n "(cached) $ac_c" 1>&6
6189 ac_save_LIBS="$LIBS"
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 /* Override any gcc2 internal prototype to avoid an error. */
6195 /* We use char because int might match the return type of a gcc2
6196 builtin and then its argument prototype would still apply. */
6203 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6205 eval "ac_cv_lib_$ac_lib_var=yes"
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6210 eval "ac_cv_lib_$ac_lib_var=no"
6213 LIBS="$ac_save_LIBS"
6216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6217 echo "$ac_t""yes" 1>&6
6218 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6220 cat >> confdefs.h <<EOF
6221 #define $ac_tr_lib 1
6227 echo "$ac_t""no" 1>&6
6230 for ac_func in bigcrypt
6232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6233 echo "configure:6234: checking for $ac_func" >&5
6234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6235 echo $ac_n "(cached) $ac_c" 1>&6
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure"
6239 #include "confdefs.h"
6240 /* System header to define __stub macros and hopefully few prototypes,
6241 which can conflict with char $ac_func(); below. */
6243 /* Override any gcc2 internal prototype to avoid an error. */
6244 /* We use char because int might match the return type of a gcc2
6245 builtin and then its argument prototype would still apply. */
6251 /* The GNU C library defines this for functions which it implements
6252 to always fail with ENOSYS. Some functions are actually named
6253 something starting with __ and the normal name is an alias. */
6254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6264 eval "ac_cv_func_$ac_func=yes"
6266 echo "configure: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6269 eval "ac_cv_func_$ac_func=no"
6274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6277 cat >> confdefs.h <<EOF
6278 #define $ac_tr_func 1
6282 echo "$ac_t""no" 1>&6
6291 *-lsecurity*) for ac_func in getprpwnam
6293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6294 echo "configure:6295: checking for $ac_func" >&5
6295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6296 echo $ac_n "(cached) $ac_c" 1>&6
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure"
6300 #include "confdefs.h"
6301 /* System header to define __stub macros and hopefully few prototypes,
6302 which can conflict with char $ac_func(); below. */
6304 /* Override any gcc2 internal prototype to avoid an error. */
6305 /* We use char because int might match the return type of a gcc2
6306 builtin and then its argument prototype would still apply. */
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325 eval "ac_cv_func_$ac_func=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_func_$ac_func=no"
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_func 1
6343 echo "$ac_t""no" 1>&6
6347 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6348 echo "configure:6349: checking for getprpwnam in -lsecurity" >&5
6349 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 ac_save_LIBS="$LIBS"
6354 LIBS="-lsecurity $LIBS"
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6367 if { (eval echo configure:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6369 eval "ac_cv_lib_$ac_lib_var=yes"
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 eval "ac_cv_lib_$ac_lib_var=no"
6377 LIBS="$ac_save_LIBS"
6380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6384 cat >> confdefs.h <<EOF
6385 #define $ac_tr_lib 1
6388 LIBS="-lsecurity $LIBS"
6391 echo "$ac_t""no" 1>&6
6394 for ac_func in getprpwnam
6396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6397 echo "configure:6398: checking for $ac_func" >&5
6398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* System header to define __stub macros and hopefully few prototypes,
6405 which can conflict with char $ac_func(); below. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 /* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6415 /* The GNU C library defines this for functions which it implements
6416 to always fail with ENOSYS. Some functions are actually named
6417 something starting with __ and the normal name is an alias. */
6418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 eval "ac_cv_func_$ac_func=yes"
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 eval "ac_cv_func_$ac_func=no"
6438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6439 echo "$ac_t""yes" 1>&6
6440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6441 cat >> confdefs.h <<EOF
6442 #define $ac_tr_func 1
6446 echo "$ac_t""no" 1>&6
6454 *-lsec*) for ac_func in getprpwnam
6456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6457 echo "configure:6458: checking for $ac_func" >&5
6458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char $ac_func(); below. */
6467 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6475 /* The GNU C library defines this for functions which it implements
6476 to always fail with ENOSYS. Some functions are actually named
6477 something starting with __ and the normal name is an alias. */
6478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6486 if { (eval echo configure:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6488 eval "ac_cv_func_$ac_func=yes"
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 eval "ac_cv_func_$ac_func=no"
6498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6499 echo "$ac_t""yes" 1>&6
6500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6501 cat >> confdefs.h <<EOF
6502 #define $ac_tr_func 1
6506 echo "$ac_t""no" 1>&6
6510 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6511 echo "configure:6512: checking for getprpwnam in -lsec" >&5
6512 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 ac_save_LIBS="$LIBS"
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6522 /* We use char because int might match the return type of a gcc2
6523 builtin and then its argument prototype would still apply. */
6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6532 eval "ac_cv_lib_$ac_lib_var=yes"
6534 echo "configure: failed program was:" >&5
6535 cat conftest.$ac_ext >&5
6537 eval "ac_cv_lib_$ac_lib_var=no"
6540 LIBS="$ac_save_LIBS"
6543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6546 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6547 cat >> confdefs.h <<EOF
6548 #define $ac_tr_lib 1
6554 echo "$ac_t""no" 1>&6
6557 for ac_func in getprpwnam
6559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6560 echo "configure:6561: checking for $ac_func" >&5
6561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 /* System header to define __stub macros and hopefully few prototypes,
6568 which can conflict with char $ac_func(); below. */
6570 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6578 /* The GNU C library defines this for functions which it implements
6579 to always fail with ENOSYS. Some functions are actually named
6580 something starting with __ and the normal name is an alias. */
6581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6589 if { (eval echo configure:6590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6591 eval "ac_cv_func_$ac_func=yes"
6593 echo "configure: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6596 eval "ac_cv_func_$ac_func=no"
6601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6602 echo "$ac_t""yes" 1>&6
6603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6604 cat >> confdefs.h <<EOF
6605 #define $ac_tr_func 1
6609 echo "$ac_t""no" 1>&6
6617 # this bit needs to be modified for each OS that is suported by
6618 # smbwrapper. You need to specify how to created a shared library and
6619 # how to compile C code to produce PIC object files
6621 # these are the defaults, good for lots of systems
6625 # and these are for particular systems
6627 *linux*) cat >> confdefs.h <<\EOF
6631 *solaris*) cat >> confdefs.h <<\EOF
6637 *sunos*) cat >> confdefs.h <<\EOF
6643 *bsd*) LDSHFLAGS="-shared -Bshareable"
6645 *irix*) cat >> confdefs.h <<\EOF
6649 ATTEMPT_WRAP32_BUILD=yes
6651 *aix*) cat >> confdefs.h <<\EOF
6655 *hpux*) cat >> confdefs.h <<\EOF
6659 *qnx*) cat >> confdefs.h <<\EOF
6663 *osf*) cat >> confdefs.h <<\EOF
6667 *sco*) cat >> confdefs.h <<\EOF
6671 *next2*) cat >> confdefs.h <<\EOF
6675 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
6676 set dummy groff; ac_word=$2
6677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6678 echo "configure:6679: checking for $ac_word" >&5
6679 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6682 if test -n "$ROFF"; then
6683 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
6685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6687 for ac_dir in $ac_dummy; do
6688 test -z "$ac_dir" && ac_dir=.
6689 if test -f $ac_dir/$ac_word; then
6690 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
6697 ROFF="$ac_cv_prog_ROFF"
6698 if test -n "$ROFF"; then
6699 echo "$ac_t""$ROFF" 1>&6
6701 echo "$ac_t""no" 1>&6
6704 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6705 echo "configure:6706: checking for strcasecmp in -lresolv" >&5
6706 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 ac_save_LIBS="$LIBS"
6711 LIBS="-lresolv $LIBS"
6712 cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6724 if { (eval echo configure:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6726 eval "ac_cv_lib_$ac_lib_var=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 eval "ac_cv_lib_$ac_lib_var=no"
6734 LIBS="$ac_save_LIBS"
6737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6738 echo "$ac_t""yes" 1>&6
6739 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6741 cat >> confdefs.h <<EOF
6742 #define $ac_tr_lib 1
6745 LIBS="-lresolv $LIBS"
6748 echo "$ac_t""no" 1>&6
6753 # try to work out how to produce pic code with this compiler
6755 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
6756 echo "configure:6757: checking whether ${CC-cc} accepts -fpic" >&5
6757 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
6758 echo $ac_n "(cached) $ac_c" 1>&6
6760 echo 'void f(){}' > conftest.c
6761 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
6762 ac_cv_prog_cc_fpic=yes
6764 ac_cv_prog_cc_fpic=no
6770 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
6771 if test $ac_cv_prog_cc_fpic = yes; then
6774 if test x$PICFLAG = x; then
6775 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
6776 echo "configure:6777: checking whether ${CC-cc} accepts -Kpic" >&5
6777 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6780 echo 'void f(){}' > conftest.c
6781 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
6782 ac_cv_prog_cc_Kpic=yes
6784 ac_cv_prog_cc_Kpic=no
6790 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
6791 if test $ac_cv_prog_cc_Kpic = yes; then
6795 if test x$PICFLAG = x; then
6796 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
6797 echo "configure:6798: checking whether ${CC-cc} accepts -KPIC" >&5
6798 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
6799 echo $ac_n "(cached) $ac_c" 1>&6
6801 echo 'void f(){}' > conftest.c
6802 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
6803 ac_cv_prog_cc_KPIC=yes
6805 ac_cv_prog_cc_KPIC=no
6811 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
6812 if test $ac_cv_prog_cc_KPIC = yes; then
6819 echo $ac_n "checking for long long""... $ac_c" 1>&6
6820 echo "configure:6821: checking for long long" >&5
6821 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6825 if test "$cross_compiling" = yes; then
6826 samba_cv_have_longlong=cross
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6832 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6836 samba_cv_have_longlong=yes
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 samba_cv_have_longlong=no
6848 echo "$ac_t""$samba_cv_have_longlong" 1>&6
6849 if test x"$samba_cv_have_longlong" = x"yes"; then
6850 cat >> confdefs.h <<\EOF
6851 #define HAVE_LONGLONG 1
6856 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
6857 echo "configure:6858: checking for 64 bit off_t" >&5
6858 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6862 if test "$cross_compiling" = yes; then
6863 samba_cv_SIZEOF_OFF_T=cross
6865 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6869 #include <sys/stat.h>
6870 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6874 samba_cv_SIZEOF_OFF_T=yes
6876 echo "configure: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 samba_cv_SIZEOF_OFF_T=no
6886 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
6887 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
6888 cat >> confdefs.h <<\EOF
6889 #define SIZEOF_OFF_T 8
6894 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
6895 echo "configure:6896: checking for off64_t" >&5
6896 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6900 if test "$cross_compiling" = yes; then
6901 samba_cv_HAVE_OFF64_T=cross
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6907 #include <sys/stat.h>
6908 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6912 samba_cv_HAVE_OFF64_T=yes
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 samba_cv_HAVE_OFF64_T=no
6924 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
6925 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
6926 cat >> confdefs.h <<\EOF
6927 #define HAVE_OFF64_T 1
6932 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
6933 echo "configure:6934: checking for 64 bit ino_t" >&5
6934 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
6935 echo $ac_n "(cached) $ac_c" 1>&6
6938 if test "$cross_compiling" = yes; then
6939 samba_cv_SIZEOF_INO_T=cross
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6945 #include <sys/stat.h>
6946 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6950 samba_cv_SIZEOF_INO_T=yes
6952 echo "configure: failed program was:" >&5
6953 cat conftest.$ac_ext >&5
6955 samba_cv_SIZEOF_INO_T=no
6962 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
6963 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
6964 cat >> confdefs.h <<\EOF
6965 #define SIZEOF_INO_T 8
6970 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
6971 echo "configure:6972: checking for ino64_t" >&5
6972 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6976 if test "$cross_compiling" = yes; then
6977 samba_cv_HAVE_INO64_T=cross
6979 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure"
6981 #include "confdefs.h"
6983 #include <sys/stat.h>
6984 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6988 samba_cv_HAVE_INO64_T=yes
6990 echo "configure: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6993 samba_cv_HAVE_INO64_T=no
7000 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7001 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7002 cat >> confdefs.h <<\EOF
7003 #define HAVE_INO64_T 1
7008 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7009 echo "configure:7010: checking for union semun" >&5
7010 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7014 if test "$cross_compiling" = yes; then
7015 samba_cv_HAVE_UNION_SEMUN=cross
7017 cat > conftest.$ac_ext <<EOF
7018 #line 7019 "configure"
7019 #include "confdefs.h"
7021 #include <sys/types.h>
7022 #include <sys/ipc.h>
7023 #include <sys/sem.h>
7024 main() { union semun ss; exit(0); }
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7028 samba_cv_HAVE_UNION_SEMUN=yes
7030 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5
7033 samba_cv_HAVE_UNION_SEMUN=no
7040 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7041 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7042 cat >> confdefs.h <<\EOF
7043 #define HAVE_UNION_SEMUN 1
7048 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7049 echo "configure:7050: checking for unsigned char" >&5
7050 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7054 if test "$cross_compiling" = yes; then
7055 samba_cv_HAVE_UNSIGNED_CHAR=cross
7057 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure"
7059 #include "confdefs.h"
7061 main() { char c; c=250; exit((c > 0)?0:1); }
7063 if { (eval echo configure:7064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7065 samba_cv_HAVE_UNSIGNED_CHAR=yes
7067 echo "configure: failed program was:" >&5
7068 cat conftest.$ac_ext >&5
7070 samba_cv_HAVE_UNSIGNED_CHAR=no
7077 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7078 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7079 cat >> confdefs.h <<\EOF
7080 #define HAVE_UNSIGNED_CHAR 1
7085 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7086 echo "configure:7087: checking for sin_len in sock" >&5
7087 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7088 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 #include <sys/types.h>
7095 #include <sys/socket.h>
7096 #include <netinet/in.h>
7098 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7101 if { (eval echo configure:7102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7103 samba_cv_HAVE_SOCK_SIN_LEN=yes
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 samba_cv_HAVE_SOCK_SIN_LEN=no
7113 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7114 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7115 cat >> confdefs.h <<\EOF
7116 #define HAVE_SOCK_SIN_LEN 1
7121 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7122 echo "configure:7123: checking whether seekdir returns void" >&5
7123 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7124 echo $ac_n "(cached) $ac_c" 1>&6
7127 cat > conftest.$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 #include <sys/types.h>
7132 void seekdir(DIR *d, long loc) { return; }
7137 if { (eval echo configure:7138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7139 samba_cv_SEEKDIR_RETURNS_VOID=yes
7141 echo "configure: failed program was:" >&5
7142 cat conftest.$ac_ext >&5
7144 samba_cv_SEEKDIR_RETURNS_VOID=no
7149 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7150 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7151 cat >> confdefs.h <<\EOF
7152 #define SEEKDIR_RETURNS_VOID 1
7157 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7158 echo "configure:7159: checking for __FILE__ macro" >&5
7159 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7160 echo $ac_n "(cached) $ac_c" 1>&6
7163 cat > conftest.$ac_ext <<EOF
7164 #line 7165 "configure"
7165 #include "confdefs.h"
7168 printf("%s\n", __FILE__);
7171 if { (eval echo configure:7172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7173 samba_cv_HAVE_FILE_MACRO=yes
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 samba_cv_HAVE_FILE_MACRO=no
7183 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7184 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7185 cat >> confdefs.h <<\EOF
7186 #define HAVE_FILE_MACRO 1
7191 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7192 echo "configure:7193: checking for __FUNCTION__ macro" >&5
7193 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7202 printf("%s\n", __FUNCTION__);
7205 if { (eval echo configure:7206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7207 samba_cv_HAVE_FUNCTION_MACRO=yes
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7212 samba_cv_HAVE_FUNCTION_MACRO=no
7217 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7218 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7219 cat >> confdefs.h <<\EOF
7220 #define HAVE_FUNCTION_MACRO 1
7225 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7226 echo "configure:7227: checking if gettimeofday takes tz argument" >&5
7227 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7228 echo $ac_n "(cached) $ac_c" 1>&6
7231 if test "$cross_compiling" = yes; then
7232 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7234 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7238 #include <sys/time.h>
7240 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7244 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7246 echo "configure: failed program was:" >&5
7247 cat conftest.$ac_ext >&5
7249 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7256 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7257 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7258 cat >> confdefs.h <<\EOF
7259 #define HAVE_GETTIMEOFDAY_TZ 1
7265 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7266 echo "configure:7267: checking for broken readdir" >&5
7267 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7268 echo $ac_n "(cached) $ac_c" 1>&6
7271 if test "$cross_compiling" = yes; then
7272 samba_cv_HAVE_BROKEN_READDIR=cross
7274 cat > conftest.$ac_ext <<EOF
7275 #line 7276 "configure"
7276 #include "confdefs.h"
7277 #include <sys/types.h>
7279 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7280 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7281 di->d_name[0] == 0) exit(0); exit(1);}
7283 if { (eval echo configure:7284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7285 samba_cv_HAVE_BROKEN_READDIR=yes
7287 echo "configure: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7290 samba_cv_HAVE_BROKEN_READDIR=no
7297 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7298 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7299 cat >> confdefs.h <<\EOF
7300 #define HAVE_BROKEN_READDIR 1
7305 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7306 echo "configure:7307: checking for utimbuf" >&5
7307 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 #include <sys/types.h>
7317 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7320 if { (eval echo configure:7321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7322 samba_cv_HAVE_UTIMBUF=yes
7324 echo "configure: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7327 samba_cv_HAVE_UTIMBUF=no
7332 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7333 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7334 cat >> confdefs.h <<\EOF
7335 #define HAVE_UTIMBUF 1
7340 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7341 echo "configure:7342: checking for kernel oplock type definitions" >&5
7342 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7343 echo $ac_n "(cached) $ac_c" 1>&6
7346 cat > conftest.$ac_ext <<EOF
7347 #line 7348 "configure"
7348 #include "confdefs.h"
7349 #include <sys/types.h>
7352 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7355 if { (eval echo configure:7356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7357 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 samba_cv_HAVE_KERNEL_OPLOCKS=no
7367 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7368 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7369 cat >> confdefs.h <<\EOF
7370 #define HAVE_KERNEL_OPLOCKS 1
7375 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7376 echo "configure:7377: checking for irix specific capabilities" >&5
7377 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7378 echo $ac_n "(cached) $ac_c" 1>&6
7381 if test "$cross_compiling" = yes; then
7382 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 #include <sys/types.h>
7388 #include <sys/capability.h>
7391 if ((cap = cap_get_proc()) == NULL)
7393 cap->cap_effective |= CAP_NETWORK_MGT;
7394 cap->cap_inheritable |= CAP_NETWORK_MGT;
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7402 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7404 echo "configure: failed program was:" >&5
7405 cat conftest.$ac_ext >&5
7407 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7414 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7415 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7416 cat >> confdefs.h <<\EOF
7417 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7423 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7424 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7427 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7428 echo "configure:7429: checking for int16 typedef included by rpc/rpc.h" >&5
7429 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7430 echo $ac_n "(cached) $ac_c" 1>&6
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure"
7435 #include "confdefs.h"
7436 #include <sys/types.h>
7437 #if defined(HAVE_RPC_RPC_H)
7438 #include <rpc/rpc.h>
7444 if { (eval echo configure:7445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7446 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7448 echo "configure: failed program was:" >&5
7449 cat conftest.$ac_ext >&5
7451 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
7456 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7457 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
7458 cat >> confdefs.h <<\EOF
7459 #define HAVE_INT16_FROM_RPC_RPC_H 1
7464 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7465 echo "configure:7466: checking for uint16 typedef included by rpc/rpc.h" >&5
7466 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7467 echo $ac_n "(cached) $ac_c" 1>&6
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 #include <sys/types.h>
7474 #if defined(HAVE_RPC_RPC_H)
7475 #include <rpc/rpc.h>
7481 if { (eval echo configure:7482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7483 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
7485 echo "configure: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7488 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
7493 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7494 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
7495 cat >> confdefs.h <<\EOF
7496 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7501 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7502 echo "configure:7503: checking for int32 typedef included by rpc/rpc.h" >&5
7503 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7504 echo $ac_n "(cached) $ac_c" 1>&6
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7510 #include <sys/types.h>
7511 #if defined(HAVE_RPC_RPC_H)
7512 #include <rpc/rpc.h>
7518 if { (eval echo configure:7519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7520 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7525 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
7530 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7531 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
7532 cat >> confdefs.h <<\EOF
7533 #define HAVE_INT32_FROM_RPC_RPC_H 1
7538 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7539 echo "configure:7540: checking for uint32 typedef included by rpc/rpc.h" >&5
7540 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7541 echo $ac_n "(cached) $ac_c" 1>&6
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7547 #include <sys/types.h>
7548 #if defined(HAVE_RPC_RPC_H)
7549 #include <rpc/rpc.h>
7555 if { (eval echo configure:7556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7557 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
7559 echo "configure: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7562 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
7567 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7568 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
7569 cat >> confdefs.h <<\EOF
7570 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7575 echo $ac_n "checking for test routines""... $ac_c" 1>&6
7576 echo "configure:7577: checking for test routines" >&5
7577 if test "$cross_compiling" = yes; then
7578 echo "configure: warning: cannot run when cross-compiling" 1>&2
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7583 #include "${srcdir-.}/tests/trivial.c"
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7587 echo "$ac_t""yes" 1>&6
7589 echo "configure: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7592 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
7598 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
7599 echo "configure:7600: checking for ftruncate extend" >&5
7600 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7604 if test "$cross_compiling" = yes; then
7605 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
7607 cat > conftest.$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 #include "${srcdir-.}/tests/ftruncate.c"
7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7614 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7619 samba_cv_HAVE_FTRUNCATE_EXTEND=no
7626 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
7627 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
7628 cat >> confdefs.h <<\EOF
7629 #define HAVE_FTRUNCATE_EXTEND 1
7634 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
7635 echo "configure:7636: checking for broken getgroups" >&5
7636 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7640 if test "$cross_compiling" = yes; then
7641 samba_cv_HAVE_BROKEN_GETGROUPS=cross
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 #include "${srcdir-.}/tests/getgroups.c"
7648 if { (eval echo configure:7649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7650 samba_cv_HAVE_BROKEN_GETGROUPS=yes
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7655 samba_cv_HAVE_BROKEN_GETGROUPS=no
7662 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
7663 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
7664 cat >> confdefs.h <<\EOF
7665 #define HAVE_BROKEN_GETGROUPS 1
7670 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
7671 echo "configure:7672: checking whether getpass should be replaced" >&5
7672 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7676 SAVE_CPPFLAGS="$CPPFLAGS"
7677 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7682 #define REPLACE_GETPASS 1
7683 #define NO_CONFIG_H 1
7684 #define main dont_declare_main
7685 #include "${srcdir-.}/lib/getsmbpass.c"
7692 if { (eval echo configure:7693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7694 samba_cv_REPLACE_GETPASS=yes
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7699 samba_cv_REPLACE_GETPASS=no
7702 CPPFLAGS="$SAVE_CPPFLAGS"
7706 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
7707 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
7708 cat >> confdefs.h <<\EOF
7709 #define REPLACE_GETPASS 1
7714 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
7715 echo "configure:7716: checking for broken inet_ntoa" >&5
7716 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7720 if test "$cross_compiling" = yes; then
7721 samba_cv_REPLACE_INET_NTOA=cross
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7728 #include <sys/types.h>
7729 #include <netinet/in.h>
7730 #include <arpa/inet.h>
7731 main() { struct in_addr ip; ip.s_addr = 0x12345678;
7732 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
7733 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
7736 if { (eval echo configure:7737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7738 samba_cv_REPLACE_INET_NTOA=yes
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7743 samba_cv_REPLACE_INET_NTOA=no
7750 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
7751 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
7752 cat >> confdefs.h <<\EOF
7753 #define REPLACE_INET_NTOA 1
7758 echo $ac_n "checking for root""... $ac_c" 1>&6
7759 echo "configure:7760: checking for root" >&5
7760 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7764 if test "$cross_compiling" = yes; then
7765 samba_cv_HAVE_ROOT=cross
7767 cat > conftest.$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 main() { exit(getuid() != 0); }
7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7774 samba_cv_HAVE_ROOT=yes
7776 echo "configure: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7779 samba_cv_HAVE_ROOT=no
7786 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
7787 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
7788 cat >> confdefs.h <<\EOF
7793 echo "configure: warning: running as non-root will disable some tests" 1>&2
7797 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
7798 echo "configure:7799: checking for netmask ifconf" >&5
7799 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7803 if test "$cross_compiling" = yes; then
7804 samba_cv_HAVE_NETMASK_IFCONF=cross
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7810 #define HAVE_NETMASK_IFCONF 1
7812 #include "${srcdir-.}/lib/netmask.c"
7814 if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7816 samba_cv_HAVE_NETMASK_IFCONF=yes
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 samba_cv_HAVE_NETMASK_IFCONF=no
7828 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
7829 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
7830 netmask=yes;cat >> confdefs.h <<\EOF
7831 #define HAVE_NETMASK_IFCONF 1
7836 if test $netmask = no; then
7837 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
7838 echo "configure:7839: checking for netmask ifreq" >&5
7839 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7843 if test "$cross_compiling" = yes; then
7844 samba_cv_HAVE_NETMASK_IFREQ=cross
7846 cat > conftest.$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7850 #define HAVE_NETMASK_IFREQ 1
7852 #include "${srcdir-.}/lib/netmask.c"
7854 if { (eval echo configure:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7856 samba_cv_HAVE_NETMASK_IFREQ=yes
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7861 samba_cv_HAVE_NETMASK_IFREQ=no
7868 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
7869 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
7870 netmask=yes;cat >> confdefs.h <<\EOF
7871 #define HAVE_NETMASK_IFREQ 1
7877 if test $netmask = no; then
7878 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
7879 echo "configure:7880: checking for netmask AIX" >&5
7880 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7884 if test "$cross_compiling" = yes; then
7885 samba_cv_HAVE_NETMASK_AIX=cross
7887 cat > conftest.$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7891 #define HAVE_NETMASK_AIX 1
7893 #include "${srcdir-.}/lib/netmask.c"
7895 if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7897 samba_cv_HAVE_NETMASK_AIX=yes
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7902 samba_cv_HAVE_NETMASK_AIX=no
7909 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
7910 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
7911 netmask=yes;cat >> confdefs.h <<\EOF
7912 #define HAVE_NETMASK_AIX 1
7918 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
7919 echo "configure:7920: checking for trapdoor seteuid" >&5
7920 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7924 if test "$cross_compiling" = yes; then
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7930 #include "${srcdir-.}/tests/trapdoor.c"
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7934 samba_cv_HAVE_TRAPDOOR_UID=no
7936 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5
7939 samba_cv_HAVE_TRAPDOOR_UID=yes
7946 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
7947 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
7948 cat >> confdefs.h <<\EOF
7949 #define HAVE_TRAPDOOR_UID 1
7954 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
7955 echo "configure:7956: checking for shared mmap" >&5
7956 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7960 if test "$cross_compiling" = yes; then
7961 samba_cv_HAVE_SHARED_MMAP=cross
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7966 #include "${srcdir-.}/tests/shared_mmap.c"
7968 if { (eval echo configure:7969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7970 samba_cv_HAVE_SHARED_MMAP=yes
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7975 samba_cv_HAVE_SHARED_MMAP=no
7982 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
7983 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
7984 cat >> confdefs.h <<\EOF
7985 #define HAVE_SHARED_MMAP 1
7990 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
7991 echo "configure:7992: checking for fcntl locking" >&5
7992 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7996 if test "$cross_compiling" = yes; then
7997 samba_cv_HAVE_FCNTL_LOCK=cross
7999 cat > conftest.$ac_ext <<EOF
8000 #line 8001 "configure"
8001 #include "confdefs.h"
8002 #include "${srcdir-.}/tests/fcntl_lock.c"
8004 if { (eval echo configure:8005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8006 samba_cv_HAVE_FCNTL_LOCK=yes
8008 echo "configure: failed program was:" >&5
8009 cat conftest.$ac_ext >&5
8011 samba_cv_HAVE_FCNTL_LOCK=no
8018 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8019 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8020 cat >> confdefs.h <<\EOF
8021 #define HAVE_FCNTL_LOCK 1
8026 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8027 echo "configure:8028: checking for 64 bit fcntl locking" >&5
8028 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8032 if test "$cross_compiling" = yes; then
8033 samba_cv_HAVE_STRUCT_FLOCK64=cross
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8046 #ifdef HAVE_SYS_FCNTL_H
8047 #include <sys/fcntl.h>
8049 main() { struct flock64 fl64;
8050 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8057 if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8059 samba_cv_HAVE_STRUCT_FLOCK64=yes
8061 echo "configure: failed program was:" >&5
8062 cat conftest.$ac_ext >&5
8064 samba_cv_HAVE_STRUCT_FLOCK64=no
8071 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8072 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8073 cat >> confdefs.h <<\EOF
8074 #define HAVE_STRUCT_FLOCK64 1
8079 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8080 echo "configure:8081: checking for sysv ipc" >&5
8081 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8085 if test "$cross_compiling" = yes; then
8086 samba_cv_HAVE_SYSV_IPC=cross
8088 cat > conftest.$ac_ext <<EOF
8089 #line 8090 "configure"
8090 #include "confdefs.h"
8091 #include "${srcdir-.}/tests/sysv_ipc.c"
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8095 samba_cv_HAVE_SYSV_IPC=yes
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8100 samba_cv_HAVE_SYSV_IPC=no
8107 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8108 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
8109 cat >> confdefs.h <<\EOF
8110 #define HAVE_SYSV_IPC 1
8115 #################################################
8116 # check for smbwrapper support
8117 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8118 echo "configure:8119: checking whether to use smbwrapper" >&5
8119 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8120 if test "${with_smbwrapper+set}" = set; then
8121 withval="$with_smbwrapper"
8124 echo "$ac_t""yes" 1>&6
8125 cat >> confdefs.h <<\EOF
8126 #define WITH_SMBWRAPPER 1
8129 WRAP="bin/smbsh bin/smbwrapper.so"
8131 if test x$ATTEMPT_WRAP32_BUILD = x; then
8134 WRAP32=bin/smbwrapper.32.so
8137 # Conditions under which smbwrapper should not be built.
8139 if test x$PICFLAG = x; then
8140 echo No support for PIC code - disabling smbwrapper and smbsh
8143 elif test x$ac_cv_func_syscall = xno; then
8144 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8150 echo "$ac_t""no" 1>&6
8154 echo "$ac_t""no" 1>&6
8159 #################################################
8160 # check for the AFS filesystem
8161 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8162 echo "configure:8163: checking whether to use AFS" >&5
8163 # Check whether --with-afs or --without-afs was given.
8164 if test "${with_afs+set}" = set; then
8168 echo "$ac_t""yes" 1>&6
8169 cat >> confdefs.h <<\EOF
8175 echo "$ac_t""no" 1>&6
8179 echo "$ac_t""no" 1>&6
8185 #################################################
8186 # check for the DFS auth system
8187 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8188 echo "configure:8189: checking whether to use DFS auth" >&5
8189 # Check whether --with-dfs or --without-dfs was given.
8190 if test "${with_dfs+set}" = set; then
8194 echo "$ac_t""yes" 1>&6
8195 cat >> confdefs.h <<\EOF
8201 echo "$ac_t""no" 1>&6
8205 echo "$ac_t""no" 1>&6
8210 #################################################
8211 # check for Kerberos IV auth system
8212 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8213 echo "configure:8214: checking whether to use Kerberos IV" >&5
8214 # Check whether --with-krb4 or --without-krb4 was given.
8215 if test "${with_krb4+set}" = set; then
8216 withval="$with_krb4"
8217 echo "$ac_t""yes" 1>&6
8218 cat >> confdefs.h <<\EOF
8222 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8223 echo "configure:8224: checking for dn_expand in -lresolv" >&5
8224 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 ac_save_LIBS="$LIBS"
8229 LIBS="-lresolv $LIBS"
8230 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 eval "ac_cv_lib_$ac_lib_var=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8249 eval "ac_cv_lib_$ac_lib_var=no"
8252 LIBS="$ac_save_LIBS"
8255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8259 cat >> confdefs.h <<EOF
8260 #define $ac_tr_lib 1
8263 LIBS="-lresolv $LIBS"
8266 echo "$ac_t""no" 1>&6
8269 LIBS="$LIBS -lkrb -ldes"
8270 CFLAGS="$CFLAGS -I$withval/include"
8271 LDFLAGS="$LDFLAGS -L$withval/lib"
8273 echo "$ac_t""no" 1>&6
8278 #################################################
8279 # check for automount support
8280 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8281 echo "configure:8282: checking whether to use AUTOMOUNT" >&5
8282 # Check whether --with-automount or --without-automount was given.
8283 if test "${with_automount+set}" = set; then
8284 withval="$with_automount"
8287 echo "$ac_t""yes" 1>&6
8288 cat >> confdefs.h <<\EOF
8289 #define WITH_AUTOMOUNT 1
8294 echo "$ac_t""no" 1>&6
8298 echo "$ac_t""no" 1>&6
8303 #################################################
8304 # check for smbmount support
8305 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8306 echo "configure:8307: checking whether to use SMBMOUNT" >&5
8307 # Check whether --with-smbmount or --without-smbmount was given.
8308 if test "${with_smbmount+set}" = set; then
8309 withval="$with_smbmount"
8312 echo "$ac_t""yes" 1>&6
8313 cat >> confdefs.h <<\EOF
8314 #define WITH_SMBMOUNT 1
8317 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
8320 echo "$ac_t""no" 1>&6
8325 echo "$ac_t""no" 1>&6
8331 #################################################
8332 # check for a LDAP password database
8333 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8334 echo "configure:8335: checking whether to use LDAP password database" >&5
8335 # Check whether --with-ldap or --without-ldap was given.
8336 if test "${with_ldap+set}" = set; then
8337 withval="$with_ldap"
8340 echo "$ac_t""yes" 1>&6
8341 cat >> confdefs.h <<\EOF
8345 LIBS="$LIBS -lldap -llber"
8348 echo "$ac_t""no" 1>&6
8352 echo "$ac_t""no" 1>&6
8357 #################################################
8358 # check for a NISPLUS password database
8359 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8360 echo "configure:8361: checking whether to use NISPLUS password database" >&5
8361 # Check whether --with-nisplus or --without-nisplus was given.
8362 if test "${with_nisplus+set}" = set; then
8363 withval="$with_nisplus"
8366 echo "$ac_t""yes" 1>&6
8367 cat >> confdefs.h <<\EOF
8368 #define WITH_NISPLUS 1
8373 echo "$ac_t""no" 1>&6
8377 echo "$ac_t""no" 1>&6
8382 #################################################
8383 # check for a NISPLUS_HOME support
8384 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
8385 echo "configure:8386: checking whether to use NISPLUS_HOME" >&5
8386 # Check whether --with-nisplus-home or --without-nisplus-home was given.
8387 if test "${with_nisplus_home+set}" = set; then
8388 withval="$with_nisplus_home"
8391 echo "$ac_t""yes" 1>&6
8392 cat >> confdefs.h <<\EOF
8393 #define WITH_NISPLUS_HOME 1
8398 echo "$ac_t""no" 1>&6
8402 echo "$ac_t""no" 1>&6
8407 #################################################
8408 # check for the secure socket layer
8409 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
8410 echo "configure:8411: checking whether to use SSL" >&5
8411 # Check whether --with-ssl or --without-ssl was given.
8412 if test "${with_ssl+set}" = set; then
8416 echo "$ac_t""yes" 1>&6
8417 cat >> confdefs.h <<\EOF
8423 echo "$ac_t""no" 1>&6
8427 echo "$ac_t""no" 1>&6
8432 #################################################
8433 # check for experimental mmap support
8434 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
8435 echo "configure:8436: checking whether to use MMAP" >&5
8436 # Check whether --with-mmap or --without-mmap was given.
8437 if test "${with_mmap+set}" = set; then
8438 withval="$with_mmap"
8441 echo "$ac_t""yes" 1>&6
8442 cat >> confdefs.h <<\EOF
8448 echo "$ac_t""no" 1>&6
8452 echo "$ac_t""no" 1>&6
8457 #################################################
8458 # check for syslog logging
8459 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
8460 echo "configure:8461: checking whether to use syslog logging" >&5
8461 # Check whether --with-syslog or --without-syslog was given.
8462 if test "${with_syslog+set}" = set; then
8463 withval="$with_syslog"
8466 echo "$ac_t""yes" 1>&6
8467 cat >> confdefs.h <<\EOF
8468 #define WITH_SYSLOG 1
8473 echo "$ac_t""no" 1>&6
8477 echo "$ac_t""no" 1>&6
8482 #################################################
8483 # check for a shared memory profiling support
8484 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
8485 echo "configure:8486: checking whether to use profiling" >&5
8486 # Check whether --with-profile or --without-profile was given.
8487 if test "${with_profile+set}" = set; then
8488 withval="$with_profile"
8491 echo "$ac_t""yes" 1>&6
8492 cat >> confdefs.h <<\EOF
8493 #define WITH_PROFILE 1
8498 echo "$ac_t""no" 1>&6
8502 echo "$ac_t""no" 1>&6
8508 #################################################
8509 # check for experimental netatalk resource fork support
8510 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
8511 echo "configure:8512: checking whether to support netatalk" >&5
8512 # Check whether --with-netatalk or --without-netatalk was given.
8513 if test "${with_netatalk+set}" = set; then
8514 withval="$with_netatalk"
8517 echo "$ac_t""yes" 1>&6
8518 cat >> confdefs.h <<\EOF
8519 #define WITH_NETATALK 1
8524 echo "$ac_t""no" 1>&6
8528 echo "$ac_t""no" 1>&6
8533 #################################################
8534 # check for experimental disk-quotas support
8535 QUOTAOBJS=noquotas.o
8537 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
8538 echo "configure:8539: checking whether to support disk-quotas" >&5
8539 # Check whether --with-quotas or --without-quotas was given.
8540 if test "${with_quotas+set}" = set; then
8541 withval="$with_quotas"
8544 echo "$ac_t""yes" 1>&6
8548 echo "$ac_t""no" 1>&6
8552 echo "$ac_t""no" 1>&6
8558 #################################################
8559 # these tests are taken from the GNU fileutils package
8560 echo "checking how to get filesystem space usage" 1>&6
8561 echo "configure:8562: checking how to get filesystem space usage" >&5
8564 # Test for statvfs64.
8565 if test $space = no; then
8567 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
8568 echo "configure:8569: checking statvfs64 function (SVR4)" >&5
8569 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
8570 echo $ac_n "(cached) $ac_c" 1>&6
8572 if test "$cross_compiling" = yes; then
8573 fu_cv_sys_stat_statvfs64=cross
8575 cat > conftest.$ac_ext <<EOF
8576 #line 8577 "configure"
8577 #include "confdefs.h"
8579 #include <sys/types.h>
8580 #include <sys/statvfs.h>
8583 struct statvfs64 fsd;
8584 exit (statfs64 (".", &fsd));
8587 if { (eval echo configure:8588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8589 fu_cv_sys_stat_statvfs64=yes
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8594 fu_cv_sys_stat_statvfs64=no
8601 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
8602 if test $fu_cv_sys_stat_statvfs64 = yes; then
8604 cat >> confdefs.h <<\EOF
8605 #define STAT_STATVFS64 1
8611 # Perform only the link test since it seems there are no variants of the
8612 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
8613 # because that got a false positive on SCO OSR5. Adding the declaration
8614 # of a `struct statvfs' causes this test to fail (as it should) on such
8615 # systems. That system is reported to work fine with STAT_STATFS4 which
8616 # is what it gets when this test fails.
8617 if test $space = no; then
8619 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
8620 echo "configure:8621: checking statvfs function (SVR4)" >&5
8621 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 #include <sys/types.h>
8628 #include <sys/statvfs.h>
8630 struct statvfs fsd; statvfs (0, &fsd);
8633 if { (eval echo configure:8634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8635 fu_cv_sys_stat_statvfs=yes
8637 echo "configure: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8640 fu_cv_sys_stat_statvfs=no
8645 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
8646 if test $fu_cv_sys_stat_statvfs = yes; then
8648 cat >> confdefs.h <<\EOF
8649 #define STAT_STATVFS 1
8655 if test $space = no; then
8656 # DEC Alpha running OSF/1
8657 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
8658 echo "configure:8659: checking for 3-argument statfs function (DEC OSF/1)" >&5
8659 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
8662 if test "$cross_compiling" = yes; then
8663 fu_cv_sys_stat_statfs3_osf1=no
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8669 #include <sys/param.h>
8670 #include <sys/types.h>
8671 #include <sys/mount.h>
8676 exit (statfs (".", &fsd, sizeof (struct statfs)));
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8681 fu_cv_sys_stat_statfs3_osf1=yes
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 fu_cv_sys_stat_statfs3_osf1=no
8693 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
8694 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
8696 cat >> confdefs.h <<\EOF
8697 #define STAT_STATFS3_OSF1 1
8703 if test $space = no; then
8705 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
8706 echo "configure:8707: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8707 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8710 if test "$cross_compiling" = yes; then
8711 fu_cv_sys_stat_statfs2_bsize=no
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8717 #ifdef HAVE_SYS_PARAM_H
8718 #include <sys/param.h>
8720 #ifdef HAVE_SYS_MOUNT_H
8721 #include <sys/mount.h>
8723 #ifdef HAVE_SYS_VFS_H
8724 #include <sys/vfs.h>
8730 exit (statfs (".", &fsd));
8733 if { (eval echo configure:8734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8735 fu_cv_sys_stat_statfs2_bsize=yes
8737 echo "configure: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8740 fu_cv_sys_stat_statfs2_bsize=no
8747 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
8748 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8750 cat >> confdefs.h <<\EOF
8751 #define STAT_STATFS2_BSIZE 1
8757 if test $space = no; then
8759 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
8760 echo "configure:8761: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
8761 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 if test "$cross_compiling" = yes; then
8765 fu_cv_sys_stat_statfs4=no
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 #include <sys/types.h>
8771 #include <sys/statfs.h>
8775 exit (statfs (".", &fsd, sizeof fsd, 0));
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8780 fu_cv_sys_stat_statfs4=yes
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8785 fu_cv_sys_stat_statfs4=no
8792 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
8793 if test $fu_cv_sys_stat_statfs4 = yes; then
8795 cat >> confdefs.h <<\EOF
8796 #define STAT_STATFS4 1
8802 if test $space = no; then
8804 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
8805 echo "configure:8806: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
8806 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
8807 echo $ac_n "(cached) $ac_c" 1>&6
8809 if test "$cross_compiling" = yes; then
8810 fu_cv_sys_stat_statfs2_fsize=no
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 #include <sys/types.h>
8816 #ifdef HAVE_SYS_PARAM_H
8817 #include <sys/param.h>
8819 #ifdef HAVE_SYS_MOUNT_H
8820 #include <sys/mount.h>
8826 exit (statfs (".", &fsd));
8829 if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8831 fu_cv_sys_stat_statfs2_fsize=yes
8833 echo "configure: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8836 fu_cv_sys_stat_statfs2_fsize=no
8843 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
8844 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
8846 cat >> confdefs.h <<\EOF
8847 #define STAT_STATFS2_FSIZE 1
8853 if test $space = no; then
8855 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
8856 echo "configure:8857: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
8857 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
8858 echo $ac_n "(cached) $ac_c" 1>&6
8860 if test "$cross_compiling" = yes; then
8861 fu_cv_sys_stat_fs_data=no
8863 cat > conftest.$ac_ext <<EOF
8864 #line 8865 "configure"
8865 #include "confdefs.h"
8866 #include <sys/types.h>
8867 #ifdef HAVE_SYS_PARAM_H
8868 #include <sys/param.h>
8870 #ifdef HAVE_SYS_MOUNT_H
8871 #include <sys/mount.h>
8873 #ifdef HAVE_SYS_FS_TYPES_H
8874 #include <sys/fs_types.h>
8879 /* Ultrix's statfs returns 1 for success,
8880 0 for not mounted, -1 for failure. */
8881 exit (statfs (".", &fsd) != 1);
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8886 fu_cv_sys_stat_fs_data=yes
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8891 fu_cv_sys_stat_fs_data=no
8898 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
8899 if test $fu_cv_sys_stat_fs_data = yes; then
8901 cat >> confdefs.h <<\EOF
8902 #define STAT_STATFS2_FS_DATA 1
8908 echo "checking configure summary"
8909 if test "$cross_compiling" = yes; then
8912 cat > conftest.$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8915 #include "${srcdir-.}/tests/summary.c"
8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8919 echo "configure OK";
8921 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8924 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
8934 cat > confcache <<\EOF
8935 # This file is a shell script that caches the results of configure
8936 # tests run on this system so they can be shared between configure
8937 # scripts and configure runs. It is not useful on other systems.
8938 # If it contains results you don't want to keep, you may remove or edit it.
8940 # By default, configure uses ./config.cache as the cache file,
8941 # creating it if it does not exist already. You can give configure
8942 # the --cache-file=FILE option to use a different cache file; that is
8943 # what configure does when it calls configure scripts in
8944 # subdirectories, so they share the cache.
8945 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8946 # config.status only pays attention to the cache file if you give it the
8947 # --recheck option to rerun configure.
8950 # The following way of writing the cache mishandles newlines in values,
8951 # but we know of no workaround that is simple, portable, and efficient.
8952 # So, don't put newlines in cache variables' values.
8953 # Ultrix sh set writes to stderr and can't be redirected directly,
8954 # and sets the high bit in the cache file unless we assign to the vars.
8956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8958 # `set' does not quote correctly, so add quotes (double-quote substitution
8959 # turns \\\\ into \\, and sed turns \\ into \).
8961 -e "s/'/'\\\\''/g" \
8962 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8965 # `set' quotes correctly as required by POSIX, so do not add quotes.
8966 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8969 if cmp -s $cache_file confcache; then
8972 if test -w $cache_file; then
8973 echo "updating cache $cache_file"
8974 cat confcache > $cache_file
8976 echo "not updating unwritable cache $cache_file"
8981 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8984 # Let make expand exec_prefix.
8985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8987 # Any assignment to VPATH causes Sun make to only execute
8988 # the first set of double-colon rules, so remove it if not needed.
8989 # If there is a colon in the path, we need to keep it.
8990 if test "x$srcdir" = x.; then
8991 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8994 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8996 DEFS=-DHAVE_CONFIG_H
8998 # Without the "./", some shells look in PATH for config.status.
8999 : ${CONFIG_STATUS=./config.status}
9001 echo creating $CONFIG_STATUS
9002 rm -f $CONFIG_STATUS
9003 cat > $CONFIG_STATUS <<EOF
9005 # Generated automatically by configure.
9006 # Run this file to recreate the current configuration.
9007 # This directory was configured as follows,
9008 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9010 # $0 $ac_configure_args
9012 # Compiler output produced by configure, useful for debugging
9013 # configure, is in ./config.log if it exists.
9015 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9018 case "\$ac_option" in
9019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9020 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9021 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9022 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9023 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
9025 -help | --help | --hel | --he | --h)
9026 echo "\$ac_cs_usage"; exit 0 ;;
9027 *) echo "\$ac_cs_usage"; exit 1 ;;
9031 ac_given_srcdir=$srcdir
9032 ac_given_INSTALL="$INSTALL"
9034 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9036 cat >> $CONFIG_STATUS <<EOF
9038 # Protect against being on the right side of a sed subst in config.status.
9039 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9040 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9044 s%@CFLAGS@%$CFLAGS%g
9045 s%@CPPFLAGS@%$CPPFLAGS%g
9046 s%@CXXFLAGS@%$CXXFLAGS%g
9047 s%@FFLAGS@%$FFLAGS%g
9049 s%@LDFLAGS@%$LDFLAGS%g
9051 s%@exec_prefix@%$exec_prefix%g
9052 s%@prefix@%$prefix%g
9053 s%@program_transform_name@%$program_transform_name%g
9054 s%@bindir@%$bindir%g
9055 s%@sbindir@%$sbindir%g
9056 s%@libexecdir@%$libexecdir%g
9057 s%@datadir@%$datadir%g
9058 s%@sysconfdir@%$sysconfdir%g
9059 s%@sharedstatedir@%$sharedstatedir%g
9060 s%@localstatedir@%$localstatedir%g
9061 s%@libdir@%$libdir%g
9062 s%@includedir@%$includedir%g
9063 s%@oldincludedir@%$oldincludedir%g
9064 s%@infodir@%$infodir%g
9065 s%@mandir@%$mandir%g
9066 s%@MPROGS@%$MPROGS%g
9067 s%@LDSHFLAGS@%$LDSHFLAGS%g
9068 s%@HOST_OS@%$HOST_OS%g
9070 s%@WRAP32@%$WRAP32%g
9071 s%@PICFLAG@%$PICFLAG%g
9073 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9074 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9075 s%@INSTALL_DATA@%$INSTALL_DATA%g
9078 s%@host_alias@%$host_alias%g
9079 s%@host_cpu@%$host_cpu%g
9080 s%@host_vendor@%$host_vendor%g
9081 s%@host_os@%$host_os%g
9082 s%@target@%$target%g
9083 s%@target_alias@%$target_alias%g
9084 s%@target_cpu@%$target_cpu%g
9085 s%@target_vendor@%$target_vendor%g
9086 s%@target_os@%$target_os%g
9088 s%@build_alias@%$build_alias%g
9089 s%@build_cpu@%$build_cpu%g
9090 s%@build_vendor@%$build_vendor%g
9091 s%@build_os@%$build_os%g
9093 s%@AUTOCONF@%$AUTOCONF%g
9094 s%@AUTOHEADER@%$AUTOHEADER%g
9096 s%@LIBOBJS@%$LIBOBJS%g
9098 s%@QUOTAOBJS@%$QUOTAOBJS%g
9099 s%@builddir@%$builddir%g
9104 cat >> $CONFIG_STATUS <<\EOF
9106 # Split the substitutions into bite-sized pieces for seds with
9107 # small command number limits, like on Digital OSF/1 and HP-UX.
9108 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9109 ac_file=1 # Number of current file.
9110 ac_beg=1 # First line for current file.
9111 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9114 while $ac_more_lines; do
9115 if test $ac_beg -gt 1; then
9116 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9118 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9120 if test ! -s conftest.s$ac_file; then
9122 rm -f conftest.s$ac_file
9124 if test -z "$ac_sed_cmds"; then
9125 ac_sed_cmds="sed -f conftest.s$ac_file"
9127 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9129 ac_file=`expr $ac_file + 1`
9131 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9134 if test -z "$ac_sed_cmds"; then
9139 cat >> $CONFIG_STATUS <<EOF
9141 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9143 cat >> $CONFIG_STATUS <<\EOF
9144 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9147 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9148 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9149 *) ac_file_in="${ac_file}.in" ;;
9152 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9154 # Remove last slash and all that follows it. Not all systems have dirname.
9155 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9156 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9157 # The file is in a subdirectory.
9158 test ! -d "$ac_dir" && mkdir "$ac_dir"
9159 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9160 # A "../" for each directory in $ac_dir_suffix.
9161 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9163 ac_dir_suffix= ac_dots=
9166 case "$ac_given_srcdir" in
9168 if test -z "$ac_dots"; then top_srcdir=.
9169 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9170 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9172 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9173 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9176 case "$ac_given_INSTALL" in
9177 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9178 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9181 echo creating "$ac_file"
9183 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9185 *Makefile*) ac_comsub="1i\\
9186 # $configure_input" ;;
9190 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9192 s%@configure_input@%$configure_input%g
9193 s%@srcdir@%$srcdir%g
9194 s%@top_srcdir@%$top_srcdir%g
9195 s%@INSTALL@%$INSTALL%g
9196 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9203 # ac_d sets the value in "#define NAME VALUE" lines.
9204 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9205 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9208 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9209 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9210 ac_uB='\([ ]\)%\1#\2define\3'
9213 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9214 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9215 ac_eB='$%\1#\2define\3'
9219 if test "${CONFIG_HEADERS+set}" != set; then
9221 cat >> $CONFIG_STATUS <<EOF
9222 CONFIG_HEADERS="include/config.h"
9224 cat >> $CONFIG_STATUS <<\EOF
9226 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9229 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9230 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9231 *) ac_file_in="${ac_file}.in" ;;
9234 echo creating $ac_file
9236 rm -f conftest.frag conftest.in conftest.out
9237 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9238 cat $ac_file_inputs > conftest.in
9242 # Transform confdefs.h into a sed script conftest.vals that substitutes
9243 # the proper values into config.h.in to produce config.h. And first:
9244 # Protect against being on the right side of a sed subst in config.status.
9245 # Protect against being in an unquoted here document in config.status.
9247 cat > conftest.hdr <<\EOF
9250 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9254 sed -n -f conftest.hdr confdefs.h > conftest.vals
9257 # This sed command replaces #undef with comments. This is necessary, for
9258 # example, in the case of _POSIX_SOURCE, which is predefined and required
9259 # on some systems where configure will not decide to define it.
9260 cat >> conftest.vals <<\EOF
9261 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9264 # Break up conftest.vals because some shells have a limit on
9265 # the size of here documents, and old seds have small limits too.
9270 ac_lines=`grep -c . conftest.vals`
9271 # grep -c gives empty output for an empty file on some AIX systems.
9272 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9273 # Write a limited-size here document to conftest.frag.
9274 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9275 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9277 sed -f conftest.frag conftest.in > conftest.out
9279 mv conftest.out conftest.in
9281 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9283 mv conftest.tail conftest.vals
9287 cat >> $CONFIG_STATUS <<\EOF
9288 rm -f conftest.frag conftest.h
9289 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9290 cat conftest.in >> conftest.h
9292 if cmp -s $ac_file conftest.h 2>/dev/null; then
9293 echo "$ac_file is unchanged"
9296 # Remove last slash and all that follows it. Not all systems have dirname.
9297 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9298 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9299 # The file is in a subdirectory.
9300 test ! -d "$ac_dir" && mkdir "$ac_dir"
9303 mv conftest.h $ac_file
9308 cat >> $CONFIG_STATUS <<EOF
9311 cat >> $CONFIG_STATUS <<\EOF
9315 chmod +x $CONFIG_STATUS
9316 rm -fr confdefs* $ac_clean_files
9317 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1