3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-debug turn on debugging [default=no]"
18 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
20 --with-readline[=DIR] Look for readline include/libs in DIR
21 --without-readline Don't include readline support"
23 --with-smbwrapper Include SMB wrapper support
24 --without-smbwrapper Don't include SMB wrapper support (default)"
26 --with-afs Include AFS support
27 --without-afs Don't include AFS support (default)"
29 --with-dfs Include DFS support
30 --without-dfs Don't include DFS support (default)"
32 --with-krb4=base-dir Include Kerberos IV support
33 --without-krb4 Don't include Kerberos IV support (default)"
35 --with-krb5=base-dir Include Kerberos 5 support
36 --without-krb5 Don't include Kerberos 5 support (default)"
38 --with-automount Include AUTOMOUNT support
39 --without-automount Don't include AUTOMOUNT support (default)"
41 --with-smbmount Include SMBMOUNT (Linux only) support
42 --without-smbmount Don't include SMBMOUNT support (default)"
44 --with-pam Include PAM password database support
45 --without-pam Don't include PAM password database support (default)"
47 --with-pam_smbpass Include the smbpass PAM module
48 --without-pam_smbpass Don't include the smbpass PAM module (default)"
50 --with-tdbsam Include experimental TDB password database
51 --without-tdbsam Don't include experimental TDB password database (default)"
53 --with-ldap Include LDAP support
54 --without-ldap Don't include LDAP support (default)"
56 --with-nisplus Include NISPLUS password database support
57 --without-nisplus Don't include NISPLUS password database support (default)"
59 --with-nisplus-home Include NISPLUS_HOME support
60 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
62 --with-ssl Include SSL support
63 --without-ssl Don't include SSL support (default)
64 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
66 --with-syslog Include experimental SYSLOG support
67 --without-syslog Don't include SYSLOG support (default)"
69 --with-profile Include profile support
70 --without-profile Don't include profile support (default)"
72 --with-netatalk Include experimental Netatalk support
73 --without-netatalk Don't include experimental Netatalk support (default)"
75 --with-quotas Include experimental disk-quota support
76 --without-quotas Don't include experimental disk-quota support (default)"
78 --with-utmp Include experimental utmp accounting
79 --without-utmp Don't include experimental utmp accounting (default)"
81 --with-msdfs Include MS Dfs support
82 --without-msdfs Don't include MS Dfs support (default)"
84 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
86 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
88 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
90 --with-spinlocks use spin locks instead of fcntl locks "
92 --with-acl-support Include ACL support
93 --without-acl-support Don't include ACL support (default)"
95 --with-winbind Build winbind library (default, if supported by OS)
96 --without-winbind Don't build winbind library"
98 # Initialize some variables set by options.
99 # The variables have the same names as the options, with
100 # dashes changed to underlines.
102 cache_file=./config.cache
111 program_transform_name=s,x,x,
119 bindir='${exec_prefix}/bin'
120 sbindir='${exec_prefix}/sbin'
121 libexecdir='${exec_prefix}/libexec'
122 datadir='${prefix}/share'
123 sysconfdir='${prefix}/etc'
124 sharedstatedir='${prefix}/com'
125 localstatedir='${prefix}/var'
126 libdir='${exec_prefix}/lib'
127 includedir='${prefix}/include'
128 oldincludedir='/usr/include'
129 infodir='${prefix}/info'
130 mandir='${prefix}/man'
132 # Initialize some other variables.
135 SHELL=${CONFIG_SHELL-/bin/sh}
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir | --bindir | --bindi | --bind | --bin | --bi)
161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
162 bindir="$ac_optarg" ;;
164 -build | --build | --buil | --bui | --bu)
166 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
167 build="$ac_optarg" ;;
169 -cache-file | --cache-file | --cache-fil | --cache-fi \
170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
171 ac_prev=cache_file ;;
172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
174 cache_file="$ac_optarg" ;;
176 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
178 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
180 datadir="$ac_optarg" ;;
182 -disable-* | --disable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* | --enable-*)
192 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
206 | --exec | --exe | --ex)
207 ac_prev=exec_prefix ;;
208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
210 | --exec=* | --exe=* | --ex=*)
211 exec_prefix="$ac_optarg" ;;
213 -gas | --gas | --ga | --g)
214 # Obsolete; use --with-gas.
217 -help | --help | --hel | --he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host | --host | --hos | --ho)
274 -host=* | --host=* | --hos=* | --ho=*)
277 -includedir | --includedir | --includedi | --included | --include \
278 | --includ | --inclu | --incl | --inc)
279 ac_prev=includedir ;;
280 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
281 | --includ=* | --inclu=* | --incl=* | --inc=*)
282 includedir="$ac_optarg" ;;
284 -infodir | --infodir | --infodi | --infod | --info | --inf)
286 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
287 infodir="$ac_optarg" ;;
289 -libdir | --libdir | --libdi | --libd)
291 -libdir=* | --libdir=* | --libdi=* | --libd=*)
292 libdir="$ac_optarg" ;;
294 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
295 | --libexe | --libex | --libe)
296 ac_prev=libexecdir ;;
297 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
298 | --libexe=* | --libex=* | --libe=*)
299 libexecdir="$ac_optarg" ;;
301 -localstatedir | --localstatedir | --localstatedi | --localstated \
302 | --localstate | --localstat | --localsta | --localst \
303 | --locals | --local | --loca | --loc | --lo)
304 ac_prev=localstatedir ;;
305 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
306 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
307 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
308 localstatedir="$ac_optarg" ;;
310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
313 mandir="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
329 | --oldin | --oldi | --old | --ol | --o)
330 ac_prev=oldincludedir ;;
331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
334 oldincludedir="$ac_optarg" ;;
336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
339 prefix="$ac_optarg" ;;
341 -program-prefix | --program-prefix | --program-prefi | --program-pref \
342 | --program-pre | --program-pr | --program-p)
343 ac_prev=program_prefix ;;
344 -program-prefix=* | --program-prefix=* | --program-prefi=* \
345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
346 program_prefix="$ac_optarg" ;;
348 -program-suffix | --program-suffix | --program-suffi | --program-suff \
349 | --program-suf | --program-su | --program-s)
350 ac_prev=program_suffix ;;
351 -program-suffix=* | --program-suffix=* | --program-suffi=* \
352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
353 program_suffix="$ac_optarg" ;;
355 -program-transform-name | --program-transform-name \
356 | --program-transform-nam | --program-transform-na \
357 | --program-transform-n | --program-transform- \
358 | --program-transform | --program-transfor \
359 | --program-transfo | --program-transf \
360 | --program-trans | --program-tran \
361 | --progr-tra | --program-tr | --program-t)
362 ac_prev=program_transform_name ;;
363 -program-transform-name=* | --program-transform-name=* \
364 | --program-transform-nam=* | --program-transform-na=* \
365 | --program-transform-n=* | --program-transform-=* \
366 | --program-transform=* | --program-transfor=* \
367 | --program-transfo=* | --program-transf=* \
368 | --program-trans=* | --program-tran=* \
369 | --progr-tra=* | --program-tr=* | --program-t=*)
370 program_transform_name="$ac_optarg" ;;
372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
373 | -silent | --silent | --silen | --sile | --sil)
376 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380 sbindir="$ac_optarg" ;;
382 -sharedstatedir | --sharedstatedir | --sharedstatedi \
383 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
384 | --sharedst | --shareds | --shared | --share | --shar \
386 ac_prev=sharedstatedir ;;
387 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
388 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
389 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391 sharedstatedir="$ac_optarg" ;;
393 -site | --site | --sit)
395 -site=* | --site=* | --sit=*)
398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
401 srcdir="$ac_optarg" ;;
403 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
404 | --syscon | --sysco | --sysc | --sys | --sy)
405 ac_prev=sysconfdir ;;
406 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
407 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
408 sysconfdir="$ac_optarg" ;;
410 -target | --target | --targe | --targ | --tar | --ta | --t)
412 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
413 target="$ac_optarg" ;;
415 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 -version | --version | --versio | --versi | --vers)
419 echo "configure generated by autoconf version 2.13"
423 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* | --without-*)
436 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev=x_includes ;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes="$ac_optarg" ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev=x_libraries ;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
511 | --no-cr | --no-c) ;;
512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file=include/includes.h
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE; then
565 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp='$CPP $CPPFLAGS'
588 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
603 ac_n= ac_c='\c' ac_t=
608 # we want to be compatibe with older versions of Samba
624 # compile with optimisation and without debugging by default
625 CFLAGS="-O ${CFLAGS}"
627 # Check whether --enable-debug or --disable-debug was given.
628 if test "${enable_debug+set}" = set; then
629 enableval="$enable_debug"
630 if eval "test x$enable_debug = xyes"; then
631 CFLAGS="${CFLAGS} -g"
637 # Extract the first word of "gcc", so it can be a program name with args.
638 set dummy gcc; ac_word=$2
639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
640 echo "configure:641: checking for $ac_word" >&5
641 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 if test -n "$CC"; then
645 ac_cv_prog_CC="$CC" # Let the user override the test.
647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
649 for ac_dir in $ac_dummy; do
650 test -z "$ac_dir" && ac_dir=.
651 if test -f $ac_dir/$ac_word; then
660 if test -n "$CC"; then
661 echo "$ac_t""$CC" 1>&6
663 echo "$ac_t""no" 1>&6
666 if test -z "$CC"; then
667 # Extract the first word of "cc", so it can be a program name with args.
668 set dummy cc; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 if test -n "$CC"; then
675 ac_cv_prog_CC="$CC" # Let the user override the test.
677 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
683 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
692 if test $ac_prog_rejected = yes; then
693 # We found a bogon in the path, so make sure we never use it.
694 set dummy $ac_cv_prog_CC
696 if test $# -gt 0; then
697 # We chose a different compiler from the bogus one.
698 # However, it has the same basename, so the bogon will be chosen
699 # first if we set CC to just the basename; use the full file name.
701 set dummy "$ac_dir/$ac_word" "$@"
709 if test -n "$CC"; then
710 echo "$ac_t""$CC" 1>&6
712 echo "$ac_t""no" 1>&6
715 if test -z "$CC"; then
718 # Extract the first word of "cl", so it can be a program name with args.
719 set dummy cl; ac_word=$2
720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
721 echo "configure:722: checking for $ac_word" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 if test -n "$CC"; then
726 ac_cv_prog_CC="$CC" # Let the user override the test.
728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
730 for ac_dir in $ac_dummy; do
731 test -z "$ac_dir" && ac_dir=.
732 if test -f $ac_dir/$ac_word; then
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
749 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
753 echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
756 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757 ac_cpp='$CPP $CPPFLAGS'
758 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760 cross_compiling=$ac_cv_prog_cc_cross
762 cat > conftest.$ac_ext << EOF
764 #line 765 "configure"
765 #include "confdefs.h"
769 if { (eval echo configure:770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
770 ac_cv_prog_cc_works=yes
771 # If we can't run a trivial program, we are probably using a cross compiler.
772 if (./conftest; exit) 2>/dev/null; then
773 ac_cv_prog_cc_cross=no
775 ac_cv_prog_cc_cross=yes
778 echo "configure: failed program was:" >&5
779 cat conftest.$ac_ext >&5
780 ac_cv_prog_cc_works=no
784 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
785 ac_cpp='$CPP $CPPFLAGS'
786 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
787 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
788 cross_compiling=$ac_cv_prog_cc_cross
790 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
791 if test $ac_cv_prog_cc_works = no; then
792 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
794 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
795 echo "configure:796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
796 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
800 echo "configure:801: checking whether we are using GNU C" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 cat > conftest.c <<EOF
809 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
816 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
818 if test $ac_cv_prog_gcc = yes; then
824 ac_test_CFLAGS="${CFLAGS+set}"
825 ac_save_CFLAGS="$CFLAGS"
827 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
828 echo "configure:829: checking whether ${CC-cc} accepts -g" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 echo 'void f(){}' > conftest.c
833 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
842 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
843 if test "$ac_test_CFLAGS" = set; then
844 CFLAGS="$ac_save_CFLAGS"
845 elif test $ac_cv_prog_cc_g = yes; then
846 if test "$GCC" = yes; then
852 if test "$GCC" = yes; then
860 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
861 if test -f $ac_dir/install-sh; then
863 ac_install_sh="$ac_aux_dir/install-sh -c"
865 elif test -f $ac_dir/install.sh; then
867 ac_install_sh="$ac_aux_dir/install.sh -c"
871 if test -z "$ac_aux_dir"; then
872 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
874 ac_config_guess=$ac_aux_dir/config.guess
875 ac_config_sub=$ac_aux_dir/config.sub
876 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
878 # Find a good install program. We prefer a C program (faster),
879 # so one script is as good as another. But avoid the broken or
880 # incompatible versions:
881 # SysV /etc/install, /usr/sbin/install
882 # SunOS /usr/etc/install
885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
888 # ./install, which can be erroneously created by make from ./install.sh.
889 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
890 echo "configure:891: checking for a BSD compatible install" >&5
891 if test -z "$INSTALL"; then
892 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
896 for ac_dir in $PATH; do
897 # Account for people who put trailing slashes in PATH elements.
899 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
901 # OSF1 and SCO ODT 3.0 have their own names for install.
902 # Don't use installbsd from OSF since it installs stuff as root
904 for ac_prog in ginstall scoinst install; do
905 if test -f $ac_dir/$ac_prog; then
906 if test $ac_prog = install &&
907 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
908 # AIX install. It has an incompatible calling convention.
911 ac_cv_path_install="$ac_dir/$ac_prog -c"
922 if test "${ac_cv_path_install+set}" = set; then
923 INSTALL="$ac_cv_path_install"
925 # As a last resort, use the slow shell script. We don't cache a
926 # path for INSTALL within a source directory, because that will
927 # break other packages using the cache if that directory is
928 # removed, or if the path is relative.
929 INSTALL="$ac_install_sh"
932 echo "$ac_t""$INSTALL" 1>&6
934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
935 # It thinks the first close brace ends the variable substitution.
936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
942 for ac_prog in mawk gawk nawk awk
944 # Extract the first word of "$ac_prog", so it can be a program name with args.
945 set dummy $ac_prog; ac_word=$2
946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
947 echo "configure:948: checking for $ac_word" >&5
948 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
949 echo $ac_n "(cached) $ac_c" 1>&6
951 if test -n "$AWK"; then
952 ac_cv_prog_AWK="$AWK" # Let the user override the test.
954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
956 for ac_dir in $ac_dummy; do
957 test -z "$ac_dir" && ac_dir=.
958 if test -f $ac_dir/$ac_word; then
959 ac_cv_prog_AWK="$ac_prog"
966 AWK="$ac_cv_prog_AWK"
967 if test -n "$AWK"; then
968 echo "$ac_t""$AWK" 1>&6
970 echo "$ac_t""no" 1>&6
973 test -n "$AWK" && break
977 if test "x$CC" != xcc; then
978 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
979 echo "configure:980: checking whether $CC and cc understand -c and -o together" >&5
981 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
982 echo "configure:983: checking whether cc understands -c and -o together" >&5
984 set dummy $CC; ac_cc="`echo $2 |
985 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
986 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 echo 'foo(){}' > conftest.c
990 # Make sure it works both with $CC and with simple cc.
991 # We do the test twice because some compilers refuse to overwrite an
992 # existing .o file with -o, though they will create one.
993 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
994 if { (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
995 test -f conftest.o && { (eval echo configure:996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
997 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
998 if test "x$CC" != xcc; then
999 # Test first that cc exists at all.
1000 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1001 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1002 if { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1003 test -f conftest.o && { (eval echo configure:1004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1008 # cc exists but doesn't like -o.
1009 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1014 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1019 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1020 echo "$ac_t""yes" 1>&6
1022 echo "$ac_t""no" 1>&6
1023 cat >> confdefs.h <<\EOF
1024 #define NO_MINUS_C_MINUS_O 1
1029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1036 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1037 echo "configure:1038: checking that the C compiler understands volatile" >&5
1038 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1042 cat > conftest.$ac_ext <<EOF
1043 #line 1044 "configure"
1044 #include "confdefs.h"
1045 #include <sys/types.h>
1050 if { (eval echo configure:1051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1052 samba_cv_volatile=yes
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1057 samba_cv_volatile=no
1062 echo "$ac_t""$samba_cv_volatile" 1>&6
1063 if test x"$samba_cv_volatile" = x"yes"; then
1064 cat >> confdefs.h <<\EOF
1065 #define HAVE_VOLATILE 1
1071 #################################################
1072 # set codepage directory location
1073 # Check whether --with-codepagedir or --without-codepagedir was given.
1074 if test "${with_codepagedir+set}" = set; then
1075 withval="$with_codepagedir"
1079 # Just in case anybody does it
1081 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1084 codepagedir="$withval"
1092 # Do some error checking and defaulting for the host and target type.
1094 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1097 # 1. You are not allowed to specify --host, --target, and nonopt at the
1099 # 2. Host defaults to nonopt.
1100 # 3. If nonopt is not specified, then host defaults to the current host,
1101 # as determined by config.guess.
1102 # 4. Target and build default to nonopt.
1103 # 5. If nonopt is not specified, then target and build default to host.
1105 # The aliases save the names the user supplied, while $host etc.
1106 # will get canonicalized.
1107 case $host---$target---$nonopt in
1108 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1109 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1113 # Make sure we can run config.sub.
1114 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1115 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1118 echo $ac_n "checking host system type""... $ac_c" 1>&6
1119 echo "configure:1120: checking host system type" >&5
1122 case "$host_alias" in
1126 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1127 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1129 *) host_alias=$nonopt ;;
1133 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1134 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1135 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1136 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1137 echo "$ac_t""$host" 1>&6
1139 echo $ac_n "checking target system type""... $ac_c" 1>&6
1140 echo "configure:1141: checking target system type" >&5
1142 target_alias=$target
1143 case "$target_alias" in
1146 NONE) target_alias=$host_alias ;;
1147 *) target_alias=$nonopt ;;
1151 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1152 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1153 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1154 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1155 echo "$ac_t""$target" 1>&6
1157 echo $ac_n "checking build system type""... $ac_c" 1>&6
1158 echo "configure:1159: checking build system type" >&5
1161 case "$build_alias" in
1164 NONE) build_alias=$host_alias ;;
1165 *) build_alias=$nonopt ;;
1169 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1170 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1171 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1172 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1173 echo "$ac_t""$build" 1>&6
1175 test "$host_alias" != "$target_alias" &&
1176 test "$program_prefix$program_suffix$program_transform_name" = \
1178 program_prefix=${target_alias}-
1182 *irix6*) cat >> confdefs.h <<\EOF
1183 #include <standards.h>
1191 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1192 echo "configure:1193: checking config.cache system type" >&5
1193 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1194 test x"$ac_cv_host_system_type" != x"$host"; } ||
1195 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1196 test x"$ac_cv_build_system_type" != x"$build"; } ||
1197 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1198 test x"$ac_cv_target_system_type" != x"$target"; }; then
1199 echo "$ac_t""different" 1>&6
1200 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1202 echo "$ac_t""same" 1>&6
1204 ac_cv_host_system_type="$host"
1205 ac_cv_build_system_type="$build"
1206 ac_cv_target_system_type="$target"
1210 # Config CPPFLAG settings for strange OS's that must be set
1211 # before other tests.
1214 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1216 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ${CC-cc} accepts -Ae" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 echo 'void f(){}' > conftest.c
1222 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1223 ac_cv_prog_cc_Ae=yes
1231 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1232 if test $ac_cv_prog_cc_Ae = yes; then
1233 CPPFLAGS="$CPPFLAGS -Ae"
1236 # Defines needed for HPUX support.
1237 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1238 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1242 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1243 cat >> confdefs.h <<\EOF
1244 #define USE_BOTH_CRYPT_CALLS 1
1249 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1250 cat >> confdefs.h <<\EOF
1251 #define USE_BOTH_CRYPT_CALLS 1
1258 # AIX4.x doesn't even admit to having large
1259 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1262 echo "$ac_t""enabling large file support" 1>&6
1263 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1266 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1267 # to the existance of large files..
1268 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1269 # recommendations on large file support, however it makes the
1270 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1271 # recommendation makes the compile fail on gcc2.7. JRA.
1276 echo "$ac_t""enabling large file support" 1>&6
1277 if test "$ac_cv_prog_gcc" = yes; then
1278 ${CC-cc} -v >conftest.c 2>&1
1279 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1281 case "$ac_cv_gcc_compiler_version_number" in
1282 *"gcc version 2.6"*|*"gcc version 2.7"*)
1283 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1286 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1290 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1296 # Tests needed for SINIX large file support.
1299 if test $host = mips-sni-sysv4 ; then
1300 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1301 echo "configure:1302: checking for LFS support" >&5
1302 old_CPPFLAGS="$CPPFLAGS"
1303 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1304 if test "$cross_compiling" = yes; then
1305 SINIX_LFS_SUPPORT=cross
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1313 #if _LFS64_LARGEFILE == 1
1320 if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1322 SINIX_LFS_SUPPORT=yes
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1327 SINIX_LFS_SUPPORT=no
1332 CPPFLAGS="$old_CPPFLAGS"
1333 if test x$SINIX_LFS_SUPPORT = xyes ; then
1334 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1335 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1336 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1337 LIBS="`getconf LFS64_LIBS` $LIBS"
1339 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1343 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1346 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1347 echo "configure:1348: checking for LFS support" >&5
1348 old_CPPFLAGS="$CPPFLAGS"
1349 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1350 if test "$cross_compiling" = yes; then
1351 LINUX_LFS_SUPPORT=cross
1353 cat > conftest.$ac_ext <<EOF
1354 #line 1355 "configure"
1355 #include "confdefs.h"
1358 #include <sys/utsname.h>
1360 #if _LFS64_LARGEFILE == 1
1365 /* Ensure this is glibc 2.2 or higher */
1366 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1367 int libc_major = __GLIBC__;
1368 int libc_minor = __GLIBC_MINOR__;
1376 /* Ensure this is kernel 2.4 or higher */
1379 release = uts.release;
1380 major = atoi(strsep(&release, "."));
1381 minor = atoi(strsep(&release, "."));
1383 if (major > 2 || (major == 2 && minor > 3))
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1394 LINUX_LFS_SUPPORT=yes
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 LINUX_LFS_SUPPORT=no
1404 CPPFLAGS="$old_CPPFLAGS"
1405 if test x$LINUX_LFS_SUPPORT = xyes ; then
1406 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1408 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1412 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1413 echo "configure:1414: checking for LFS support" >&5
1414 old_CPPFLAGS="$CPPFLAGS"
1415 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1416 if test "$cross_compiling" = yes; then
1417 GLIBC_LFS_SUPPORT=cross
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1425 #if _LFS64_LARGEFILE == 1
1432 if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1434 GLIBC_LFS_SUPPORT=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1439 GLIBC_LFS_SUPPORT=no
1444 CPPFLAGS="$old_CPPFLAGS"
1445 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1446 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1448 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1453 echo $ac_n "checking for inline""... $ac_c" 1>&6
1454 echo "configure:1455: checking for inline" >&5
1455 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1459 for ac_kw in inline __inline__ __inline; do
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1468 if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1470 ac_cv_c_inline=$ac_kw; break
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1480 echo "$ac_t""$ac_cv_c_inline" 1>&6
1481 case "$ac_cv_c_inline" in
1483 no) cat >> confdefs.h <<\EOF
1487 *) cat >> confdefs.h <<EOF
1488 #define inline $ac_cv_c_inline
1493 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1494 echo "configure:1495: checking how to run the C preprocessor" >&5
1495 # On Suns, sometimes $CPP names a directory.
1496 if test -n "$CPP" && test -d "$CPP"; then
1499 if test -z "$CPP"; then
1500 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 # This must be in double quotes, not single quotes, because CPP may get
1504 # substituted into the Makefile and "${CC-cc}" will confuse make.
1506 # On the NeXT, cc -E runs the code through the compiler's parser,
1507 # not just through cpp.
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1515 { (eval echo configure:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1517 if test -z "$ac_err"; then
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1524 CPP="${CC-cc} -E -traditional-cpp"
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1532 { (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1534 if test -z "$ac_err"; then
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1541 CPP="${CC-cc} -nologo -E"
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551 if test -z "$ac_err"; then
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1565 ac_cv_prog_CPP="$CPP"
1567 CPP="$ac_cv_prog_CPP"
1569 ac_cv_prog_CPP="$CPP"
1571 echo "$ac_t""$CPP" 1>&6
1573 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1574 echo "configure:1575: checking for ANSI C header files" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1589 if test -z "$ac_err"; then
1591 ac_cv_header_stdc=yes
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1597 ac_cv_header_stdc=no
1601 if test $ac_cv_header_stdc = yes; then
1602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1609 egrep "memchr" >/dev/null 2>&1; then
1613 ac_cv_header_stdc=no
1619 if test $ac_cv_header_stdc = yes; then
1620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1627 egrep "free" >/dev/null 2>&1; then
1631 ac_cv_header_stdc=no
1637 if test $ac_cv_header_stdc = yes; then
1638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1639 if test "$cross_compiling" = yes; then
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1647 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1649 int main () { int i; for (i = 0; i < 256; i++)
1650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1654 if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1658 echo "configure: failed program was:" >&5
1659 cat conftest.$ac_ext >&5
1661 ac_cv_header_stdc=no
1669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1670 if test $ac_cv_header_stdc = yes; then
1671 cat >> confdefs.h <<\EOF
1672 #define STDC_HEADERS 1
1678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1681 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_hdr that defines DIR" >&5
1683 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 cat > conftest.$ac_ext <<EOF
1687 #line 1688 "configure"
1688 #include "confdefs.h"
1689 #include <sys/types.h>
1695 if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1697 eval "ac_cv_header_dirent_$ac_safe=yes"
1699 echo "configure: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1702 eval "ac_cv_header_dirent_$ac_safe=no"
1706 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1707 echo "$ac_t""yes" 1>&6
1708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1709 cat >> confdefs.h <<EOF
1710 #define $ac_tr_hdr 1
1712 ac_header_dirent=$ac_hdr; break
1714 echo "$ac_t""no" 1>&6
1717 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1718 if test $ac_header_dirent = dirent.h; then
1719 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1720 echo "configure:1721: checking for opendir in -ldir" >&5
1721 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 ac_save_LIBS="$LIBS"
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 /* Override any gcc2 internal prototype to avoid an error. */
1731 /* We use char because int might match the return type of a gcc2
1732 builtin and then its argument prototype would still apply. */
1739 if { (eval echo configure:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741 eval "ac_cv_lib_$ac_lib_var=yes"
1743 echo "configure: failed program was:" >&5
1744 cat conftest.$ac_ext >&5
1746 eval "ac_cv_lib_$ac_lib_var=no"
1749 LIBS="$ac_save_LIBS"
1752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1753 echo "$ac_t""yes" 1>&6
1756 echo "$ac_t""no" 1>&6
1760 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1761 echo "configure:1762: checking for opendir in -lx" >&5
1762 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_save_LIBS="$LIBS"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1787 eval "ac_cv_lib_$ac_lib_var=no"
1790 LIBS="$ac_save_LIBS"
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1797 echo "$ac_t""no" 1>&6
1802 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether time.h and sys/time.h may both be included" >&5
1804 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1810 #include <sys/types.h>
1811 #include <sys/time.h>
1817 if { (eval echo configure:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 ac_cv_header_time=yes
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 ac_cv_header_time=no
1829 echo "$ac_t""$ac_cv_header_time" 1>&6
1830 if test $ac_cv_header_time = yes; then
1831 cat >> confdefs.h <<\EOF
1832 #define TIME_WITH_SYS_TIME 1
1837 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1838 echo "configure:1839: checking for sys/wait.h that is POSIX.1 compatible" >&5
1839 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1842 cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 #include <sys/types.h>
1846 #include <sys/wait.h>
1848 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1851 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1856 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1859 if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1861 ac_cv_header_sys_wait_h=yes
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1866 ac_cv_header_sys_wait_h=no
1871 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1872 if test $ac_cv_header_sys_wait_h = yes; then
1873 cat >> confdefs.h <<\EOF
1874 #define HAVE_SYS_WAIT_H 1
1879 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $ac_hdr" >&5
1884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1897 eval "ac_cv_header_$ac_safe=yes"
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 eval "ac_cv_header_$ac_safe=no"
1907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1910 cat >> confdefs.h <<EOF
1911 #define $ac_tr_hdr 1
1915 echo "$ac_t""no" 1>&6
1919 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_hdr" >&5
1924 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1935 if test -z "$ac_err"; then
1937 eval "ac_cv_header_$ac_safe=yes"
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1943 eval "ac_cv_header_$ac_safe=no"
1947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1950 cat >> confdefs.h <<EOF
1951 #define $ac_tr_hdr 1
1955 echo "$ac_t""no" 1>&6
1959 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1961 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1962 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_hdr" >&5
1964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.$ac_ext <<EOF
1968 #line 1969 "configure"
1969 #include "confdefs.h"
1972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1973 { (eval echo configure:1974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1975 if test -z "$ac_err"; then
1977 eval "ac_cv_header_$ac_safe=yes"
1980 echo "configure: failed program was:" >&5
1981 cat conftest.$ac_ext >&5
1983 eval "ac_cv_header_$ac_safe=no"
1987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1988 echo "$ac_t""yes" 1>&6
1989 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1990 cat >> confdefs.h <<EOF
1991 #define $ac_tr_hdr 1
1995 echo "$ac_t""no" 1>&6
1999 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_hdr" >&5
2004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 cat > conftest.$ac_ext <<EOF
2008 #line 2009 "configure"
2009 #include "confdefs.h"
2012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2013 { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2015 if test -z "$ac_err"; then
2017 eval "ac_cv_header_$ac_safe=yes"
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2023 eval "ac_cv_header_$ac_safe=no"
2027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2030 cat >> confdefs.h <<EOF
2031 #define $ac_tr_hdr 1
2035 echo "$ac_t""no" 1>&6
2039 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_hdr" >&5
2044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then
2057 eval "ac_cv_header_$ac_safe=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2063 eval "ac_cv_header_$ac_safe=no"
2067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2070 cat >> confdefs.h <<EOF
2071 #define $ac_tr_hdr 1
2075 echo "$ac_t""no" 1>&6
2079 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2081 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2082 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2083 echo "configure:2084: checking for $ac_hdr" >&5
2084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2093 { (eval echo configure:2094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2095 if test -z "$ac_err"; then
2097 eval "ac_cv_header_$ac_safe=yes"
2100 echo "configure: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2103 eval "ac_cv_header_$ac_safe=no"
2107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2110 cat >> confdefs.h <<EOF
2111 #define $ac_tr_hdr 1
2115 echo "$ac_t""no" 1>&6
2119 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_hdr" >&5
2124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2133 { (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2135 if test -z "$ac_err"; then
2137 eval "ac_cv_header_$ac_safe=yes"
2140 echo "configure: failed program was:" >&5
2141 cat conftest.$ac_ext >&5
2143 eval "ac_cv_header_$ac_safe=no"
2147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2150 cat >> confdefs.h <<EOF
2151 #define $ac_tr_hdr 1
2155 echo "$ac_t""no" 1>&6
2159 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_hdr" >&5
2164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2173 { (eval echo configure:2174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2175 if test -z "$ac_err"; then
2177 eval "ac_cv_header_$ac_safe=yes"
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 eval "ac_cv_header_$ac_safe=no"
2187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2190 cat >> confdefs.h <<EOF
2191 #define $ac_tr_hdr 1
2195 echo "$ac_t""no" 1>&6
2201 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2202 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2214 if { (eval echo configure:2215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2216 ac_cv_header_shadow_h=yes
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 ac_cv_header_shadow_h=no
2224 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2225 cat >> confdefs.h <<\EOF
2226 #define HAVE_SHADOW_H 1
2232 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2250 eval "ac_cv_header_$ac_safe=yes"
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 eval "ac_cv_header_$ac_safe=no"
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2268 echo "$ac_t""no" 1>&6
2272 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_hdr" >&5
2277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2286 { (eval echo configure:2287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2288 if test -z "$ac_err"; then
2290 eval "ac_cv_header_$ac_safe=yes"
2293 echo "configure: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 eval "ac_cv_header_$ac_safe=no"
2300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2301 echo "$ac_t""yes" 1>&6
2302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2303 cat >> confdefs.h <<EOF
2304 #define $ac_tr_hdr 1
2308 echo "$ac_t""no" 1>&6
2312 for ac_hdr in stropts.h poll.h
2314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2316 echo "configure:2317: checking for $ac_hdr" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2343 cat >> confdefs.h <<EOF
2344 #define $ac_tr_hdr 1
2348 echo "$ac_t""no" 1>&6
2352 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2356 echo "configure:2357: checking for $ac_hdr" >&5
2357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2366 { (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2368 if test -z "$ac_err"; then
2370 eval "ac_cv_header_$ac_safe=yes"
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2376 eval "ac_cv_header_$ac_safe=no"
2380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2383 cat >> confdefs.h <<EOF
2384 #define $ac_tr_hdr 1
2388 echo "$ac_t""no" 1>&6
2392 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 eval "ac_cv_header_$ac_safe=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_header_$ac_safe=no"
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2428 echo "$ac_t""no" 1>&6
2433 # For experimental utmp support (lastlog on some BSD-like systems)
2434 for ac_hdr in utmp.h utmpx.h lastlog.h
2436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2452 eval "ac_cv_header_$ac_safe=yes"
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 eval "ac_cv_header_$ac_safe=no"
2462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2465 cat >> confdefs.h <<EOF
2466 #define $ac_tr_hdr 1
2470 echo "$ac_t""no" 1>&6
2475 # For quotas on Veritas VxFS filesystems
2476 for ac_hdr in sys/fs/vx_quota.h
2478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_hdr" >&5
2481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2490 { (eval echo configure:2491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2492 if test -z "$ac_err"; then
2494 eval "ac_cv_header_$ac_safe=yes"
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 eval "ac_cv_header_$ac_safe=no"
2504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2505 echo "$ac_t""yes" 1>&6
2506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2507 cat >> confdefs.h <<EOF
2508 #define $ac_tr_hdr 1
2512 echo "$ac_t""no" 1>&6
2517 echo $ac_n "checking size of int""... $ac_c" 1>&6
2518 echo "configure:2519: checking size of int" >&5
2519 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 if test "$cross_compiling" = yes; then
2523 ac_cv_sizeof_int=cross
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2529 #include <sys/types.h>
2532 FILE *f=fopen("conftestval", "w");
2534 fprintf(f, "%d\n", sizeof(int));
2538 if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2540 ac_cv_sizeof_int=`cat conftestval`
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2551 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2552 cat >> confdefs.h <<EOF
2553 #define SIZEOF_INT $ac_cv_sizeof_int
2557 echo $ac_n "checking size of long""... $ac_c" 1>&6
2558 echo "configure:2559: checking size of long" >&5
2559 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 if test "$cross_compiling" = yes; then
2563 ac_cv_sizeof_long=cross
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2569 #include <sys/types.h>
2572 FILE *f=fopen("conftestval", "w");
2574 fprintf(f, "%d\n", sizeof(long));
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2580 ac_cv_sizeof_long=`cat conftestval`
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2591 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2592 cat >> confdefs.h <<EOF
2593 #define SIZEOF_LONG $ac_cv_sizeof_long
2597 echo $ac_n "checking size of short""... $ac_c" 1>&6
2598 echo "configure:2599: checking size of short" >&5
2599 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 if test "$cross_compiling" = yes; then
2603 ac_cv_sizeof_short=cross
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2609 #include <sys/types.h>
2612 FILE *f=fopen("conftestval", "w");
2614 fprintf(f, "%d\n", sizeof(short));
2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2620 ac_cv_sizeof_short=`cat conftestval`
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 ac_cv_sizeof_short=0
2631 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2632 cat >> confdefs.h <<EOF
2633 #define SIZEOF_SHORT $ac_cv_sizeof_short
2638 echo $ac_n "checking for working const""... $ac_c" 1>&6
2639 echo "configure:2640: checking for working const" >&5
2640 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2649 /* Ultrix mips cc rejects this. */
2650 typedef int charset[2]; const charset x;
2651 /* SunOS 4.1.1 cc rejects this. */
2652 char const *const *ccp;
2654 /* NEC SVR4.0.2 mips cc rejects this. */
2655 struct point {int x, y;};
2656 static struct point const zero = {0,0};
2657 /* AIX XL C 1.02.0.0 rejects this.
2658 It does not let you subtract one const X* pointer from another in an arm
2659 of an if-expression whose if-part is not a constant expression */
2660 const char *g = "string";
2661 ccp = &g + (g ? g-g : 0);
2662 /* HPUX 7.0 cc rejects these. */
2665 ccp = (char const *const *) p;
2666 { /* SCO 3.2v4 cc rejects this. */
2668 char const *s = 0 ? (char *) 0 : (char const *) 0;
2672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2674 const int *foo = &x[0];
2677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2678 typedef const int *iptr;
2682 { /* AIX XL C 1.02.0.0 rejects this saying
2683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2684 struct s { int j; const int *ap[3]; };
2685 struct s *b; b->j = 5;
2687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2693 if { (eval echo configure:2694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2697 echo "configure: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2705 echo "$ac_t""$ac_cv_c_const" 1>&6
2706 if test $ac_cv_c_const = no; then
2707 cat >> confdefs.h <<\EOF
2713 echo $ac_n "checking for inline""... $ac_c" 1>&6
2714 echo "configure:2715: checking for inline" >&5
2715 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2719 for ac_kw in inline __inline__ __inline; do
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2728 if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 ac_cv_c_inline=$ac_kw; break
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2740 echo "$ac_t""$ac_cv_c_inline" 1>&6
2741 case "$ac_cv_c_inline" in
2743 no) cat >> confdefs.h <<\EOF
2747 *) cat >> confdefs.h <<EOF
2748 #define inline $ac_cv_c_inline
2753 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2754 echo "configure:2755: checking whether byte ordering is bigendian" >&5
2755 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 ac_cv_c_bigendian=unknown
2759 # See if sys/param.h defines the BYTE_ORDER macro.
2760 cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2767 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2774 # It does; now see whether it defined to BIG_ENDIAN or not.
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 #include <sys/types.h>
2779 #include <sys/param.h>
2782 #if BYTE_ORDER != BIG_ENDIAN
2787 if { (eval echo configure:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2789 ac_cv_c_bigendian=yes
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2794 ac_cv_c_bigendian=no
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2802 if test $ac_cv_c_bigendian = unknown; then
2803 if test "$cross_compiling" = yes; then
2804 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2810 /* Are we little or big endian? From Harbison&Steele. */
2814 char c[sizeof (long)];
2817 exit (u.c[sizeof (long) - 1] == 1);
2820 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2822 ac_cv_c_bigendian=no
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2827 ac_cv_c_bigendian=yes
2835 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2836 if test $ac_cv_c_bigendian = yes; then
2837 cat >> confdefs.h <<\EOF
2838 #define WORDS_BIGENDIAN 1
2843 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2844 echo "configure:2845: checking whether char is unsigned" >&5
2845 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 if test "$GCC" = yes; then
2849 # GCC predefines this symbol on systems where it applies.
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 #ifdef __CHAR_UNSIGNED__
2858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2859 egrep "yes" >/dev/null 2>&1; then
2861 ac_cv_c_char_unsigned=yes
2864 ac_cv_c_char_unsigned=no
2869 if test "$cross_compiling" = yes; then
2870 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2876 #if !defined(__STDC__) || __STDC__ != 1
2880 volatile char c = 255; exit(c < 0);
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2885 ac_cv_c_char_unsigned=yes
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 ac_cv_c_char_unsigned=no
2898 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2899 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2900 cat >> confdefs.h <<\EOF
2901 #define __CHAR_UNSIGNED__ 1
2907 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2908 echo "configure:2909: checking return type of signal handlers" >&5
2909 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <sys/types.h>
2921 extern "C" void (*signal (int, void (*)(int)))(int);
2923 void (*signal ()) ();
2930 if { (eval echo configure:2931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2932 ac_cv_type_signal=void
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2937 ac_cv_type_signal=int
2942 echo "$ac_t""$ac_cv_type_signal" 1>&6
2943 cat >> confdefs.h <<EOF
2944 #define RETSIGTYPE $ac_cv_type_signal
2948 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2949 echo "configure:2950: checking for uid_t in sys/types.h" >&5
2950 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2956 #include <sys/types.h>
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 egrep "uid_t" >/dev/null 2>&1; then
2961 ac_cv_type_uid_t=yes
2970 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2971 if test $ac_cv_type_uid_t = no; then
2972 cat >> confdefs.h <<\EOF
2976 cat >> confdefs.h <<\EOF
2982 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2983 echo "configure:2984: checking for mode_t" >&5
2984 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 #include <sys/types.h>
2996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2997 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2999 ac_cv_type_mode_t=yes
3002 ac_cv_type_mode_t=no
3007 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3008 if test $ac_cv_type_mode_t = no; then
3009 cat >> confdefs.h <<\EOF
3015 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3016 echo "configure:3017: checking for off_t" >&5
3017 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <sys/types.h>
3029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3030 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3032 ac_cv_type_off_t=yes
3040 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3041 if test $ac_cv_type_off_t = no; then
3042 cat >> confdefs.h <<\EOF
3048 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3049 echo "configure:3050: checking for size_t" >&5
3050 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 #include <sys/types.h>
3062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3063 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3065 ac_cv_type_size_t=yes
3068 ac_cv_type_size_t=no
3073 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3074 if test $ac_cv_type_size_t = no; then
3075 cat >> confdefs.h <<\EOF
3076 #define size_t unsigned
3081 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3082 echo "configure:3083: checking for pid_t" >&5
3083 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 #include <sys/types.h>
3095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3098 ac_cv_type_pid_t=yes
3106 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3107 if test $ac_cv_type_pid_t = no; then
3108 cat >> confdefs.h <<\EOF
3114 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3115 echo "configure:3116: checking for st_rdev in struct stat" >&5
3116 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #include <sys/types.h>
3123 #include <sys/stat.h>
3125 struct stat s; s.st_rdev;
3128 if { (eval echo configure:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3130 ac_cv_struct_st_rdev=yes
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3135 ac_cv_struct_st_rdev=no
3140 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3141 if test $ac_cv_struct_st_rdev = yes; then
3142 cat >> confdefs.h <<\EOF
3143 #define HAVE_ST_RDEV 1
3148 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3149 echo "configure:3150: checking for d_off in dirent" >&5
3150 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3158 #include <sys/types.h>
3161 struct dirent d; d.d_off;
3164 if { (eval echo configure:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166 ac_cv_dirent_d_off=yes
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 ac_cv_dirent_d_off=no
3176 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3177 if test $ac_cv_dirent_d_off = yes; then
3178 cat >> confdefs.h <<\EOF
3179 #define HAVE_DIRENT_D_OFF 1
3184 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3185 echo "configure:3186: checking for ino_t" >&5
3186 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 #include <sys/types.h>
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3201 ac_cv_type_ino_t=yes
3209 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3210 if test $ac_cv_type_ino_t = no; then
3211 cat >> confdefs.h <<\EOF
3212 #define ino_t unsigned
3217 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3218 echo "configure:3219: checking for loff_t" >&5
3219 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 #include <sys/types.h>
3231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3232 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3234 ac_cv_type_loff_t=yes
3237 ac_cv_type_loff_t=no
3242 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3243 if test $ac_cv_type_loff_t = no; then
3244 cat >> confdefs.h <<\EOF
3245 #define loff_t off_t
3250 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3251 echo "configure:3252: checking for offset_t" >&5
3252 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3258 #include <sys/types.h>
3264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3265 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3267 ac_cv_type_offset_t=yes
3270 ac_cv_type_offset_t=no
3275 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3276 if test $ac_cv_type_offset_t = no; then
3277 cat >> confdefs.h <<\EOF
3278 #define offset_t loff_t
3283 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3284 echo "configure:3285: checking for ssize_t" >&5
3285 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <sys/types.h>
3297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3300 ac_cv_type_ssize_t=yes
3303 ac_cv_type_ssize_t=no
3308 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3309 if test $ac_cv_type_ssize_t = no; then
3310 cat >> confdefs.h <<\EOF
3316 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3317 echo "configure:3318: checking for wchar_t" >&5
3318 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <sys/types.h>
3330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3331 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3333 ac_cv_type_wchar_t=yes
3336 ac_cv_type_wchar_t=no
3341 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3342 if test $ac_cv_type_wchar_t = no; then
3343 cat >> confdefs.h <<\EOF
3344 #define wchar_t unsigned short
3350 # we need libcups for CUPS support...
3351 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3352 echo "configure:3353: checking for httpConnect in -lcups" >&5
3353 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_save_LIBS="$LIBS"
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 eval "ac_cv_lib_$ac_lib_var=no"
3381 LIBS="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3387 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_lib 1
3395 echo "$ac_t""no" 1>&6
3399 # we need libdl for PAM and the new VFS code
3400 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3401 echo "configure:3402: checking for dlopen in -ldl" >&5
3402 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_save_LIBS="$LIBS"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 eval "ac_cv_lib_$ac_lib_var=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_lib_$ac_lib_var=no"
3430 LIBS="$ac_save_LIBS"
3433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3436 cat >> confdefs.h <<\EOF
3437 #define HAVE_LIBDL 1
3441 echo "$ac_t""no" 1>&6
3445 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3446 echo "configure:3447: checking for socklen_t type" >&5
3447 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3455 #include <sys/types.h>
3460 #include <sys/socket.h>
3465 if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3467 samba_cv_socklen_t=yes
3469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
3472 samba_cv_socklen_t=no
3477 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3478 if test x"$samba_cv_socklen_t" = x"yes"; then
3479 cat >> confdefs.h <<\EOF
3480 #define HAVE_SOCKLEN_T_TYPE 1
3485 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3486 echo "configure:3487: checking for sig_atomic_t type" >&5
3487 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3495 #include <sys/types.h>
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 samba_cv_sig_atomic_t=yes
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 samba_cv_sig_atomic_t=no
3517 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3518 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3519 cat >> confdefs.h <<\EOF
3520 #define HAVE_SIG_ATOMIC_T_TYPE 1
3525 # stupid headers have the functions but no declaration. grrrr.
3527 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3528 echo "configure:3529: checking for errno declaration" >&5
3529 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3541 if { (eval echo configure:3542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3543 ac_cv_have_errno_decl=yes
3545 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 ac_cv_have_errno_decl=no
3553 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3554 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3555 cat >> confdefs.h <<\EOF
3556 #define HAVE_ERRNO_DECL 1
3562 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3563 echo "configure:3564: checking for setresuid declaration" >&5
3564 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3573 int i = (int)setresuid
3576 if { (eval echo configure:3577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3578 ac_cv_have_setresuid_decl=yes
3580 echo "configure: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3583 ac_cv_have_setresuid_decl=no
3588 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3589 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3590 cat >> confdefs.h <<\EOF
3591 #define HAVE_SETRESUID_DECL 1
3597 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3598 echo "configure:3599: checking for setresgid declaration" >&5
3599 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3608 int i = (int)setresgid
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3613 ac_cv_have_setresgid_decl=yes
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 ac_cv_have_setresgid_decl=no
3623 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3624 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3625 cat >> confdefs.h <<\EOF
3626 #define HAVE_SETRESGID_DECL 1
3632 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3633 echo "configure:3634: checking for asprintf declaration" >&5
3634 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3643 int i = (int)asprintf
3646 if { (eval echo configure:3647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3648 ac_cv_have_asprintf_decl=yes
3650 echo "configure: failed program was:" >&5
3651 cat conftest.$ac_ext >&5
3653 ac_cv_have_asprintf_decl=no
3658 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3659 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3660 cat >> confdefs.h <<\EOF
3661 #define HAVE_ASPRINTF_DECL 1
3667 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3668 echo "configure:3669: checking for vasprintf declaration" >&5
3669 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3678 int i = (int)vasprintf
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 ac_cv_have_vasprintf_decl=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 ac_cv_have_vasprintf_decl=no
3693 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3694 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3695 cat >> confdefs.h <<\EOF
3696 #define HAVE_VASPRINTF_DECL 1
3702 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3703 echo "configure:3704: checking for vsnprintf declaration" >&5
3704 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3713 int i = (int)vsnprintf
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 ac_cv_have_vsnprintf_decl=yes
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 ac_cv_have_vsnprintf_decl=no
3728 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3729 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3730 cat >> confdefs.h <<\EOF
3731 #define HAVE_VSNPRINTF_DECL 1
3737 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3738 echo "configure:3739: checking for snprintf declaration" >&5
3739 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3748 int i = (int)snprintf
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753 ac_cv_have_snprintf_decl=yes
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 ac_cv_have_snprintf_decl=no
3763 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3764 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3765 cat >> confdefs.h <<\EOF
3766 #define HAVE_SNPRINTF_DECL 1
3772 # and glibc has setresuid under linux but the function does
3773 # nothing until kernel 2.1.44! very dumb.
3774 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3775 echo "configure:3776: checking for real setresuid" >&5
3776 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3780 if test "$cross_compiling" = yes; then
3781 samba_cv_have_setresuid=cross
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3787 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3789 if { (eval echo configure:3790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3791 samba_cv_have_setresuid=yes
3793 echo "configure: failed program was:" >&5
3794 cat conftest.$ac_ext >&5
3796 samba_cv_have_setresuid=no
3803 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3804 if test x"$samba_cv_have_setresuid" = x"yes"; then
3805 cat >> confdefs.h <<\EOF
3806 #define HAVE_SETRESUID 1
3811 # Do the same check for setresguid...
3813 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3814 echo "configure:3815: checking for real setresgid" >&5
3815 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3819 if test "$cross_compiling" = yes; then
3820 samba_cv_have_setresgid=cross
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3827 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3831 samba_cv_have_setresgid=yes
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 samba_cv_have_setresgid=no
3843 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3844 if test x"$samba_cv_have_setresgid" = x"yes"; then
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_SETRESGID 1
3851 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3852 echo "configure:3853: checking for 8-bit clean memcmp" >&5
3853 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 if test "$cross_compiling" = yes; then
3857 ac_cv_func_memcmp_clean=no
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3865 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3866 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3872 ac_cv_func_memcmp_clean=yes
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 ac_cv_func_memcmp_clean=no
3884 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3885 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3888 ###############################################
3889 # test for where we get crypt() from
3890 for ac_func in crypt
3892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3893 echo "configure:3894: checking for $ac_func" >&5
3894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* System header to define __stub macros and hopefully few prototypes,
3901 which can conflict with char $ac_func(); below. */
3903 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3910 /* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3923 eval "ac_cv_func_$ac_func=yes"
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 eval "ac_cv_func_$ac_func=no"
3933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3936 cat >> confdefs.h <<EOF
3937 #define $ac_tr_func 1
3941 echo "$ac_t""no" 1>&6
3945 if test x"$ac_cv_func_crypt" = x"no"; then
3946 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3947 echo "configure:3948: checking for crypt in -lcrypt" >&5
3948 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 ac_save_LIBS="$LIBS"
3953 LIBS="-lcrypt $LIBS"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* Override any gcc2 internal prototype to avoid an error. */
3958 /* We use char because int might match the return type of a gcc2
3959 builtin and then its argument prototype would still apply. */
3966 if { (eval echo configure:3967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 eval "ac_cv_lib_$ac_lib_var=yes"
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 eval "ac_cv_lib_$ac_lib_var=no"
3976 LIBS="$ac_save_LIBS"
3979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3981 LIBS="$LIBS -lcrypt";
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_CRYPT 1
3987 echo "$ac_t""no" 1>&6
3993 ###############################################
3994 # Readline included by default unless explicitly asked not to
3995 test "${with_readline+set}" != "set" && with_readline=yes
3997 # test for where we get readline() from
3998 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
3999 echo "configure:4000: checking whether to use readline" >&5
4000 # Check whether --with-readline or --without-readline was given.
4001 if test "${with_readline+set}" = set; then
4002 withval="$with_readline"
4003 case "$with_readline" in
4005 echo "$ac_t""yes" 1>&6
4007 for ac_hdr in readline.h history.h readline/readline.h
4009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4011 echo "configure:4012: checking for $ac_hdr" >&5
4012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4021 { (eval echo configure:4022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4023 if test -z "$ac_err"; then
4025 eval "ac_cv_header_$ac_safe=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_header_$ac_safe=no"
4035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4038 cat >> confdefs.h <<EOF
4039 #define $ac_tr_hdr 1
4043 echo "$ac_t""no" 1>&6
4047 for ac_hdr in readline/history.h
4049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4051 echo "configure:4052: checking for $ac_hdr" >&5
4052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4061 { (eval echo configure:4062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4063 if test -z "$ac_err"; then
4065 eval "ac_cv_header_$ac_safe=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_header_$ac_safe=no"
4075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4078 cat >> confdefs.h <<EOF
4079 #define $ac_tr_hdr 1
4083 echo "$ac_t""no" 1>&6
4088 for ac_hdr in readline.h readline/readline.h
4090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4092 echo "configure:4093: checking for $ac_hdr" >&5
4093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4094 echo $ac_n "(cached) $ac_c" 1>&6
4096 cat > conftest.$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4102 { (eval echo configure:4103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4104 if test -z "$ac_err"; then
4106 eval "ac_cv_header_$ac_safe=yes"
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4112 eval "ac_cv_header_$ac_safe=no"
4116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4119 cat >> confdefs.h <<EOF
4120 #define $ac_tr_hdr 1
4123 for termlib in ncurses curses termcap terminfo termlib; do
4124 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4125 echo "configure:4126: checking for tgetent in -l${termlib}" >&5
4126 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 ac_save_LIBS="$LIBS"
4131 LIBS="-l${termlib} $LIBS"
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* Override any gcc2 internal prototype to avoid an error. */
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 eval "ac_cv_lib_$ac_lib_var=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 eval "ac_cv_lib_$ac_lib_var=no"
4154 LIBS="$ac_save_LIBS"
4157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 TERMLIBS="-l${termlib}"; break
4161 echo "$ac_t""no" 1>&6
4165 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4166 echo "configure:4167: checking for rl_callback_handler_install in -lreadline" >&5
4167 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 ac_save_LIBS="$LIBS"
4172 LIBS="-lreadline $TERMLIBS $LIBS"
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179 char rl_callback_handler_install();
4182 rl_callback_handler_install()
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187 eval "ac_cv_lib_$ac_lib_var=yes"
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 eval "ac_cv_lib_$ac_lib_var=no"
4195 LIBS="$ac_save_LIBS"
4198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 TERMLIBS="-lreadline $TERMLIBS"
4201 cat >> confdefs.h <<\EOF
4202 #define HAVE_LIBREADLINE 1
4207 echo "$ac_t""no" 1>&6
4212 echo "$ac_t""no" 1>&6
4218 echo "$ac_t""no" 1>&6
4221 echo "$ac_t""yes" 1>&6
4223 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4224 # alternate readline path
4226 _cppflags=${CPPFLAGS}
4228 # Add additional search path
4229 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4230 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4232 for ac_hdr in readline.h history.h readline/readline.h
4234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4236 echo "configure:4237: checking for $ac_hdr" >&5
4237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4246 { (eval echo configure:4247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4248 if test -z "$ac_err"; then
4250 eval "ac_cv_header_$ac_safe=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_header_$ac_safe=no"
4260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4263 cat >> confdefs.h <<EOF
4264 #define $ac_tr_hdr 1
4268 echo "$ac_t""no" 1>&6
4272 for ac_hdr in readline/history.h
4274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_hdr" >&5
4277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4286 { (eval echo configure:4287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4288 if test -z "$ac_err"; then
4290 eval "ac_cv_header_$ac_safe=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_header_$ac_safe=no"
4300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_hdr 1
4308 echo "$ac_t""no" 1>&6
4313 for ac_hdr in readline.h readline/readline.h
4315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4317 echo "configure:4318: checking for $ac_hdr" >&5
4318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4327 { (eval echo configure:4328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4329 if test -z "$ac_err"; then
4331 eval "ac_cv_header_$ac_safe=yes"
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 eval "ac_cv_header_$ac_safe=no"
4341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4344 cat >> confdefs.h <<EOF
4345 #define $ac_tr_hdr 1
4348 for termlib in ncurses curses termcap terminfo termlib; do
4349 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4350 echo "configure:4351: checking for tgetent in -l${termlib}" >&5
4351 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 ac_save_LIBS="$LIBS"
4356 LIBS="-l${termlib} $LIBS"
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4371 eval "ac_cv_lib_$ac_lib_var=yes"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 eval "ac_cv_lib_$ac_lib_var=no"
4379 LIBS="$ac_save_LIBS"
4382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 TERMLIBS="-l${termlib}"; break
4386 echo "$ac_t""no" 1>&6
4390 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4391 echo "configure:4392: checking for rl_callback_handler_install in -lreadline" >&5
4392 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 ac_save_LIBS="$LIBS"
4397 LIBS="-lreadline $TERMLIBS $LIBS"
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4404 char rl_callback_handler_install();
4407 rl_callback_handler_install()
4410 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 eval "ac_cv_lib_$ac_lib_var=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 eval "ac_cv_lib_$ac_lib_var=no"
4420 LIBS="$ac_save_LIBS"
4423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4424 echo "$ac_t""yes" 1>&6
4425 TERMLDFLAGS="-L$with_readline/lib"
4426 TERMCPPFLAGS="-I$with_readline/include"
4427 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4428 TERMLIBS="-lreadline $TERMLIBS"
4429 cat >> confdefs.h <<\EOF
4430 #define HAVE_LIBREADLINE 1
4435 echo "$ac_t""no" 1>&6
4436 TERMLIBS= CPPFLAGS=$_cppflags
4440 echo "$ac_t""no" 1>&6
4449 echo "$ac_t""no" 1>&6
4456 # The following test taken from the cvs sources
4457 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4458 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4459 # libsocket.so which has a bad implementation of gethostbyname (it
4460 # only looks in /etc/hosts), so we only look for -lsocket if we need
4462 for ac_func in connect
4464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_func" >&5
4466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char $ac_func(); below. */
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4482 /* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
4485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 eval "ac_cv_func_$ac_func=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_func_$ac_func=no"
4505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508 cat >> confdefs.h <<EOF
4509 #define $ac_tr_func 1
4513 echo "$ac_t""no" 1>&6
4517 if test x"$ac_cv_func_connect" = x"no"; then
4520 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4521 echo "configure:4522: checking for printf in -lnsl_s" >&5
4522 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 ac_save_LIBS="$LIBS"
4527 LIBS="-lnsl_s $LIBS"
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 /* Override any gcc2 internal prototype to avoid an error. */
4532 /* We use char because int might match the return type of a gcc2
4533 builtin and then its argument prototype would still apply. */
4540 if { (eval echo configure:4541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4542 eval "ac_cv_lib_$ac_lib_var=yes"
4544 echo "configure: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4547 eval "ac_cv_lib_$ac_lib_var=no"
4550 LIBS="$ac_save_LIBS"
4553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6
4555 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_lib 1
4561 LIBS="-lnsl_s $LIBS"
4564 echo "$ac_t""no" 1>&6
4570 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4571 echo "configure:4572: checking for printf in -lnsl" >&5
4572 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 ac_save_LIBS="$LIBS"
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 eval "ac_cv_lib_$ac_lib_var=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_lib_$ac_lib_var=no"
4600 LIBS="$ac_save_LIBS"
4603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_lib 1
4614 echo "$ac_t""no" 1>&6
4620 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4621 echo "configure:4622: checking for connect in -lsocket" >&5
4622 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4627 LIBS="-lsocket $LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 eval "ac_cv_lib_$ac_lib_var=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_lib_$ac_lib_var=no"
4650 LIBS="$ac_save_LIBS"
4653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4655 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4657 cat >> confdefs.h <<EOF
4658 #define $ac_tr_lib 1
4661 LIBS="-lsocket $LIBS"
4664 echo "$ac_t""no" 1>&6
4670 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4671 echo "configure:4672: checking for connect in -linet" >&5
4672 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 ac_save_LIBS="$LIBS"
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* Override any gcc2 internal prototype to avoid an error. */
4682 /* We use char because int might match the return type of a gcc2
4683 builtin and then its argument prototype would still apply. */
4690 if { (eval echo configure:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4692 eval "ac_cv_lib_$ac_lib_var=yes"
4694 echo "configure: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4697 eval "ac_cv_lib_$ac_lib_var=no"
4700 LIBS="$ac_save_LIBS"
4703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4704 echo "$ac_t""yes" 1>&6
4705 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4707 cat >> confdefs.h <<EOF
4708 #define $ac_tr_lib 1
4714 echo "$ac_t""no" 1>&6
4718 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4719 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4720 # ac_cv_func_connect=yes
4721 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4722 cat >> confdefs.h <<\EOF
4723 #define HAVE_CONNECT 1
4729 ###############################################
4730 # test for where we get get_yp_default_domain() from
4731 for ac_func in yp_get_default_domain
4733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_func" >&5
4735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 /* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func(); below. */
4744 /* Override any gcc2 internal prototype to avoid an error. */
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4751 /* The GNU C library defines this for functions which it implements
4752 to always fail with ENOSYS. Some functions are actually named
4753 something starting with __ and the normal name is an alias. */
4754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4764 eval "ac_cv_func_$ac_func=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4769 eval "ac_cv_func_$ac_func=no"
4774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4777 cat >> confdefs.h <<EOF
4778 #define $ac_tr_func 1
4782 echo "$ac_t""no" 1>&6
4786 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4787 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4788 echo "configure:4789: checking for yp_get_default_domain in -lnsl" >&5
4789 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 ac_save_LIBS="$LIBS"
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801 char yp_get_default_domain();
4804 yp_get_default_domain()
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4809 eval "ac_cv_lib_$ac_lib_var=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4814 eval "ac_cv_lib_$ac_lib_var=no"
4817 LIBS="$ac_save_LIBS"
4820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4823 cat >> confdefs.h <<\EOF
4824 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4828 echo "$ac_t""no" 1>&6
4833 # Check if we have execl, if not we need to compile smbrun.
4834 for ac_func in execl
4836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_func" >&5
4838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char $ac_func(); below. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4854 /* The GNU C library defines this for functions which it implements
4855 to always fail with ENOSYS. Some functions are actually named
4856 something starting with __ and the normal name is an alias. */
4857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_func_$ac_func=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_func_$ac_func=no"
4877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4880 cat >> confdefs.h <<EOF
4881 #define $ac_tr_func 1
4885 echo "$ac_t""no" 1>&6
4889 if test x"$ac_cv_func_execl" = x"no"; then
4890 RUNPROG="bin/smbrun"
4895 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4898 echo "configure:4899: checking for $ac_func" >&5
4899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* System header to define __stub macros and hopefully few prototypes,
4906 which can conflict with char $ac_func(); below. */
4908 /* Override any gcc2 internal prototype to avoid an error. */
4909 /* We use char because int might match the return type of a gcc2
4910 builtin and then its argument prototype would still apply. */
4915 /* The GNU C library defines this for functions which it implements
4916 to always fail with ENOSYS. Some functions are actually named
4917 something starting with __ and the normal name is an alias. */
4918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 eval "ac_cv_func_$ac_func=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 eval "ac_cv_func_$ac_func=no"
4938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4941 cat >> confdefs.h <<EOF
4942 #define $ac_tr_func 1
4946 echo "$ac_t""no" 1>&6
4950 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
4952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4953 echo "configure:4954: checking for $ac_func" >&5
4954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960 /* System header to define __stub macros and hopefully few prototypes,
4961 which can conflict with char $ac_func(); below. */
4963 /* Override any gcc2 internal prototype to avoid an error. */
4964 /* We use char because int might match the return type of a gcc2
4965 builtin and then its argument prototype would still apply. */
4970 /* The GNU C library defines this for functions which it implements
4971 to always fail with ENOSYS. Some functions are actually named
4972 something starting with __ and the normal name is an alias. */
4973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4983 eval "ac_cv_func_$ac_func=yes"
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4988 eval "ac_cv_func_$ac_func=no"
4993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4996 cat >> confdefs.h <<EOF
4997 #define $ac_tr_func 1
5001 echo "$ac_t""no" 1>&6
5005 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5008 echo "configure:5009: checking for $ac_func" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char $ac_func(); below. */
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5038 eval "ac_cv_func_$ac_func=yes"
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5043 eval "ac_cv_func_$ac_func=no"
5048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5051 cat >> confdefs.h <<EOF
5052 #define $ac_tr_func 1
5056 echo "$ac_t""no" 1>&6
5060 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_func" >&5
5064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char $ac_func(); below. */
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5080 /* The GNU C library defines this for functions which it implements
5081 to always fail with ENOSYS. Some functions are actually named
5082 something starting with __ and the normal name is an alias. */
5083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093 eval "ac_cv_func_$ac_func=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 eval "ac_cv_func_$ac_func=no"
5103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106 cat >> confdefs.h <<EOF
5107 #define $ac_tr_func 1
5111 echo "$ac_t""no" 1>&6
5115 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5118 echo "configure:5119: checking for $ac_func" >&5
5119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5125 /* System header to define __stub macros and hopefully few prototypes,
5126 which can conflict with char $ac_func(); below. */
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5135 /* The GNU C library defines this for functions which it implements
5136 to always fail with ENOSYS. Some functions are actually named
5137 something starting with __ and the normal name is an alias. */
5138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 eval "ac_cv_func_$ac_func=yes"
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 eval "ac_cv_func_$ac_func=no"
5158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5159 echo "$ac_t""yes" 1>&6
5160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5161 cat >> confdefs.h <<EOF
5162 #define $ac_tr_func 1
5166 echo "$ac_t""no" 1>&6
5170 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5173 echo "configure:5174: checking for $ac_func" >&5
5174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5180 /* System header to define __stub macros and hopefully few prototypes,
5181 which can conflict with char $ac_func(); below. */
5183 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5190 /* The GNU C library defines this for functions which it implements
5191 to always fail with ENOSYS. Some functions are actually named
5192 something starting with __ and the normal name is an alias. */
5193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 eval "ac_cv_func_$ac_func=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 eval "ac_cv_func_$ac_func=no"
5213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5214 echo "$ac_t""yes" 1>&6
5215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5216 cat >> confdefs.h <<EOF
5217 #define $ac_tr_func 1
5221 echo "$ac_t""no" 1>&6
5225 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5228 echo "configure:5229: checking for $ac_func" >&5
5229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 /* System header to define __stub macros and hopefully few prototypes,
5236 which can conflict with char $ac_func(); below. */
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5245 /* The GNU C library defines this for functions which it implements
5246 to always fail with ENOSYS. Some functions are actually named
5247 something starting with __ and the normal name is an alias. */
5248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 eval "ac_cv_func_$ac_func=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_func_$ac_func=no"
5268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5271 cat >> confdefs.h <<EOF
5272 #define $ac_tr_func 1
5276 echo "$ac_t""no" 1>&6
5280 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5283 echo "configure:5284: checking for $ac_func" >&5
5284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290 /* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char $ac_func(); below. */
5293 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5300 /* The GNU C library defines this for functions which it implements
5301 to always fail with ENOSYS. Some functions are actually named
5302 something starting with __ and the normal name is an alias. */
5303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5313 eval "ac_cv_func_$ac_func=yes"
5315 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5
5318 eval "ac_cv_func_$ac_func=no"
5323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5326 cat >> confdefs.h <<EOF
5327 #define $ac_tr_func 1
5331 echo "$ac_t""no" 1>&6
5335 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char $ac_func(); below. */
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368 eval "ac_cv_func_$ac_func=yes"
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5373 eval "ac_cv_func_$ac_func=no"
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381 cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5386 echo "$ac_t""no" 1>&6
5390 # setbuffer is needed for smbtorture
5391 for ac_func in setbuffer
5393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5394 echo "configure:5395: checking for $ac_func" >&5
5395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 /* System header to define __stub macros and hopefully few prototypes,
5402 which can conflict with char $ac_func(); below. */
5404 /* Override any gcc2 internal prototype to avoid an error. */
5405 /* We use char because int might match the return type of a gcc2
5406 builtin and then its argument prototype would still apply. */
5411 /* The GNU C library defines this for functions which it implements
5412 to always fail with ENOSYS. Some functions are actually named
5413 something starting with __ and the normal name is an alias. */
5414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5422 if { (eval echo configure:5423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5424 eval "ac_cv_func_$ac_func=yes"
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5429 eval "ac_cv_func_$ac_func=no"
5434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5435 echo "$ac_t""yes" 1>&6
5436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5437 cat >> confdefs.h <<EOF
5438 #define $ac_tr_func 1
5442 echo "$ac_t""no" 1>&6
5447 # syscall() is needed for smbwrapper.
5448 for ac_func in syscall
5450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5451 echo "configure:5452: checking for $ac_func" >&5
5452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5453 echo $ac_n "(cached) $ac_c" 1>&6
5455 cat > conftest.$ac_ext <<EOF
5456 #line 5457 "configure"
5457 #include "confdefs.h"
5458 /* System header to define __stub macros and hopefully few prototypes,
5459 which can conflict with char $ac_func(); below. */
5461 /* Override any gcc2 internal prototype to avoid an error. */
5462 /* We use char because int might match the return type of a gcc2
5463 builtin and then its argument prototype would still apply. */
5468 /* The GNU C library defines this for functions which it implements
5469 to always fail with ENOSYS. Some functions are actually named
5470 something starting with __ and the normal name is an alias. */
5471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5479 if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5481 eval "ac_cv_func_$ac_func=yes"
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5486 eval "ac_cv_func_$ac_func=no"
5491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5492 echo "$ac_t""yes" 1>&6
5493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5494 cat >> confdefs.h <<EOF
5495 #define $ac_tr_func 1
5499 echo "$ac_t""no" 1>&6
5504 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5507 echo "configure:5508: checking for $ac_func" >&5
5508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 /* System header to define __stub macros and hopefully few prototypes,
5515 which can conflict with char $ac_func(); below. */
5517 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5524 /* The GNU C library defines this for functions which it implements
5525 to always fail with ENOSYS. Some functions are actually named
5526 something starting with __ and the normal name is an alias. */
5527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5537 eval "ac_cv_func_$ac_func=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_func_$ac_func=no"
5547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5548 echo "$ac_t""yes" 1>&6
5549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5550 cat >> confdefs.h <<EOF
5551 #define $ac_tr_func 1
5555 echo "$ac_t""no" 1>&6
5559 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5562 echo "configure:5563: checking for $ac_func" >&5
5563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5564 echo $ac_n "(cached) $ac_c" 1>&6
5566 cat > conftest.$ac_ext <<EOF
5567 #line 5568 "configure"
5568 #include "confdefs.h"
5569 /* System header to define __stub macros and hopefully few prototypes,
5570 which can conflict with char $ac_func(); below. */
5572 /* Override any gcc2 internal prototype to avoid an error. */
5573 /* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5579 /* The GNU C library defines this for functions which it implements
5580 to always fail with ENOSYS. Some functions are actually named
5581 something starting with __ and the normal name is an alias. */
5582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5590 if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5592 eval "ac_cv_func_$ac_func=yes"
5594 echo "configure: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5597 eval "ac_cv_func_$ac_func=no"
5602 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5603 echo "$ac_t""yes" 1>&6
5604 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5605 cat >> confdefs.h <<EOF
5606 #define $ac_tr_func 1
5610 echo "$ac_t""no" 1>&6
5614 for ac_func in __getcwd _getcwd
5616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5617 echo "configure:5618: checking for $ac_func" >&5
5618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 /* System header to define __stub macros and hopefully few prototypes,
5625 which can conflict with char $ac_func(); below. */
5627 /* Override any gcc2 internal prototype to avoid an error. */
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5645 if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5647 eval "ac_cv_func_$ac_func=yes"
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5652 eval "ac_cv_func_$ac_func=no"
5657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5658 echo "$ac_t""yes" 1>&6
5659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5660 cat >> confdefs.h <<EOF
5661 #define $ac_tr_func 1
5665 echo "$ac_t""no" 1>&6
5669 for ac_func in __xstat __fxstat __lxstat
5671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5672 echo "configure:5673: checking for $ac_func" >&5
5673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5674 echo $ac_n "(cached) $ac_c" 1>&6
5676 cat > conftest.$ac_ext <<EOF
5677 #line 5678 "configure"
5678 #include "confdefs.h"
5679 /* System header to define __stub macros and hopefully few prototypes,
5680 which can conflict with char $ac_func(); below. */
5682 /* Override any gcc2 internal prototype to avoid an error. */
5683 /* We use char because int might match the return type of a gcc2
5684 builtin and then its argument prototype would still apply. */
5689 /* The GNU C library defines this for functions which it implements
5690 to always fail with ENOSYS. Some functions are actually named
5691 something starting with __ and the normal name is an alias. */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700 if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702 eval "ac_cv_func_$ac_func=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5707 eval "ac_cv_func_$ac_func=no"
5712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5713 echo "$ac_t""yes" 1>&6
5714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5715 cat >> confdefs.h <<EOF
5716 #define $ac_tr_func 1
5720 echo "$ac_t""no" 1>&6
5724 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5727 echo "configure:5728: checking for $ac_func" >&5
5728 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5734 /* System header to define __stub macros and hopefully few prototypes,
5735 which can conflict with char $ac_func(); below. */
5737 /* Override any gcc2 internal prototype to avoid an error. */
5738 /* We use char because int might match the return type of a gcc2
5739 builtin and then its argument prototype would still apply. */
5744 /* The GNU C library defines this for functions which it implements
5745 to always fail with ENOSYS. Some functions are actually named
5746 something starting with __ and the normal name is an alias. */
5747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5755 if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5757 eval "ac_cv_func_$ac_func=yes"
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5762 eval "ac_cv_func_$ac_func=no"
5767 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5768 echo "$ac_t""yes" 1>&6
5769 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5770 cat >> confdefs.h <<EOF
5771 #define $ac_tr_func 1
5775 echo "$ac_t""no" 1>&6
5779 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5782 echo "configure:5783: checking for $ac_func" >&5
5783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 /* System header to define __stub macros and hopefully few prototypes,
5790 which can conflict with char $ac_func(); below. */
5792 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5799 /* The GNU C library defines this for functions which it implements
5800 to always fail with ENOSYS. Some functions are actually named
5801 something starting with __ and the normal name is an alias. */
5802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5810 if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5812 eval "ac_cv_func_$ac_func=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "ac_cv_func_$ac_func=no"
5822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5823 echo "$ac_t""yes" 1>&6
5824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5825 cat >> confdefs.h <<EOF
5826 #define $ac_tr_func 1
5830 echo "$ac_t""no" 1>&6
5834 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5837 echo "configure:5838: checking for $ac_func" >&5
5838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5844 /* System header to define __stub macros and hopefully few prototypes,
5845 which can conflict with char $ac_func(); below. */
5847 /* Override any gcc2 internal prototype to avoid an error. */
5848 /* We use char because int might match the return type of a gcc2
5849 builtin and then its argument prototype would still apply. */
5854 /* The GNU C library defines this for functions which it implements
5855 to always fail with ENOSYS. Some functions are actually named
5856 something starting with __ and the normal name is an alias. */
5857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5867 eval "ac_cv_func_$ac_func=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_func_$ac_func=no"
5877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5878 echo "$ac_t""yes" 1>&6
5879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5880 cat >> confdefs.h <<EOF
5881 #define $ac_tr_func 1
5885 echo "$ac_t""no" 1>&6
5889 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5892 echo "configure:5893: checking for $ac_func" >&5
5893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* System header to define __stub macros and hopefully few prototypes,
5900 which can conflict with char $ac_func(); below. */
5902 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5909 /* The GNU C library defines this for functions which it implements
5910 to always fail with ENOSYS. Some functions are actually named
5911 something starting with __ and the normal name is an alias. */
5912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5922 eval "ac_cv_func_$ac_func=yes"
5924 echo "configure: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5927 eval "ac_cv_func_$ac_func=no"
5932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5935 cat >> confdefs.h <<EOF
5936 #define $ac_tr_func 1
5940 echo "$ac_t""no" 1>&6
5944 for ac_func in _write __write _fork __fork
5946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5947 echo "configure:5948: checking for $ac_func" >&5
5948 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure"
5953 #include "confdefs.h"
5954 /* System header to define __stub macros and hopefully few prototypes,
5955 which can conflict with char $ac_func(); below. */
5957 /* Override any gcc2 internal prototype to avoid an error. */
5958 /* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5964 /* The GNU C library defines this for functions which it implements
5965 to always fail with ENOSYS. Some functions are actually named
5966 something starting with __ and the normal name is an alias. */
5967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5977 eval "ac_cv_func_$ac_func=yes"
5979 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5
5982 eval "ac_cv_func_$ac_func=no"
5987 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5988 echo "$ac_t""yes" 1>&6
5989 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5990 cat >> confdefs.h <<EOF
5991 #define $ac_tr_func 1
5995 echo "$ac_t""no" 1>&6
5999 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6002 echo "configure:6003: checking for $ac_func" >&5
6003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6009 /* System header to define __stub macros and hopefully few prototypes,
6010 which can conflict with char $ac_func(); below. */
6012 /* Override any gcc2 internal prototype to avoid an error. */
6013 /* We use char because int might match the return type of a gcc2
6014 builtin and then its argument prototype would still apply. */
6019 /* The GNU C library defines this for functions which it implements
6020 to always fail with ENOSYS. Some functions are actually named
6021 something starting with __ and the normal name is an alias. */
6022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6030 if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6032 eval "ac_cv_func_$ac_func=yes"
6034 echo "configure: failed program was:" >&5
6035 cat conftest.$ac_ext >&5
6037 eval "ac_cv_func_$ac_func=no"
6042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6043 echo "$ac_t""yes" 1>&6
6044 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6045 cat >> confdefs.h <<EOF
6046 #define $ac_tr_func 1
6050 echo "$ac_t""no" 1>&6
6054 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6057 echo "configure:6058: checking for $ac_func" >&5
6058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6064 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char $ac_func(); below. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 eval "ac_cv_func_$ac_func=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_func_$ac_func=no"
6097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6098 echo "$ac_t""yes" 1>&6
6099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6100 cat >> confdefs.h <<EOF
6101 #define $ac_tr_func 1
6105 echo "$ac_t""no" 1>&6
6109 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6112 echo "configure:6113: checking for $ac_func" >&5
6113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6114 echo $ac_n "(cached) $ac_c" 1>&6
6116 cat > conftest.$ac_ext <<EOF
6117 #line 6118 "configure"
6118 #include "confdefs.h"
6119 /* System header to define __stub macros and hopefully few prototypes,
6120 which can conflict with char $ac_func(); below. */
6122 /* Override any gcc2 internal prototype to avoid an error. */
6123 /* We use char because int might match the return type of a gcc2
6124 builtin and then its argument prototype would still apply. */
6129 /* The GNU C library defines this for functions which it implements
6130 to always fail with ENOSYS. Some functions are actually named
6131 something starting with __ and the normal name is an alias. */
6132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6140 if { (eval echo configure:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6142 eval "ac_cv_func_$ac_func=yes"
6144 echo "configure: failed program was:" >&5
6145 cat conftest.$ac_ext >&5
6147 eval "ac_cv_func_$ac_func=no"
6152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6153 echo "$ac_t""yes" 1>&6
6154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6155 cat >> confdefs.h <<EOF
6156 #define $ac_tr_func 1
6160 echo "$ac_t""no" 1>&6
6164 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6167 echo "configure:6168: checking for $ac_func" >&5
6168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6169 echo $ac_n "(cached) $ac_c" 1>&6
6171 cat > conftest.$ac_ext <<EOF
6172 #line 6173 "configure"
6173 #include "confdefs.h"
6174 /* System header to define __stub macros and hopefully few prototypes,
6175 which can conflict with char $ac_func(); below. */
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 /* We use char because int might match the return type of a gcc2
6179 builtin and then its argument prototype would still apply. */
6184 /* The GNU C library defines this for functions which it implements
6185 to always fail with ENOSYS. Some functions are actually named
6186 something starting with __ and the normal name is an alias. */
6187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6195 if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6197 eval "ac_cv_func_$ac_func=yes"
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 eval "ac_cv_func_$ac_func=no"
6207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6208 echo "$ac_t""yes" 1>&6
6209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6210 cat >> confdefs.h <<EOF
6211 #define $ac_tr_func 1
6215 echo "$ac_t""no" 1>&6
6219 for ac_func in open64 _open64 __open64 creat64
6221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6222 echo "configure:6223: checking for $ac_func" >&5
6223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6224 echo $ac_n "(cached) $ac_c" 1>&6
6226 cat > conftest.$ac_ext <<EOF
6227 #line 6228 "configure"
6228 #include "confdefs.h"
6229 /* System header to define __stub macros and hopefully few prototypes,
6230 which can conflict with char $ac_func(); below. */
6232 /* Override any gcc2 internal prototype to avoid an error. */
6233 /* We use char because int might match the return type of a gcc2
6234 builtin and then its argument prototype would still apply. */
6239 /* The GNU C library defines this for functions which it implements
6240 to always fail with ENOSYS. Some functions are actually named
6241 something starting with __ and the normal name is an alias. */
6242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6250 if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6252 eval "ac_cv_func_$ac_func=yes"
6254 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5
6257 eval "ac_cv_func_$ac_func=no"
6262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6263 echo "$ac_t""yes" 1>&6
6264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6265 cat >> confdefs.h <<EOF
6266 #define $ac_tr_func 1
6270 echo "$ac_t""no" 1>&6
6276 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6279 if test x$ac_cv_func_stat64 = xno ; then
6280 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6281 echo "configure:6282: checking for stat64 in <sys/stat.h>" >&5
6282 cat > conftest.$ac_ext <<EOF
6283 #line 6284 "configure"
6284 #include "confdefs.h"
6286 #if defined(HAVE_UNISTD_H)
6289 #include <sys/stat.h>
6292 struct stat64 st64; exit(stat64(".",&st64));
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 ac_cv_func_stat64=yes
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6303 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6304 if test x$ac_cv_func_stat64 = xyes ; then
6305 cat >> confdefs.h <<\EOF
6306 #define HAVE_STAT64 1
6312 if test x$ac_cv_func_lstat64 = xno ; then
6313 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6314 echo "configure:6315: checking for lstat64 in <sys/stat.h>" >&5
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6319 #if defined(HAVE_UNISTD_H)
6322 #include <sys/stat.h>
6325 struct stat64 st64; exit(lstat64(".",&st64));
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 ac_cv_func_lstat64=yes
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6336 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6337 if test x$ac_cv_func_lstat64 = xyes ; then
6338 cat >> confdefs.h <<\EOF
6339 #define HAVE_LSTAT64 1
6345 if test x$ac_cv_func_fstat64 = xno ; then
6346 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6347 echo "configure:6348: checking for fstat64 in <sys/stat.h>" >&5
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6352 #if defined(HAVE_UNISTD_H)
6355 #include <sys/stat.h>
6358 struct stat64 st64; exit(fstat64(0,&st64));
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363 ac_cv_func_fstat64=yes
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6369 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6370 if test x$ac_cv_func_fstat64 = xyes ; then
6371 cat >> confdefs.h <<\EOF
6372 #define HAVE_FSTAT64 1
6379 # If no strcasecmp, check for it in some known places
6380 # It is in -lresolv on ReliantUNIX and UnixWare
6381 # -lresolve *must* follow -lnsl for name resolution to work properly
6384 if test x$ac_cv_func_strcasecmp = xno ; then
6385 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6386 echo "configure:6387: checking for strcasecmp in -lresolv" >&5
6387 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6391 ac_save_LIBS="$LIBS"
6392 LIBS="-lresolv $LIBS"
6393 cat > conftest.$ac_ext <<EOF
6394 #line 6395 "configure"
6395 #include "confdefs.h"
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 eval "ac_cv_lib_$ac_lib_var=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6412 eval "ac_cv_lib_$ac_lib_var=no"
6415 LIBS="$ac_save_LIBS"
6418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 LIBS="$LIBS -lresolv"
6421 cat >> confdefs.h <<\EOF
6422 #define HAVE_STRCASECMP 1
6426 echo "$ac_t""no" 1>&6
6432 # Check for the functions putprpwnam, set_auth_parameters,
6433 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6434 # Needed for OSF1 and HPUX.
6438 *-lsecurity*) for ac_func in putprpwnam
6440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6441 echo "configure:6442: checking for $ac_func" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func(); below. */
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6469 if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471 eval "ac_cv_func_$ac_func=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 eval "ac_cv_func_$ac_func=no"
6481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6484 cat >> confdefs.h <<EOF
6485 #define $ac_tr_func 1
6489 echo "$ac_t""no" 1>&6
6493 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6494 echo "configure:6495: checking for putprpwnam in -lsecurity" >&5
6495 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 ac_save_LIBS="$LIBS"
6500 LIBS="-lsecurity $LIBS"
6501 cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6513 if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515 eval "ac_cv_lib_$ac_lib_var=yes"
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6520 eval "ac_cv_lib_$ac_lib_var=no"
6523 LIBS="$ac_save_LIBS"
6526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6527 echo "$ac_t""yes" 1>&6
6528 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6530 cat >> confdefs.h <<EOF
6531 #define $ac_tr_lib 1
6534 LIBS="-lsecurity $LIBS"
6537 echo "$ac_t""no" 1>&6
6540 for ac_func in putprpwnam
6542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6543 echo "configure:6544: checking for $ac_func" >&5
6544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 /* System header to define __stub macros and hopefully few prototypes,
6551 which can conflict with char $ac_func(); below. */
6553 /* Override any gcc2 internal prototype to avoid an error. */
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6573 eval "ac_cv_func_$ac_func=yes"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 eval "ac_cv_func_$ac_func=no"
6583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6586 cat >> confdefs.h <<EOF
6587 #define $ac_tr_func 1
6591 echo "$ac_t""no" 1>&6
6599 *-lsec*) for ac_func in putprpwnam
6601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_func" >&5
6603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 /* System header to define __stub macros and hopefully few prototypes,
6610 which can conflict with char $ac_func(); below. */
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6619 /* The GNU C library defines this for functions which it implements
6620 to always fail with ENOSYS. Some functions are actually named
6621 something starting with __ and the normal name is an alias. */
6622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6630 if { (eval echo configure:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6632 eval "ac_cv_func_$ac_func=yes"
6634 echo "configure: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6637 eval "ac_cv_func_$ac_func=no"
6642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6643 echo "$ac_t""yes" 1>&6
6644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6645 cat >> confdefs.h <<EOF
6646 #define $ac_tr_func 1
6650 echo "$ac_t""no" 1>&6
6654 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6655 echo "configure:6656: checking for putprpwnam in -lsec" >&5
6656 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 ac_save_LIBS="$LIBS"
6662 cat > conftest.$ac_ext <<EOF
6663 #line 6664 "configure"
6664 #include "confdefs.h"
6665 /* Override any gcc2 internal prototype to avoid an error. */
6666 /* We use char because int might match the return type of a gcc2
6667 builtin and then its argument prototype would still apply. */
6674 if { (eval echo configure:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6676 eval "ac_cv_lib_$ac_lib_var=yes"
6678 echo "configure: failed program was:" >&5
6679 cat conftest.$ac_ext >&5
6681 eval "ac_cv_lib_$ac_lib_var=no"
6684 LIBS="$ac_save_LIBS"
6687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6688 echo "$ac_t""yes" 1>&6
6689 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6690 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6691 cat >> confdefs.h <<EOF
6692 #define $ac_tr_lib 1
6698 echo "$ac_t""no" 1>&6
6701 for ac_func in putprpwnam
6703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6704 echo "configure:6705: checking for $ac_func" >&5
6705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* System header to define __stub macros and hopefully few prototypes,
6712 which can conflict with char $ac_func(); below. */
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6721 /* The GNU C library defines this for functions which it implements
6722 to always fail with ENOSYS. Some functions are actually named
6723 something starting with __ and the normal name is an alias. */
6724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6734 eval "ac_cv_func_$ac_func=yes"
6736 echo "configure: failed program was:" >&5
6737 cat conftest.$ac_ext >&5
6739 eval "ac_cv_func_$ac_func=no"
6744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6747 cat >> confdefs.h <<EOF
6748 #define $ac_tr_func 1
6752 echo "$ac_t""no" 1>&6
6761 *-lsecurity*) for ac_func in set_auth_parameters
6763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6764 echo "configure:6765: checking for $ac_func" >&5
6765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func(); below. */
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6792 if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794 eval "ac_cv_func_$ac_func=yes"
6796 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6799 eval "ac_cv_func_$ac_func=no"
6804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6807 cat >> confdefs.h <<EOF
6808 #define $ac_tr_func 1
6812 echo "$ac_t""no" 1>&6
6816 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6817 echo "configure:6818: checking for set_auth_parameters in -lsecurity" >&5
6818 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6
6822 ac_save_LIBS="$LIBS"
6823 LIBS="-lsecurity $LIBS"
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6830 char set_auth_parameters();
6833 set_auth_parameters()
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6838 eval "ac_cv_lib_$ac_lib_var=yes"
6840 echo "configure: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6843 eval "ac_cv_lib_$ac_lib_var=no"
6846 LIBS="$ac_save_LIBS"
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6850 echo "$ac_t""yes" 1>&6
6851 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6852 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6853 cat >> confdefs.h <<EOF
6854 #define $ac_tr_lib 1
6857 LIBS="-lsecurity $LIBS"
6860 echo "$ac_t""no" 1>&6
6863 for ac_func in set_auth_parameters
6865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6866 echo "configure:6867: checking for $ac_func" >&5
6867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6868 echo $ac_n "(cached) $ac_c" 1>&6
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure"
6872 #include "confdefs.h"
6873 /* System header to define __stub macros and hopefully few prototypes,
6874 which can conflict with char $ac_func(); below. */
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6883 /* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6894 if { (eval echo configure:6895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6896 eval "ac_cv_func_$ac_func=yes"
6898 echo "configure: failed program was:" >&5
6899 cat conftest.$ac_ext >&5
6901 eval "ac_cv_func_$ac_func=no"
6906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6907 echo "$ac_t""yes" 1>&6
6908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6909 cat >> confdefs.h <<EOF
6910 #define $ac_tr_func 1
6914 echo "$ac_t""no" 1>&6
6922 *-lsec*) for ac_func in set_auth_parameters
6924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6925 echo "configure:6926: checking for $ac_func" >&5
6926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6932 /* System header to define __stub macros and hopefully few prototypes,
6933 which can conflict with char $ac_func(); below. */
6935 /* Override any gcc2 internal prototype to avoid an error. */
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6942 /* The GNU C library defines this for functions which it implements
6943 to always fail with ENOSYS. Some functions are actually named
6944 something starting with __ and the normal name is an alias. */
6945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6955 eval "ac_cv_func_$ac_func=yes"
6957 echo "configure: failed program was:" >&5
6958 cat conftest.$ac_ext >&5
6960 eval "ac_cv_func_$ac_func=no"
6965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6968 cat >> confdefs.h <<EOF
6969 #define $ac_tr_func 1
6973 echo "$ac_t""no" 1>&6
6977 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6978 echo "configure:6979: checking for set_auth_parameters in -lsec" >&5
6979 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6983 ac_save_LIBS="$LIBS"
6985 cat > conftest.$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6988 /* Override any gcc2 internal prototype to avoid an error. */
6989 /* We use char because int might match the return type of a gcc2
6990 builtin and then its argument prototype would still apply. */
6991 char set_auth_parameters();
6994 set_auth_parameters()
6997 if { (eval echo configure:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6999 eval "ac_cv_lib_$ac_lib_var=yes"
7001 echo "configure: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7004 eval "ac_cv_lib_$ac_lib_var=no"
7007 LIBS="$ac_save_LIBS"
7010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7011 echo "$ac_t""yes" 1>&6
7012 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7014 cat >> confdefs.h <<EOF
7015 #define $ac_tr_lib 1
7021 echo "$ac_t""no" 1>&6
7024 for ac_func in set_auth_parameters
7026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7027 echo "configure:7028: checking for $ac_func" >&5
7028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 /* System header to define __stub macros and hopefully few prototypes,
7035 which can conflict with char $ac_func(); below. */
7037 /* Override any gcc2 internal prototype to avoid an error. */
7038 /* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7044 /* The GNU C library defines this for functions which it implements
7045 to always fail with ENOSYS. Some functions are actually named
7046 something starting with __ and the normal name is an alias. */
7047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7055 if { (eval echo configure:7056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7057 eval "ac_cv_func_$ac_func=yes"
7059 echo "configure: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 eval "ac_cv_func_$ac_func=no"
7067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7068 echo "$ac_t""yes" 1>&6
7069 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7070 cat >> confdefs.h <<EOF
7071 #define $ac_tr_func 1
7075 echo "$ac_t""no" 1>&6
7083 # UnixWare 7.x has its getspnam in -lgen
7085 *-lgen*) for ac_func in getspnam
7087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_func" >&5
7089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* System header to define __stub macros and hopefully few prototypes,
7096 which can conflict with char $ac_func(); below. */
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7105 /* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 eval "ac_cv_func_$ac_func=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_func_$ac_func=no"
7128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7131 cat >> confdefs.h <<EOF
7132 #define $ac_tr_func 1
7136 echo "$ac_t""no" 1>&6
7140 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7141 echo "configure:7142: checking for getspnam in -lgen" >&5
7142 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 ac_save_LIBS="$LIBS"
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 eval "ac_cv_lib_$ac_lib_var=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_lib_$ac_lib_var=no"
7170 LIBS="$ac_save_LIBS"
7173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7177 cat >> confdefs.h <<EOF
7178 #define $ac_tr_lib 1
7184 echo "$ac_t""no" 1>&6
7187 for ac_func in getspnam
7189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7190 echo "configure:7191: checking for $ac_func" >&5
7191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 /* System header to define __stub macros and hopefully few prototypes,
7198 which can conflict with char $ac_func(); below. */
7200 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7207 /* The GNU C library defines this for functions which it implements
7208 to always fail with ENOSYS. Some functions are actually named
7209 something starting with __ and the normal name is an alias. */
7210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 eval "ac_cv_func_$ac_func=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_func_$ac_func=no"
7230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7233 cat >> confdefs.h <<EOF
7234 #define $ac_tr_func 1
7238 echo "$ac_t""no" 1>&6
7247 *-lsecurity*) for ac_func in getspnam
7249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7250 echo "configure:7251: checking for $ac_func" >&5
7251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7254 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure"
7256 #include "confdefs.h"
7257 /* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char $ac_func(); below. */
7260 /* Override any gcc2 internal prototype to avoid an error. */
7261 /* We use char because int might match the return type of a gcc2
7262 builtin and then its argument prototype would still apply. */
7267 /* The GNU C library defines this for functions which it implements
7268 to always fail with ENOSYS. Some functions are actually named
7269 something starting with __ and the normal name is an alias. */
7270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280 eval "ac_cv_func_$ac_func=yes"
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 eval "ac_cv_func_$ac_func=no"
7290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7291 echo "$ac_t""yes" 1>&6
7292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7293 cat >> confdefs.h <<EOF
7294 #define $ac_tr_func 1
7298 echo "$ac_t""no" 1>&6
7302 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7303 echo "configure:7304: checking for getspnam in -lsecurity" >&5
7304 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7308 ac_save_LIBS="$LIBS"
7309 LIBS="-lsecurity $LIBS"
7310 cat > conftest.$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7322 if { (eval echo configure:7323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7324 eval "ac_cv_lib_$ac_lib_var=yes"
7326 echo "configure: failed program was:" >&5
7327 cat conftest.$ac_ext >&5
7329 eval "ac_cv_lib_$ac_lib_var=no"
7332 LIBS="$ac_save_LIBS"
7335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7336 echo "$ac_t""yes" 1>&6
7337 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7339 cat >> confdefs.h <<EOF
7340 #define $ac_tr_lib 1
7343 LIBS="-lsecurity $LIBS"
7346 echo "$ac_t""no" 1>&6
7349 for ac_func in getspnam
7351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7352 echo "configure:7353: checking for $ac_func" >&5
7353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7354 echo $ac_n "(cached) $ac_c" 1>&6
7356 cat > conftest.$ac_ext <<EOF
7357 #line 7358 "configure"
7358 #include "confdefs.h"
7359 /* System header to define __stub macros and hopefully few prototypes,
7360 which can conflict with char $ac_func(); below. */
7362 /* Override any gcc2 internal prototype to avoid an error. */
7363 /* We use char because int might match the return type of a gcc2
7364 builtin and then its argument prototype would still apply. */
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7380 if { (eval echo configure:7381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7382 eval "ac_cv_func_$ac_func=yes"
7384 echo "configure: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7387 eval "ac_cv_func_$ac_func=no"
7392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7393 echo "$ac_t""yes" 1>&6
7394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7395 cat >> confdefs.h <<EOF
7396 #define $ac_tr_func 1
7400 echo "$ac_t""no" 1>&6
7408 *-lsec*) for ac_func in getspnam
7410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7411 echo "configure:7412: checking for $ac_func" >&5
7412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 /* System header to define __stub macros and hopefully few prototypes,
7419 which can conflict with char $ac_func(); below. */
7421 /* Override any gcc2 internal prototype to avoid an error. */
7422 /* We use char because int might match the return type of a gcc2
7423 builtin and then its argument prototype would still apply. */
7428 /* The GNU C library defines this for functions which it implements
7429 to always fail with ENOSYS. Some functions are actually named
7430 something starting with __ and the normal name is an alias. */
7431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7439 if { (eval echo configure:7440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7441 eval "ac_cv_func_$ac_func=yes"
7443 echo "configure: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7446 eval "ac_cv_func_$ac_func=no"
7451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7454 cat >> confdefs.h <<EOF
7455 #define $ac_tr_func 1
7459 echo "$ac_t""no" 1>&6
7463 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7464 echo "configure:7465: checking for getspnam in -lsec" >&5
7465 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7467 echo $ac_n "(cached) $ac_c" 1>&6
7469 ac_save_LIBS="$LIBS"
7471 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7483 if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7485 eval "ac_cv_lib_$ac_lib_var=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_lib_$ac_lib_var=no"
7493 LIBS="$ac_save_LIBS"
7496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7497 echo "$ac_t""yes" 1>&6
7498 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7500 cat >> confdefs.h <<EOF
7501 #define $ac_tr_lib 1
7507 echo "$ac_t""no" 1>&6
7510 for ac_func in getspnam
7512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7513 echo "configure:7514: checking for $ac_func" >&5
7514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7517 cat > conftest.$ac_ext <<EOF
7518 #line 7519 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func(); below. */
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7530 /* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
7533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7541 if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7543 eval "ac_cv_func_$ac_func=yes"
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 eval "ac_cv_func_$ac_func=no"
7553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7556 cat >> confdefs.h <<EOF
7557 #define $ac_tr_func 1
7561 echo "$ac_t""no" 1>&6
7570 *-lsecurity*) for ac_func in bigcrypt
7572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7573 echo "configure:7574: checking for $ac_func" >&5
7574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7580 /* System header to define __stub macros and hopefully few prototypes,
7581 which can conflict with char $ac_func(); below. */
7583 /* Override any gcc2 internal prototype to avoid an error. */
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7601 if { (eval echo configure:7602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603 eval "ac_cv_func_$ac_func=yes"
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7608 eval "ac_cv_func_$ac_func=no"
7613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7616 cat >> confdefs.h <<EOF
7617 #define $ac_tr_func 1
7621 echo "$ac_t""no" 1>&6
7625 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7626 echo "configure:7627: checking for bigcrypt in -lsecurity" >&5
7627 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7631 ac_save_LIBS="$LIBS"
7632 LIBS="-lsecurity $LIBS"
7633 cat > conftest.$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* Override any gcc2 internal prototype to avoid an error. */
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7645 if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7647 eval "ac_cv_lib_$ac_lib_var=yes"
7649 echo "configure: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7652 eval "ac_cv_lib_$ac_lib_var=no"
7655 LIBS="$ac_save_LIBS"
7658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7659 echo "$ac_t""yes" 1>&6
7660 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7661 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7662 cat >> confdefs.h <<EOF
7663 #define $ac_tr_lib 1
7666 LIBS="-lsecurity $LIBS"
7669 echo "$ac_t""no" 1>&6
7672 for ac_func in bigcrypt
7674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7675 echo "configure:7676: checking for $ac_func" >&5
7676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7677 echo $ac_n "(cached) $ac_c" 1>&6
7679 cat > conftest.$ac_ext <<EOF
7680 #line 7681 "configure"
7681 #include "confdefs.h"
7682 /* System header to define __stub macros and hopefully few prototypes,
7683 which can conflict with char $ac_func(); below. */
7685 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7692 /* The GNU C library defines this for functions which it implements
7693 to always fail with ENOSYS. Some functions are actually named
7694 something starting with __ and the normal name is an alias. */
7695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7705 eval "ac_cv_func_$ac_func=yes"
7707 echo "configure: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7710 eval "ac_cv_func_$ac_func=no"
7715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7716 echo "$ac_t""yes" 1>&6
7717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7718 cat >> confdefs.h <<EOF
7719 #define $ac_tr_func 1
7723 echo "$ac_t""no" 1>&6
7731 *-lsec*) for ac_func in bigcrypt
7733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7734 echo "configure:7735: checking for $ac_func" >&5
7735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7738 cat > conftest.$ac_ext <<EOF
7739 #line 7740 "configure"
7740 #include "confdefs.h"
7741 /* System header to define __stub macros and hopefully few prototypes,
7742 which can conflict with char $ac_func(); below. */
7744 /* Override any gcc2 internal prototype to avoid an error. */
7745 /* We use char because int might match the return type of a gcc2
7746 builtin and then its argument prototype would still apply. */
7751 /* The GNU C library defines this for functions which it implements
7752 to always fail with ENOSYS. Some functions are actually named
7753 something starting with __ and the normal name is an alias. */
7754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7762 if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7764 eval "ac_cv_func_$ac_func=yes"
7766 echo "configure: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7769 eval "ac_cv_func_$ac_func=no"
7774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7777 cat >> confdefs.h <<EOF
7778 #define $ac_tr_func 1
7782 echo "$ac_t""no" 1>&6
7786 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7787 echo "configure:7788: checking for bigcrypt in -lsec" >&5
7788 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7790 echo $ac_n "(cached) $ac_c" 1>&6
7792 ac_save_LIBS="$LIBS"
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7808 eval "ac_cv_lib_$ac_lib_var=yes"
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7813 eval "ac_cv_lib_$ac_lib_var=no"
7816 LIBS="$ac_save_LIBS"
7819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7820 echo "$ac_t""yes" 1>&6
7821 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7822 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7823 cat >> confdefs.h <<EOF
7824 #define $ac_tr_lib 1
7830 echo "$ac_t""no" 1>&6
7833 for ac_func in bigcrypt
7835 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7836 echo "configure:7837: checking for $ac_func" >&5
7837 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7838 echo $ac_n "(cached) $ac_c" 1>&6
7840 cat > conftest.$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* System header to define __stub macros and hopefully few prototypes,
7844 which can conflict with char $ac_func(); below. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7853 /* The GNU C library defines this for functions which it implements
7854 to always fail with ENOSYS. Some functions are actually named
7855 something starting with __ and the normal name is an alias. */
7856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7864 if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7866 eval "ac_cv_func_$ac_func=yes"
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7871 eval "ac_cv_func_$ac_func=no"
7876 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7877 echo "$ac_t""yes" 1>&6
7878 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7879 cat >> confdefs.h <<EOF
7880 #define $ac_tr_func 1
7884 echo "$ac_t""no" 1>&6
7893 *-lsecurity*) for ac_func in getprpwnam
7895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7896 echo "configure:7897: checking for $ac_func" >&5
7897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7903 /* System header to define __stub macros and hopefully few prototypes,
7904 which can conflict with char $ac_func(); below. */
7906 /* Override any gcc2 internal prototype to avoid an error. */
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7913 /* The GNU C library defines this for functions which it implements
7914 to always fail with ENOSYS. Some functions are actually named
7915 something starting with __ and the normal name is an alias. */
7916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7924 if { (eval echo configure:7925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7926 eval "ac_cv_func_$ac_func=yes"
7928 echo "configure: failed program was:" >&5
7929 cat conftest.$ac_ext >&5
7931 eval "ac_cv_func_$ac_func=no"
7936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7937 echo "$ac_t""yes" 1>&6
7938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7939 cat >> confdefs.h <<EOF
7940 #define $ac_tr_func 1
7944 echo "$ac_t""no" 1>&6
7948 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7949 echo "configure:7950: checking for getprpwnam in -lsecurity" >&5
7950 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 ac_save_LIBS="$LIBS"
7955 LIBS="-lsecurity $LIBS"
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* Override any gcc2 internal prototype to avoid an error. */
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7968 if { (eval echo configure:7969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7970 eval "ac_cv_lib_$ac_lib_var=yes"
7972 echo "configure: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7975 eval "ac_cv_lib_$ac_lib_var=no"
7978 LIBS="$ac_save_LIBS"
7981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7982 echo "$ac_t""yes" 1>&6
7983 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7985 cat >> confdefs.h <<EOF
7986 #define $ac_tr_lib 1
7989 LIBS="-lsecurity $LIBS"
7992 echo "$ac_t""no" 1>&6
7995 for ac_func in getprpwnam
7997 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7998 echo "configure:7999: checking for $ac_func" >&5
7999 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 /* System header to define __stub macros and hopefully few prototypes,
8006 which can conflict with char $ac_func(); below. */
8008 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8015 /* The GNU C library defines this for functions which it implements
8016 to always fail with ENOSYS. Some functions are actually named
8017 something starting with __ and the normal name is an alias. */
8018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8026 if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8028 eval "ac_cv_func_$ac_func=yes"
8030 echo "configure: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8033 eval "ac_cv_func_$ac_func=no"
8038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8039 echo "$ac_t""yes" 1>&6
8040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8041 cat >> confdefs.h <<EOF
8042 #define $ac_tr_func 1
8046 echo "$ac_t""no" 1>&6
8054 *-lsec*) for ac_func in getprpwnam
8056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8057 echo "configure:8058: checking for $ac_func" >&5
8058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8061 cat > conftest.$ac_ext <<EOF
8062 #line 8063 "configure"
8063 #include "confdefs.h"
8064 /* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func(); below. */
8067 /* Override any gcc2 internal prototype to avoid an error. */
8068 /* We use char because int might match the return type of a gcc2
8069 builtin and then its argument prototype would still apply. */
8074 /* The GNU C library defines this for functions which it implements
8075 to always fail with ENOSYS. Some functions are actually named
8076 something starting with __ and the normal name is an alias. */
8077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8085 if { (eval echo configure:8086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8087 eval "ac_cv_func_$ac_func=yes"
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8092 eval "ac_cv_func_$ac_func=no"
8097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8100 cat >> confdefs.h <<EOF
8101 #define $ac_tr_func 1
8105 echo "$ac_t""no" 1>&6
8109 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8110 echo "configure:8111: checking for getprpwnam in -lsec" >&5
8111 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8113 echo $ac_n "(cached) $ac_c" 1>&6
8115 ac_save_LIBS="$LIBS"
8117 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8129 if { (eval echo configure:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8131 eval "ac_cv_lib_$ac_lib_var=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8136 eval "ac_cv_lib_$ac_lib_var=no"
8139 LIBS="$ac_save_LIBS"
8142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8143 echo "$ac_t""yes" 1>&6
8144 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8146 cat >> confdefs.h <<EOF
8147 #define $ac_tr_lib 1
8153 echo "$ac_t""no" 1>&6
8156 for ac_func in getprpwnam
8158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8159 echo "configure:8160: checking for $ac_func" >&5
8160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8161 echo $ac_n "(cached) $ac_c" 1>&6
8163 cat > conftest.$ac_ext <<EOF
8164 #line 8165 "configure"
8165 #include "confdefs.h"
8166 /* System header to define __stub macros and hopefully few prototypes,
8167 which can conflict with char $ac_func(); below. */
8169 /* Override any gcc2 internal prototype to avoid an error. */
8170 /* We use char because int might match the return type of a gcc2
8171 builtin and then its argument prototype would still apply. */
8176 /* The GNU C library defines this for functions which it implements
8177 to always fail with ENOSYS. Some functions are actually named
8178 something starting with __ and the normal name is an alias. */
8179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8187 if { (eval echo configure:8188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8189 eval "ac_cv_func_$ac_func=yes"
8191 echo "configure: failed program was:" >&5
8192 cat conftest.$ac_ext >&5
8194 eval "ac_cv_func_$ac_func=no"
8199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8202 cat >> confdefs.h <<EOF
8203 #define $ac_tr_func 1
8207 echo "$ac_t""no" 1>&6
8215 # this bit needs to be modified for each OS that is suported by
8216 # smbwrapper. You need to specify how to created a shared library and
8217 # how to compile C code to produce PIC object files
8219 # these are the defaults, good for lots of systems
8227 # and these are for particular systems
8229 *linux*) cat >> confdefs.h <<\EOF
8237 *solaris*) cat >> confdefs.h <<\EOF
8242 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8243 PICFLAG="-KPIC -xO4"
8245 *sunos*) cat >> confdefs.h <<\EOF
8250 LDSHFLAGS="-Wl,-h,\$@ -G"
8251 PICFLAG="-KPIC -O2" # Is this correct for SunOS
8253 *bsd*) BLDSHARED="true"
8254 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8257 *irix*) cat >> confdefs.h <<\EOF
8262 *irix6*) cat >> confdefs.h <<\EOF
8268 ATTEMPT_WRAP32_BUILD=yes
8270 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8273 *aix*) cat >> confdefs.h <<\EOF
8278 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8279 PICFLAG="-O2 -qmaxmem=6000"
8281 *hpux*) cat >> confdefs.h <<\EOF
8286 # Use special PIC flags for the native HP-UX compiler.
8287 if test $ac_cv_prog_cc_Ae = yes; then
8289 LDSHFLAGS="-b -z +h \$@"
8293 *qnx*) cat >> confdefs.h <<\EOF
8297 *osf*) cat >> confdefs.h <<\EOF
8302 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8305 *sco*) cat >> confdefs.h <<\EOF
8309 *unixware*) cat >> confdefs.h <<\EOF
8315 *next2*) cat >> confdefs.h <<\EOF
8319 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8320 set dummy groff; ac_word=$2
8321 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8322 echo "configure:8323: checking for $ac_word" >&5
8323 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8326 if test -n "$ROFF"; then
8327 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8331 for ac_dir in $ac_dummy; do
8332 test -z "$ac_dir" && ac_dir=.
8333 if test -f $ac_dir/$ac_word; then
8334 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8341 ROFF="$ac_cv_prog_ROFF"
8342 if test -n "$ROFF"; then
8343 echo "$ac_t""$ROFF" 1>&6
8345 echo "$ac_t""no" 1>&6
8350 *-univel-*) if test "$GCC" != yes ; then
8351 cat >> confdefs.h <<\EOF
8352 #define HAVE_MEMSET 1
8358 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8359 #define RELIANTUNIX 1
8365 if test "$GCC" != yes ; then
8366 cat >> confdefs.h <<\EOF
8367 #define HAVE_MEMSET 1
8377 echo $ac_n "checking for long long""... $ac_c" 1>&6
8378 echo "configure:8379: checking for long long" >&5
8379 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8383 if test "$cross_compiling" = yes; then
8384 samba_cv_have_longlong=cross
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8390 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8394 samba_cv_have_longlong=yes
8396 echo "configure: failed program was:" >&5
8397 cat conftest.$ac_ext >&5
8399 samba_cv_have_longlong=no
8406 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8407 if test x"$samba_cv_have_longlong" = x"yes"; then
8408 cat >> confdefs.h <<\EOF
8409 #define HAVE_LONGLONG 1
8415 # Check if the compiler supports the LL prefix on long long integers.
8418 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8419 echo "configure:8420: checking for LL suffix on long long integers" >&5
8420 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8421 echo $ac_n "(cached) $ac_c" 1>&6
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8429 long long i = 0x8000000000LL
8432 if { (eval echo configure:8433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8434 samba_cv_compiler_supports_ll=yes
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8439 samba_cv_compiler_supports_ll=no
8444 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8445 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8446 cat >> confdefs.h <<\EOF
8447 #define COMPILER_SUPPORTS_LL 1
8453 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8454 echo "configure:8455: checking for 64 bit off_t" >&5
8455 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8459 if test "$cross_compiling" = yes; then
8460 samba_cv_SIZEOF_OFF_T=cross
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8466 #include <sys/stat.h>
8467 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8469 if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8471 samba_cv_SIZEOF_OFF_T=yes
8473 echo "configure: failed program was:" >&5
8474 cat conftest.$ac_ext >&5
8476 samba_cv_SIZEOF_OFF_T=no
8483 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8484 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8485 cat >> confdefs.h <<\EOF
8486 #define SIZEOF_OFF_T 8
8491 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8492 echo "configure:8493: checking for off64_t" >&5
8493 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8497 if test "$cross_compiling" = yes; then
8498 samba_cv_HAVE_OFF64_T=cross
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8504 #if defined(HAVE_UNISTD_H)
8508 #include <sys/stat.h>
8509 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8511 if { (eval echo configure:8512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8513 samba_cv_HAVE_OFF64_T=yes
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8518 samba_cv_HAVE_OFF64_T=no
8525 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8526 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8527 cat >> confdefs.h <<\EOF
8528 #define HAVE_OFF64_T 1
8533 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8534 echo "configure:8535: checking for 64 bit ino_t" >&5
8535 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8539 if test "$cross_compiling" = yes; then
8540 samba_cv_SIZEOF_INO_T=cross
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8546 #include <sys/stat.h>
8547 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8549 if { (eval echo configure:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8551 samba_cv_SIZEOF_INO_T=yes
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 samba_cv_SIZEOF_INO_T=no
8563 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8564 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8565 cat >> confdefs.h <<\EOF
8566 #define SIZEOF_INO_T 8
8571 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8572 echo "configure:8573: checking for ino64_t" >&5
8573 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8577 if test "$cross_compiling" = yes; then
8578 samba_cv_HAVE_INO64_T=cross
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8584 #if defined(HAVE_UNISTD_H)
8588 #include <sys/stat.h>
8589 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8593 samba_cv_HAVE_INO64_T=yes
8595 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8598 samba_cv_HAVE_INO64_T=no
8605 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8606 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8607 cat >> confdefs.h <<\EOF
8608 #define HAVE_INO64_T 1
8613 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8614 echo "configure:8615: checking for struct dirent64" >&5
8615 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8616 echo $ac_n "(cached) $ac_c" 1>&6
8619 cat > conftest.$ac_ext <<EOF
8620 #line 8621 "configure"
8621 #include "confdefs.h"
8623 #if defined(HAVE_UNISTD_H)
8626 #include <sys/types.h>
8632 if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8634 samba_cv_HAVE_STRUCT_DIRENT64=yes
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 samba_cv_HAVE_STRUCT_DIRENT64=no
8644 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8645 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8646 cat >> confdefs.h <<\EOF
8647 #define HAVE_STRUCT_DIRENT64 1
8652 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8653 echo "configure:8654: checking for unsigned char" >&5
8654 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8658 if test "$cross_compiling" = yes; then
8659 samba_cv_HAVE_UNSIGNED_CHAR=cross
8661 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8665 main() { char c; c=250; exit((c > 0)?0:1); }
8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8669 samba_cv_HAVE_UNSIGNED_CHAR=yes
8671 echo "configure: failed program was:" >&5
8672 cat conftest.$ac_ext >&5
8674 samba_cv_HAVE_UNSIGNED_CHAR=no
8681 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8682 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8683 cat >> confdefs.h <<\EOF
8684 #define HAVE_UNSIGNED_CHAR 1
8689 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8690 echo "configure:8691: checking for sin_len in sock" >&5
8691 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8692 echo $ac_n "(cached) $ac_c" 1>&6
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 #include <sys/types.h>
8699 #include <sys/socket.h>
8700 #include <netinet/in.h>
8702 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8705 if { (eval echo configure:8706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8707 samba_cv_HAVE_SOCK_SIN_LEN=yes
8709 echo "configure: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8712 samba_cv_HAVE_SOCK_SIN_LEN=no
8717 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8718 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8719 cat >> confdefs.h <<\EOF
8720 #define HAVE_SOCK_SIN_LEN 1
8725 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8726 echo "configure:8727: checking whether seekdir returns void" >&5
8727 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8734 #include <sys/types.h>
8736 void seekdir(DIR *d, long loc) { return; }
8741 if { (eval echo configure:8742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8743 samba_cv_SEEKDIR_RETURNS_VOID=yes
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8748 samba_cv_SEEKDIR_RETURNS_VOID=no
8753 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8754 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8755 cat >> confdefs.h <<\EOF
8756 #define SEEKDIR_RETURNS_VOID 1
8761 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8762 echo "configure:8763: checking for __FILE__ macro" >&5
8763 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8772 printf("%s\n", __FILE__);
8775 if { (eval echo configure:8776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8777 samba_cv_HAVE_FILE_MACRO=yes
8779 echo "configure: failed program was:" >&5
8780 cat conftest.$ac_ext >&5
8782 samba_cv_HAVE_FILE_MACRO=no
8787 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8788 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8789 cat >> confdefs.h <<\EOF
8790 #define HAVE_FILE_MACRO 1
8795 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8796 echo "configure:8797: checking for __FUNCTION__ macro" >&5
8797 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8801 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8806 printf("%s\n", __FUNCTION__);
8809 if { (eval echo configure:8810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8811 samba_cv_HAVE_FUNCTION_MACRO=yes
8813 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8816 samba_cv_HAVE_FUNCTION_MACRO=no
8821 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8822 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8823 cat >> confdefs.h <<\EOF
8824 #define HAVE_FUNCTION_MACRO 1
8829 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8830 echo "configure:8831: checking if gettimeofday takes tz argument" >&5
8831 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8835 if test "$cross_compiling" = yes; then
8836 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8842 #include <sys/time.h>
8844 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8848 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8860 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8861 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8862 cat >> confdefs.h <<\EOF
8863 #define HAVE_GETTIMEOFDAY_TZ 1
8868 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8869 echo "configure:8870: checking for C99 vsnprintf" >&5
8870 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8871 echo $ac_n "(cached) $ac_c" 1>&6
8874 if test "$cross_compiling" = yes; then
8875 samba_cv_HAVE_C99_VSNPRINTF=cross
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8881 #include <sys/types.h>
8883 void foo(const char *format, ...) {
8888 va_start(ap, format);
8889 len = vsnprintf(0, 0, format, ap);
8891 if (len != 5) exit(1);
8893 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8897 main() { foo("hello"); }
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8902 samba_cv_HAVE_C99_VSNPRINTF=yes
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 samba_cv_HAVE_C99_VSNPRINTF=no
8914 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8915 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
8916 cat >> confdefs.h <<\EOF
8917 #define HAVE_C99_VSNPRINTF 1
8922 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8923 echo "configure:8924: checking for broken readdir" >&5
8924 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8928 if test "$cross_compiling" = yes; then
8929 samba_cv_HAVE_BROKEN_READDIR=cross
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8934 #include <sys/types.h>
8936 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
8937 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
8938 di->d_name[0] == 0) exit(0); exit(1);}
8940 if { (eval echo configure:8941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8942 samba_cv_HAVE_BROKEN_READDIR=yes
8944 echo "configure: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8947 samba_cv_HAVE_BROKEN_READDIR=no
8954 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
8955 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
8956 cat >> confdefs.h <<\EOF
8957 #define HAVE_BROKEN_READDIR 1
8962 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
8963 echo "configure:8964: checking for utimbuf" >&5
8964 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
8968 cat > conftest.$ac_ext <<EOF
8969 #line 8970 "configure"
8970 #include "confdefs.h"
8971 #include <sys/types.h>
8974 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
8977 if { (eval echo configure:8978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8979 samba_cv_HAVE_UTIMBUF=yes
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8984 samba_cv_HAVE_UTIMBUF=no
8989 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
8990 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
8991 cat >> confdefs.h <<\EOF
8992 #define HAVE_UTIMBUF 1
8998 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9001 echo "configure:9002: checking for $ac_func" >&5
9002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9005 cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure"
9007 #include "confdefs.h"
9008 /* System header to define __stub macros and hopefully few prototypes,
9009 which can conflict with char $ac_func(); below. */
9011 /* Override any gcc2 internal prototype to avoid an error. */
9012 /* We use char because int might match the return type of a gcc2
9013 builtin and then its argument prototype would still apply. */
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9029 if { (eval echo configure:9030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9031 eval "ac_cv_func_$ac_func=yes"
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9036 eval "ac_cv_func_$ac_func=no"
9041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9042 echo "$ac_t""yes" 1>&6
9043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9044 cat >> confdefs.h <<EOF
9045 #define $ac_tr_func 1
9049 echo "$ac_t""no" 1>&6
9054 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9055 echo "configure:9056: checking for ut_name in utmp" >&5
9056 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9060 cat > conftest.$ac_ext <<EOF
9061 #line 9062 "configure"
9062 #include "confdefs.h"
9063 #include <sys/types.h>
9066 struct utmp ut; ut.ut_name[0] = 'a';
9069 if { (eval echo configure:9070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 samba_cv_HAVE_UT_UT_NAME=yes
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 samba_cv_HAVE_UT_UT_NAME=no
9081 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9082 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9083 cat >> confdefs.h <<\EOF
9084 #define HAVE_UT_UT_NAME 1
9089 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9090 echo "configure:9091: checking for ut_user in utmp" >&5
9091 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 #include <sys/types.h>
9101 struct utmp ut; ut.ut_user[0] = 'a';
9104 if { (eval echo configure:9105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9106 samba_cv_HAVE_UT_UT_USER=yes
9108 echo "configure: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9111 samba_cv_HAVE_UT_UT_USER=no
9116 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9117 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_UT_UT_USER 1
9124 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9125 echo "configure:9126: checking for ut_id in utmp" >&5
9126 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9130 cat > conftest.$ac_ext <<EOF
9131 #line 9132 "configure"
9132 #include "confdefs.h"
9133 #include <sys/types.h>
9136 struct utmp ut; ut.ut_id[0] = 'a';
9139 if { (eval echo configure:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 samba_cv_HAVE_UT_UT_ID=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.$ac_ext >&5
9146 samba_cv_HAVE_UT_UT_ID=no
9151 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9152 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9153 cat >> confdefs.h <<\EOF
9154 #define HAVE_UT_UT_ID 1
9159 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9160 echo "configure:9161: checking for ut_host in utmp" >&5
9161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9165 cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 #include <sys/types.h>
9171 struct utmp ut; ut.ut_host[0] = 'a';
9174 if { (eval echo configure:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9176 samba_cv_HAVE_UT_UT_HOST=yes
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 samba_cv_HAVE_UT_UT_HOST=no
9186 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9187 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9188 cat >> confdefs.h <<\EOF
9189 #define HAVE_UT_UT_HOST 1
9194 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9195 echo "configure:9196: checking for ut_time in utmp" >&5
9196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203 #include <sys/types.h>
9206 struct utmp ut; time_t t; ut.ut_time = t;
9209 if { (eval echo configure:9210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9211 samba_cv_HAVE_UT_UT_TIME=yes
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9216 samba_cv_HAVE_UT_UT_TIME=no
9221 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9222 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9223 cat >> confdefs.h <<\EOF
9224 #define HAVE_UT_UT_TIME 1
9229 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9230 echo "configure:9231: checking for ut_tv in utmp" >&5
9231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9238 #include <sys/types.h>
9241 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9244 if { (eval echo configure:9245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9246 samba_cv_HAVE_UT_UT_TV=yes
9248 echo "configure: failed program was:" >&5
9249 cat conftest.$ac_ext >&5
9251 samba_cv_HAVE_UT_UT_TV=no
9256 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9257 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9258 cat >> confdefs.h <<\EOF
9259 #define HAVE_UT_UT_TV 1
9264 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9265 echo "configure:9266: checking for ut_type in utmp" >&5
9266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 #include <sys/types.h>
9276 struct utmp ut; ut.ut_type = 0;
9279 if { (eval echo configure:9280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9281 samba_cv_HAVE_UT_UT_TYPE=yes
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9286 samba_cv_HAVE_UT_UT_TYPE=no
9291 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9292 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9293 cat >> confdefs.h <<\EOF
9294 #define HAVE_UT_UT_TYPE 1
9299 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9300 echo "configure:9301: checking for ut_pid in utmp" >&5
9301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 #include <sys/types.h>
9311 struct utmp ut; ut.ut_pid = 0;
9314 if { (eval echo configure:9315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9316 samba_cv_HAVE_UT_UT_PID=yes
9318 echo "configure: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9321 samba_cv_HAVE_UT_UT_PID=no
9326 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9327 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9328 cat >> confdefs.h <<\EOF
9329 #define HAVE_UT_UT_PID 1
9334 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9335 echo "configure:9336: checking for ut_exit in utmp" >&5
9336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9340 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9343 #include <sys/types.h>
9346 struct utmp ut; ut.ut_exit.e_exit = 0;
9349 if { (eval echo configure:9350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9351 samba_cv_HAVE_UT_UT_EXIT=yes
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9356 samba_cv_HAVE_UT_UT_EXIT=no
9361 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9362 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9363 cat >> confdefs.h <<\EOF
9364 #define HAVE_UT_UT_EXIT 1
9369 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9370 echo "configure:9371: checking for ut_addr in utmp" >&5
9371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 #include <sys/types.h>
9381 struct utmp ut; ut.ut_addr = 0;
9384 if { (eval echo configure:9385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9386 samba_cv_HAVE_UT_UT_ADDR=yes
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 samba_cv_HAVE_UT_UT_ADDR=no
9396 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9397 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9398 cat >> confdefs.h <<\EOF
9399 #define HAVE_UT_UT_ADDR 1
9404 if test x$ac_cv_func_pututline = xyes ; then
9405 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9406 echo "configure:9407: checking whether pututline returns pointer" >&5
9407 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9411 cat > conftest.$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9414 #include <sys/types.h>
9417 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9420 if { (eval echo configure:9421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9422 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9427 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9432 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9433 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9434 cat >> confdefs.h <<\EOF
9435 #define PUTUTLINE_RETURNS_UTMP 1
9441 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9442 echo "configure:9443: checking for ut_syslen in utmpx" >&5
9443 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 #include <sys/types.h>
9453 struct utmpx ux; ux.ut_syslen = 0;
9456 if { (eval echo configure:9457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9458 samba_cv_HAVE_UX_UT_SYSLEN=yes
9460 echo "configure: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9463 samba_cv_HAVE_UX_UT_SYSLEN=no
9468 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9469 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9470 cat >> confdefs.h <<\EOF
9471 #define HAVE_UX_UT_SYSLEN 1
9477 # check for iconv in libc, and if not then we build our own
9478 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9479 echo "configure:9480: checking for working iconv" >&5
9480 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9481 echo $ac_n "(cached) $ac_c" 1>&6
9484 if test "$cross_compiling" = yes; then
9485 samba_cv_HAVE_NATIVE_ICONV=cross
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9493 iconv_t cd = iconv_open("ASCII", "UCS2");
9494 if (cd == 0 || cd == (iconv_t)-1) return -1;
9499 if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9501 samba_cv_HAVE_NATIVE_ICONV=yes
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9506 samba_cv_HAVE_NATIVE_ICONV=no
9513 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9514 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9515 cat >> confdefs.h <<\EOF
9516 #define HAVE_NATIVE_ICONV 1
9522 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9523 echo "configure:9524: checking for Linux kernel oplocks" >&5
9524 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9528 if test "$cross_compiling" = yes; then
9529 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9535 #include <sys/types.h>
9538 #define F_GETLEASE 1025
9541 int fd = open("/dev/null", O_RDONLY);
9542 return fcntl(fd, F_GETLEASE, 0) == -1;
9546 if { (eval echo configure:9547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9548 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9550 echo "configure: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9560 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9561 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9562 cat >> confdefs.h <<\EOF
9563 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9568 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9569 echo "configure:9570: checking for kernel change notify support" >&5
9570 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9571 echo $ac_n "(cached) $ac_c" 1>&6
9574 if test "$cross_compiling" = yes; then
9575 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9581 #include <sys/types.h>
9585 #define F_NOTIFY 1026
9588 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9594 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9599 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9606 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9607 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9608 cat >> confdefs.h <<\EOF
9609 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9614 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9615 echo "configure:9616: checking for kernel share modes" >&5
9616 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9617 echo $ac_n "(cached) $ac_c" 1>&6
9620 if test "$cross_compiling" = yes; then
9621 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9627 #include <sys/types.h>
9630 #include <sys/file.h>
9632 #define LOCK_MAND 32
9633 #define LOCK_READ 64
9636 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9642 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9647 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9654 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9655 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9656 cat >> confdefs.h <<\EOF
9657 #define HAVE_KERNEL_SHARE_MODES 1
9665 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9666 echo "configure:9667: checking for IRIX kernel oplock type definitions" >&5
9667 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9674 #include <sys/types.h>
9677 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9680 if { (eval echo configure:9681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9682 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9692 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9693 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9694 cat >> confdefs.h <<\EOF
9695 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9700 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9701 echo "configure:9702: checking for irix specific capabilities" >&5
9702 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9706 if test "$cross_compiling" = yes; then
9707 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 #include <sys/types.h>
9713 #include <sys/capability.h>
9716 if ((cap = cap_get_proc()) == NULL)
9718 cap->cap_effective |= CAP_NETWORK_MGT;
9719 cap->cap_inheritable |= CAP_NETWORK_MGT;
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9727 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9739 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9740 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9741 cat >> confdefs.h <<\EOF
9742 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9748 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9749 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9752 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9753 echo "configure:9754: checking for int16 typedef included by rpc/rpc.h" >&5
9754 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 #include <sys/types.h>
9762 #if defined(HAVE_RPC_RPC_H)
9763 #include <rpc/rpc.h>
9769 if { (eval echo configure:9770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9771 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9773 echo "configure: failed program was:" >&5
9774 cat conftest.$ac_ext >&5
9776 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9781 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9782 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9783 cat >> confdefs.h <<\EOF
9784 #define HAVE_INT16_FROM_RPC_RPC_H 1
9789 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9790 echo "configure:9791: checking for uint16 typedef included by rpc/rpc.h" >&5
9791 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 #include <sys/types.h>
9799 #if defined(HAVE_RPC_RPC_H)
9800 #include <rpc/rpc.h>
9806 if { (eval echo configure:9807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9808 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9813 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9818 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9819 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9820 cat >> confdefs.h <<\EOF
9821 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9826 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9827 echo "configure:9828: checking for int32 typedef included by rpc/rpc.h" >&5
9828 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9832 cat > conftest.$ac_ext <<EOF
9833 #line 9834 "configure"
9834 #include "confdefs.h"
9835 #include <sys/types.h>
9836 #if defined(HAVE_RPC_RPC_H)
9837 #include <rpc/rpc.h>
9843 if { (eval echo configure:9844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9845 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9850 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
9855 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9856 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
9857 cat >> confdefs.h <<\EOF
9858 #define HAVE_INT32_FROM_RPC_RPC_H 1
9863 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9864 echo "configure:9865: checking for uint32 typedef included by rpc/rpc.h" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 #include <sys/types.h>
9873 #if defined(HAVE_RPC_RPC_H)
9874 #include <rpc/rpc.h>
9880 if { (eval echo configure:9881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9882 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
9884 echo "configure: failed program was:" >&5
9885 cat conftest.$ac_ext >&5
9887 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
9892 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9893 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
9894 cat >> confdefs.h <<\EOF
9895 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9901 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9902 echo "configure:9903: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9903 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9911 #ifdef HAVE_SYS_SECURITY_H
9912 #include <sys/security.h>
9914 #endif /* HAVE_SYS_SECURITY_H */
9915 #if defined(HAVE_RPC_RPC_H)
9916 #include <rpc/rpc.h>
9922 if { (eval echo configure:9923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9924 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
9926 echo "configure: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9929 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
9934 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9935 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
9936 cat >> confdefs.h <<\EOF
9937 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9942 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9943 echo "configure:9944: checking for test routines" >&5
9944 if test "$cross_compiling" = yes; then
9945 echo "configure: warning: cannot run when cross-compiling" 1>&2
9947 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure"
9949 #include "confdefs.h"
9950 #include "${srcdir-.}/tests/trivial.c"
9952 if { (eval echo configure:9953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9954 echo "$ac_t""yes" 1>&6
9956 echo "configure: failed program was:" >&5
9957 cat conftest.$ac_ext >&5
9959 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9965 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9966 echo "configure:9967: checking for ftruncate extend" >&5
9967 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9971 if test "$cross_compiling" = yes; then
9972 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 #include "${srcdir-.}/tests/ftruncate.c"
9979 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9981 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9986 samba_cv_HAVE_FTRUNCATE_EXTEND=no
9993 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
9994 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
9995 cat >> confdefs.h <<\EOF
9996 #define HAVE_FTRUNCATE_EXTEND 1
10001 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10002 echo "configure:10003: checking for AF_LOCAL socket support" >&5
10003 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10007 if test "$cross_compiling" = yes; then
10008 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10010 cat > conftest.$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013 #include "${srcdir-.}/tests/unixsock.c"
10015 if { (eval echo configure:10016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10017 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10022 samba_cv_HAVE_WORKING_AF_LOCAL=no
10029 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10030 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_WORKING_AF_LOCAL 1
10038 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10039 echo "configure:10040: checking for broken getgroups" >&5
10040 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10044 if test "$cross_compiling" = yes; then
10045 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10047 cat > conftest.$ac_ext <<EOF
10048 #line 10049 "configure"
10049 #include "confdefs.h"
10050 #include "${srcdir-.}/tests/getgroups.c"
10052 if { (eval echo configure:10053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10054 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10059 samba_cv_HAVE_BROKEN_GETGROUPS=no
10066 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10067 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10068 cat >> confdefs.h <<\EOF
10069 #define HAVE_BROKEN_GETGROUPS 1
10074 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10075 echo "configure:10076: checking whether getpass should be replaced" >&5
10076 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10080 SAVE_CPPFLAGS="$CPPFLAGS"
10081 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10086 #define REPLACE_GETPASS 1
10087 #define NO_CONFIG_H 1
10088 #define main dont_declare_main
10089 #include "${srcdir-.}/lib/getsmbpass.c"
10096 if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098 samba_cv_REPLACE_GETPASS=yes
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 samba_cv_REPLACE_GETPASS=no
10106 CPPFLAGS="$SAVE_CPPFLAGS"
10110 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10111 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10112 cat >> confdefs.h <<\EOF
10113 #define REPLACE_GETPASS 1
10118 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10119 echo "configure:10120: checking for broken inet_ntoa" >&5
10120 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10124 if test "$cross_compiling" = yes; then
10125 samba_cv_REPLACE_INET_NTOA=cross
10127 cat > conftest.$ac_ext <<EOF
10128 #line 10129 "configure"
10129 #include "confdefs.h"
10132 #include <sys/types.h>
10133 #include <netinet/in.h>
10134 #ifdef HAVE_ARPA_INET_H
10135 #include <arpa/inet.h>
10137 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10138 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10139 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10142 if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10144 samba_cv_REPLACE_INET_NTOA=yes
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10149 samba_cv_REPLACE_INET_NTOA=no
10156 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10157 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10158 cat >> confdefs.h <<\EOF
10159 #define REPLACE_INET_NTOA 1
10164 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10165 echo "configure:10166: checking for secure mkstemp" >&5
10166 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10170 if test "$cross_compiling" = yes; then
10171 samba_cv_HAVE_SECURE_MKSTEMP=cross
10173 cat > conftest.$ac_ext <<EOF
10174 #line 10175 "configure"
10175 #include "confdefs.h"
10176 #include <stdlib.h>
10177 #include <sys/types.h>
10178 #include <sys/stat.h>
10179 #include <unistd.h>
10182 char tpl[20]="/tmp/test.XXXXXX";
10183 int fd = mkstemp(tpl);
10184 if (fd == -1) exit(1);
10186 if (fstat(fd, &st) != 0) exit(1);
10187 if ((st.st_mode & 0777) != 0600) exit(1);
10191 if { (eval echo configure:10192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10193 samba_cv_HAVE_SECURE_MKSTEMP=yes
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10198 samba_cv_HAVE_SECURE_MKSTEMP=no
10205 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10206 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_SECURE_MKSTEMP 1
10213 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10214 echo "configure:10215: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10215 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10219 if test "$cross_compiling" = yes; then
10220 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10222 cat > conftest.$ac_ext <<EOF
10223 #line 10224 "configure"
10224 #include "confdefs.h"
10225 #include <unistd.h>
10226 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10228 if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10230 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10242 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10243 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10244 cat >> confdefs.h <<\EOF
10245 #define SYSCONF_SC_NGROUPS_MAX 1
10250 echo $ac_n "checking for root""... $ac_c" 1>&6
10251 echo "configure:10252: checking for root" >&5
10252 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10256 if test "$cross_compiling" = yes; then
10257 samba_cv_HAVE_ROOT=cross
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 main() { exit(getuid() != 0); }
10264 if { (eval echo configure:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10266 samba_cv_HAVE_ROOT=yes
10268 echo "configure: failed program was:" >&5
10269 cat conftest.$ac_ext >&5
10271 samba_cv_HAVE_ROOT=no
10278 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10279 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10280 cat >> confdefs.h <<\EOF
10281 #define HAVE_ROOT 1
10285 echo "configure: warning: running as non-root will disable some tests" 1>&2
10289 # look for a method of finding the list of network interfaces
10291 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10292 echo "configure:10293: checking for iface AIX" >&5
10293 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10297 if test "$cross_compiling" = yes; then
10298 samba_cv_HAVE_IFACE_AIX=cross
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10304 #define HAVE_IFACE_AIX 1
10305 #define AUTOCONF_TEST 1
10306 #include "confdefs.h"
10307 #include "${srcdir-.}/lib/interfaces.c"
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10311 samba_cv_HAVE_IFACE_AIX=yes
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 samba_cv_HAVE_IFACE_AIX=no
10323 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10324 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10325 iface=yes;cat >> confdefs.h <<\EOF
10326 #define HAVE_IFACE_AIX 1
10331 if test $iface = no; then
10332 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10333 echo "configure:10334: checking for iface ifconf" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_IFACE_IFCONF=cross
10341 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10345 #define HAVE_IFACE_IFCONF 1
10346 #define AUTOCONF_TEST 1
10347 #include "confdefs.h"
10348 #include "${srcdir-.}/lib/interfaces.c"
10350 if { (eval echo configure:10351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10352 samba_cv_HAVE_IFACE_IFCONF=yes
10354 echo "configure: failed program was:" >&5
10355 cat conftest.$ac_ext >&5
10357 samba_cv_HAVE_IFACE_IFCONF=no
10364 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10365 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10366 iface=yes;cat >> confdefs.h <<\EOF
10367 #define HAVE_IFACE_IFCONF 1
10373 if test $iface = no; then
10374 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10375 echo "configure:10376: checking for iface ifreq" >&5
10376 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10380 if test "$cross_compiling" = yes; then
10381 samba_cv_HAVE_IFACE_IFREQ=cross
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10387 #define HAVE_IFACE_IFREQ 1
10388 #define AUTOCONF_TEST 1
10389 #include "confdefs.h"
10390 #include "${srcdir-.}/lib/interfaces.c"
10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10394 samba_cv_HAVE_IFACE_IFREQ=yes
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 samba_cv_HAVE_IFACE_IFREQ=no
10406 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10407 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10408 iface=yes;cat >> confdefs.h <<\EOF
10409 #define HAVE_IFACE_IFREQ 1
10416 ################################################
10417 # look for a method of setting the effective uid
10419 if test $seteuid = no; then
10420 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10421 echo "configure:10422: checking for setresuid" >&5
10422 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10426 if test "$cross_compiling" = yes; then
10427 samba_cv_USE_SETRESUID=cross
10429 cat > conftest.$ac_ext <<EOF
10430 #line 10431 "configure"
10431 #include "confdefs.h"
10433 #define AUTOCONF_TEST 1
10434 #define USE_SETRESUID 1
10435 #include "confdefs.h"
10436 #include "${srcdir-.}/lib/util_sec.c"
10438 if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10440 samba_cv_USE_SETRESUID=yes
10442 echo "configure: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10445 samba_cv_USE_SETRESUID=no
10452 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10453 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10454 seteuid=yes;cat >> confdefs.h <<\EOF
10455 #define USE_SETRESUID 1
10462 if test $seteuid = no; then
10463 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10464 echo "configure:10465: checking for setreuid" >&5
10465 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10469 if test "$cross_compiling" = yes; then
10470 samba_cv_USE_SETREUID=cross
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10476 #define AUTOCONF_TEST 1
10477 #define USE_SETREUID 1
10478 #include "confdefs.h"
10479 #include "${srcdir-.}/lib/util_sec.c"
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10483 samba_cv_USE_SETREUID=yes
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 samba_cv_USE_SETREUID=no
10495 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10496 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10497 seteuid=yes;cat >> confdefs.h <<\EOF
10498 #define USE_SETREUID 1
10504 if test $seteuid = no; then
10505 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10506 echo "configure:10507: checking for seteuid" >&5
10507 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10508 echo $ac_n "(cached) $ac_c" 1>&6
10511 if test "$cross_compiling" = yes; then
10512 samba_cv_USE_SETEUID=cross
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10518 #define AUTOCONF_TEST 1
10519 #define USE_SETEUID 1
10520 #include "confdefs.h"
10521 #include "${srcdir-.}/lib/util_sec.c"
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10525 samba_cv_USE_SETEUID=yes
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 samba_cv_USE_SETEUID=no
10537 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10538 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10539 seteuid=yes;cat >> confdefs.h <<\EOF
10540 #define USE_SETEUID 1
10546 if test $seteuid = no; then
10547 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10548 echo "configure:10549: checking for setuidx" >&5
10549 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10550 echo $ac_n "(cached) $ac_c" 1>&6
10553 if test "$cross_compiling" = yes; then
10554 samba_cv_USE_SETUIDX=cross
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10560 #define AUTOCONF_TEST 1
10561 #define USE_SETUIDX 1
10562 #include "confdefs.h"
10563 #include "${srcdir-.}/lib/util_sec.c"
10565 if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10567 samba_cv_USE_SETUIDX=yes
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10572 samba_cv_USE_SETUIDX=no
10579 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10580 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10581 seteuid=yes;cat >> confdefs.h <<\EOF
10582 #define USE_SETUIDX 1
10589 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10590 echo "configure:10591: checking for working mmap" >&5
10591 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10592 echo $ac_n "(cached) $ac_c" 1>&6
10595 if test "$cross_compiling" = yes; then
10596 samba_cv_HAVE_MMAP=cross
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10600 "configure"
10600 #include "confdefs.h"
10601 #include "${srcdir-.}/tests/shared_mmap.c"
10603 if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10605 samba_cv_HAVE_MMAP=yes
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10610 samba_cv_HAVE_MMAP=no
10617 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10618 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10619 cat >> confdefs.h <<\EOF
10620 #define HAVE_MMAP 1
10625 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10626 echo "configure:10627: checking for ftruncate needs root" >&5
10627 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10628 echo $ac_n "(cached) $ac_c" 1>&6
10631 if test "$cross_compiling" = yes; then
10632 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10634 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure"
10636 #include "confdefs.h"
10637 #include "${srcdir-.}/tests/ftruncroot.c"
10639 if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10641 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10643 echo "configure: failed program was:" >&5
10644 cat conftest.$ac_ext >&5
10646 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10653 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10654 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10655 cat >> confdefs.h <<\EOF
10656 #define FTRUNCATE_NEEDS_ROOT 1
10661 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10662 echo "configure:10663: checking for fcntl locking" >&5
10663 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10667 if test "$cross_compiling" = yes; then
10668 samba_cv_HAVE_FCNTL_LOCK=cross
10670 cat > conftest.$ac_ext <<EOF
10671 #line 10672 "configure"
10672 #include "confdefs.h"
10673 #include "${srcdir-.}/tests/fcntl_lock.c"
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10677 samba_cv_HAVE_FCNTL_LOCK=yes
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 samba_cv_HAVE_FCNTL_LOCK=no
10689 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10690 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10691 cat >> confdefs.h <<\EOF
10692 #define HAVE_FCNTL_LOCK 1
10697 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10698 echo "configure:10699: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10699 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10703 if test "$cross_compiling" = yes; then
10704 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 #include "${srcdir-.}/tests/fcntl_lock64.c"
10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10713 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10718 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10725 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10726 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10727 cat >> confdefs.h <<\EOF
10728 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10735 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10736 echo "configure:10737: checking for 64 bit fcntl locking" >&5
10737 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10741 if test "$cross_compiling" = yes; then
10742 samba_cv_HAVE_STRUCT_FLOCK64=cross
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10748 #if defined(HAVE_UNISTD_H)
10749 #include <unistd.h>
10752 #include <stdlib.h>
10754 #ifdef HAVE_FCNTL_H
10758 #ifdef HAVE_SYS_FCNTL_H
10759 #include <sys/fcntl.h>
10761 main() { struct flock64 fl64;
10762 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10769 if { (eval echo configure:10770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10771 samba_cv_HAVE_STRUCT_FLOCK64=yes
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10776 samba_cv_HAVE_STRUCT_FLOCK64=no
10783 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10785 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10786 cat >> confdefs.h <<\EOF
10787 #define HAVE_STRUCT_FLOCK64 1
10793 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10794 echo "configure:10795: checking for a crypt that needs truncated salt" >&5
10795 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10799 if test "$cross_compiling" = yes; then
10800 samba_cv_HAVE_TRUNCATED_SALT=cross
10802 cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10805 #include "${srcdir-.}/tests/crypttest.c"
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10809 samba_cv_HAVE_TRUNCATED_SALT=no
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10814 samba_cv_HAVE_TRUNCATED_SALT=yes
10821 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10822 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
10823 cat >> confdefs.h <<\EOF
10824 #define HAVE_TRUNCATED_SALT 1
10829 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10830 echo "configure:10831: checking for broken nisplus include files" >&5
10831 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 #include <sys/acl.h>
10839 #if defined(HAVE_RPCSVC_NIS_H)
10840 #include <rpcsvc/nis.h>
10846 if { (eval echo configure:10847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10848 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10850 echo "configure: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10853 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10858 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10859 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10860 cat >> confdefs.h <<\EOF
10861 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10867 #################################################
10868 # check for smbwrapper support
10869 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10870 echo "configure:10871: checking whether to use smbwrapper" >&5
10871 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10872 if test "${with_smbwrapper+set}" = set; then
10873 withval="$with_smbwrapper"
10876 echo "$ac_t""yes" 1>&6
10877 cat >> confdefs.h <<\EOF
10878 #define WITH_SMBWRAPPER 1
10881 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10883 if test x$ATTEMPT_WRAP32_BUILD = x; then
10886 WRAP32=bin/smbwrapper.32.$SHLIBEXT
10889 # Conditions under which smbwrapper should not be built.
10891 if test x$PICFLAG = x; then
10892 echo No support for PIC code - disabling smbwrapper and smbsh
10895 elif test x$ac_cv_func_syscall = xno; then
10896 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10902 echo "$ac_t""no" 1>&6
10906 echo "$ac_t""no" 1>&6
10911 #################################################
10912 # check for the AFS filesystem
10913 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10914 echo "configure:10915: checking whether to use AFS" >&5
10915 # Check whether --with-afs or --without-afs was given.
10916 if test "${with_afs+set}" = set; then
10917 withval="$with_afs"
10920 echo "$ac_t""yes" 1>&6
10921 cat >> confdefs.h <<\EOF
10927 echo "$ac_t""no" 1>&6
10931 echo "$ac_t""no" 1>&6
10937 #################################################
10938 # check for the DFS auth system
10939 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
10940 echo "configure:10941: checking whether to use DFS auth" >&5
10941 # Check whether --with-dfs or --without-dfs was given.
10942 if test "${with_dfs+set}" = set; then
10943 withval="$with_dfs"
10946 echo "$ac_t""yes" 1>&6
10947 cat >> confdefs.h <<\EOF
10953 echo "$ac_t""no" 1>&6
10957 echo "$ac_t""no" 1>&6
10962 #################################################
10963 # check for Kerberos IV auth system
10964 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10965 echo "configure:10966: checking whether to use Kerberos IV" >&5
10966 # Check whether --with-krb4 or --without-krb4 was given.
10967 if test "${with_krb4+set}" = set; then
10968 withval="$with_krb4"
10971 echo "$ac_t""yes" 1>&6
10972 cat >> confdefs.h <<\EOF
10973 #define KRB4_AUTH 1
10976 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10977 echo "configure:10978: checking for dn_expand in -lresolv" >&5
10978 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10980 echo $ac_n "(cached) $ac_c" 1>&6
10982 ac_save_LIBS="$LIBS"
10983 LIBS="-lresolv $LIBS"
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 /* Override any gcc2 internal prototype to avoid an error. */
10988 /* We use char because int might match the return type of a gcc2
10989 builtin and then its argument prototype would still apply. */
10996 if { (eval echo configure:10997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10998 eval "ac_cv_lib_$ac_lib_var=yes"
11000 echo "configure: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11003 eval "ac_cv_lib_$ac_lib_var=no"
11006 LIBS="$ac_save_LIBS"
11009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11010 echo "$ac_t""yes" 1>&6
11011 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11013 cat >> confdefs.h <<EOF
11014 #define $ac_tr_lib 1
11017 LIBS="-lresolv $LIBS"
11020 echo "$ac_t""no" 1>&6
11023 LIBS="$LIBS -lkrb -ldes"
11024 CFLAGS="$CFLAGS -I$withval/include"
11025 LDFLAGS="$LDFLAGS -L$withval/lib"
11028 echo "$ac_t""no" 1>&6
11032 echo "$ac_t""no" 1>&6
11037 #################################################
11038 # check for Kerberos 5 auth system
11039 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11040 echo "configure:11041: checking whether to use Kerberos 5" >&5
11041 # Check whether --with-krb5 or --without-krb5 was given.
11042 if test "${with_krb5+set}" = set; then
11043 withval="$with_krb5"
11046 echo "$ac_t""yes" 1>&6
11047 cat >> confdefs.h <<\EOF
11048 #define KRB5_AUTH 1
11051 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11052 CFLAGS="$CFLAGS -I$withval/include"
11053 LDFLAGS="$LDFLAGS -L$withval/lib"
11056 echo "$ac_t""no" 1>&6
11060 echo "$ac_t""no" 1>&6
11065 #################################################
11066 # check for automount support
11067 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11068 echo "configure:11069: checking whether to use AUTOMOUNT" >&5
11069 # Check whether --with-automount or --without-automount was given.
11070 if test "${with_automount+set}" = set; then
11071 withval="$with_automount"
11074 echo "$ac_t""yes" 1>&6
11075 cat >> confdefs.h <<\EOF
11076 #define WITH_AUTOMOUNT 1
11081 echo "$ac_t""no" 1>&6
11085 echo "$ac_t""no" 1>&6
11090 #################################################
11091 # check for smbmount support
11092 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11093 echo "configure:11094: checking whether to use SMBMOUNT" >&5
11094 # Check whether --with-smbmount or --without-smbmount was given.
11095 if test "${with_smbmount+set}" = set; then
11096 withval="$with_smbmount"
11099 echo "$ac_t""yes" 1>&6
11100 cat >> confdefs.h <<\EOF
11101 #define WITH_SMBMOUNT 1
11104 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11107 echo "$ac_t""no" 1>&6
11112 echo "$ac_t""no" 1>&6
11119 #################################################
11120 # check for a PAM password database
11122 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11123 echo "configure:11124: checking whether to use PAM password database" >&5
11124 # Check whether --with-pam or --without-pam was given.
11125 if test "${with_pam+set}" = set; then
11126 withval="$with_pam"
11129 echo "$ac_t""yes" 1>&6
11130 cat >> confdefs.h <<\EOF
11137 echo "$ac_t""no" 1>&6
11141 echo "$ac_t""no" 1>&6
11146 # we can't build a pam module if we don't have pam.
11147 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11148 echo "configure:11149: checking for pam_get_data in -lpam" >&5
11149 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11151 echo $ac_n "(cached) $ac_c" 1>&6
11153 ac_save_LIBS="$LIBS"
11155 cat > conftest.$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11158 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11161 char pam_get_data();
11167 if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11169 eval "ac_cv_lib_$ac_lib_var=yes"
11171 echo "configure: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 eval "ac_cv_lib_$ac_lib_var=no"
11177 LIBS="$ac_save_LIBS"
11180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11181 echo "$ac_t""yes" 1>&6
11182 cat >> confdefs.h <<\EOF
11183 #define HAVE_LIBPAM 1
11187 echo "$ac_t""no" 1>&6
11191 #################################################
11192 # check for pam_smbpass support
11193 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11194 echo "configure:11195: checking whether to use pam_smbpass" >&5
11195 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11196 if test "${with_pam_smbpass+set}" = set; then
11197 withval="$with_pam_smbpass"
11200 echo "$ac_t""yes" 1>&6
11202 # Conditions under which pam_smbpass should not be built.
11204 if test x$PICFLAG = x; then
11205 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11207 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11208 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11211 cat >> confdefs.h <<\EOF
11212 #define WITH_PAM_SMBPASS 1
11215 PAM_MOD="bin/pam_smbpass.so"
11219 echo "$ac_t""no" 1>&6
11223 echo "$ac_t""no" 1>&6
11229 ###############################################
11230 # test for where we get crypt() from, but only
11232 if test "$with_pam" != yes; then
11233 for ac_func in crypt
11235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11236 echo "configure:11237: checking for $ac_func" >&5
11237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11238 echo $ac_n "(cached) $ac_c" 1>&6
11240 cat > conftest.$ac_ext <<EOF
11241 #line 11242 "configure"
11242 #include "confdefs.h"
11243 /* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char $ac_func(); below. */
11245 #include <assert.h>
11246 /* Override any gcc2 internal prototype to avoid an error. */
11247 /* We use char because int might match the return type of a gcc2
11248 builtin and then its argument prototype would still apply. */
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11266 eval "ac_cv_func_$ac_func=yes"
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 eval "ac_cv_func_$ac_func=no"
11276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11277 echo "$ac_t""yes" 1>&6
11278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11279 cat >> confdefs.h <<EOF
11280 #define $ac_tr_func 1
11284 echo "$ac_t""no" 1>&6
11288 if test x"$ac_cv_func_crypt" = x"no"; then
11289 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11290 echo "configure:11291: checking for crypt in -lcrypt" >&5
11291 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 ac_save_LIBS="$LIBS"
11296 LIBS="-lcrypt $LIBS"
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11300 /* Override any gcc2 internal prototype to avoid an error. */
11301 /* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
11309 if { (eval echo configure:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11311 eval "ac_cv_lib_$ac_lib_var=yes"
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11316 eval "ac_cv_lib_$ac_lib_var=no"
11319 LIBS="$ac_save_LIBS"
11322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 LIBS="$LIBS -lcrypt";
11325 cat >> confdefs.h <<\EOF
11326 #define HAVE_CRYPT 1
11330 echo "$ac_t""no" 1>&6
11337 #################################################
11338 # check for a TDB password database
11339 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11340 echo "configure:11341: checking whether to use TDB password database" >&5
11341 # Check whether --with-tdbsam or --without-tdbsam was given.
11342 if test "${with_tdbsam+set}" = set; then
11343 withval="$with_tdbsam"
11346 echo "$ac_t""yes" 1>&6
11347 cat >> confdefs.h <<\EOF
11348 #define WITH_TDBPWD 1
11351 # AC_MSG_ERROR([TDB password database not supported in this version.])
11354 echo "$ac_t""no" 1>&6
11358 echo "$ac_t""no" 1>&6
11363 #################################################
11364 # check for a LDAP password database
11365 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11366 echo "configure:11367: checking whether to use LDAP password database" >&5
11367 # Check whether --with-ldap or --without-ldap was given.
11368 if test "${with_ldap+set}" = set; then
11369 withval="$with_ldap"
11372 echo "$ac_t""yes" 1>&6
11373 cat >> confdefs.h <<\EOF
11374 #define WITH_LDAP 1
11377 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11380 echo "$ac_t""no" 1>&6
11384 echo "$ac_t""no" 1>&6
11389 #################################################
11390 # check for a NISPLUS password database
11391 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11392 echo "configure:11393: checking whether to use NISPLUS password database" >&5
11393 # Check whether --with-nisplus or --without-nisplus was given.
11394 if test "${with_nisplus+set}" = set; then
11395 withval="$with_nisplus"
11398 echo "$ac_t""yes" 1>&6
11399 cat >> confdefs.h <<\EOF
11400 #define WITH_NISPLUS 1
11405 echo "$ac_t""no" 1>&6
11409 echo "$ac_t""no" 1>&6
11414 #################################################
11415 # check for a NISPLUS_HOME support
11416 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11417 echo "configure:11418: checking whether to use NISPLUS_HOME" >&5
11418 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11419 if test "${with_nisplus_home+set}" = set; then
11420 withval="$with_nisplus_home"
11423 echo "$ac_t""yes" 1>&6
11424 cat >> confdefs.h <<\EOF
11425 #define WITH_NISPLUS_HOME 1
11430 echo "$ac_t""no" 1>&6
11434 echo "$ac_t""no" 1>&6
11439 #################################################
11440 # check for the secure socket layer
11441 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11442 echo "configure:11443: checking whether to use SSL" >&5
11443 # Check whether --with-ssl or --without-ssl was given.
11444 if test "${with_ssl+set}" = set; then
11445 withval="$with_ssl"
11448 echo "$ac_t""yes" 1>&6
11449 cat >> confdefs.h <<\EOF
11453 withval="/usr/local/ssl" # default
11455 if test "${with_sslinc+set}" = set; then
11457 withval="$with_sslinc"
11460 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11461 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11462 LIBS="-lssl -lcrypto $LIBS"
11463 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11466 CFLAGS="-I${withval} $CFLAGS"
11467 LIBS="-lssl -lcrypto $LIBS"
11468 LDFLAGS="-L${withval}/lib $LDFLAGS"
11474 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11475 LIBS="-lssl -lcrypto $LIBS"
11476 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11480 if test ! -d ${withval}; then
11481 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11485 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11489 echo "$ac_t""no" 1>&6
11493 echo "$ac_t""no" 1>&6
11498 #################################################
11499 # check for syslog logging
11500 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11501 echo "configure:11502: checking whether to use syslog logging" >&5
11502 # Check whether --with-syslog or --without-syslog was given.
11503 if test "${with_syslog+set}" = set; then
11504 withval="$with_syslog"
11507 echo "$ac_t""yes" 1>&6
11508 cat >> confdefs.h <<\EOF
11509 #define WITH_SYSLOG 1
11514 echo "$ac_t""no" 1>&6
11518 echo "$ac_t""no" 1>&6
11523 #################################################
11524 # check for a shared memory profiling support
11525 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11526 echo "configure:11527: checking whether to use profiling" >&5
11527 # Check whether --with-profile or --without-profile was given.
11528 if test "${with_profile+set}" = set; then
11529 withval="$with_profile"
11532 echo "$ac_t""yes" 1>&6
11533 cat >> confdefs.h <<\EOF
11534 #define WITH_PROFILE 1
11539 echo "$ac_t""no" 1>&6
11543 echo "$ac_t""no" 1>&6
11549 #################################################
11550 # check for experimental netatalk resource fork support
11551 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11552 echo "configure:11553: checking whether to support netatalk" >&5
11553 # Check whether --with-netatalk or --without-netatalk was given.
11554 if test "${with_netatalk+set}" = set; then
11555 withval="$with_netatalk"
11558 echo "$ac_t""yes" 1>&6
11559 cat >> confdefs.h <<\EOF
11560 #define WITH_NETATALK 1
11565 echo "$ac_t""no" 1>&6
11569 echo "$ac_t""no" 1>&6
11574 #################################################
11575 # check for experimental disk-quotas support
11576 QUOTAOBJS=smbd/noquotas.o
11578 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11579 echo "configure:11580: checking whether to support disk-quotas" >&5
11580 # Check whether --with-quotas or --without-quotas was given.
11581 if test "${with_quotas+set}" = set; then
11582 withval="$with_quotas"
11585 echo "$ac_t""yes" 1>&6
11586 QUOTAOBJS=smbd/quotas.o
11589 echo "$ac_t""no" 1>&6
11593 echo "$ac_t""no" 1>&6
11599 #################################################
11600 # check for experimental utmp accounting
11602 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11603 echo "configure:11604: checking whether to support utmp accounting" >&5
11604 # Check whether --with-utmp or --without-utmp was given.
11605 if test "${with_utmp+set}" = set; then
11606 withval="$with_utmp"
11609 echo "$ac_t""yes" 1>&6
11610 cat >> confdefs.h <<\EOF
11611 #define WITH_UTMP 1
11616 echo "$ac_t""no" 1>&6
11620 echo "$ac_t""no" 1>&6
11625 #################################################
11626 # check for MS Dfs support
11628 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11629 echo "configure:11630: checking whether to support Microsoft Dfs" >&5
11630 # Check whether --with-msdfs or --without-msdfs was given.
11631 if test "${with_msdfs+set}" = set; then
11632 withval="$with_msdfs"
11635 echo "$ac_t""yes" 1>&6
11636 cat >> confdefs.h <<\EOF
11637 #define WITH_MSDFS 1
11642 echo "$ac_t""no" 1>&6
11646 echo "$ac_t""no" 1>&6
11651 #################################################
11652 # set private directory location
11653 # Check whether --with-privatedir or --without-privatedir was given.
11654 if test "${with_privatedir+set}" = set; then
11655 withval="$with_privatedir"
11659 # Just in case anybody calls it without argument
11661 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11662 privatedir='${prefix}/private'
11665 privatedir="$withval"
11670 privatedir='${prefix}/private'
11676 #################################################
11677 # set lock directory location
11678 # Check whether --with-lockdir or --without-lockdir was given.
11679 if test "${with_lockdir+set}" = set; then
11680 withval="$with_lockdir"
11684 # Just in case anybody calls it without argument
11686 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11687 lockdir='$(VARDIR)/locks'
11695 lockdir='$(VARDIR)/locks'
11701 #################################################
11702 # set SWAT directory location
11703 # Check whether --with-swatdir or --without-swatdir was given.
11704 if test "${with_swatdir+set}" = set; then
11705 withval="$with_swatdir"
11709 # Just in case anybody does it
11711 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11712 swatdir='${prefix}/swat'
11720 swatdir='${prefix}/swat'
11726 #################################################
11727 # these tests are taken from the GNU fileutils package
11728 echo "checking how to get filesystem space usage" 1>&6
11729 echo "configure:11730: checking how to get filesystem space usage" >&5
11732 # Test for statvfs64.
11733 if test $space = no; then
11735 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11736 echo "configure:11737: checking statvfs64 function (SVR4)" >&5
11737 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11738 echo $ac_n "(cached) $ac_c" 1>&6
11740 if test "$cross_compiling" = yes; then
11741 fu_cv_sys_stat_statvfs64=cross
11743 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure"
11745 #include "confdefs.h"
11747 #if defined(HAVE_UNISTD_H)
11748 #include <unistd.h>
11750 #include <sys/types.h>
11751 #include <sys/statvfs.h>
11754 struct statvfs64 fsd;
11755 exit (statvfs64 (".", &fsd));
11758 if { (eval echo configure:11759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11760 fu_cv_sys_stat_statvfs64=yes
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11765 fu_cv_sys_stat_statvfs64=no
11772 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11773 if test $fu_cv_sys_stat_statvfs64 = yes; then
11775 cat >> confdefs.h <<\EOF
11776 #define STAT_STATVFS64 1
11782 # Perform only the link test since it seems there are no variants of the
11783 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11784 # because that got a false positive on SCO OSR5. Adding the declaration
11785 # of a `struct statvfs' causes this test to fail (as it should) on such
11786 # systems. That system is reported to work fine with STAT_STATFS4 which
11787 # is what it gets when this test fails.
11788 if test $space = no; then
11790 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11791 echo "configure:11792: checking statvfs function (SVR4)" >&5
11792 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 #include <sys/types.h>
11799 #include <sys/statvfs.h>
11801 struct statvfs fsd; statvfs (0, &fsd);
11804 if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806 fu_cv_sys_stat_statvfs=yes
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11811 fu_cv_sys_stat_statvfs=no
11816 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11817 if test $fu_cv_sys_stat_statvfs = yes; then
11819 cat >> confdefs.h <<\EOF
11820 #define STAT_STATVFS 1
11826 if test $space = no; then
11827 # DEC Alpha running OSF/1
11828 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11829 echo "configure:11830: checking for 3-argument statfs function (DEC OSF/1)" >&5
11830 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11831 echo $ac_n "(cached) $ac_c" 1>&6
11833 if test "$cross_compiling" = yes; then
11834 fu_cv_sys_stat_statfs3_osf1=no
11836 cat > conftest.$ac_ext <<EOF
11837 #line 11838 "configure"
11838 #include "confdefs.h"
11840 #include <sys/param.h>
11841 #include <sys/types.h>
11842 #include <sys/mount.h>
11847 exit (statfs (".", &fsd, sizeof (struct statfs)));
11850 if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11852 fu_cv_sys_stat_statfs3_osf1=yes
11854 echo "configure: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11857 fu_cv_sys_stat_statfs3_osf1=no
11864 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11865 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11867 cat >> confdefs.h <<\EOF
11868 #define STAT_STATFS3_OSF1 1
11874 if test $space = no; then
11876 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11877 echo "configure:11878: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11878 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11881 if test "$cross_compiling" = yes; then
11882 fu_cv_sys_stat_statfs2_bsize=no
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11888 #ifdef HAVE_SYS_PARAM_H
11889 #include <sys/param.h>
11891 #ifdef HAVE_SYS_MOUNT_H
11892 #include <sys/mount.h>
11894 #ifdef HAVE_SYS_VFS_H
11895 #include <sys/vfs.h>
11901 exit (statfs (".", &fsd));
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11906 fu_cv_sys_stat_statfs2_bsize=yes
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11911 fu_cv_sys_stat_statfs2_bsize=no
11918 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11919 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11921 cat >> confdefs.h <<\EOF
11922 #define STAT_STATFS2_BSIZE 1
11928 if test $space = no; then
11930 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11931 echo "configure:11932: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11932 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11933 echo $ac_n "(cached) $ac_c" 1>&6
11935 if test "$cross_compiling" = yes; then
11936 fu_cv_sys_stat_statfs4=no
11938 cat > conftest.$ac_ext <<EOF
11939 #line 11940 "configure"
11940 #include "confdefs.h"
11941 #include <sys/types.h>
11942 #include <sys/statfs.h>
11946 exit (statfs (".", &fsd, sizeof fsd, 0));
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11951 fu_cv_sys_stat_statfs4=yes
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 fu_cv_sys_stat_statfs4=no
11963 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11964 if test $fu_cv_sys_stat_statfs4 = yes; then
11966 cat >> confdefs.h <<\EOF
11967 #define STAT_STATFS4 1
11973 if test $space = no; then
11974 # 4.4BSD and NetBSD
11975 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11976 echo "configure:11977: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11977 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11980 if test "$cross_compiling" = yes; then
11981 fu_cv_sys_stat_statfs2_fsize=no
11983 cat > conftest.$ac_ext <<EOF
11984 #line 11985 "configure"
11985 #include "confdefs.h"
11986 #include <sys/types.h>
11987 #ifdef HAVE_SYS_PARAM_H
11988 #include <sys/param.h>
11990 #ifdef HAVE_SYS_MOUNT_H
11991 #include <sys/mount.h>
11997 exit (statfs (".", &fsd));
12000 if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12002 fu_cv_sys_stat_statfs2_fsize=yes
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12007 fu_cv_sys_stat_statfs2_fsize=no
12014 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12015 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12017 cat >> confdefs.h <<\EOF
12018 #define STAT_STATFS2_FSIZE 1
12024 if test $space = no; then
12026 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12027 echo "configure:12028: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12028 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12029 echo $ac_n "(cached) $ac_c" 1>&6
12031 if test "$cross_compiling" = yes; then
12032 fu_cv_sys_stat_fs_data=no
12034 cat > conftest.$ac_ext <<EOF
12035 #line 12036 "configure"
12036 #include "confdefs.h"
12037 #include <sys/types.h>
12038 #ifdef HAVE_SYS_PARAM_H
12039 #include <sys/param.h>
12041 #ifdef HAVE_SYS_MOUNT_H
12042 #include <sys/mount.h>
12044 #ifdef HAVE_SYS_FS_TYPES_H
12045 #include <sys/fs_types.h>
12049 struct fs_data fsd;
12050 /* Ultrix's statfs returns 1 for success,
12051 0 for not mounted, -1 for failure. */
12052 exit (statfs (".", &fsd) != 1);
12055 if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12057 fu_cv_sys_stat_fs_data=yes
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 fu_cv_sys_stat_fs_data=no
12069 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12070 if test $fu_cv_sys_stat_fs_data = yes; then
12072 cat >> confdefs.h <<\EOF
12073 #define STAT_STATFS2_FS_DATA 1
12080 # As a gating factor for large file support, in order to
12081 # use <4GB files we must have the following minimal support
12083 # long long, and a 64 bit off_t or off64_t.
12084 # If we don't have all of these then disable large
12087 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12088 echo "configure:12089: checking if large file support can be enabled" >&5
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12093 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12094 #include <sys/types.h>
12103 if { (eval echo configure:12104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12105 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12113 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12114 cat >> confdefs.h <<\EOF
12115 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12119 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12121 # Check whether --with-spinlocks or --without-spinlocks was given.
12122 if test "${with_spinlocks+set}" = set; then
12123 withval="$with_spinlocks"
12127 if test "x$with_spinlocks" = "xyes"; then
12128 cat >> confdefs.h <<\EOF
12129 #define USE_SPINLOCKS 1
12133 case "$host_cpu" in
12135 cat >> confdefs.h <<\EOF
12136 #define SPARC_SPINLOCKS 1
12141 i386|i486|i586|i686)
12142 cat >> confdefs.h <<\EOF
12143 #define INTEL_SPINLOCKS 1
12149 cat >> confdefs.h <<\EOF
12150 #define MIPS_SPINLOCKS 1
12156 cat >> confdefs.h <<\EOF
12157 #define POWERPC_SPINLOCKS 1
12164 #################################################
12165 # check for ACL support
12167 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12168 echo "configure:12169: checking whether to support ACLs" >&5
12169 # Check whether --with-acl-support or --without-acl-support was given.
12170 if test "${with_acl_support+set}" = set; then
12171 withval="$with_acl_support"
12177 echo "$ac_t""Using UnixWare ACLs" 1>&6
12178 cat >> confdefs.h <<\EOF
12179 #define HAVE_UNIXWARE_ACLS 1
12184 echo "$ac_t""Using solaris ACLs" 1>&6
12185 cat >> confdefs.h <<\EOF
12186 #define HAVE_SOLARIS_ACLS 1
12191 echo "$ac_t""Using IRIX ACLs" 1>&6
12192 cat >> confdefs.h <<\EOF
12193 #define HAVE_IRIX_ACLS 1
12198 echo "$ac_t""Using AIX ACLs" 1>&6
12199 cat >> confdefs.h <<\EOF
12200 #define HAVE_AIX_ACLS 1
12205 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12206 echo "configure:12207: checking for acl_get_file in -lacl" >&5
12207 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12211 ac_save_LIBS="$LIBS"
12213 cat > conftest.$ac_ext <<EOF
12214 #line 12215 "configure"
12215 #include "confdefs.h"
12216 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */
12219 char acl_get_file();
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12227 eval "ac_cv_lib_$ac_lib_var=yes"
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12232 eval "ac_cv_lib_$ac_lib_var=no"
12235 LIBS="$ac_save_LIBS"
12238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12239 echo "$ac_t""yes" 1>&6
12240 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12242 cat >> confdefs.h <<EOF
12243 #define $ac_tr_lib 1
12249 echo "$ac_t""no" 1>&6
12252 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12253 echo "configure:12254: checking for ACL support" >&5
12254 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12255 echo $ac_n "(cached) $ac_c" 1>&6
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 #include <sys/types.h>
12262 #include <sys/acl.h>
12264 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12267 if { (eval echo configure:12268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12269 samba_cv_HAVE_POSIX_ACLS=yes
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12274 samba_cv_HAVE_POSIX_ACLS=no
12279 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12280 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12281 echo "$ac_t""Using posix ACLs" 1>&6
12282 cat >> confdefs.h <<\EOF
12283 #define HAVE_POSIX_ACLS 1
12286 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12287 echo "configure:12288: checking for acl_get_perm_np" >&5
12288 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12289 echo $ac_n "(cached) $ac_c" 1>&6
12292 cat > conftest.$ac_ext <<EOF
12293 #line 12294 "configure"
12294 #include "confdefs.h"
12295 #include <sys/types.h>
12296 #include <sys/acl.h>
12298 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12301 if { (eval echo configure:12302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12303 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12308 samba_cv_HAVE_ACL_GET_PERM_NP=no
12313 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12314 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12315 cat >> confdefs.h <<\EOF
12316 #define HAVE_ACL_GET_PERM_NP 1
12325 echo "$ac_t""no" 1>&6
12326 cat >> confdefs.h <<\EOF
12327 #define HAVE_NO_ACLS 1
12333 cat >> confdefs.h <<\EOF
12334 #define HAVE_NO_ACLS 1
12337 echo "$ac_t""no" 1>&6
12342 #################################################
12343 # check whether winbind is supported on this platform
12345 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12346 echo "configure:12347: checking whether to compile winbind" >&5
12350 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12351 case "$with_pam" in
12353 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PAM_PROGS)"
12359 winbind_no_reason=", unsupported on $host_os"
12363 # Check whether --with-winbind or --without-winbind was given.
12364 if test "${with_winbind+set}" = set; then
12365 withval="$with_winbind"
12376 if test x"$WINBIND_TARGETS" = x; then
12377 echo "$ac_t""no$winbind_no_reason" 1>&6
12379 echo "$ac_t""yes" 1>&6
12384 #################################################
12385 # final configure stuff
12387 echo "checking configure summary"
12388 if test "$cross_compiling" = yes; then
12391 cat > conftest.$ac_ext <<EOF
12392 #line 12393 "configure"
12393 #include "confdefs.h"
12394 #include "${srcdir-.}/tests/summary.c"
12396 if { (eval echo configure:12397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12398 echo "configure OK";
12400 echo "configure: failed program was:" >&5
12401 cat conftest.$ac_ext >&5
12403 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12413 cat > confcache <<\EOF
12414 # This file is a shell script that caches the results of configure
12415 # tests run on this system so they can be shared between configure
12416 # scripts and configure runs. It is not useful on other systems.
12417 # If it contains results you don't want to keep, you may remove or edit it.
12419 # By default, configure uses ./config.cache as the cache file,
12420 # creating it if it does not exist already. You can give configure
12421 # the --cache-file=FILE option to use a different cache file; that is
12422 # what configure does when it calls configure scripts in
12423 # subdirectories, so they share the cache.
12424 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12425 # config.status only pays attention to the cache file if you give it the
12426 # --recheck option to rerun configure.
12429 # The following way of writing the cache mishandles newlines in values,
12430 # but we know of no workaround that is simple, portable, and efficient.
12431 # So, don't put newlines in cache variables' values.
12432 # Ultrix sh set writes to stderr and can't be redirected directly,
12433 # and sets the high bit in the cache file unless we assign to the vars.
12435 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12437 # `set' does not quote correctly, so add quotes (double-quote substitution
12438 # turns \\\\ into \\, and sed turns \\ into \).
12440 -e "s/'/'\\\\''/g" \
12441 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12444 # `set' quotes correctly as required by POSIX, so do not add quotes.
12445 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12448 if cmp -s $cache_file confcache; then
12451 if test -w $cache_file; then
12452 echo "updating cache $cache_file"
12453 cat confcache > $cache_file
12455 echo "not updating unwritable cache $cache_file"
12460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12463 # Let make expand exec_prefix.
12464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12466 # Any assignment to VPATH causes Sun make to only execute
12467 # the first set of double-colon rules, so remove it if not needed.
12468 # If there is a colon in the path, we need to keep it.
12469 if test "x$srcdir" = x.; then
12470 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12473 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12475 DEFS=-DHAVE_CONFIG_H
12477 # Without the "./", some shells look in PATH for config.status.
12478 : ${CONFIG_STATUS=./config.status}
12480 echo creating $CONFIG_STATUS
12481 rm -f $CONFIG_STATUS
12482 cat > $CONFIG_STATUS <<EOF
12484 # Generated automatically by configure.
12485 # Run this file to recreate the current configuration.
12486 # This directory was configured as follows,
12487 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12489 # $0 $ac_configure_args
12491 # Compiler output produced by configure, useful for debugging
12492 # configure, is in ./config.log if it exists.
12494 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12497 case "\$ac_option" in
12498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12499 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12500 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12501 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12502 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12504 -help | --help | --hel | --he | --h)
12505 echo "\$ac_cs_usage"; exit 0 ;;
12506 *) echo "\$ac_cs_usage"; exit 1 ;;
12510 ac_given_srcdir=$srcdir
12511 ac_given_INSTALL="$INSTALL"
12513 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12515 cat >> $CONFIG_STATUS <<EOF
12517 # Protect against being on the right side of a sed subst in config.status.
12518 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12519 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12523 s%@CFLAGS@%$CFLAGS%g
12524 s%@CPPFLAGS@%$CPPFLAGS%g
12525 s%@CXXFLAGS@%$CXXFLAGS%g
12526 s%@FFLAGS@%$FFLAGS%g
12528 s%@LDFLAGS@%$LDFLAGS%g
12530 s%@exec_prefix@%$exec_prefix%g
12531 s%@prefix@%$prefix%g
12532 s%@program_transform_name@%$program_transform_name%g
12533 s%@bindir@%$bindir%g
12534 s%@sbindir@%$sbindir%g
12535 s%@libexecdir@%$libexecdir%g
12536 s%@datadir@%$datadir%g
12537 s%@sysconfdir@%$sysconfdir%g
12538 s%@sharedstatedir@%$sharedstatedir%g
12539 s%@localstatedir@%$localstatedir%g
12540 s%@libdir@%$libdir%g
12541 s%@includedir@%$includedir%g
12542 s%@oldincludedir@%$oldincludedir%g
12543 s%@infodir@%$infodir%g
12544 s%@mandir@%$mandir%g
12545 s%@RUNPROG@%$RUNPROG%g
12546 s%@MPROGS@%$MPROGS%g
12547 s%@LDSHFLAGS@%$LDSHFLAGS%g
12549 s%@HOST_OS@%$HOST_OS%g
12550 s%@PAM_MOD@%$PAM_MOD%g
12552 s%@WRAP32@%$WRAP32%g
12553 s%@PICFLAG@%$PICFLAG%g
12554 s%@SHLIBEXT@%$SHLIBEXT%g
12555 s%@BLDSHARED@%$BLDSHARED%g
12557 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12558 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12559 s%@INSTALL_DATA@%$INSTALL_DATA%g
12561 s%@BROKEN_CC@%$BROKEN_CC%g
12563 s%@host_alias@%$host_alias%g
12564 s%@host_cpu@%$host_cpu%g
12565 s%@host_vendor@%$host_vendor%g
12566 s%@host_os@%$host_os%g
12567 s%@target@%$target%g
12568 s%@target_alias@%$target_alias%g
12569 s%@target_cpu@%$target_cpu%g
12570 s%@target_vendor@%$target_vendor%g
12571 s%@target_os@%$target_os%g
12573 s%@build_alias@%$build_alias%g
12574 s%@build_cpu@%$build_cpu%g
12575 s%@build_vendor@%$build_vendor%g
12576 s%@build_os@%$build_os%g
12578 s%@LIBOBJS@%$LIBOBJS%g
12579 s%@TERMLIBS@%$TERMLIBS%g
12580 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12582 s%@QUOTAOBJS@%$QUOTAOBJS%g
12583 s%@privatedir@%$privatedir%g
12584 s%@lockdir@%$lockdir%g
12585 s%@swatdir@%$swatdir%g
12586 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12587 s%@builddir@%$builddir%g
12592 cat >> $CONFIG_STATUS <<\EOF
12594 # Split the substitutions into bite-sized pieces for seds with
12595 # small command number limits, like on Digital OSF/1 and HP-UX.
12596 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12597 ac_file=1 # Number of current file.
12598 ac_beg=1 # First line for current file.
12599 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12602 while $ac_more_lines; do
12603 if test $ac_beg -gt 1; then
12604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12606 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12608 if test ! -s conftest.s$ac_file; then
12609 ac_more_lines=false
12610 rm -f conftest.s$ac_file
12612 if test -z "$ac_sed_cmds"; then
12613 ac_sed_cmds="sed -f conftest.s$ac_file"
12615 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12617 ac_file=`expr $ac_file + 1`
12619 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12622 if test -z "$ac_sed_cmds"; then
12627 cat >> $CONFIG_STATUS <<EOF
12629 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12631 cat >> $CONFIG_STATUS <<\EOF
12632 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12635 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12636 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12637 *) ac_file_in="${ac_file}.in" ;;
12640 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12642 # Remove last slash and all that follows it. Not all systems have dirname.
12643 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12644 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12645 # The file is in a subdirectory.
12646 test ! -d "$ac_dir" && mkdir "$ac_dir"
12647 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12648 # A "../" for each directory in $ac_dir_suffix.
12649 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12651 ac_dir_suffix= ac_dots=
12654 case "$ac_given_srcdir" in
12656 if test -z "$ac_dots"; then top_srcdir=.
12657 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12658 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12659 *) # Relative path.
12660 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12661 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12664 case "$ac_given_INSTALL" in
12665 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12666 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12669 echo creating "$ac_file"
12671 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12673 *Makefile*) ac_comsub="1i\\
12674 # $configure_input" ;;
12678 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12680 s%@configure_input@%$configure_input%g
12681 s%@srcdir@%$srcdir%g
12682 s%@top_srcdir@%$top_srcdir%g
12683 s%@INSTALL@%$INSTALL%g
12684 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12688 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12689 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12691 # ac_d sets the value in "#define NAME VALUE" lines.
12692 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12693 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12696 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12697 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12698 ac_uB='\([ ]\)%\1#\2define\3'
12701 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12702 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12703 ac_eB='$%\1#\2define\3'
12707 if test "${CONFIG_HEADERS+set}" != set; then
12709 cat >> $CONFIG_STATUS <<EOF
12710 CONFIG_HEADERS="include/config.h"
12712 cat >> $CONFIG_STATUS <<\EOF
12714 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12717 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12718 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12719 *) ac_file_in="${ac_file}.in" ;;
12722 echo creating $ac_file
12724 rm -f conftest.frag conftest.in conftest.out
12725 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12726 cat $ac_file_inputs > conftest.in
12730 # Transform confdefs.h into a sed script conftest.vals that substitutes
12731 # the proper values into config.h.in to produce config.h. And first:
12732 # Protect against being on the right side of a sed subst in config.status.
12733 # Protect against being in an unquoted here document in config.status.
12734 rm -f conftest.vals
12735 cat > conftest.hdr <<\EOF
12738 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12742 sed -n -f conftest.hdr confdefs.h > conftest.vals
12745 # This sed command replaces #undef with comments. This is necessary, for
12746 # example, in the case of _POSIX_SOURCE, which is predefined and required
12747 # on some systems where configure will not decide to define it.
12748 cat >> conftest.vals <<\EOF
12749 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12752 # Break up conftest.vals because some shells have a limit on
12753 # the size of here documents, and old seds have small limits too.
12755 rm -f conftest.tail
12758 ac_lines=`grep -c . conftest.vals`
12759 # grep -c gives empty output for an empty file on some AIX systems.
12760 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12761 # Write a limited-size here document to conftest.frag.
12762 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12763 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12765 sed -f conftest.frag conftest.in > conftest.out
12767 mv conftest.out conftest.in
12768 ' >> $CONFIG_STATUS
12769 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12770 rm -f conftest.vals
12771 mv conftest.tail conftest.vals
12773 rm -f conftest.vals
12775 cat >> $CONFIG_STATUS <<\EOF
12776 rm -f conftest.frag conftest.h
12777 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12778 cat conftest.in >> conftest.h
12780 if cmp -s $ac_file conftest.h 2>/dev/null; then
12781 echo "$ac_file is unchanged"
12784 # Remove last slash and all that follows it. Not all systems have dirname.
12785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12787 # The file is in a subdirectory.
12788 test ! -d "$ac_dir" && mkdir "$ac_dir"
12791 mv conftest.h $ac_file
12796 cat >> $CONFIG_STATUS <<EOF
12799 cat >> $CONFIG_STATUS <<\EOF
12803 chmod +x $CONFIG_STATUS
12804 rm -fr confdefs* $ac_clean_files
12805 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1