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 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
62 --with-nisplussam Include NISPLUS SAM support (default=no)"
64 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
66 --with-syslog Include experimental SYSLOG support (default=no)"
68 --with-profiling-data Include gathering source code profile information (default=no)"
70 --with-quotas Include experimental disk-quota support (default=no)"
72 --with-utmp Include experimental utmp accounting (default=no)"
74 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
76 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
78 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
80 --with-acl-support Include ACL support (default=no)"
82 --with-winbind Build winbind (default, if supported by OS)"
84 --with-included-popt use bundled popt library, not from system"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 SHELL=${CONFIG_SHELL-/bin/sh}
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
150 bindir="$ac_optarg" ;;
152 -build | --build | --buil | --bui | --bu)
154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
155 build="$ac_optarg" ;;
157 -cache-file | --cache-file | --cache-fil | --cache-fi \
158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
159 ac_prev=cache_file ;;
160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162 cache_file="$ac_optarg" ;;
164 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 datadir="$ac_optarg" ;;
170 -disable-* | --disable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* | --enable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
194 | --exec | --exe | --ex)
195 ac_prev=exec_prefix ;;
196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
198 | --exec=* | --exe=* | --ex=*)
199 exec_prefix="$ac_optarg" ;;
201 -gas | --gas | --ga | --g)
202 # Obsolete; use --with-gas.
205 -help | --help | --hel | --he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host | --host | --hos | --ho)
262 -host=* | --host=* | --hos=* | --ho=*)
265 -includedir | --includedir | --includedi | --included | --include \
266 | --includ | --inclu | --incl | --inc)
267 ac_prev=includedir ;;
268 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
269 | --includ=* | --inclu=* | --incl=* | --inc=*)
270 includedir="$ac_optarg" ;;
272 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
275 infodir="$ac_optarg" ;;
277 -libdir | --libdir | --libdi | --libd)
279 -libdir=* | --libdir=* | --libdi=* | --libd=*)
280 libdir="$ac_optarg" ;;
282 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
283 | --libexe | --libex | --libe)
284 ac_prev=libexecdir ;;
285 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
286 | --libexe=* | --libex=* | --libe=*)
287 libexecdir="$ac_optarg" ;;
289 -localstatedir | --localstatedir | --localstatedi | --localstated \
290 | --localstate | --localstat | --localsta | --localst \
291 | --locals | --local | --loca | --loc | --lo)
292 ac_prev=localstatedir ;;
293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
294 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
295 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
296 localstatedir="$ac_optarg" ;;
298 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
301 mandir="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
316 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
317 | --oldin | --oldi | --old | --ol | --o)
318 ac_prev=oldincludedir ;;
319 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
320 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
321 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
322 oldincludedir="$ac_optarg" ;;
324 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 prefix="$ac_optarg" ;;
329 -program-prefix | --program-prefix | --program-prefi | --program-pref \
330 | --program-pre | --program-pr | --program-p)
331 ac_prev=program_prefix ;;
332 -program-prefix=* | --program-prefix=* | --program-prefi=* \
333 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
334 program_prefix="$ac_optarg" ;;
336 -program-suffix | --program-suffix | --program-suffi | --program-suff \
337 | --program-suf | --program-su | --program-s)
338 ac_prev=program_suffix ;;
339 -program-suffix=* | --program-suffix=* | --program-suffi=* \
340 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
341 program_suffix="$ac_optarg" ;;
343 -program-transform-name | --program-transform-name \
344 | --program-transform-nam | --program-transform-na \
345 | --program-transform-n | --program-transform- \
346 | --program-transform | --program-transfor \
347 | --program-transfo | --program-transf \
348 | --program-trans | --program-tran \
349 | --progr-tra | --program-tr | --program-t)
350 ac_prev=program_transform_name ;;
351 -program-transform-name=* | --program-transform-name=* \
352 | --program-transform-nam=* | --program-transform-na=* \
353 | --program-transform-n=* | --program-transform-=* \
354 | --program-transform=* | --program-transfor=* \
355 | --program-transfo=* | --program-transf=* \
356 | --program-trans=* | --program-tran=* \
357 | --progr-tra=* | --program-tr=* | --program-t=*)
358 program_transform_name="$ac_optarg" ;;
360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361 | -silent | --silent | --silen | --sile | --sil)
364 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 sbindir="$ac_optarg" ;;
370 -sharedstatedir | --sharedstatedir | --sharedstatedi \
371 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
372 | --sharedst | --shareds | --shared | --share | --shar \
374 ac_prev=sharedstatedir ;;
375 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
376 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
377 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 sharedstatedir="$ac_optarg" ;;
381 -site | --site | --sit)
383 -site=* | --site=* | --sit=*)
386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 srcdir="$ac_optarg" ;;
391 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
392 | --syscon | --sysco | --sysc | --sys | --sy)
393 ac_prev=sysconfdir ;;
394 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
395 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
396 sysconfdir="$ac_optarg" ;;
398 -target | --target | --targe | --targ | --tar | --ta | --t)
400 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
401 target="$ac_optarg" ;;
403 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 -version | --version | --versio | --versi | --vers)
407 echo "configure generated by autoconf version 2.13"
411 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* | --without-*)
424 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
437 | --x-incl | --x-inc | --x-in | --x-i)
438 ac_prev=x_includes ;;
439 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
440 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
441 x_includes="$ac_optarg" ;;
443 -x-libraries | --x-libraries | --x-librarie | --x-librari \
444 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
445 ac_prev=x_libraries ;;
446 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
447 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
448 x_libraries="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
499 | --no-cr | --no-c) ;;
500 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
501 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file=include/includes.h
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE; then
553 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='\c' ac_t=
597 #################################################
598 # Directory handling stuff to support both the
599 # legacy SAMBA directories and FHS compliant
603 # Check whether --with-fhs or --without-fhs was given.
604 if test "${with_fhs+set}" = set; then
606 configdir="${sysconfdir}/samba"
607 lockdir="\${VARDIR}/cache/samba"
608 piddir="\$(VARDIR)/run/samba"
609 logfilebase="\${VARDIR}/log/samba"
610 privatedir="\${CONFIGDIR}/private"
611 swatdir="\${DATADIR}/samba/swat"
613 configdir="\$(LIBDIR)"
614 logfilebase="\$(VARDIR)"
615 lockdir="\${VARDIR}/locks"
616 piddir="\$(VARDIR)/locks"
617 privatedir="\${prefix}/private"
618 swatdir="\${prefix}/swat"
622 #################################################
623 # set private directory location
624 # Check whether --with-privatedir or --without-privatedir was given.
625 if test "${with_privatedir+set}" = set; then
626 withval="$with_privatedir"
630 # Just in case anybody calls it without argument
632 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
635 privatedir="$withval"
641 #################################################
642 # set lock directory location
643 # Check whether --with-lockdir or --without-lockdir was given.
644 if test "${with_lockdir+set}" = set; then
645 withval="$with_lockdir"
649 # Just in case anybody calls it without argument
651 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
660 #################################################
661 # set pid directory location
662 # Check whether --with-piddir or --without-piddir was given.
663 if test "${with_piddir+set}" = set; then
664 withval="$with_piddir"
668 # Just in case anybody calls it without argument
670 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
679 #################################################
680 # set SWAT directory location
681 # Check whether --with-swatdir or --without-swatdir was given.
682 if test "${with_swatdir+set}" = set; then
683 withval="$with_swatdir"
687 # Just in case anybody does it
689 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
698 #################################################
699 # set configuration directory location
700 # Check whether --with-configdir or --without-configdir was given.
701 if test "${with_configdir+set}" = set; then
702 withval="$with_configdir"
706 # Just in case anybody does it
708 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
717 #################################################
718 # set log directory location
719 # Check whether --with-logfilebase or --without-logfilebase was given.
720 if test "${with_logfilebase+set}" = set; then
721 withval="$with_logfilebase"
725 # Just in case anybody does it
727 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
730 logfilebase="$withval"
763 # compile with optimization and without debugging by default
764 CFLAGS="-O ${CFLAGS}"
766 # Check whether --enable-debug or --disable-debug was given.
767 if test "${enable_debug+set}" = set; then
768 enableval="$enable_debug"
769 if eval "test x$enable_debug = xyes"; then
770 CFLAGS="${CFLAGS} -g"
775 # Check whether --enable-developer or --disable-developer was given.
776 if test "${enable_developer+set}" = set; then
777 enableval="$enable_developer"
778 if eval "test x$enable_developer = xyes"; then
779 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
784 # Check whether --enable-krb5developer or --disable-krb5developer was given.
785 if test "${enable_krb5developer+set}" = set; then
786 enableval="$enable_krb5developer"
787 if eval "test x$enable_krb5developer = xyes"; then
788 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
793 # Check whether --enable-dmalloc or --disable-dmalloc was given.
794 if test "${enable_dmalloc+set}" = set; then
795 enableval="$enable_dmalloc"
800 if test "x$enable_dmalloc" = xyes
802 cat >> confdefs.h <<\EOF
803 #define ENABLE_DMALLOC 1
806 cat >> confdefs.h <<\EOF
807 #define DMALLOC_FUNC_CHECK 1
810 LIBS="$LIBS -ldmalloc"
813 # Extract the first word of "gcc", so it can be a program name with args.
814 set dummy gcc; ac_word=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 if test -n "$CC"; then
821 ac_cv_prog_CC="$CC" # Let the user override the test.
823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
825 for ac_dir in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir=.
827 if test -f $ac_dir/$ac_word; then
836 if test -n "$CC"; then
837 echo "$ac_t""$CC" 1>&6
839 echo "$ac_t""no" 1>&6
842 if test -z "$CC"; then
843 # Extract the first word of "cc", so it can be a program name with args.
844 set dummy cc; ac_word=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 if test -n "$CC"; then
851 ac_cv_prog_CC="$CC" # Let the user override the test.
853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 for ac_dir in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir=.
858 if test -f $ac_dir/$ac_word; then
859 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
868 if test $ac_prog_rejected = yes; then
869 # We found a bogon in the path, so make sure we never use it.
870 set dummy $ac_cv_prog_CC
872 if test $# -gt 0; then
873 # We chose a different compiler from the bogus one.
874 # However, it has the same basename, so the bogon will be chosen
875 # first if we set CC to just the basename; use the full file name.
877 set dummy "$ac_dir/$ac_word" "$@"
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
888 echo "$ac_t""no" 1>&6
891 if test -z "$CC"; then
894 # Extract the first word of "cl", so it can be a program name with args.
895 set dummy cl; ac_word=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 if test -n "$CC"; then
902 ac_cv_prog_CC="$CC" # Let the user override the test.
904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
906 for ac_dir in $ac_dummy; do
907 test -z "$ac_dir" && ac_dir=.
908 if test -f $ac_dir/$ac_word; then
917 if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
920 echo "$ac_t""no" 1>&6
925 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
928 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
929 echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933 ac_cpp='$CPP $CPPFLAGS'
934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936 cross_compiling=$ac_cv_prog_cc_cross
938 cat > conftest.$ac_ext << EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
946 ac_cv_prog_cc_works=yes
947 # If we can't run a trivial program, we are probably using a cross compiler.
948 if (./conftest; exit) 2>/dev/null; then
949 ac_cv_prog_cc_cross=no
951 ac_cv_prog_cc_cross=yes
954 echo "configure: failed program was:" >&5
955 cat conftest.$ac_ext >&5
956 ac_cv_prog_cc_works=no
960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961 ac_cpp='$CPP $CPPFLAGS'
962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
967 if test $ac_cv_prog_cc_works = no; then
968 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
971 echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
972 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
973 cross_compiling=$ac_cv_prog_cc_cross
975 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
976 echo "configure:977: checking whether we are using GNU C" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftest.c <<EOF
985 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
992 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
994 if test $ac_cv_prog_gcc = yes; then
1000 ac_test_CFLAGS="${CFLAGS+set}"
1001 ac_save_CFLAGS="$CFLAGS"
1003 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether ${CC-cc} accepts -g" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 echo 'void f(){}' > conftest.c
1009 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1018 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1019 if test "$ac_test_CFLAGS" = set; then
1020 CFLAGS="$ac_save_CFLAGS"
1021 elif test $ac_cv_prog_cc_g = yes; then
1022 if test "$GCC" = yes; then
1028 if test "$GCC" = yes; then
1036 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1037 if test -f $ac_dir/install-sh; then
1039 ac_install_sh="$ac_aux_dir/install-sh -c"
1041 elif test -f $ac_dir/install.sh; then
1043 ac_install_sh="$ac_aux_dir/install.sh -c"
1047 if test -z "$ac_aux_dir"; then
1048 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1050 ac_config_guess=$ac_aux_dir/config.guess
1051 ac_config_sub=$ac_aux_dir/config.sub
1052 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1054 # Find a good install program. We prefer a C program (faster),
1055 # so one script is as good as another. But avoid the broken or
1056 # incompatible versions:
1057 # SysV /etc/install, /usr/sbin/install
1058 # SunOS /usr/etc/install
1059 # IRIX /sbin/install
1061 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1062 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1063 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1064 # ./install, which can be erroneously created by make from ./install.sh.
1065 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1066 echo "configure:1067: checking for a BSD compatible install" >&5
1067 if test -z "$INSTALL"; then
1068 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1072 for ac_dir in $PATH; do
1073 # Account for people who put trailing slashes in PATH elements.
1075 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1077 # OSF1 and SCO ODT 3.0 have their own names for install.
1078 # Don't use installbsd from OSF since it installs stuff as root
1080 for ac_prog in ginstall scoinst install; do
1081 if test -f $ac_dir/$ac_prog; then
1082 if test $ac_prog = install &&
1083 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1084 # AIX install. It has an incompatible calling convention.
1087 ac_cv_path_install="$ac_dir/$ac_prog -c"
1098 if test "${ac_cv_path_install+set}" = set; then
1099 INSTALL="$ac_cv_path_install"
1101 # As a last resort, use the slow shell script. We don't cache a
1102 # path for INSTALL within a source directory, because that will
1103 # break other packages using the cache if that directory is
1104 # removed, or if the path is relative.
1105 INSTALL="$ac_install_sh"
1108 echo "$ac_t""$INSTALL" 1>&6
1110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1111 # It thinks the first close brace ends the variable substitution.
1112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1116 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1118 for ac_prog in mawk gawk nawk awk
1120 # Extract the first word of "$ac_prog", so it can be a program name with args.
1121 set dummy $ac_prog; ac_word=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$AWK"; then
1128 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1132 for ac_dir in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_prog_AWK="$ac_prog"
1142 AWK="$ac_cv_prog_AWK"
1143 if test -n "$AWK"; then
1144 echo "$ac_t""$AWK" 1>&6
1146 echo "$ac_t""no" 1>&6
1149 test -n "$AWK" && break
1154 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1155 echo "configure:1156: checking if the linker ($LD) is GNU ld" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1160 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1161 ac_cv_prog_gnu_ld=yes
1163 ac_cv_prog_gnu_ld=no
1167 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1170 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1171 echo "configure:1172: checking for POSIXized ISC" >&5
1172 if test -d /etc/conf/kconfig.d &&
1173 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1175 echo "$ac_t""yes" 1>&6
1176 ISC=yes # If later tests want to check for ISC.
1177 cat >> confdefs.h <<\EOF
1178 #define _POSIX_SOURCE 1
1181 if test "$GCC" = yes; then
1187 echo "$ac_t""no" 1>&6
1192 if test "x$CC" != xcc; then
1193 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether $CC and cc understand -c and -o together" >&5
1196 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether cc understands -c and -o together" >&5
1199 set dummy $CC; ac_cc="`echo $2 |
1200 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1201 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 echo 'foo(){}' > conftest.c
1205 # Make sure it works both with $CC and with simple cc.
1206 # We do the test twice because some compilers refuse to overwrite an
1207 # existing .o file with -o, though they will create one.
1208 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1209 if { (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1210 test -f conftest.o && { (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1212 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1213 if test "x$CC" != xcc; then
1214 # Test first that cc exists at all.
1215 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1216 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1217 if { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1218 test -f conftest.o && { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1223 # cc exists but doesn't like -o.
1224 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1229 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1234 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1237 echo "$ac_t""no" 1>&6
1238 cat >> confdefs.h <<\EOF
1239 #define NO_MINUS_C_MINUS_O 1
1244 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1251 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1252 echo "configure:1253: checking that the C compiler understands volatile" >&5
1253 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1260 #include <sys/types.h>
1265 if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1267 samba_cv_volatile=yes
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1272 samba_cv_volatile=no
1277 echo "$ac_t""$samba_cv_volatile" 1>&6
1278 if test x"$samba_cv_volatile" = x"yes"; then
1279 cat >> confdefs.h <<\EOF
1280 #define HAVE_VOLATILE 1
1287 # Do some error checking and defaulting for the host and target type.
1289 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1292 # 1. You are not allowed to specify --host, --target, and nonopt at the
1294 # 2. Host defaults to nonopt.
1295 # 3. If nonopt is not specified, then host defaults to the current host,
1296 # as determined by config.guess.
1297 # 4. Target and build default to nonopt.
1298 # 5. If nonopt is not specified, then target and build default to host.
1300 # The aliases save the names the user supplied, while $host etc.
1301 # will get canonicalized.
1302 case $host---$target---$nonopt in
1303 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1304 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1308 # Make sure we can run config.sub.
1309 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1310 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1313 echo $ac_n "checking host system type""... $ac_c" 1>&6
1314 echo "configure:1315: checking host system type" >&5
1317 case "$host_alias" in
1321 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1322 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1324 *) host_alias=$nonopt ;;
1328 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1329 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1330 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1331 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1332 echo "$ac_t""$host" 1>&6
1334 echo $ac_n "checking target system type""... $ac_c" 1>&6
1335 echo "configure:1336: checking target system type" >&5
1337 target_alias=$target
1338 case "$target_alias" in
1341 NONE) target_alias=$host_alias ;;
1342 *) target_alias=$nonopt ;;
1346 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1347 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1348 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1349 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1350 echo "$ac_t""$target" 1>&6
1352 echo $ac_n "checking build system type""... $ac_c" 1>&6
1353 echo "configure:1354: checking build system type" >&5
1356 case "$build_alias" in
1359 NONE) build_alias=$host_alias ;;
1360 *) build_alias=$nonopt ;;
1364 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1365 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368 echo "$ac_t""$build" 1>&6
1370 test "$host_alias" != "$target_alias" &&
1371 test "$program_prefix$program_suffix$program_transform_name" = \
1373 program_prefix=${target_alias}-
1377 *irix6*) cat >> confdefs.h <<\EOF
1378 #include <standards.h>
1386 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1387 echo "configure:1388: checking config.cache system type" >&5
1388 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1389 test x"$ac_cv_host_system_type" != x"$host"; } ||
1390 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1391 test x"$ac_cv_build_system_type" != x"$build"; } ||
1392 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1393 test x"$ac_cv_target_system_type" != x"$target"; }; then
1394 echo "$ac_t""different" 1>&6
1395 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1397 echo "$ac_t""same" 1>&6
1399 ac_cv_host_system_type="$host"
1400 ac_cv_build_system_type="$build"
1401 ac_cv_target_system_type="$target"
1407 # Config CPPFLAG settings for strange OS's that must be set
1408 # before other tests.
1411 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1414 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether ${CC-cc} accepts -Ae" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 echo 'void f(){}' > conftest.c
1420 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1421 ac_cv_prog_cc_Ae=yes
1429 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1430 # mmap on HPUX is completely broken...
1431 cat >> confdefs.h <<\EOF
1432 #define MMAP_BLACKLIST 1
1435 if test $ac_cv_prog_cc_Ae = yes; then
1436 CPPFLAGS="$CPPFLAGS -Ae"
1439 # Defines needed for HPUX support.
1440 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1441 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1445 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1446 cat >> confdefs.h <<\EOF
1447 #define USE_BOTH_CRYPT_CALLS 1
1450 cat >> confdefs.h <<\EOF
1451 #define _HPUX_SOURCE 1
1454 cat >> confdefs.h <<\EOF
1455 #define _POSIX_SOURCE 1
1458 cat >> confdefs.h <<\EOF
1459 #define _ALIGNMENT_REQUIRED 1
1462 cat >> confdefs.h <<\EOF
1463 #define _MAX_ALIGNMENT 4
1468 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1469 cat >> confdefs.h <<\EOF
1470 #define USE_BOTH_CRYPT_CALLS 1
1473 cat >> confdefs.h <<\EOF
1474 #define _HPUX_SOURCE 1
1477 cat >> confdefs.h <<\EOF
1478 #define _POSIX_SOURCE 1
1481 cat >> confdefs.h <<\EOF
1482 #define _LARGEFILE64_SOURCE 1
1485 cat >> confdefs.h <<\EOF
1486 #define _ALIGNMENT_REQUIRED 1
1489 cat >> confdefs.h <<\EOF
1490 #define _MAX_ALIGNMENT 4
1499 # CRAY Unicos has broken const handling
1501 echo "$ac_t""disabling const" 1>&6
1502 CPPFLAGS="$CPPFLAGS -Dconst="
1506 # AIX4.x doesn't even admit to having large
1507 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1510 echo "$ac_t""enabling large file support" 1>&6
1511 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1512 cat >> confdefs.h <<\EOF
1513 #define _LARGE_FILES 1
1518 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1519 # to the existance of large files..
1520 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1521 # recommendations on large file support, however it makes the
1522 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1523 # recommendation makes the compile fail on gcc2.7. JRA.
1527 5.0*|5.1*|5.2*|5.3*|5.5*)
1528 echo "$ac_t""no large file support" 1>&6
1531 echo "$ac_t""enabling large file support" 1>&6
1532 if test "$ac_cv_prog_gcc" = yes; then
1533 ${CC-cc} -v >conftest.c 2>&1
1534 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1536 case "$ac_cv_gcc_compiler_version_number" in
1537 *"gcc version 2.6"*|*"gcc version 2.7"*)
1538 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1539 cat >> confdefs.h <<\EOF
1540 #define _LARGEFILE64_SOURCE 1
1545 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1546 cat >> confdefs.h <<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1550 cat >> confdefs.h <<\EOF
1551 #define _FILE_OFFSET_BITS 64
1557 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1558 cat >> confdefs.h <<\EOF
1559 #define _LARGEFILE64_SOURCE 1
1562 cat >> confdefs.h <<\EOF
1563 #define _FILE_OFFSET_BITS 64
1571 # Tests needed for SINIX large file support.
1574 if test $host = mips-sni-sysv4 ; then
1575 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1576 echo "configure:1577: checking for LFS support" >&5
1577 old_CPPFLAGS="$CPPFLAGS"
1578 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1579 if test "$cross_compiling" = yes; then
1580 SINIX_LFS_SUPPORT=cross
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1588 #if _LFS64_LARGEFILE == 1
1595 if { (eval echo configure:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1597 SINIX_LFS_SUPPORT=yes
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 SINIX_LFS_SUPPORT=no
1607 CPPFLAGS="$old_CPPFLAGS"
1608 if test x$SINIX_LFS_SUPPORT = xyes ; then
1609 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1610 cat >> confdefs.h <<\EOF
1611 #define _LARGEFILE64_SOURCE 1
1614 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1615 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1616 LIBS="`getconf LFS64_LIBS` $LIBS"
1618 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1622 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1625 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1626 echo "configure:1627: checking for LFS support" >&5
1627 old_CPPFLAGS="$CPPFLAGS"
1628 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1629 if test "$cross_compiling" = yes; then
1630 LINUX_LFS_SUPPORT=cross
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1637 #include <sys/utsname.h>
1639 #if _LFS64_LARGEFILE == 1
1644 /* Ensure this is glibc 2.2 or higher */
1645 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1646 int libc_major = __GLIBC__;
1647 int libc_minor = __GLIBC_MINOR__;
1655 /* Ensure this is kernel 2.4 or higher */
1658 release = uts.release;
1659 major = atoi(strsep(&release, "."));
1660 minor = atoi(strsep(&release, "."));
1662 if (major > 2 || (major == 2 && minor > 3))
1671 if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1673 LINUX_LFS_SUPPORT=yes
1675 echo "configure: failed program was:" >&5
1676 cat conftest.$ac_ext >&5
1678 LINUX_LFS_SUPPORT=no
1683 CPPFLAGS="$old_CPPFLAGS"
1684 if test x$LINUX_LFS_SUPPORT = xyes ; then
1685 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1686 cat >> confdefs.h <<\EOF
1687 #define _LARGEFILE64_SOURCE 1
1690 cat >> confdefs.h <<\EOF
1691 #define _FILE_OFFSET_BITS 64
1694 cat >> confdefs.h <<\EOF
1695 #define _GNU_SOURCE 1
1699 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1703 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1704 echo "configure:1705: checking for LFS support" >&5
1705 old_CPPFLAGS="$CPPFLAGS"
1706 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1707 if test "$cross_compiling" = yes; then
1708 GLIBC_LFS_SUPPORT=cross
1710 cat > conftest.$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 #if _LFS64_LARGEFILE == 1
1723 if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1725 GLIBC_LFS_SUPPORT=yes
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1730 GLIBC_LFS_SUPPORT=no
1735 CPPFLAGS="$old_CPPFLAGS"
1736 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1737 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1738 cat >> confdefs.h <<\EOF
1739 #define _LARGEFILE64_SOURCE 1
1742 cat >> confdefs.h <<\EOF
1743 #define _GNU_SOURCE 1
1747 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1752 echo $ac_n "checking for inline""... $ac_c" 1>&6
1753 echo "configure:1754: checking for inline" >&5
1754 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1758 for ac_kw in inline __inline__ __inline; do
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1767 if { (eval echo configure:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1769 ac_cv_c_inline=$ac_kw; break
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1779 echo "$ac_t""$ac_cv_c_inline" 1>&6
1780 case "$ac_cv_c_inline" in
1782 no) cat >> confdefs.h <<\EOF
1786 *) cat >> confdefs.h <<EOF
1787 #define inline $ac_cv_c_inline
1792 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1793 echo "configure:1794: checking how to run the C preprocessor" >&5
1794 # On Suns, sometimes $CPP names a directory.
1795 if test -n "$CPP" && test -d "$CPP"; then
1798 if test -z "$CPP"; then
1799 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 # This must be in double quotes, not single quotes, because CPP may get
1803 # substituted into the Makefile and "${CC-cc}" will confuse make.
1805 # On the NeXT, cc -E runs the code through the compiler's parser,
1806 # not just through cpp.
1807 cat > conftest.$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1814 { (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1816 if test -z "$ac_err"; then
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 CPP="${CC-cc} -E -traditional-cpp"
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1833 if test -z "$ac_err"; then
1837 echo "configure: failed program was:" >&5
1838 cat conftest.$ac_ext >&5
1840 CPP="${CC-cc} -nologo -E"
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1848 { (eval echo configure:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1850 if test -z "$ac_err"; then
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1864 ac_cv_prog_CPP="$CPP"
1866 CPP="$ac_cv_prog_CPP"
1868 ac_cv_prog_CPP="$CPP"
1870 echo "$ac_t""$CPP" 1>&6
1872 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1873 echo "configure:1874: checking for ANSI C header files" >&5
1874 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1890 ac_cv_header_stdc=yes
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1896 ac_cv_header_stdc=no
1900 if test $ac_cv_header_stdc = yes; then
1901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1908 egrep "memchr" >/dev/null 2>&1; then
1912 ac_cv_header_stdc=no
1918 if test $ac_cv_header_stdc = yes; then
1919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "free" >/dev/null 2>&1; then
1930 ac_cv_header_stdc=no
1936 if test $ac_cv_header_stdc = yes; then
1937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1938 if test "$cross_compiling" = yes; then
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1945 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1946 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1948 int main () { int i; for (i = 0; i < 256; i++)
1949 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1960 ac_cv_header_stdc=no
1968 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1969 if test $ac_cv_header_stdc = yes; then
1970 cat >> confdefs.h <<\EOF
1971 #define STDC_HEADERS 1
1977 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1980 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_hdr that defines DIR" >&5
1982 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <sys/types.h>
1994 if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996 eval "ac_cv_header_dirent_$ac_safe=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 eval "ac_cv_header_dirent_$ac_safe=no"
2005 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2008 cat >> confdefs.h <<EOF
2009 #define $ac_tr_hdr 1
2011 ac_header_dirent=$ac_hdr; break
2013 echo "$ac_t""no" 1>&6
2016 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2017 if test $ac_header_dirent = dirent.h; then
2018 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2019 echo "configure:2020: checking for opendir in -ldir" >&5
2020 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 ac_save_LIBS="$LIBS"
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* Override any gcc2 internal prototype to avoid an error. */
2030 /* We use char because int might match the return type of a gcc2
2031 builtin and then its argument prototype would still apply. */
2038 if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2040 eval "ac_cv_lib_$ac_lib_var=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2045 eval "ac_cv_lib_$ac_lib_var=no"
2048 LIBS="$ac_save_LIBS"
2051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2055 echo "$ac_t""no" 1>&6
2059 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2060 echo "configure:2061: checking for opendir in -lx" >&5
2061 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 ac_save_LIBS="$LIBS"
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2081 eval "ac_cv_lib_$ac_lib_var=yes"
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 eval "ac_cv_lib_$ac_lib_var=no"
2089 LIBS="$ac_save_LIBS"
2092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2096 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2102 echo "configure:2103: checking whether time.h and sys/time.h may both be included" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <sys/types.h>
2110 #include <sys/time.h>
2116 if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 ac_cv_header_time=yes
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2123 ac_cv_header_time=no
2128 echo "$ac_t""$ac_cv_header_time" 1>&6
2129 if test $ac_cv_header_time = yes; then
2130 cat >> confdefs.h <<\EOF
2131 #define TIME_WITH_SYS_TIME 1
2136 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2137 echo "configure:2138: checking for sys/wait.h that is POSIX.1 compatible" >&5
2138 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <sys/types.h>
2145 #include <sys/wait.h>
2147 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2150 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2155 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2158 if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2160 ac_cv_header_sys_wait_h=yes
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 ac_cv_header_sys_wait_h=no
2170 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2171 if test $ac_cv_header_sys_wait_h = yes; then
2172 cat >> confdefs.h <<\EOF
2173 #define HAVE_SYS_WAIT_H 1
2178 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_hdr" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2192 { (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2194 if test -z "$ac_err"; then
2196 eval "ac_cv_header_$ac_safe=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2202 eval "ac_cv_header_$ac_safe=no"
2206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2209 cat >> confdefs.h <<EOF
2210 #define $ac_tr_hdr 1
2214 echo "$ac_t""no" 1>&6
2218 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h <<EOF
2250 #define $ac_tr_hdr 1
2254 echo "$ac_t""no" 1>&6
2258 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_hdr" >&5
2263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2272 { (eval echo configure:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2274 if test -z "$ac_err"; then
2276 eval "ac_cv_header_$ac_safe=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 eval "ac_cv_header_$ac_safe=no"
2286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2289 cat >> confdefs.h <<EOF
2290 #define $ac_tr_hdr 1
2294 echo "$ac_t""no" 1>&6
2298 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_hdr" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2316 eval "ac_cv_header_$ac_safe=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2322 eval "ac_cv_header_$ac_safe=no"
2326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2329 cat >> confdefs.h <<EOF
2330 #define $ac_tr_hdr 1
2334 echo "$ac_t""no" 1>&6
2338 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
2340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h <<EOF
2370 #define $ac_tr_hdr 1
2374 echo "$ac_t""no" 1>&6
2378 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2396 eval "ac_cv_header_$ac_safe=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2402 eval "ac_cv_header_$ac_safe=no"
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h <<EOF
2410 #define $ac_tr_hdr 1
2414 echo "$ac_t""no" 1>&6
2418 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h <<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 eval "ac_cv_header_$ac_safe=yes"
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2482 eval "ac_cv_header_$ac_safe=no"
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h <<EOF
2490 #define $ac_tr_hdr 1
2494 echo "$ac_t""no" 1>&6
2500 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2501 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2513 if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2515 ac_cv_header_shadow_h=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 ac_cv_header_shadow_h=no
2523 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2524 cat >> confdefs.h <<\EOF
2525 #define HAVE_SHADOW_H 1
2531 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_hdr" >&5
2536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2545 { (eval echo configure:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2547 if test -z "$ac_err"; then
2549 eval "ac_cv_header_$ac_safe=yes"
2552 echo "configure: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2555 eval "ac_cv_header_$ac_safe=no"
2559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2562 cat >> confdefs.h <<EOF
2563 #define $ac_tr_hdr 1
2567 echo "$ac_t""no" 1>&6
2571 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_hdr" >&5
2576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2585 { (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2587 if test -z "$ac_err"; then
2589 eval "ac_cv_header_$ac_safe=yes"
2592 echo "configure: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2595 eval "ac_cv_header_$ac_safe=no"
2599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2602 cat >> confdefs.h <<EOF
2603 #define $ac_tr_hdr 1
2607 echo "$ac_t""no" 1>&6
2611 for ac_hdr in stropts.h poll.h
2613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h <<EOF
2643 #define $ac_tr_hdr 1
2647 echo "$ac_t""no" 1>&6
2651 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2669 eval "ac_cv_header_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2675 eval "ac_cv_header_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h <<EOF
2683 #define $ac_tr_hdr 1
2687 echo "$ac_t""no" 1>&6
2691 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h <<EOF
2723 #define $ac_tr_hdr 1
2727 echo "$ac_t""no" 1>&6
2732 # For experimental utmp support (lastlog on some BSD-like systems)
2733 for ac_hdr in utmp.h utmpx.h lastlog.h
2735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h <<EOF
2765 #define $ac_tr_hdr 1
2769 echo "$ac_t""no" 1>&6
2774 # For quotas on Veritas VxFS filesystems
2775 for ac_hdr in sys/fs/vx_quota.h
2777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_hdr" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2793 eval "ac_cv_header_$ac_safe=yes"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 eval "ac_cv_header_$ac_safe=no"
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2806 cat >> confdefs.h <<EOF
2807 #define $ac_tr_hdr 1
2811 echo "$ac_t""no" 1>&6
2816 # For quotas on Linux XFS filesystems
2817 for ac_hdr in linux/xqm.h
2819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_hdr" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2831 { (eval echo configure:2832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2833 if test -z "$ac_err"; then
2835 eval "ac_cv_header_$ac_safe=yes"
2838 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2841 eval "ac_cv_header_$ac_safe=no"
2845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2846 echo "$ac_t""yes" 1>&6
2847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2848 cat >> confdefs.h <<EOF
2849 #define $ac_tr_hdr 1
2853 echo "$ac_t""no" 1>&6
2858 echo $ac_n "checking size of int""... $ac_c" 1>&6
2859 echo "configure:2860: checking size of int" >&5
2860 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 if test "$cross_compiling" = yes; then
2864 ac_cv_sizeof_int=cross
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2870 #include <sys/types.h>
2873 FILE *f=fopen("conftestval", "w");
2875 fprintf(f, "%d\n", sizeof(int));
2879 if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2881 ac_cv_sizeof_int=`cat conftestval`
2883 echo "configure: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2892 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2893 cat >> confdefs.h <<EOF
2894 #define SIZEOF_INT $ac_cv_sizeof_int
2898 echo $ac_n "checking size of long""... $ac_c" 1>&6
2899 echo "configure:2900: checking size of long" >&5
2900 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 if test "$cross_compiling" = yes; then
2904 ac_cv_sizeof_long=cross
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2910 #include <sys/types.h>
2913 FILE *f=fopen("conftestval", "w");
2915 fprintf(f, "%d\n", sizeof(long));
2919 if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2921 ac_cv_sizeof_long=`cat conftestval`
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2932 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2933 cat >> confdefs.h <<EOF
2934 #define SIZEOF_LONG $ac_cv_sizeof_long
2938 echo $ac_n "checking size of short""... $ac_c" 1>&6
2939 echo "configure:2940: checking size of short" >&5
2940 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 if test "$cross_compiling" = yes; then
2944 ac_cv_sizeof_short=cross
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2950 #include <sys/types.h>
2953 FILE *f=fopen("conftestval", "w");
2955 fprintf(f, "%d\n", sizeof(short));
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2961 ac_cv_sizeof_short=`cat conftestval`
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 ac_cv_sizeof_short=0
2972 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2973 cat >> confdefs.h <<EOF
2974 #define SIZEOF_SHORT $ac_cv_sizeof_short
2979 echo $ac_n "checking for working const""... $ac_c" 1>&6
2980 echo "configure:2981: checking for working const" >&5
2981 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2990 /* Ultrix mips cc rejects this. */
2991 typedef int charset[2]; const charset x;
2992 /* SunOS 4.1.1 cc rejects this. */
2993 char const *const *ccp;
2995 /* NEC SVR4.0.2 mips cc rejects this. */
2996 struct point {int x, y;};
2997 static struct point const zero = {0,0};
2998 /* AIX XL C 1.02.0.0 rejects this.
2999 It does not let you subtract one const X* pointer from another in an arm
3000 of an if-expression whose if-part is not a constant expression */
3001 const char *g = "string";
3002 ccp = &g + (g ? g-g : 0);
3003 /* HPUX 7.0 cc rejects these. */
3006 ccp = (char const *const *) p;
3007 { /* SCO 3.2v4 cc rejects this. */
3009 char const *s = 0 ? (char *) 0 : (char const *) 0;
3013 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3015 const int *foo = &x[0];
3018 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3019 typedef const int *iptr;
3023 { /* AIX XL C 1.02.0.0 rejects this saying
3024 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3025 struct s { int j; const int *ap[3]; };
3026 struct s *b; b->j = 5;
3028 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3046 echo "$ac_t""$ac_cv_c_const" 1>&6
3047 if test $ac_cv_c_const = no; then
3048 cat >> confdefs.h <<\EOF
3054 echo $ac_n "checking for inline""... $ac_c" 1>&6
3055 echo "configure:3056: checking for inline" >&5
3056 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3060 for ac_kw in inline __inline__ __inline; do
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3069 if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3071 ac_cv_c_inline=$ac_kw; break
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3081 echo "$ac_t""$ac_cv_c_inline" 1>&6
3082 case "$ac_cv_c_inline" in
3084 no) cat >> confdefs.h <<\EOF
3088 *) cat >> confdefs.h <<EOF
3089 #define inline $ac_cv_c_inline
3094 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3095 echo "configure:3096: checking whether byte ordering is bigendian" >&5
3096 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 ac_cv_c_bigendian=unknown
3100 # See if sys/param.h defines the BYTE_ORDER macro.
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3104 #include <sys/types.h>
3105 #include <sys/param.h>
3108 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3113 if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3115 # It does; now see whether it defined to BIG_ENDIAN or not.
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3119 #include <sys/types.h>
3120 #include <sys/param.h>
3123 #if BYTE_ORDER != BIG_ENDIAN
3128 if { (eval echo configure:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3130 ac_cv_c_bigendian=yes
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3135 ac_cv_c_bigendian=no
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3143 if test $ac_cv_c_bigendian = unknown; then
3144 if test "$cross_compiling" = yes; then
3145 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3151 /* Are we little or big endian? From Harbison&Steele. */
3155 char c[sizeof (long)];
3158 exit (u.c[sizeof (long) - 1] == 1);
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3163 ac_cv_c_bigendian=no
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3168 ac_cv_c_bigendian=yes
3176 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3177 if test $ac_cv_c_bigendian = yes; then
3178 cat >> confdefs.h <<\EOF
3179 #define WORDS_BIGENDIAN 1
3184 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3185 echo "configure:3186: checking whether char is unsigned" >&5
3186 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test "$GCC" = yes; then
3190 # GCC predefines this symbol on systems where it applies.
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #ifdef __CHAR_UNSIGNED__
3199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3200 egrep "yes" >/dev/null 2>&1; then
3202 ac_cv_c_char_unsigned=yes
3205 ac_cv_c_char_unsigned=no
3210 if test "$cross_compiling" = yes; then
3211 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3217 #if !defined(__STDC__) || __STDC__ != 1
3221 volatile char c = 255; exit(c < 0);
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3226 ac_cv_c_char_unsigned=yes
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 ac_cv_c_char_unsigned=no
3239 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3240 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3241 cat >> confdefs.h <<\EOF
3242 #define __CHAR_UNSIGNED__ 1
3248 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3249 echo "configure:3250: checking return type of signal handlers" >&5
3250 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <sys/types.h>
3262 extern "C" void (*signal (int, void (*)(int)))(int);
3264 void (*signal ()) ();
3271 if { (eval echo configure:3272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3273 ac_cv_type_signal=void
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 ac_cv_type_signal=int
3283 echo "$ac_t""$ac_cv_type_signal" 1>&6
3284 cat >> confdefs.h <<EOF
3285 #define RETSIGTYPE $ac_cv_type_signal
3289 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3290 echo "configure:3291: checking for uid_t in sys/types.h" >&5
3291 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 #include <sys/types.h>
3299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3300 egrep "uid_t" >/dev/null 2>&1; then
3302 ac_cv_type_uid_t=yes
3311 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3312 if test $ac_cv_type_uid_t = no; then
3313 cat >> confdefs.h <<\EOF
3317 cat >> confdefs.h <<\EOF
3323 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3324 echo "configure:3325: checking for mode_t" >&5
3325 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <sys/types.h>
3337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3338 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3340 ac_cv_type_mode_t=yes
3343 ac_cv_type_mode_t=no
3348 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3349 if test $ac_cv_type_mode_t = no; then
3350 cat >> confdefs.h <<\EOF
3356 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3357 echo "configure:3358: checking for off_t" >&5
3358 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 #include <sys/types.h>
3370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3373 ac_cv_type_off_t=yes
3381 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3382 if test $ac_cv_type_off_t = no; then
3383 cat >> confdefs.h <<\EOF
3389 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3390 echo "configure:3391: checking for size_t" >&5
3391 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 #include <sys/types.h>
3403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3404 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3406 ac_cv_type_size_t=yes
3409 ac_cv_type_size_t=no
3414 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3415 if test $ac_cv_type_size_t = no; then
3416 cat >> confdefs.h <<\EOF
3417 #define size_t unsigned
3422 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3423 echo "configure:3424: checking for pid_t" >&5
3424 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3439 ac_cv_type_pid_t=yes
3447 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3448 if test $ac_cv_type_pid_t = no; then
3449 cat >> confdefs.h <<\EOF
3455 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3456 echo "configure:3457: checking for st_rdev in struct stat" >&5
3457 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3463 #include <sys/types.h>
3464 #include <sys/stat.h>
3466 struct stat s; s.st_rdev;
3469 if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3471 ac_cv_struct_st_rdev=yes
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3476 ac_cv_struct_st_rdev=no
3481 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3482 if test $ac_cv_struct_st_rdev = yes; then
3483 cat >> confdefs.h <<\EOF
3484 #define HAVE_ST_RDEV 1
3489 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3490 echo "configure:3491: checking for d_off in dirent" >&5
3491 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3499 #include <sys/types.h>
3502 struct dirent d; d.d_off;
3505 if { (eval echo configure:3506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3507 ac_cv_dirent_d_off=yes
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 ac_cv_dirent_d_off=no
3517 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3518 if test $ac_cv_dirent_d_off = yes; then
3519 cat >> confdefs.h <<\EOF
3520 #define HAVE_DIRENT_D_OFF 1
3525 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3526 echo "configure:3527: checking for ino_t" >&5
3527 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3533 #include <sys/types.h>
3539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3540 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3542 ac_cv_type_ino_t=yes
3550 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3551 if test $ac_cv_type_ino_t = no; then
3552 cat >> confdefs.h <<\EOF
3553 #define ino_t unsigned
3558 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3559 echo "configure:3560: checking for loff_t" >&5
3560 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3566 #include <sys/types.h>
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3575 ac_cv_type_loff_t=yes
3578 ac_cv_type_loff_t=no
3583 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3584 if test $ac_cv_type_loff_t = no; then
3585 cat >> confdefs.h <<\EOF
3586 #define loff_t off_t
3591 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3592 echo "configure:3593: checking for offset_t" >&5
3593 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <sys/types.h>
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3608 ac_cv_type_offset_t=yes
3611 ac_cv_type_offset_t=no
3616 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3617 if test $ac_cv_type_offset_t = no; then
3618 cat >> confdefs.h <<\EOF
3619 #define offset_t loff_t
3624 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3625 echo "configure:3626: checking for ssize_t" >&5
3626 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3641 ac_cv_type_ssize_t=yes
3644 ac_cv_type_ssize_t=no
3649 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3650 if test $ac_cv_type_ssize_t = no; then
3651 cat >> confdefs.h <<\EOF
3657 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3658 echo "configure:3659: checking for wchar_t" >&5
3659 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 #include <sys/types.h>
3671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3672 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3674 ac_cv_type_wchar_t=yes
3677 ac_cv_type_wchar_t=no
3682 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3683 if test $ac_cv_type_wchar_t = no; then
3684 cat >> confdefs.h <<\EOF
3685 #define wchar_t unsigned short
3691 ############################################
3692 # for cups support we need libcups, and a handful of header files
3694 # Check whether --enable-cups or --disable-cups was given.
3695 if test "${enable_cups+set}" = set; then
3696 enableval="$enable_cups"
3701 if test x$enable_cups != xno; then
3702 # Extract the first word of "cups-config", so it can be a program name with args.
3703 set dummy cups-config; ac_word=$2
3704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3705 echo "configure:3706: checking for $ac_word" >&5
3706 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 case "$CUPS_CONFIG" in
3711 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3714 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3719 for ac_dir in $ac_dummy; do
3720 test -z "$ac_dir" && ac_dir=.
3721 if test -f $ac_dir/$ac_word; then
3722 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3730 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3731 if test -n "$CUPS_CONFIG"; then
3732 echo "$ac_t""$CUPS_CONFIG" 1>&6
3734 echo "$ac_t""no" 1>&6
3738 if test "x$CUPS_CONFIG" != x; then
3739 cat >> confdefs.h <<\EOF
3743 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3744 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3745 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3749 ############################################
3750 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3751 for ac_func in dlopen
3753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3754 echo "configure:3755: checking for $ac_func" >&5
3755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* System header to define __stub macros and hopefully few prototypes,
3762 which can conflict with char $ac_func(); below. */
3764 /* Override any gcc2 internal prototype to avoid an error. */
3765 /* We use char because int might match the return type of a gcc2
3766 builtin and then its argument prototype would still apply. */
3771 /* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3784 eval "ac_cv_func_$ac_func=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 eval "ac_cv_func_$ac_func=no"
3794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3795 echo "$ac_t""yes" 1>&6
3796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3797 cat >> confdefs.h <<EOF
3798 #define $ac_tr_func 1
3802 echo "$ac_t""no" 1>&6
3806 if test x"$ac_cv_func_dlopen" = x"no"; then
3807 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3808 echo "configure:3809: checking for dlopen in -ldl" >&5
3809 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 ac_save_LIBS="$LIBS"
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_lib_$ac_lib_var=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_lib_$ac_lib_var=no"
3837 LIBS="$ac_save_LIBS"
3840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3843 cat >> confdefs.h <<\EOF
3844 #define HAVE_DLOPEN 1
3848 echo "$ac_t""no" 1>&6
3852 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3854 ############################################
3855 # check if the compiler can do immediate structures
3856 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3857 echo "configure:3858: checking for immediate structures" >&5
3858 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3869 typedef struct {unsigned x;} FOOBAR;
3870 #define X_FOOBAR(x) ((FOOBAR) { x })
3871 #define FOO_ONE X_FOOBAR(1)
3881 if { (eval echo configure:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 samba_cv_immediate_structures=yes
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 samba_cv_immediate_structures=no
3893 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3894 if test x"$samba_cv_immediate_structures" = x"yes"; then
3895 cat >> confdefs.h <<\EOF
3896 #define HAVE_IMMEDIATE_STRUCTURES 1
3901 ############################################
3902 # check for unix domain sockets
3903 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3904 echo "configure:3905: checking for unix domain sockets" >&5
3905 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3913 #include <sys/types.h>
3916 #include <sys/socket.h>
3920 struct sockaddr_un sunaddr;
3921 sunaddr.sun_family = AF_UNIX;
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 samba_cv_unixsocket=yes
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 samba_cv_unixsocket=no
3937 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3938 if test x"$samba_cv_unixsocket" = x"yes"; then
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_UNIXSOCKET 1
3946 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3947 echo "configure:3948: checking for socklen_t type" >&5
3948 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3956 #include <sys/types.h>
3961 #include <sys/socket.h>
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 samba_cv_socklen_t=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 samba_cv_socklen_t=no
3978 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3979 if test x"$samba_cv_socklen_t" = x"yes"; then
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_SOCKLEN_T_TYPE 1
3986 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3987 echo "configure:3988: checking for sig_atomic_t type" >&5
3988 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3992 cat > conftest.$ac_ext <<EOF
3993 #line 3994 "configure"
3994 #include "confdefs.h"
3996 #include <sys/types.h>
4006 if { (eval echo configure:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4008 samba_cv_sig_atomic_t=yes
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 samba_cv_sig_atomic_t=no
4018 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4019 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4020 cat >> confdefs.h <<\EOF
4021 #define HAVE_SIG_ATOMIC_T_TYPE 1
4026 # stupid headers have the functions but no declaration. grrrr.
4028 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4029 echo "configure:4030: checking for errno declaration" >&5
4030 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4042 if { (eval echo configure:4043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4044 ac_cv_have_errno_decl=yes
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 ac_cv_have_errno_decl=no
4054 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4055 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4056 cat >> confdefs.h <<\EOF
4057 #define HAVE_ERRNO_DECL 1
4063 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4064 echo "configure:4065: checking for setresuid declaration" >&5
4065 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4069 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure"
4071 #include "confdefs.h"
4074 int i = (int)setresuid
4077 if { (eval echo configure:4078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4079 ac_cv_have_setresuid_decl=yes
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 ac_cv_have_setresuid_decl=no
4089 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4090 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4091 cat >> confdefs.h <<\EOF
4092 #define HAVE_SETRESUID_DECL 1
4098 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4099 echo "configure:4100: checking for setresgid declaration" >&5
4100 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4109 int i = (int)setresgid
4112 if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4114 ac_cv_have_setresgid_decl=yes
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 ac_cv_have_setresgid_decl=no
4124 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4125 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4126 cat >> confdefs.h <<\EOF
4127 #define HAVE_SETRESGID_DECL 1
4133 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4134 echo "configure:4135: checking for asprintf declaration" >&5
4135 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4144 int i = (int)asprintf
4147 if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 ac_cv_have_asprintf_decl=yes
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 ac_cv_have_asprintf_decl=no
4159 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4160 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_ASPRINTF_DECL 1
4168 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4169 echo "configure:4170: checking for vasprintf declaration" >&5
4170 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4179 int i = (int)vasprintf
4182 if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4184 ac_cv_have_vasprintf_decl=yes
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 ac_cv_have_vasprintf_decl=no
4194 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4195 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4196 cat >> confdefs.h <<\EOF
4197 #define HAVE_VASPRINTF_DECL 1
4203 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4204 echo "configure:4205: checking for vsnprintf declaration" >&5
4205 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4214 int i = (int)vsnprintf
4217 if { (eval echo configure:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4219 ac_cv_have_vsnprintf_decl=yes
4221 echo "configure: failed program was:" >&5
4222 cat conftest.$ac_ext >&5
4224 ac_cv_have_vsnprintf_decl=no
4229 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4230 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4231 cat >> confdefs.h <<\EOF
4232 #define HAVE_VSNPRINTF_DECL 1
4238 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4239 echo "configure:4240: checking for snprintf declaration" >&5
4240 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4249 int i = (int)snprintf
4252 if { (eval echo configure:4253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4254 ac_cv_have_snprintf_decl=yes
4256 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5
4259 ac_cv_have_snprintf_decl=no
4264 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4265 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4266 cat >> confdefs.h <<\EOF
4267 #define HAVE_SNPRINTF_DECL 1
4273 # and glibc has setresuid under linux but the function does
4274 # nothing until kernel 2.1.44! very dumb.
4275 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4276 echo "configure:4277: checking for real setresuid" >&5
4277 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4281 if test "$cross_compiling" = yes; then
4282 samba_cv_have_setresuid=cross
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4288 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4292 samba_cv_have_setresuid=yes
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 samba_cv_have_setresuid=no
4304 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4305 if test x"$samba_cv_have_setresuid" = x"yes"; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_SETRESUID 1
4312 # Do the same check for setresguid...
4314 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4315 echo "configure:4316: checking for real setresgid" >&5
4316 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4320 if test "$cross_compiling" = yes; then
4321 samba_cv_have_setresgid=cross
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4328 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4332 samba_cv_have_setresgid=yes
4334 echo "configure: failed program was:" >&5
4335 cat conftest.$ac_ext >&5
4337 samba_cv_have_setresgid=no
4344 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4345 if test x"$samba_cv_have_setresgid" = x"yes"; then
4346 cat >> confdefs.h <<\EOF
4347 #define HAVE_SETRESGID 1
4352 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4353 echo "configure:4354: checking for 8-bit clean memcmp" >&5
4354 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 if test "$cross_compiling" = yes; then
4358 ac_cv_func_memcmp_clean=no
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4366 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4367 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4371 if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4373 ac_cv_func_memcmp_clean=yes
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 ac_cv_func_memcmp_clean=no
4385 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4386 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4389 ###############################################
4390 # test for where we get crypt() from
4391 for ac_func in crypt
4393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4394 echo "configure:4395: checking for $ac_func" >&5
4395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* System header to define __stub macros and hopefully few prototypes,
4402 which can conflict with char $ac_func(); below. */
4404 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4411 /* The GNU C library defines this for functions which it implements
4412 to always fail with ENOSYS. Some functions are actually named
4413 something starting with __ and the normal name is an alias. */
4414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4424 eval "ac_cv_func_$ac_func=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 eval "ac_cv_func_$ac_func=no"
4434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4437 cat >> confdefs.h <<EOF
4438 #define $ac_tr_func 1
4442 echo "$ac_t""no" 1>&6
4446 if test x"$ac_cv_func_crypt" = x"no"; then
4447 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4448 echo "configure:4449: checking for crypt in -lcrypt" >&5
4449 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 ac_save_LIBS="$LIBS"
4454 LIBS="-lcrypt $LIBS"
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4467 if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469 eval "ac_cv_lib_$ac_lib_var=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_lib_$ac_lib_var=no"
4477 LIBS="$ac_save_LIBS"
4480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 LIBS="$LIBS -lcrypt";
4483 cat >> confdefs.h <<\EOF
4484 #define HAVE_CRYPT 1
4488 echo "$ac_t""no" 1>&6
4494 ###############################################
4495 # Readline included by default unless explicitly asked not to
4496 test "${with_readline+set}" != "set" && with_readline=yes
4498 # test for where we get readline() from
4499 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4500 echo "configure:4501: checking whether to use readline" >&5
4501 # Check whether --with-readline or --without-readline was given.
4502 if test "${with_readline+set}" = set; then
4503 withval="$with_readline"
4504 case "$with_readline" in
4506 echo "$ac_t""yes" 1>&6
4508 for ac_hdr in readline.h history.h readline/readline.h
4510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_hdr" >&5
4513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4522 { (eval echo configure:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4524 if test -z "$ac_err"; then
4526 eval "ac_cv_header_$ac_safe=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 eval "ac_cv_header_$ac_safe=no"
4536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4539 cat >> confdefs.h <<EOF
4540 #define $ac_tr_hdr 1
4544 echo "$ac_t""no" 1>&6
4548 for ac_hdr in readline/history.h
4550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4552 echo "configure:4553: checking for $ac_hdr" >&5
4553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4562 { (eval echo configure:4563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4564 if test -z "$ac_err"; then
4566 eval "ac_cv_header_$ac_safe=yes"
4569 echo "configure: failed program was:" >&5
4570 cat conftest.$ac_ext >&5
4572 eval "ac_cv_header_$ac_safe=no"
4576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4577 echo "$ac_t""yes" 1>&6
4578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4579 cat >> confdefs.h <<EOF
4580 #define $ac_tr_hdr 1
4584 echo "$ac_t""no" 1>&6
4589 for ac_hdr in readline.h readline/readline.h
4591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_hdr" >&5
4594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4603 { (eval echo configure:4604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4605 if test -z "$ac_err"; then
4607 eval "ac_cv_header_$ac_safe=yes"
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 eval "ac_cv_header_$ac_safe=no"
4617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4620 cat >> confdefs.h <<EOF
4621 #define $ac_tr_hdr 1
4624 for termlib in ncurses curses termcap terminfo termlib; do
4625 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4626 echo "configure:4627: checking for tgetent in -l${termlib}" >&5
4627 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-l${termlib} $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4660 TERMLIBS="-l${termlib}"; break
4662 echo "$ac_t""no" 1>&6
4666 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4667 echo "configure:4668: checking for rl_callback_handler_install in -lreadline" >&5
4668 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 ac_save_LIBS="$LIBS"
4673 LIBS="-lreadline $TERMLIBS $LIBS"
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4680 char rl_callback_handler_install();
4683 rl_callback_handler_install()
4686 if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4688 eval "ac_cv_lib_$ac_lib_var=yes"
4690 echo "configure: failed program was:" >&5
4691 cat conftest.$ac_ext >&5
4693 eval "ac_cv_lib_$ac_lib_var=no"
4696 LIBS="$ac_save_LIBS"
4699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4700 echo "$ac_t""yes" 1>&6
4701 TERMLIBS="-lreadline $TERMLIBS"
4702 cat >> confdefs.h <<\EOF
4703 #define HAVE_LIBREADLINE 1
4708 echo "$ac_t""no" 1>&6
4713 echo "$ac_t""no" 1>&6
4719 echo "$ac_t""no" 1>&6
4722 echo "$ac_t""yes" 1>&6
4724 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4725 # alternate readline path
4727 _cppflags=${CPPFLAGS}
4729 # Add additional search path
4730 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4731 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4733 for ac_hdr in readline.h history.h readline/readline.h
4735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_hdr 1
4769 echo "$ac_t""no" 1>&6
4773 for ac_hdr in readline/history.h
4775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_hdr" >&5
4778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 cat > conftest.$ac_ext <<EOF
4782 #line 4783 "configure"
4783 #include "confdefs.h"
4786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4787 { (eval echo configure:4788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4789 if test -z "$ac_err"; then
4791 eval "ac_cv_header_$ac_safe=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 eval "ac_cv_header_$ac_safe=no"
4801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4804 cat >> confdefs.h <<EOF
4805 #define $ac_tr_hdr 1
4809 echo "$ac_t""no" 1>&6
4814 for ac_hdr in readline.h readline/readline.h
4816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_hdr" >&5
4819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure"
4824 #include "confdefs.h"
4827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4828 { (eval echo configure:4829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4830 if test -z "$ac_err"; then
4832 eval "ac_cv_header_$ac_safe=yes"
4835 echo "configure: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 eval "ac_cv_header_$ac_safe=no"
4842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4845 cat >> confdefs.h <<EOF
4846 #define $ac_tr_hdr 1
4849 for termlib in ncurses curses termcap terminfo termlib; do
4850 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4851 echo "configure:4852: checking for tgetent in -l${termlib}" >&5
4852 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 ac_save_LIBS="$LIBS"
4857 LIBS="-l${termlib} $LIBS"
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4872 eval "ac_cv_lib_$ac_lib_var=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 eval "ac_cv_lib_$ac_lib_var=no"
4880 LIBS="$ac_save_LIBS"
4883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 TERMLIBS="-l${termlib}"; break
4887 echo "$ac_t""no" 1>&6
4891 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4892 echo "configure:4893: checking for rl_callback_handler_install in -lreadline" >&5
4893 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 ac_save_LIBS="$LIBS"
4898 LIBS="-lreadline $TERMLIBS $LIBS"
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char rl_callback_handler_install();
4908 rl_callback_handler_install()
4911 if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913 eval "ac_cv_lib_$ac_lib_var=yes"
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4918 eval "ac_cv_lib_$ac_lib_var=no"
4921 LIBS="$ac_save_LIBS"
4924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 TERMLDFLAGS="-L$with_readline/lib"
4927 TERMCPPFLAGS="-I$with_readline/include"
4928 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4929 TERMLIBS="-lreadline $TERMLIBS"
4930 cat >> confdefs.h <<\EOF
4931 #define HAVE_LIBREADLINE 1
4936 echo "$ac_t""no" 1>&6
4937 TERMLIBS= CPPFLAGS=$_cppflags
4941 echo "$ac_t""no" 1>&6
4950 echo "$ac_t""no" 1>&6
4957 # The readline API changed slightly from readline3 to readline4, so
4958 # code will generate warnings on one of them unless we have a few
4960 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4961 echo "configure:4962: checking for rl_completion_matches in -lreadline" >&5
4962 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4966 ac_save_LIBS="$LIBS"
4967 LIBS="-lreadline $TERMLIBS $LIBS"
4968 cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 /* Override any gcc2 internal prototype to avoid an error. */
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4974 char rl_completion_matches();
4977 rl_completion_matches()
4980 if { (eval echo configure:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4982 eval "ac_cv_lib_$ac_lib_var=yes"
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4987 eval "ac_cv_lib_$ac_lib_var=no"
4990 LIBS="$ac_save_LIBS"
4993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 cat >> confdefs.h <<\EOF
4996 #define HAVE_NEW_LIBREADLINE 1
5000 echo "$ac_t""no" 1>&6
5004 # The following test taken from the cvs sources
5005 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5006 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5007 # libsocket.so which has a bad implementation of gethostbyname (it
5008 # only looks in /etc/hosts), so we only look for -lsocket if we need
5010 for ac_func in connect
5012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5013 echo "configure:5014: checking for $ac_func" >&5
5014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char $ac_func(); below. */
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5030 /* The GNU C library defines this for functions which it implements
5031 to always fail with ENOSYS. Some functions are actually named
5032 something starting with __ and the normal name is an alias. */
5033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 eval "ac_cv_func_$ac_func=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 eval "ac_cv_func_$ac_func=no"
5053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5056 cat >> confdefs.h <<EOF
5057 #define $ac_tr_func 1
5061 echo "$ac_t""no" 1>&6
5065 if test x"$ac_cv_func_connect" = x"no"; then
5068 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5069 echo "configure:5070: checking for printf in -lnsl_s" >&5
5070 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 ac_save_LIBS="$LIBS"
5075 LIBS="-lnsl_s $LIBS"
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090 eval "ac_cv_lib_$ac_lib_var=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 eval "ac_cv_lib_$ac_lib_var=no"
5098 LIBS="$ac_save_LIBS"
5101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5102 echo "$ac_t""yes" 1>&6
5103 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5104 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5105 cat >> confdefs.h <<EOF
5106 #define $ac_tr_lib 1
5109 LIBS="-lnsl_s $LIBS"
5112 echo "$ac_t""no" 1>&6
5118 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5119 echo "configure:5120: checking for printf in -lnsl" >&5
5120 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 ac_save_LIBS="$LIBS"
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5140 eval "ac_cv_lib_$ac_lib_var=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_lib_$ac_lib_var=no"
5148 LIBS="$ac_save_LIBS"
5151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5153 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5154 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5155 cat >> confdefs.h <<EOF
5156 #define $ac_tr_lib 1
5162 echo "$ac_t""no" 1>&6
5168 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5169 echo "configure:5170: checking for connect in -lsocket" >&5
5170 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 ac_save_LIBS="$LIBS"
5175 LIBS="-lsocket $LIBS"
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* Override any gcc2 internal prototype to avoid an error. */
5180 /* We use char because int might match the return type of a gcc2
5181 builtin and then its argument prototype would still apply. */
5188 if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5190 eval "ac_cv_lib_$ac_lib_var=yes"
5192 echo "configure: failed program was:" >&5
5193 cat conftest.$ac_ext >&5
5195 eval "ac_cv_lib_$ac_lib_var=no"
5198 LIBS="$ac_save_LIBS"
5201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5204 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5205 cat >> confdefs.h <<EOF
5206 #define $ac_tr_lib 1
5209 LIBS="-lsocket $LIBS"
5212 echo "$ac_t""no" 1>&6
5218 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5219 echo "configure:5220: checking for connect in -linet" >&5
5220 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 ac_save_LIBS="$LIBS"
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5229 /* Override any gcc2 internal prototype to avoid an error. */
5230 /* We use char because int might match the return type of a gcc2
5231 builtin and then its argument prototype would still apply. */
5238 if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5240 eval "ac_cv_lib_$ac_lib_var=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 eval "ac_cv_lib_$ac_lib_var=no"
5248 LIBS="$ac_save_LIBS"
5251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5255 cat >> confdefs.h <<EOF
5256 #define $ac_tr_lib 1
5262 echo "$ac_t""no" 1>&6
5266 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5267 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5268 # ac_cv_func_connect=yes
5269 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5270 cat >> confdefs.h <<\EOF
5271 #define HAVE_CONNECT 1
5277 ###############################################
5278 # test for where we get get_yp_default_domain() from
5279 for ac_func in yp_get_default_domain
5281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5282 echo "configure:5283: checking for $ac_func" >&5
5283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 cat > conftest.$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 /* System header to define __stub macros and hopefully few prototypes,
5290 which can conflict with char $ac_func(); below. */
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5299 /* The GNU C library defines this for functions which it implements
5300 to always fail with ENOSYS. Some functions are actually named
5301 something starting with __ and the normal name is an alias. */
5302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 eval "ac_cv_func_$ac_func=yes"
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5317 eval "ac_cv_func_$ac_func=no"
5322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5325 cat >> confdefs.h <<EOF
5326 #define $ac_tr_func 1
5330 echo "$ac_t""no" 1>&6
5334 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5335 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5336 echo "configure:5337: checking for yp_get_default_domain in -lnsl" >&5
5337 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 ac_save_LIBS="$LIBS"
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char yp_get_default_domain();
5352 yp_get_default_domain()
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357 eval "ac_cv_lib_$ac_lib_var=yes"
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5362 eval "ac_cv_lib_$ac_lib_var=no"
5365 LIBS="$ac_save_LIBS"
5368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5369 echo "$ac_t""yes" 1>&6
5371 cat >> confdefs.h <<\EOF
5372 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5376 echo "$ac_t""no" 1>&6
5381 # Check if we have execl, if not we need to compile smbrun.
5382 for ac_func in execl
5384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5385 echo "configure:5386: checking for $ac_func" >&5
5386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5387 echo $ac_n "(cached) $ac_c" 1>&6
5389 cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392 /* System header to define __stub macros and hopefully few prototypes,
5393 which can conflict with char $ac_func(); below. */
5395 /* Override any gcc2 internal prototype to avoid an error. */
5396 /* We use char because int might match the return type of a gcc2
5397 builtin and then its argument prototype would still apply. */
5402 /* The GNU C library defines this for functions which it implements
5403 to always fail with ENOSYS. Some functions are actually named
5404 something starting with __ and the normal name is an alias. */
5405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5413 if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5415 eval "ac_cv_func_$ac_func=yes"
5417 echo "configure: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5420 eval "ac_cv_func_$ac_func=no"
5425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5426 echo "$ac_t""yes" 1>&6
5427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5428 cat >> confdefs.h <<EOF
5429 #define $ac_tr_func 1
5433 echo "$ac_t""no" 1>&6
5437 if test x"$ac_cv_func_execl" = x"no"; then
5438 RUNPROG="bin/smbrun"
5443 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_func" >&5
5447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char $ac_func(); below. */
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5476 eval "ac_cv_func_$ac_func=yes"
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 eval "ac_cv_func_$ac_func=no"
5486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5487 echo "$ac_t""yes" 1>&6
5488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5489 cat >> confdefs.h <<EOF
5490 #define $ac_tr_func 1
5494 echo "$ac_t""no" 1>&6
5498 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5501 echo "configure:5502: checking for $ac_func" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char $ac_func(); below. */
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5531 eval "ac_cv_func_$ac_func=yes"
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5536 eval "ac_cv_func_$ac_func=no"
5541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5544 cat >> confdefs.h <<EOF
5545 #define $ac_tr_func 1
5549 echo "$ac_t""no" 1>&6
5553 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_func_$ac_func=yes"
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_func_$ac_func=no"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5604 echo "$ac_t""no" 1>&6
5608 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char $ac_func(); below. */
5621 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5641 eval "ac_cv_func_$ac_func=yes"
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5646 eval "ac_cv_func_$ac_func=no"
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654 cat >> confdefs.h <<EOF
5655 #define $ac_tr_func 1
5659 echo "$ac_t""no" 1>&6
5663 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5694 if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5696 eval "ac_cv_func_$ac_func=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5701 eval "ac_cv_func_$ac_func=no"
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709 cat >> confdefs.h <<EOF
5710 #define $ac_tr_func 1
5714 echo "$ac_t""no" 1>&6
5718 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 eval "ac_cv_func_$ac_func=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5756 eval "ac_cv_func_$ac_func=no"
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_func 1
5769 echo "$ac_t""no" 1>&6
5773 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5806 eval "ac_cv_func_$ac_func=yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5811 eval "ac_cv_func_$ac_func=no"
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h <<EOF
5820 #define $ac_tr_func 1
5824 echo "$ac_t""no" 1>&6
5828 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5861 eval "ac_cv_func_$ac_func=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 eval "ac_cv_func_$ac_func=no"
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h <<EOF
5875 #define $ac_tr_func 1
5879 echo "$ac_t""no" 1>&6
5883 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_func_$ac_func=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_func_$ac_func=no"
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_func 1
5934 echo "$ac_t""no" 1>&6
5938 for ac_func in syslog vsyslog
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5971 eval "ac_cv_func_$ac_func=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5976 eval "ac_cv_func_$ac_func=no"
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_func 1
5989 echo "$ac_t""no" 1>&6
5993 # setbuffer is needed for smbtorture
5994 for ac_func in setbuffer
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6027 eval "ac_cv_func_$ac_func=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6032 eval "ac_cv_func_$ac_func=no"
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_func 1
6045 echo "$ac_t""no" 1>&6
6050 # syscall() is needed for smbwrapper.
6051 for ac_func in syscall
6053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_func" >&5
6055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* System header to define __stub macros and hopefully few prototypes,
6062 which can conflict with char $ac_func(); below. */
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 /* We use char because int might match the return type of a gcc2
6066 builtin and then its argument prototype would still apply. */
6071 /* The GNU C library defines this for functions which it implements
6072 to always fail with ENOSYS. Some functions are actually named
6073 something starting with __ and the normal name is an alias. */
6074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6082 if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6084 eval "ac_cv_func_$ac_func=yes"
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6089 eval "ac_cv_func_$ac_func=no"
6094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6097 cat >> confdefs.h <<EOF
6098 #define $ac_tr_func 1
6102 echo "$ac_t""no" 1>&6
6107 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 eval "ac_cv_func_$ac_func=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_func_$ac_func=no"
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_func 1
6158 echo "$ac_t""no" 1>&6
6162 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_func" >&5
6166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* System header to define __stub macros and hopefully few prototypes,
6173 which can conflict with char $ac_func(); below. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6182 /* The GNU C library defines this for functions which it implements
6183 to always fail with ENOSYS. Some functions are actually named
6184 something starting with __ and the normal name is an alias. */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 eval "ac_cv_func_$ac_func=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_func_$ac_func=no"
6205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6208 cat >> confdefs.h <<EOF
6209 #define $ac_tr_func 1
6213 echo "$ac_t""no" 1>&6
6217 for ac_func in __getcwd _getcwd
6219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6220 echo "configure:6221: checking for $ac_func" >&5
6221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 cat > conftest.$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* System header to define __stub macros and hopefully few prototypes,
6228 which can conflict with char $ac_func(); below. */
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6237 /* The GNU C library defines this for functions which it implements
6238 to always fail with ENOSYS. Some functions are actually named
6239 something starting with __ and the normal name is an alias. */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6250 eval "ac_cv_func_$ac_func=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.$ac_ext >&5
6255 eval "ac_cv_func_$ac_func=no"
6260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6263 cat >> confdefs.h <<EOF
6264 #define $ac_tr_func 1
6268 echo "$ac_t""no" 1>&6
6272 for ac_func in __xstat __fxstat __lxstat
6274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_func" >&5
6276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* System header to define __stub macros and hopefully few prototypes,
6283 which can conflict with char $ac_func(); below. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6292 /* The GNU C library defines this for functions which it implements
6293 to always fail with ENOSYS. Some functions are actually named
6294 something starting with __ and the normal name is an alias. */
6295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6305 eval "ac_cv_func_$ac_func=yes"
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 eval "ac_cv_func_$ac_func=no"
6315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_func 1
6323 echo "$ac_t""no" 1>&6
6327 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_func" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func(); below. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 eval "ac_cv_func_$ac_func=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_func_$ac_func=no"
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h <<EOF
6374 #define $ac_tr_func 1
6378 echo "$ac_t""no" 1>&6
6382 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6415 eval "ac_cv_func_$ac_func=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6420 eval "ac_cv_func_$ac_func=no"
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h <<EOF
6429 #define $ac_tr_func 1
6433 echo "$ac_t""no" 1>&6
6437 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470 eval "ac_cv_func_$ac_func=yes"
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6475 eval "ac_cv_func_$ac_func=no"
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h <<EOF
6484 #define $ac_tr_func 1
6488 echo "$ac_t""no" 1>&6
6492 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 eval "ac_cv_func_$ac_func=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 eval "ac_cv_func_$ac_func=no"
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h <<EOF
6539 #define $ac_tr_func 1
6543 echo "$ac_t""no" 1>&6
6547 for ac_func in _write __write _fork __fork
6549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_func" >&5
6551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* System header to define __stub macros and hopefully few prototypes,
6558 which can conflict with char $ac_func(); below. */
6560 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6567 /* The GNU C library defines this for functions which it implements
6568 to always fail with ENOSYS. Some functions are actually named
6569 something starting with __ and the normal name is an alias. */
6570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 eval "ac_cv_func_$ac_func=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 eval "ac_cv_func_$ac_func=no"
6590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6591 echo "$ac_t""yes" 1>&6
6592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6593 cat >> confdefs.h <<EOF
6594 #define $ac_tr_func 1
6598 echo "$ac_t""no" 1>&6
6602 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 eval "ac_cv_func_$ac_func=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 eval "ac_cv_func_$ac_func=no"
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h <<EOF
6649 #define $ac_tr_func 1
6653 echo "$ac_t""no" 1>&6
6657 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_func" >&5
6661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 /* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func(); below. */
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6677 /* The GNU C library defines this for functions which it implements
6678 to always fail with ENOSYS. Some functions are actually named
6679 something starting with __ and the normal name is an alias. */
6680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6688 if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690 eval "ac_cv_func_$ac_func=yes"
6692 echo "configure: failed program was:" >&5
6693 cat conftest.$ac_ext >&5
6695 eval "ac_cv_func_$ac_func=no"
6700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6703 cat >> confdefs.h <<EOF
6704 #define $ac_tr_func 1
6708 echo "$ac_t""no" 1>&6
6712 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_func" >&5
6716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* System header to define __stub macros and hopefully few prototypes,
6723 which can conflict with char $ac_func(); below. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6732 /* The GNU C library defines this for functions which it implements
6733 to always fail with ENOSYS. Some functions are actually named
6734 something starting with __ and the normal name is an alias. */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 eval "ac_cv_func_$ac_func=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 eval "ac_cv_func_$ac_func=no"
6755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_func 1
6763 echo "$ac_t""no" 1>&6
6767 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_func" >&5
6771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char $ac_func(); below. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6787 /* The GNU C library defines this for functions which it implements
6788 to always fail with ENOSYS. Some functions are actually named
6789 something starting with __ and the normal name is an alias. */
6790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6800 eval "ac_cv_func_$ac_func=yes"
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6805 eval "ac_cv_func_$ac_func=no"
6810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6813 cat >> confdefs.h <<EOF
6814 #define $ac_tr_func 1
6818 echo "$ac_t""no" 1>&6
6822 for ac_func in open64 _open64 __open64 creat64
6824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_func" >&5
6826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char $ac_func(); below. */
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 eval "ac_cv_func_$ac_func=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_func_$ac_func=no"
6865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6868 cat >> confdefs.h <<EOF
6869 #define $ac_tr_func 1
6873 echo "$ac_t""no" 1>&6
6879 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6882 if test x$ac_cv_func_stat64 = xno ; then
6883 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6884 echo "configure:6885: checking for stat64 in <sys/stat.h>" >&5
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6889 #if defined(HAVE_UNISTD_H)
6892 #include <sys/stat.h>
6895 struct stat64 st64; exit(stat64(".",&st64));
6898 if { (eval echo configure:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6900 ac_cv_func_stat64=yes
6902 echo "configure: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6906 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6907 if test x$ac_cv_func_stat64 = xyes ; then
6908 cat >> confdefs.h <<\EOF
6909 #define HAVE_STAT64 1
6915 if test x$ac_cv_func_lstat64 = xno ; then
6916 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6917 echo "configure:6918: checking for lstat64 in <sys/stat.h>" >&5
6918 cat > conftest.$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6922 #if defined(HAVE_UNISTD_H)
6925 #include <sys/stat.h>
6928 struct stat64 st64; exit(lstat64(".",&st64));
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6933 ac_cv_func_lstat64=yes
6935 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5
6939 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6940 if test x$ac_cv_func_lstat64 = xyes ; then
6941 cat >> confdefs.h <<\EOF
6942 #define HAVE_LSTAT64 1
6948 if test x$ac_cv_func_fstat64 = xno ; then
6949 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6950 echo "configure:6951: checking for fstat64 in <sys/stat.h>" >&5
6951 cat > conftest.$ac_ext <<EOF
6952 #line 6953 "configure"
6953 #include "confdefs.h"
6955 #if defined(HAVE_UNISTD_H)
6958 #include <sys/stat.h>
6961 struct stat64 st64; exit(fstat64(0,&st64));
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6966 ac_cv_func_fstat64=yes
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6972 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6973 if test x$ac_cv_func_fstat64 = xyes ; then
6974 cat >> confdefs.h <<\EOF
6975 #define HAVE_FSTAT64 1
6981 #####################################
6982 # we might need the resolv library on some systems
6983 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6984 echo "configure:6985: checking for dn_expand in -lresolv" >&5
6985 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6987 echo $ac_n "(cached) $ac_c" 1>&6
6989 ac_save_LIBS="$LIBS"
6990 LIBS="-lresolv $LIBS"
6991 cat > conftest.$ac_ext <<EOF
6992 #line 6993 "configure"
6993 #include "confdefs.h"
6994 /* Override any gcc2 internal prototype to avoid an error. */
6995 /* We use char because int might match the return type of a gcc2
6996 builtin and then its argument prototype would still apply. */
7003 if { (eval echo configure:7004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7005 eval "ac_cv_lib_$ac_lib_var=yes"
7007 echo "configure: failed program was:" >&5
7008 cat conftest.$ac_ext >&5
7010 eval "ac_cv_lib_$ac_lib_var=no"
7013 LIBS="$ac_save_LIBS"
7016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7017 echo "$ac_t""yes" 1>&6
7018 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7019 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7020 cat >> confdefs.h <<EOF
7021 #define $ac_tr_lib 1
7024 LIBS="-lresolv $LIBS"
7027 echo "$ac_t""no" 1>&6
7032 # Check for the functions putprpwnam, set_auth_parameters,
7033 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7034 # Needed for OSF1 and HPUX.
7038 *-lsecurity*) for ac_func in putprpwnam
7040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7041 echo "configure:7042: checking for $ac_func" >&5
7042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 /* System header to define __stub macros and hopefully few prototypes,
7049 which can conflict with char $ac_func(); below. */
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7058 /* The GNU C library defines this for functions which it implements
7059 to always fail with ENOSYS. Some functions are actually named
7060 something starting with __ and the normal name is an alias. */
7061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7069 if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7071 eval "ac_cv_func_$ac_func=yes"
7073 echo "configure: failed program was:" >&5
7074 cat conftest.$ac_ext >&5
7076 eval "ac_cv_func_$ac_func=no"
7081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7082 echo "$ac_t""yes" 1>&6
7083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7084 cat >> confdefs.h <<EOF
7085 #define $ac_tr_func 1
7089 echo "$ac_t""no" 1>&6
7093 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7094 echo "configure:7095: checking for putprpwnam in -lsecurity" >&5
7095 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7099 ac_save_LIBS="$LIBS"
7100 LIBS="-lsecurity $LIBS"
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7113 if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7115 eval "ac_cv_lib_$ac_lib_var=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.$ac_ext >&5
7120 eval "ac_cv_lib_$ac_lib_var=no"
7123 LIBS="$ac_save_LIBS"
7126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7130 cat >> confdefs.h <<EOF
7131 #define $ac_tr_lib 1
7134 LIBS="-lsecurity $LIBS"
7137 echo "$ac_t""no" 1>&6
7140 for ac_func in putprpwnam
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 cat > conftest.$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 eval "ac_cv_func_$ac_func=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_func_$ac_func=no"
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h <<EOF
7187 #define $ac_tr_func 1
7191 echo "$ac_t""no" 1>&6
7199 *-lsec*) for ac_func in putprpwnam
7201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7202 echo "configure:7203: checking for $ac_func" >&5
7203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7206 cat > conftest.$ac_ext <<EOF
7207 #line 7208 "configure"
7208 #include "confdefs.h"
7209 /* System header to define __stub macros and hopefully few prototypes,
7210 which can conflict with char $ac_func(); below. */
7212 /* Override any gcc2 internal prototype to avoid an error. */
7213 /* We use char because int might match the return type of a gcc2
7214 builtin and then its argument prototype would still apply. */
7219 /* The GNU C library defines this for functions which it implements
7220 to always fail with ENOSYS. Some functions are actually named
7221 something starting with __ and the normal name is an alias. */
7222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232 eval "ac_cv_func_$ac_func=yes"
7234 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5
7237 eval "ac_cv_func_$ac_func=no"
7242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7245 cat >> confdefs.h <<EOF
7246 #define $ac_tr_func 1
7250 echo "$ac_t""no" 1>&6
7254 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7255 echo "configure:7256: checking for putprpwnam in -lsec" >&5
7256 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7260 ac_save_LIBS="$LIBS"
7262 cat > conftest.$ac_ext <<EOF
7263 #line 7264 "configure"
7264 #include "confdefs.h"
7265 /* Override any gcc2 internal prototype to avoid an error. */
7266 /* We use char because int might match the return type of a gcc2
7267 builtin and then its argument prototype would still apply. */
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 eval "ac_cv_lib_$ac_lib_var=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 eval "ac_cv_lib_$ac_lib_var=no"
7284 LIBS="$ac_save_LIBS"
7287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7288 echo "$ac_t""yes" 1>&6
7289 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7291 cat >> confdefs.h <<EOF
7292 #define $ac_tr_lib 1
7298 echo "$ac_t""no" 1>&6
7301 for ac_func in putprpwnam
7303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7304 echo "configure:7305: checking for $ac_func" >&5
7305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 /* System header to define __stub macros and hopefully few prototypes,
7312 which can conflict with char $ac_func(); below. */
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7321 /* The GNU C library defines this for functions which it implements
7322 to always fail with ENOSYS. Some functions are actually named
7323 something starting with __ and the normal name is an alias. */
7324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7332 if { (eval echo configure:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7334 eval "ac_cv_func_$ac_func=yes"
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7339 eval "ac_cv_func_$ac_func=no"
7344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7345 echo "$ac_t""yes" 1>&6
7346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7347 cat >> confdefs.h <<EOF
7348 #define $ac_tr_func 1
7352 echo "$ac_t""no" 1>&6
7361 *-lsecurity*) for ac_func in set_auth_parameters
7363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7364 echo "configure:7365: checking for $ac_func" >&5
7365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char $ac_func(); below. */
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 /* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7392 if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7394 eval "ac_cv_func_$ac_func=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 eval "ac_cv_func_$ac_func=no"
7404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7405 echo "$ac_t""yes" 1>&6
7406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7407 cat >> confdefs.h <<EOF
7408 #define $ac_tr_func 1
7412 echo "$ac_t""no" 1>&6
7416 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7417 echo "configure:7418: checking for set_auth_parameters in -lsecurity" >&5
7418 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 ac_save_LIBS="$LIBS"
7423 LIBS="-lsecurity $LIBS"
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */
7430 char set_auth_parameters();
7433 set_auth_parameters()
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438 eval "ac_cv_lib_$ac_lib_var=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 eval "ac_cv_lib_$ac_lib_var=no"
7446 LIBS="$ac_save_LIBS"
7449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7450 echo "$ac_t""yes" 1>&6
7451 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7453 cat >> confdefs.h <<EOF
7454 #define $ac_tr_lib 1
7457 LIBS="-lsecurity $LIBS"
7460 echo "$ac_t""no" 1>&6
7463 for ac_func in set_auth_parameters
7465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7466 echo "configure:7467: checking for $ac_func" >&5
7467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char $ac_func(); below. */
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7496 eval "ac_cv_func_$ac_func=yes"
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 eval "ac_cv_func_$ac_func=no"
7506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7509 cat >> confdefs.h <<EOF
7510 #define $ac_tr_func 1
7514 echo "$ac_t""no" 1>&6
7522 *-lsec*) for ac_func in set_auth_parameters
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7555 eval "ac_cv_func_$ac_func=yes"
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7560 eval "ac_cv_func_$ac_func=no"
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_func 1
7573 echo "$ac_t""no" 1>&6
7577 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7578 echo "configure:7579: checking for set_auth_parameters in -lsec" >&5
7579 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7583 ac_save_LIBS="$LIBS"
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 /* Override any gcc2 internal prototype to avoid an error. */
7589 /* We use char because int might match the return type of a gcc2
7590 builtin and then its argument prototype would still apply. */
7591 char set_auth_parameters();
7594 set_auth_parameters()
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7599 eval "ac_cv_lib_$ac_lib_var=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7604 eval "ac_cv_lib_$ac_lib_var=no"
7607 LIBS="$ac_save_LIBS"
7610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7614 cat >> confdefs.h <<EOF
7615 #define $ac_tr_lib 1
7621 echo "$ac_t""no" 1>&6
7624 for ac_func in set_auth_parameters
7626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7627 echo "configure:7628: checking for $ac_func" >&5
7628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* System header to define __stub macros and hopefully few prototypes,
7635 which can conflict with char $ac_func(); below. */
7637 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7644 /* The GNU C library defines this for functions which it implements
7645 to always fail with ENOSYS. Some functions are actually named
7646 something starting with __ and the normal name is an alias. */
7647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7657 eval "ac_cv_func_$ac_func=yes"
7659 echo "configure: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7662 eval "ac_cv_func_$ac_func=no"
7667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7670 cat >> confdefs.h <<EOF
7671 #define $ac_tr_func 1
7675 echo "$ac_t""no" 1>&6
7683 # UnixWare 7.x has its getspnam in -lgen
7685 *-lgen*) for ac_func in getspnam
7687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7688 echo "configure:7689: checking for $ac_func" >&5
7689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7692 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure"
7694 #include "confdefs.h"
7695 /* System header to define __stub macros and hopefully few prototypes,
7696 which can conflict with char $ac_func(); below. */
7698 /* Override any gcc2 internal prototype to avoid an error. */
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7705 /* The GNU C library defines this for functions which it implements
7706 to always fail with ENOSYS. Some functions are actually named
7707 something starting with __ and the normal name is an alias. */
7708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7718 eval "ac_cv_func_$ac_func=yes"
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7723 eval "ac_cv_func_$ac_func=no"
7728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7731 cat >> confdefs.h <<EOF
7732 #define $ac_tr_func 1
7736 echo "$ac_t""no" 1>&6
7740 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7741 echo "configure:7742: checking for getspnam in -lgen" >&5
7742 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7746 ac_save_LIBS="$LIBS"
7748 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7760 if { (eval echo configure:7761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762 eval "ac_cv_lib_$ac_lib_var=yes"
7764 echo "configure: failed program was:" >&5
7765 cat conftest.$ac_ext >&5
7767 eval "ac_cv_lib_$ac_lib_var=no"
7770 LIBS="$ac_save_LIBS"
7773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7774 echo "$ac_t""yes" 1>&6
7775 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7776 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7777 cat >> confdefs.h <<EOF
7778 #define $ac_tr_lib 1
7784 echo "$ac_t""no" 1>&6
7787 for ac_func in getspnam
7789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7790 echo "configure:7791: checking for $ac_func" >&5
7791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7797 /* System header to define __stub macros and hopefully few prototypes,
7798 which can conflict with char $ac_func(); below. */
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7818 if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 eval "ac_cv_func_$ac_func=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 eval "ac_cv_func_$ac_func=no"
7830 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7831 echo "$ac_t""yes" 1>&6
7832 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7833 cat >> confdefs.h <<EOF
7834 #define $ac_tr_func 1
7838 echo "$ac_t""no" 1>&6
7847 *-lsecurity*) for ac_func in getspnam
7849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_func" >&5
7851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* System header to define __stub macros and hopefully few prototypes,
7858 which can conflict with char $ac_func(); below. */
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7867 /* The GNU C library defines this for functions which it implements
7868 to always fail with ENOSYS. Some functions are actually named
7869 something starting with __ and the normal name is an alias. */
7870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7878 if { (eval echo configure:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7880 eval "ac_cv_func_$ac_func=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7885 eval "ac_cv_func_$ac_func=no"
7890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7891 echo "$ac_t""yes" 1>&6
7892 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7893 cat >> confdefs.h <<EOF
7894 #define $ac_tr_func 1
7898 echo "$ac_t""no" 1>&6
7902 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7903 echo "configure:7904: checking for getspnam in -lsecurity" >&5
7904 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 ac_save_LIBS="$LIBS"
7909 LIBS="-lsecurity $LIBS"
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7922 if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7924 eval "ac_cv_lib_$ac_lib_var=yes"
7926 echo "configure: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7929 eval "ac_cv_lib_$ac_lib_var=no"
7932 LIBS="$ac_save_LIBS"
7935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7939 cat >> confdefs.h <<EOF
7940 #define $ac_tr_lib 1
7943 LIBS="-lsecurity $LIBS"
7946 echo "$ac_t""no" 1>&6
7949 for ac_func in getspnam
7951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_func" >&5
7953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 cat > conftest.$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func(); below. */
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7982 eval "ac_cv_func_$ac_func=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 eval "ac_cv_func_$ac_func=no"
7992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7995 cat >> confdefs.h <<EOF
7996 #define $ac_tr_func 1
8000 echo "$ac_t""no" 1>&6
8008 *-lsec*) for ac_func in getspnam
8010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8011 echo "configure:8012: checking for $ac_func" >&5
8012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* System header to define __stub macros and hopefully few prototypes,
8019 which can conflict with char $ac_func(); below. */
8021 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8028 /* The GNU C library defines this for functions which it implements
8029 to always fail with ENOSYS. Some functions are actually named
8030 something starting with __ and the normal name is an alias. */
8031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8041 eval "ac_cv_func_$ac_func=yes"
8043 echo "configure: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8046 eval "ac_cv_func_$ac_func=no"
8051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8052 echo "$ac_t""yes" 1>&6
8053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8054 cat >> confdefs.h <<EOF
8055 #define $ac_tr_func 1
8059 echo "$ac_t""no" 1>&6
8063 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8064 echo "configure:8065: checking for getspnam in -lsec" >&5
8065 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8069 ac_save_LIBS="$LIBS"
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074 /* Override any gcc2 internal prototype to avoid an error. */
8075 /* We use char because int might match the return type of a gcc2
8076 builtin and then its argument prototype would still apply. */
8083 if { (eval echo configure:8084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8085 eval "ac_cv_lib_$ac_lib_var=yes"
8087 echo "configure: failed program was:" >&5
8088 cat conftest.$ac_ext >&5
8090 eval "ac_cv_lib_$ac_lib_var=no"
8093 LIBS="$ac_save_LIBS"
8096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8097 echo "$ac_t""yes" 1>&6
8098 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8100 cat >> confdefs.h <<EOF
8101 #define $ac_tr_lib 1
8107 echo "$ac_t""no" 1>&6
8110 for ac_func in getspnam
8112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8113 echo "configure:8114: checking for $ac_func" >&5
8114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8115 echo $ac_n "(cached) $ac_c" 1>&6
8117 cat > conftest.$ac_ext <<EOF
8118 #line 8119 "configure"
8119 #include "confdefs.h"
8120 /* System header to define __stub macros and hopefully few prototypes,
8121 which can conflict with char $ac_func(); below. */
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8130 /* The GNU C library defines this for functions which it implements
8131 to always fail with ENOSYS. Some functions are actually named
8132 something starting with __ and the normal name is an alias. */
8133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8141 if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 eval "ac_cv_func_$ac_func=yes"
8145 echo "configure: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8148 eval "ac_cv_func_$ac_func=no"
8153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8154 echo "$ac_t""yes" 1>&6
8155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8156 cat >> confdefs.h <<EOF
8157 #define $ac_tr_func 1
8161 echo "$ac_t""no" 1>&6
8170 *-lsecurity*) for ac_func in bigcrypt
8172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8173 echo "configure:8174: checking for $ac_func" >&5
8174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180 /* System header to define __stub macros and hopefully few prototypes,
8181 which can conflict with char $ac_func(); below. */
8183 /* Override any gcc2 internal prototype to avoid an error. */
8184 /* We use char because int might match the return type of a gcc2
8185 builtin and then its argument prototype would still apply. */
8190 /* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8201 if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8203 eval "ac_cv_func_$ac_func=yes"
8205 echo "configure: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8208 eval "ac_cv_func_$ac_func=no"
8213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8214 echo "$ac_t""yes" 1>&6
8215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8216 cat >> confdefs.h <<EOF
8217 #define $ac_tr_func 1
8221 echo "$ac_t""no" 1>&6
8225 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8226 echo "configure:8227: checking for bigcrypt in -lsecurity" >&5
8227 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8231 ac_save_LIBS="$LIBS"
8232 LIBS="-lsecurity $LIBS"
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* Override any gcc2 internal prototype to avoid an error. */
8237 /* We use char because int might match the return type of a gcc2
8238 builtin and then its argument prototype would still apply. */
8245 if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8247 eval "ac_cv_lib_$ac_lib_var=yes"
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8252 eval "ac_cv_lib_$ac_lib_var=no"
8255 LIBS="$ac_save_LIBS"
8258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8259 echo "$ac_t""yes" 1>&6
8260 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8262 cat >> confdefs.h <<EOF
8263 #define $ac_tr_lib 1
8266 LIBS="-lsecurity $LIBS"
8269 echo "$ac_t""no" 1>&6
8272 for ac_func in bigcrypt
8274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_func" >&5
8276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func(); below. */
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8305 eval "ac_cv_func_$ac_func=yes"
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8310 eval "ac_cv_func_$ac_func=no"
8315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8318 cat >> confdefs.h <<EOF
8319 #define $ac_tr_func 1
8323 echo "$ac_t""no" 1>&6
8331 *-lsec*) for ac_func in bigcrypt
8333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8334 echo "configure:8335: checking for $ac_func" >&5
8335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8338 cat > conftest.$ac_ext <<EOF
8339 #line 8340 "configure"
8340 #include "confdefs.h"
8341 /* System header to define __stub macros and hopefully few prototypes,
8342 which can conflict with char $ac_func(); below. */
8344 /* Override any gcc2 internal prototype to avoid an error. */
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8351 /* The GNU C library defines this for functions which it implements
8352 to always fail with ENOSYS. Some functions are actually named
8353 something starting with __ and the normal name is an alias. */
8354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8362 if { (eval echo configure:8363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8364 eval "ac_cv_func_$ac_func=yes"
8366 echo "configure: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8369 eval "ac_cv_func_$ac_func=no"
8374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8375 echo "$ac_t""yes" 1>&6
8376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8377 cat >> confdefs.h <<EOF
8378 #define $ac_tr_func 1
8382 echo "$ac_t""no" 1>&6
8386 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8387 echo "configure:8388: checking for bigcrypt in -lsec" >&5
8388 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8392 ac_save_LIBS="$LIBS"
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8397 /* Override any gcc2 internal prototype to avoid an error. */
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8406 if { (eval echo configure:8407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8408 eval "ac_cv_lib_$ac_lib_var=yes"
8410 echo "configure: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8413 eval "ac_cv_lib_$ac_lib_var=no"
8416 LIBS="$ac_save_LIBS"
8419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8420 echo "$ac_t""yes" 1>&6
8421 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8422 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8423 cat >> confdefs.h <<EOF
8424 #define $ac_tr_lib 1
8430 echo "$ac_t""no" 1>&6
8433 for ac_func in bigcrypt
8435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8436 echo "configure:8437: checking for $ac_func" >&5
8437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8438 echo $ac_n "(cached) $ac_c" 1>&6
8440 cat > conftest.$ac_ext <<EOF
8441 #line 8442 "configure"
8442 #include "confdefs.h"
8443 /* System header to define __stub macros and hopefully few prototypes,
8444 which can conflict with char $ac_func(); below. */
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8453 /* The GNU C library defines this for functions which it implements
8454 to always fail with ENOSYS. Some functions are actually named
8455 something starting with __ and the normal name is an alias. */
8456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8466 eval "ac_cv_func_$ac_func=yes"
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 eval "ac_cv_func_$ac_func=no"
8476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8477 echo "$ac_t""yes" 1>&6
8478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8479 cat >> confdefs.h <<EOF
8480 #define $ac_tr_func 1
8484 echo "$ac_t""no" 1>&6
8493 *-lsecurity*) for ac_func in getprpwnam
8495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8496 echo "configure:8497: checking for $ac_func" >&5
8497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* System header to define __stub macros and hopefully few prototypes,
8504 which can conflict with char $ac_func(); below. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8513 /* The GNU C library defines this for functions which it implements
8514 to always fail with ENOSYS. Some functions are actually named
8515 something starting with __ and the normal name is an alias. */
8516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8524 if { (eval echo configure:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8526 eval "ac_cv_func_$ac_func=yes"
8528 echo "configure: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8531 eval "ac_cv_func_$ac_func=no"
8536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8539 cat >> confdefs.h <<EOF
8540 #define $ac_tr_func 1
8544 echo "$ac_t""no" 1>&6
8548 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8549 echo "configure:8550: checking for getprpwnam in -lsecurity" >&5
8550 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8554 ac_save_LIBS="$LIBS"
8555 LIBS="-lsecurity $LIBS"
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8570 eval "ac_cv_lib_$ac_lib_var=yes"
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 eval "ac_cv_lib_$ac_lib_var=no"
8578 LIBS="$ac_save_LIBS"
8581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8582 echo "$ac_t""yes" 1>&6
8583 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8585 cat >> confdefs.h <<EOF
8586 #define $ac_tr_lib 1
8589 LIBS="-lsecurity $LIBS"
8592 echo "$ac_t""no" 1>&6
8595 for ac_func in getprpwnam
8597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8598 echo "configure:8599: checking for $ac_func" >&5
8599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8600 echo $ac_n "(cached) $ac_c" 1>&6
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 /* System header to define __stub macros and hopefully few prototypes,
8606 which can conflict with char $ac_func(); below. */
8608 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8615 /* The GNU C library defines this for functions which it implements
8616 to always fail with ENOSYS. Some functions are actually named
8617 something starting with __ and the normal name is an alias. */
8618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8626 if { (eval echo configure:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8628 eval "ac_cv_func_$ac_func=yes"
8630 echo "configure: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8633 eval "ac_cv_func_$ac_func=no"
8638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8641 cat >> confdefs.h <<EOF
8642 #define $ac_tr_func 1
8646 echo "$ac_t""no" 1>&6
8654 *-lsec*) for ac_func in getprpwnam
8656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8657 echo "configure:8658: checking for $ac_func" >&5
8658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8661 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8664 /* System header to define __stub macros and hopefully few prototypes,
8665 which can conflict with char $ac_func(); below. */
8667 /* Override any gcc2 internal prototype to avoid an error. */
8668 /* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8674 /* The GNU C library defines this for functions which it implements
8675 to always fail with ENOSYS. Some functions are actually named
8676 something starting with __ and the normal name is an alias. */
8677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8685 if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687 eval "ac_cv_func_$ac_func=yes"
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8692 eval "ac_cv_func_$ac_func=no"
8697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8698 echo "$ac_t""yes" 1>&6
8699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8700 cat >> confdefs.h <<EOF
8701 #define $ac_tr_func 1
8705 echo "$ac_t""no" 1>&6
8709 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8710 echo "configure:8711: checking for getprpwnam in -lsec" >&5
8711 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 ac_save_LIBS="$LIBS"
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 /* Override any gcc2 internal prototype to avoid an error. */
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8731 eval "ac_cv_lib_$ac_lib_var=yes"
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 eval "ac_cv_lib_$ac_lib_var=no"
8739 LIBS="$ac_save_LIBS"
8742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8743 echo "$ac_t""yes" 1>&6
8744 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8746 cat >> confdefs.h <<EOF
8747 #define $ac_tr_lib 1
8753 echo "$ac_t""no" 1>&6
8756 for ac_func in getprpwnam
8758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8759 echo "configure:8760: checking for $ac_func" >&5
8760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766 /* System header to define __stub macros and hopefully few prototypes,
8767 which can conflict with char $ac_func(); below. */
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8776 /* The GNU C library defines this for functions which it implements
8777 to always fail with ENOSYS. Some functions are actually named
8778 something starting with __ and the normal name is an alias. */
8779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8787 if { (eval echo configure:8788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8789 eval "ac_cv_func_$ac_func=yes"
8791 echo "configure: failed program was:" >&5
8792 cat conftest.$ac_ext >&5
8794 eval "ac_cv_func_$ac_func=no"
8799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8800 echo "$ac_t""yes" 1>&6
8801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8802 cat >> confdefs.h <<EOF
8803 #define $ac_tr_func 1
8807 echo "$ac_t""no" 1>&6
8815 # this bit needs to be modified for each OS that is suported by
8816 # smbwrapper. You need to specify how to created a shared library and
8817 # how to compile C code to produce PIC object files
8819 # these are the defaults, good for lots of systems
8828 # Assume non-shared by default and override below
8830 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8831 echo "configure:8832: checking ability to build shared libraries" >&5
8833 # and these are for particular systems
8835 *linux*) cat >> confdefs.h <<\EOF
8841 DYNEXP="-Wl,--export-dynamic"
8843 SONAMEFLAG="-Wl,-soname="
8844 cat >> confdefs.h <<\EOF
8845 #define STAT_ST_BLOCKSIZE 512
8849 *solaris*) cat >> confdefs.h <<\EOF
8856 if test "${GCC}" = "yes"; then
8858 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8863 ## ${CFLAGS} added for building 64-bit shared
8864 ## libs using Sun's Compiler
8865 LDSHFLAGS="-G \${CFLAGS}"
8869 cat >> confdefs.h <<\EOF
8870 #define STAT_ST_BLOCKSIZE 512
8874 *sunos*) cat >> confdefs.h <<\EOF
8880 SONAMEFLAG="-Wl,-h,"
8881 PICFLAG="-KPIC" # Is this correct for SunOS
8883 *bsd*) BLDSHARED="true"
8885 DYNEXP="-Wl,-Bdynamic"
8886 SONAMEFLAG="-Wl,-soname,"
8888 cat >> confdefs.h <<\EOF
8889 #define STAT_ST_BLOCKSIZE 512
8893 *irix*) cat >> confdefs.h <<\EOF
8898 *irix6*) cat >> confdefs.h <<\EOF
8904 ATTEMPT_WRAP32_BUILD=yes
8906 LDSHFLAGS="-set_version sgi1.0 -shared"
8907 SONAMEFLAG="-soname "
8909 if test "${GCC}" = "yes"; then
8914 cat >> confdefs.h <<\EOF
8915 #define STAT_ST_BLOCKSIZE 512
8919 *aix*) cat >> confdefs.h <<\EOF
8924 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8925 DYNEXP="-Wl,-brtl,-bexpall"
8926 if test "${GCC}" = "yes"; then
8929 PICFLAG="-O2 -qmaxmem=6000"
8930 ## for funky AIX compiler using strncpy()
8931 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8934 cat >> confdefs.h <<\EOF
8935 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8939 *hpux*) cat >> confdefs.h <<\EOF
8944 # Use special PIC flags for the native HP-UX compiler.
8945 if test $ac_cv_prog_cc_Ae = yes; then
8948 LDSHFLAGS="-B symbolic -b -z"
8953 cat >> confdefs.h <<\EOF
8954 #define STAT_ST_BLOCKSIZE 8192
8958 *qnx*) cat >> confdefs.h <<\EOF
8962 *osf*) cat >> confdefs.h <<\EOF
8968 SONAMEFLAG="-Wl,-soname,"
8971 *sco*) cat >> confdefs.h <<\EOF
8975 *unixware*) cat >> confdefs.h <<\EOF
8981 SONAMEFLAG="-Wl,-soname,"
8984 *next2*) cat >> confdefs.h <<\EOF
8988 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8989 set dummy groff; ac_word=$2
8990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8991 echo "configure:8992: checking for $ac_word" >&5
8992 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8993 echo $ac_n "(cached) $ac_c" 1>&6
8995 if test -n "$ROFF"; then
8996 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9000 for ac_dir in $ac_dummy; do
9001 test -z "$ac_dir" && ac_dir=.
9002 if test -f $ac_dir/$ac_word; then
9003 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9010 ROFF="$ac_cv_prog_ROFF"
9011 if test -n "$ROFF"; then
9012 echo "$ac_t""$ROFF" 1>&6
9014 echo "$ac_t""no" 1>&6
9019 *-univel-*) if test "$GCC" != yes ; then
9020 cat >> confdefs.h <<\EOF
9021 #define HAVE_MEMSET 1
9028 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9029 #define RELIANTUNIX 1
9036 if test "$GCC" != yes ; then
9037 cat >> confdefs.h <<\EOF
9038 #define HAVE_MEMSET 1
9046 echo "$ac_t""$BLDSHARED" 1>&6
9047 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9048 echo "configure:9049: checking linker flags for shared libraries" >&5
9049 echo "$ac_t""$LDSHFLAGS" 1>&6
9050 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9051 echo "configure:9052: checking compiler flags for position-independent code" >&5
9052 echo "$ac_t""$PICFLAGS" 1>&6
9054 #######################################################
9055 # test whether building a shared library actually works
9056 if test $BLDSHARED = true; then
9057 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9058 echo "configure:9059: checking whether building shared libraries actually works" >&5
9059 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9060 echo $ac_n "(cached) $ac_c" 1>&6
9063 ac_cv_shlib_works=no
9064 # try building a trivial shared library
9065 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9066 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9067 ac_cv_shlib_works=yes
9068 rm -f shlib.so shlib.po
9072 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9073 if test $ac_cv_shlib_works = no; then
9079 # this updates our target list if we can build shared libs
9080 if test $BLDSHARED = true; then
9081 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9083 LIBSMBCLIENT_SHARED=
9088 echo $ac_n "checking for long long""... $ac_c" 1>&6
9089 echo "configure:9090: checking for long long" >&5
9090 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9094 if test "$cross_compiling" = yes; then
9095 samba_cv_have_longlong=cross
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9101 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9105 samba_cv_have_longlong=yes
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9110 samba_cv_have_longlong=no
9117 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9118 if test x"$samba_cv_have_longlong" = x"yes"; then
9119 cat >> confdefs.h <<\EOF
9120 #define HAVE_LONGLONG 1
9126 # Check if the compiler supports the LL prefix on long long integers.
9129 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9130 echo "configure:9131: checking for LL suffix on long long integers" >&5
9131 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9132 echo $ac_n "(cached) $ac_c" 1>&6
9135 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure"
9137 #include "confdefs.h"
9140 long long i = 0x8000000000LL
9143 if { (eval echo configure:9144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9145 samba_cv_compiler_supports_ll=yes
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9150 samba_cv_compiler_supports_ll=no
9155 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9156 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define COMPILER_SUPPORTS_LL 1
9164 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9165 echo "configure:9166: checking for 64 bit off_t" >&5
9166 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9170 if test "$cross_compiling" = yes; then
9171 samba_cv_SIZEOF_OFF_T=cross
9173 cat > conftest.$ac_ext <<EOF
9174 #line 9175 "configure"
9175 #include "confdefs.h"
9177 #include <sys/stat.h>
9178 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9180 if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9182 samba_cv_SIZEOF_OFF_T=yes
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9187 samba_cv_SIZEOF_OFF_T=no
9194 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9195 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9196 cat >> confdefs.h <<\EOF
9197 #define SIZEOF_OFF_T 8
9202 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9203 echo "configure:9204: checking for off64_t" >&5
9204 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9208 if test "$cross_compiling" = yes; then
9209 samba_cv_HAVE_OFF64_T=cross
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9215 #if defined(HAVE_UNISTD_H)
9219 #include <sys/stat.h>
9220 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9224 samba_cv_HAVE_OFF64_T=yes
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9229 samba_cv_HAVE_OFF64_T=no
9236 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9237 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9238 cat >> confdefs.h <<\EOF
9239 #define HAVE_OFF64_T 1
9244 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9245 echo "configure:9246: checking for 64 bit ino_t" >&5
9246 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9250 if test "$cross_compiling" = yes; then
9251 samba_cv_SIZEOF_INO_T=cross
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9257 #include <sys/stat.h>
9258 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9262 samba_cv_SIZEOF_INO_T=yes
9264 echo "configure: failed program was:" >&5
9265 cat conftest.$ac_ext >&5
9267 samba_cv_SIZEOF_INO_T=no
9274 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9275 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9276 cat >> confdefs.h <<\EOF
9277 #define SIZEOF_INO_T 8
9282 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9283 echo "configure:9284: checking for ino64_t" >&5
9284 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9288 if test "$cross_compiling" = yes; then
9289 samba_cv_HAVE_INO64_T=cross
9291 cat > conftest.$ac_ext <<EOF
9292 #line 9293 "configure"
9293 #include "confdefs.h"
9295 #if defined(HAVE_UNISTD_H)
9299 #include <sys/stat.h>
9300 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9304 samba_cv_HAVE_INO64_T=yes
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9309 samba_cv_HAVE_INO64_T=no
9316 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9317 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9318 cat >> confdefs.h <<\EOF
9319 #define HAVE_INO64_T 1
9324 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9325 echo "configure:9326: checking for dev64_t" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_DEV64_T=cross
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #if defined(HAVE_UNISTD_H)
9341 #include <sys/stat.h>
9342 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9346 samba_cv_HAVE_DEV64_T=yes
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 samba_cv_HAVE_DEV64_T=no
9358 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9359 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9360 cat >> confdefs.h <<\EOF
9361 #define HAVE_DEV64_T 1
9366 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9367 echo "configure:9368: checking for struct dirent64" >&5
9368 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9369 echo $ac_n "(cached) $ac_c" 1>&6
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9376 #if defined(HAVE_UNISTD_H)
9379 #include <sys/types.h>
9385 if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9387 samba_cv_HAVE_STRUCT_DIRENT64=yes
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9392 samba_cv_HAVE_STRUCT_DIRENT64=no
9397 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9398 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9399 cat >> confdefs.h <<\EOF
9400 #define HAVE_STRUCT_DIRENT64 1
9405 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9406 echo "configure:9407: checking for major macro" >&5
9407 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9411 if test "$cross_compiling" = yes; then
9412 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9418 #if defined(HAVE_UNISTD_H)
9421 #include <sys/types.h>
9422 main() { dev_t dev; int i = major(dev); return 0; }
9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9426 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9431 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9438 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9439 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9440 cat >> confdefs.h <<\EOF
9441 #define HAVE_DEVICE_MAJOR_FN 1
9446 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9447 echo "configure:9448: checking for minor macro" >&5
9448 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9452 if test "$cross_compiling" = yes; then
9453 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9459 #if defined(HAVE_UNISTD_H)
9462 #include <sys/types.h>
9463 main() { dev_t dev; int i = minor(dev); return 0; }
9465 if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9467 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9469 echo "configure: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9472 samba_cv_HAVE_DEVICE_MINOR_FN=no
9479 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9480 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9481 cat >> confdefs.h <<\EOF
9482 #define HAVE_DEVICE_MINOR_FN 1
9487 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9488 echo "configure:9489: checking for unsigned char" >&5
9489 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9493 if test "$cross_compiling" = yes; then
9494 samba_cv_HAVE_UNSIGNED_CHAR=cross
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9500 main() { char c; c=250; exit((c > 0)?0:1); }
9502 if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9504 samba_cv_HAVE_UNSIGNED_CHAR=yes
9506 echo "configure: failed program was:" >&5
9507 cat conftest.$ac_ext >&5
9509 samba_cv_HAVE_UNSIGNED_CHAR=no
9516 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9517 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9518 cat >> confdefs.h <<\EOF
9519 #define HAVE_UNSIGNED_CHAR 1
9524 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9525 echo "configure:9526: checking for sin_len in sock" >&5
9526 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9530 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9534 #include <sys/socket.h>
9535 #include <netinet/in.h>
9537 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9540 if { (eval echo configure:9541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9542 samba_cv_HAVE_SOCK_SIN_LEN=yes
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9547 samba_cv_HAVE_SOCK_SIN_LEN=no
9552 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9553 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9554 cat >> confdefs.h <<\EOF
9555 #define HAVE_SOCK_SIN_LEN 1
9560 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9561 echo "configure:9562: checking whether seekdir returns void" >&5
9562 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9566 cat > conftest.$ac_ext <<EOF
9567 #line 9568 "configure"
9568 #include "confdefs.h"
9569 #include <sys/types.h>
9571 void seekdir(DIR *d, long loc) { return; }
9576 if { (eval echo configure:9577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9578 samba_cv_SEEKDIR_RETURNS_VOID=yes
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9583 samba_cv_SEEKDIR_RETURNS_VOID=no
9588 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9589 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9590 cat >> confdefs.h <<\EOF
9591 #define SEEKDIR_RETURNS_VOID 1
9596 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9597 echo "configure:9598: checking for __FILE__ macro" >&5
9598 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9599 echo $ac_n "(cached) $ac_c" 1>&6
9602 cat > conftest.$ac_ext <<EOF
9603 #line 9604 "configure"
9604 #include "confdefs.h"
9607 printf("%s\n", __FILE__);
9610 if { (eval echo configure:9611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9612 samba_cv_HAVE_FILE_MACRO=yes
9614 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9617 samba_cv_HAVE_FILE_MACRO=no
9622 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9623 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9624 cat >> confdefs.h <<\EOF
9625 #define HAVE_FILE_MACRO 1
9630 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9631 echo "configure:9632: checking for __FUNCTION__ macro" >&5
9632 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9636 cat > conftest.$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9641 printf("%s\n", __FUNCTION__);
9644 if { (eval echo configure:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9646 samba_cv_HAVE_FUNCTION_MACRO=yes
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9651 samba_cv_HAVE_FUNCTION_MACRO=no
9656 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9657 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9658 cat >> confdefs.h <<\EOF
9659 #define HAVE_FUNCTION_MACRO 1
9664 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9665 echo "configure:9666: checking if gettimeofday takes tz argument" >&5
9666 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9670 if test "$cross_compiling" = yes; then
9671 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9677 #include <sys/time.h>
9679 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9683 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9695 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9696 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9697 cat >> confdefs.h <<\EOF
9698 #define HAVE_GETTIMEOFDAY_TZ 1
9703 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9704 echo "configure:9705: checking for __va_copy" >&5
9705 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9720 samba_cv_HAVE_VA_COPY=yes
9722 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5
9725 samba_cv_HAVE_VA_COPY=no
9730 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9731 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9732 cat >> confdefs.h <<\EOF
9733 #define HAVE_VA_COPY 1
9738 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9739 echo "configure:9740: checking for C99 vsnprintf" >&5
9740 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9744 if test "$cross_compiling" = yes; then
9745 samba_cv_HAVE_C99_VSNPRINTF=cross
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9751 #include <sys/types.h>
9753 void foo(const char *format, ...) {
9758 va_start(ap, format);
9759 len = vsnprintf(buf, 0, format, ap);
9761 if (len != 5) exit(1);
9763 va_start(ap, format);
9764 len = vsnprintf(0, 0, format, ap);
9766 if (len != 5) exit(1);
9768 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9772 main() { foo("hello"); }
9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9777 samba_cv_HAVE_C99_VSNPRINTF=yes
9779 echo "configure: failed program was:" >&5
9780 cat conftest.$ac_ext >&5
9782 samba_cv_HAVE_C99_VSNPRINTF=no
9789 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9790 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9791 cat >> confdefs.h <<\EOF
9792 #define HAVE_C99_VSNPRINTF 1
9797 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9798 echo "configure:9799: checking for broken readdir" >&5
9799 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9800 echo $ac_n "(cached) $ac_c" 1>&6
9803 if test "$cross_compiling" = yes; then
9804 samba_cv_HAVE_BROKEN_READDIR=cross
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 #include <sys/types.h>
9811 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9812 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9813 di->d_name[0] == 0) exit(0); exit(1);}
9815 if { (eval echo configure:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9817 samba_cv_HAVE_BROKEN_READDIR=yes
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9822 samba_cv_HAVE_BROKEN_READDIR=no
9829 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9830 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9831 cat >> confdefs.h <<\EOF
9832 #define HAVE_BROKEN_READDIR 1
9837 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9838 echo "configure:9839: checking for utimbuf" >&5
9839 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9840 echo $ac_n "(cached) $ac_c" 1>&6
9843 cat > conftest.$ac_ext <<EOF
9844 #line 9845 "configure"
9845 #include "confdefs.h"
9846 #include <sys/types.h>
9849 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9852 if { (eval echo configure:9853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9854 samba_cv_HAVE_UTIMBUF=yes
9856 echo "configure: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9859 samba_cv_HAVE_UTIMBUF=no
9864 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9865 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9866 cat >> confdefs.h <<\EOF
9867 #define HAVE_UTIMBUF 1
9873 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9875 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9876 echo "configure:9877: checking for $ac_func" >&5
9877 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9878 echo $ac_n "(cached) $ac_c" 1>&6
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9882 "configure"
9882 #include "confdefs.h"
9883 /* System header to define __stub macros and hopefully few prototypes,
9884 which can conflict with char $ac_func(); below. */
9886 /* Override any gcc2 internal prototype to avoid an error. */
9887 /* We use char because int might match the return type of a gcc2
9888 builtin and then its argument prototype would still apply. */
9893 /* The GNU C library defines this for functions which it implements
9894 to always fail with ENOSYS. Some functions are actually named
9895 something starting with __ and the normal name is an alias. */
9896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9904 if { (eval echo configure:9905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9906 eval "ac_cv_func_$ac_func=yes"
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9911 eval "ac_cv_func_$ac_func=no"
9916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9917 echo "$ac_t""yes" 1>&6
9918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9919 cat >> confdefs.h <<EOF
9920 #define $ac_tr_func 1
9924 echo "$ac_t""no" 1>&6
9929 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9930 echo "configure:9931: checking for ut_name in utmp" >&5
9931 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9935 cat > conftest.$ac_ext <<EOF
9936 #line 9937 "configure"
9937 #include "confdefs.h"
9938 #include <sys/types.h>
9941 struct utmp ut; ut.ut_name[0] = 'a';
9944 if { (eval echo configure:9945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9946 samba_cv_HAVE_UT_UT_NAME=yes
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9951 samba_cv_HAVE_UT_UT_NAME=no
9956 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9957 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9958 cat >> confdefs.h <<\EOF
9959 #define HAVE_UT_UT_NAME 1
9964 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9965 echo "configure:9966: checking for ut_user in utmp" >&5
9966 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 #include <sys/types.h>
9976 struct utmp ut; ut.ut_user[0] = 'a';
9979 if { (eval echo configure:9980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9981 samba_cv_HAVE_UT_UT_USER=yes
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9986 samba_cv_HAVE_UT_UT_USER=no
9991 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9992 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9993 cat >> confdefs.h <<\EOF
9994 #define HAVE_UT_UT_USER 1
9999 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10000 echo "configure:10001: checking for ut_id in utmp" >&5
10001 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 #include <sys/types.h>
10011 struct utmp ut; ut.ut_id[0] = 'a';
10014 if { (eval echo configure:10015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10016 samba_cv_HAVE_UT_UT_ID=yes
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10021 samba_cv_HAVE_UT_UT_ID=no
10026 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10027 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10028 cat >> confdefs.h <<\EOF
10029 #define HAVE_UT_UT_ID 1
10034 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10035 echo "configure:10036: checking for ut_host in utmp" >&5
10036 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10037 echo $ac_n "(cached) $ac_c" 1>&6
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include <sys/types.h>
10046 struct utmp ut; ut.ut_host[0] = 'a';
10049 if { (eval echo configure:10050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10051 samba_cv_HAVE_UT_UT_HOST=yes
10053 echo "configure: failed program was:" >&5
10054 cat conftest.$ac_ext >&5
10056 samba_cv_HAVE_UT_UT_HOST=no
10061 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10062 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10063 cat >> confdefs.h <<\EOF
10064 #define HAVE_UT_UT_HOST 1
10069 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10070 echo "configure:10071: checking for ut_time in utmp" >&5
10071 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include <sys/types.h>
10081 struct utmp ut; time_t t; ut.ut_time = t;
10084 if { (eval echo configure:10085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10086 samba_cv_HAVE_UT_UT_TIME=yes
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 samba_cv_HAVE_UT_UT_TIME=no
10096 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10097 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_UT_UT_TIME 1
10104 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10105 echo "configure:10106: checking for ut_tv in utmp" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10110 cat > conftest.$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 #include <sys/types.h>
10116 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10119 if { (eval echo configure:10120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10121 samba_cv_HAVE_UT_UT_TV=yes
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10126 samba_cv_HAVE_UT_UT_TV=no
10131 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10132 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_UT_UT_TV 1
10139 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10140 echo "configure:10141: checking for ut_type in utmp" >&5
10141 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 #include <sys/types.h>
10151 struct utmp ut; ut.ut_type = 0;
10154 if { (eval echo configure:10155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10156 samba_cv_HAVE_UT_UT_TYPE=yes
10158 echo "configure: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10161 samba_cv_HAVE_UT_UT_TYPE=no
10166 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10167 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_UT_UT_TYPE 1
10174 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10175 echo "configure:10176: checking for ut_pid in utmp" >&5
10176 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include <sys/types.h>
10186 struct utmp ut; ut.ut_pid = 0;
10189 if { (eval echo configure:10190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10191 samba_cv_HAVE_UT_UT_PID=yes
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10196 samba_cv_HAVE_UT_UT_PID=no
10201 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10202 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10203 cat >> confdefs.h <<\EOF
10204 #define HAVE_UT_UT_PID 1
10209 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10210 echo "configure:10211: checking for ut_exit in utmp" >&5
10211 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <sys/types.h>
10221 struct utmp ut; ut.ut_exit.e_exit = 0;
10224 if { (eval echo configure:10225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10226 samba_cv_HAVE_UT_UT_EXIT=yes
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10231 samba_cv_HAVE_UT_UT_EXIT=no
10236 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10237 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10238 cat >> confdefs.h <<\EOF
10239 #define HAVE_UT_UT_EXIT 1
10244 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10245 echo "configure:10246: checking for ut_addr in utmp" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 #include <sys/types.h>
10256 struct utmp ut; ut.ut_addr = 0;
10259 if { (eval echo configure:10260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10261 samba_cv_HAVE_UT_UT_ADDR=yes
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 samba_cv_HAVE_UT_UT_ADDR=no
10271 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10272 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_UT_UT_ADDR 1
10279 if test x$ac_cv_func_pututline = xyes ; then
10280 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10281 echo "configure:10282: checking whether pututline returns pointer" >&5
10282 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10286 cat > conftest.$ac_ext <<EOF
10287 #line 10288 "configure"
10288 #include "confdefs.h"
10289 #include <sys/types.h>
10292 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10295 if { (eval echo configure:10296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10297 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10299 echo "configure: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10302 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10307 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10308 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10309 cat >> confdefs.h <<\EOF
10310 #define PUTUTLINE_RETURNS_UTMP 1
10316 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10317 echo "configure:10318: checking for ut_syslen in utmpx" >&5
10318 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10325 #include <sys/types.h>
10328 struct utmpx ux; ux.ut_syslen = 0;
10331 if { (eval echo configure:10332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10333 samba_cv_HAVE_UX_UT_SYSLEN=yes
10335 echo "configure: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10338 samba_cv_HAVE_UX_UT_SYSLEN=no
10343 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10344 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10345 cat >> confdefs.h <<\EOF
10346 #define HAVE_UX_UT_SYSLEN 1
10352 #################################################
10353 # check for libiconv support
10354 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10355 echo "configure:10356: checking whether to use libiconv" >&5
10356 # Check whether --with-libiconv or --without-libiconv was given.
10357 if test "${with_libiconv+set}" = set; then
10358 withval="$with_libiconv"
10361 echo "$ac_t""no" 1>&6
10364 echo "$ac_t""yes" 1>&6
10365 CFLAGS="$CFLAGS -I$withval/include"
10366 LDFLAGS="$LDFLAGS -L$withval/lib"
10367 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10368 echo "configure:10369: checking for iconv_open in -liconv" >&5
10369 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10371 echo $ac_n "(cached) $ac_c" 1>&6
10373 ac_save_LIBS="$LIBS"
10374 LIBS="-liconv $LIBS"
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 /* Override any gcc2 internal prototype to avoid an error. */
10379 /* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10387 if { (eval echo configure:10388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 eval "ac_cv_lib_$ac_lib_var=yes"
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10394 eval "ac_cv_lib_$ac_lib_var=no"
10397 LIBS="$ac_save_LIBS"
10400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10401 echo "$ac_t""yes" 1>&6
10402 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10404 cat >> confdefs.h <<EOF
10405 #define $ac_tr_lib 1
10408 LIBS="-liconv $LIBS"
10411 echo "$ac_t""no" 1>&6
10414 cat >> confdefs.h <<EOF
10415 #define WITH_LIBICONV "${withval}"
10421 echo "$ac_t""no" 1>&6
10428 # check for iconv in libc
10429 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10430 echo "configure:10431: checking for working iconv" >&5
10431 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10432 echo $ac_n "(cached) $ac_c" 1>&6
10435 if test "$cross_compiling" = yes; then
10436 samba_cv_HAVE_NATIVE_ICONV=cross
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10444 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10445 if (cd == 0 || cd == (iconv_t)-1) return -1;
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10452 samba_cv_HAVE_NATIVE_ICONV=yes
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10457 samba_cv_HAVE_NATIVE_ICONV=no
10464 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10465 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10466 cat >> confdefs.h <<\EOF
10467 #define HAVE_NATIVE_ICONV 1
10473 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10474 echo "configure:10475: checking for Linux kernel oplocks" >&5
10475 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10479 if test "$cross_compiling" = yes; then
10480 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10486 #include <sys/types.h>
10489 #define F_GETLEASE 1025
10492 int fd = open("/dev/null", O_RDONLY);
10493 return fcntl(fd, F_GETLEASE, 0) == -1;
10497 if { (eval echo configure:10498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10499 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10504 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10511 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10512 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10513 cat >> confdefs.h <<\EOF
10514 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10519 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10520 echo "configure:10521: checking for kernel change notify support" >&5
10521 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10522 echo $ac_n "(cached) $ac_c" 1>&6
10525 if test "$cross_compiling" = yes; then
10526 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10528 cat > conftest.$ac_ext <<EOF
10529 #line 10530 "configure"
10530 #include "confdefs.h"
10532 #include <sys/types.h>
10534 #include <signal.h>
10536 #define F_NOTIFY 1026
10539 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10545 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10550 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10557 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10558 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10559 cat >> confdefs.h <<\EOF
10560 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10565 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10566 echo "configure:10567: checking for kernel share modes" >&5
10567 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10571 if test "$cross_compiling" = yes; then
10572 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10574 cat > conftest.$ac_ext <<EOF
10575 #line 10576 "configure"
10576 #include "confdefs.h"
10578 #include <sys/types.h>
10580 #include <signal.h>
10581 #include <sys/file.h>
10583 #define LOCK_MAND 32
10584 #define LOCK_READ 64
10587 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10593 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10598 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10605 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10606 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10607 cat >> confdefs.h <<\EOF
10608 #define HAVE_KERNEL_SHARE_MODES 1
10616 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10617 echo "configure:10618: checking for IRIX kernel oplock type definitions" >&5
10618 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10619 echo $ac_n "(cached) $ac_c" 1>&6
10622 cat > conftest.$ac_ext <<EOF
10623 #line 10624 "configure"
10624 #include "confdefs.h"
10625 #include <sys/types.h>
10628 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10631 if { (eval echo configure:10632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10633 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10643 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10644 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10645 cat >> confdefs.h <<\EOF
10646 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10651 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10652 echo "configure:10653: checking for irix specific capabilities" >&5
10653 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10657 if test "$cross_compiling" = yes; then
10658 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10660 cat > conftest.$ac_ext <<EOF
10661 #line 10662 "configure"
10662 #include "confdefs.h"
10663 #include <sys/types.h>
10664 #include <sys/capability.h>
10667 if ((cap = cap_get_proc()) == NULL)
10669 cap->cap_effective |= CAP_NETWORK_MGT;
10670 cap->cap_inheritable |= CAP_NETWORK_MGT;
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10678 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10683 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10690 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10691 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10692 cat >> confdefs.h <<\EOF
10693 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10699 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10700 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10703 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10704 echo "configure:10705: checking for int16 typedef included by rpc/rpc.h" >&5
10705 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10709 cat > conftest.$ac_ext <<EOF
10710 #line 10711 "configure"
10711 #include "confdefs.h"
10712 #include <sys/types.h>
10713 #if defined(HAVE_RPC_RPC_H)
10714 #include <rpc/rpc.h>
10720 if { (eval echo configure:10721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10722 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10724 echo "configure: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10727 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10732 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10733 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10734 cat >> confdefs.h <<\EOF
10735 #define HAVE_INT16_FROM_RPC_RPC_H 1
10740 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10741 echo "configure:10742: checking for uint16 typedef included by rpc/rpc.h" >&5
10742 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749 #include <sys/types.h>
10750 #if defined(HAVE_RPC_RPC_H)
10751 #include <rpc/rpc.h>
10757 if { (eval echo configure:10758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10759 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10764 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10769 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10770 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10771 cat >> confdefs.h <<\EOF
10772 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10777 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10778 echo "configure:10779: checking for int32 typedef included by rpc/rpc.h" >&5
10779 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10786 #include <sys/types.h>
10787 #if defined(HAVE_RPC_RPC_H)
10788 #include <rpc/rpc.h>
10794 if { (eval echo configure:10795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10796 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10801 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10806 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10807 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10808 cat >> confdefs.h <<\EOF
10809 #define HAVE_INT32_FROM_RPC_RPC_H 1
10814 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10815 echo "configure:10816: checking for uint32 typedef included by rpc/rpc.h" >&5
10816 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10817 echo $ac_n "(cached) $ac_c" 1>&6
10820 cat > conftest.$ac_ext <<EOF
10821 #line 10822 "configure"
10822 #include "confdefs.h"
10823 #include <sys/types.h>
10824 #if defined(HAVE_RPC_RPC_H)
10825 #include <rpc/rpc.h>
10831 if { (eval echo configure:10832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10833 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10838 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10843 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10844 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10845 cat >> confdefs.h <<\EOF
10846 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10852 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10853 echo "configure:10854: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10854 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
10858 cat > conftest.$ac_ext <<EOF
10859 #line 10860 "configure"
10860 #include "confdefs.h"
10861 #include <sys/types.h>
10862 #ifdef HAVE_SYS_SECURITY_H
10863 #include <sys/security.h>
10865 #endif /* HAVE_SYS_SECURITY_H */
10866 #if defined(HAVE_RPC_RPC_H)
10867 #include <rpc/rpc.h>
10873 if { (eval echo configure:10874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10875 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10880 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10885 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10886 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10887 cat >> confdefs.h <<\EOF
10888 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10893 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10894 echo "configure:10895: checking for test routines" >&5
10895 if test "$cross_compiling" = yes; then
10896 echo "configure: warning: cannot run when cross-compiling" 1>&2
10898 cat > conftest.$ac_ext <<EOF
10899 #line 10900 "configure"
10900 #include "confdefs.h"
10901 #include "${srcdir-.}/tests/trivial.c"
10903 if { (eval echo configure:10904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10905 echo "$ac_t""yes" 1>&6
10907 echo "configure: failed program was:" >&5
10908 cat conftest.$ac_ext >&5
10910 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10916 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10917 echo "configure:10918: checking for ftruncate extend" >&5
10918 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10919 echo $ac_n "(cached) $ac_c" 1>&6
10922 if test "$cross_compiling" = yes; then
10923 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10928 #include "${srcdir-.}/tests/ftruncate.c"
10930 if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10932 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10937 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10944 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10945 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10946 cat >> confdefs.h <<\EOF
10947 #define HAVE_FTRUNCATE_EXTEND 1
10952 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10953 echo "configure:10954: checking for AF_LOCAL socket support" >&5
10954 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10958 if test "$cross_compiling" = yes; then
10959 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10964 #include "${srcdir-.}/tests/unixsock.c"
10966 if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10968 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10973 samba_cv_HAVE_WORKING_AF_LOCAL=no
10980 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10981 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10983 cat >> confdefs.h <<\EOF
10984 #define HAVE_WORKING_AF_LOCAL 1
10989 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10990 echo "configure:10991: checking for broken getgroups" >&5
10991 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10992 echo $ac_n "(cached) $ac_c" 1>&6
10995 if test "$cross_compiling" = yes; then
10996 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10998 cat > conftest.$ac_ext <<EOF
10999 #line 11000 "configure"
11000 #include "confdefs.h"
11001 #include "${srcdir-.}/tests/getgroups.c"
11003 if { (eval echo configure:11004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11005 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11007 echo "configure: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11010 samba_cv_HAVE_BROKEN_GETGROUPS=no
11017 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11018 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11019 cat >> confdefs.h <<\EOF
11020 #define HAVE_BROKEN_GETGROUPS 1
11025 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11026 echo "configure:11027: checking whether getpass should be replaced" >&5
11027 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11031 SAVE_CPPFLAGS="$CPPFLAGS"
11032 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11037 #define REPLACE_GETPASS 1
11038 #define NO_CONFIG_H 1
11039 #define main dont_declare_main
11040 #include "${srcdir-.}/lib/getsmbpass.c"
11047 if { (eval echo configure:11048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11049 samba_cv_REPLACE_GETPASS=yes
11051 echo "configure: failed program was:" >&5
11052 cat conftest.$ac_ext >&5
11054 samba_cv_REPLACE_GETPASS=no
11057 CPPFLAGS="$SAVE_CPPFLAGS"
11061 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11062 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11063 cat >> confdefs.h <<\EOF
11064 #define REPLACE_GETPASS 1
11069 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11070 echo "configure:11071: checking for broken inet_ntoa" >&5
11071 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11072 echo $ac_n "(cached) $ac_c" 1>&6
11075 if test "$cross_compiling" = yes; then
11076 samba_cv_REPLACE_INET_NTOA=cross
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11083 #include <sys/types.h>
11084 #include <netinet/in.h>
11085 #ifdef HAVE_ARPA_INET_H
11086 #include <arpa/inet.h>
11088 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11089 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11090 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11093 if { (eval echo configure:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11095 samba_cv_REPLACE_INET_NTOA=yes
11097 echo "configure: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11100 samba_cv_REPLACE_INET_NTOA=no
11107 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11108 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11109 cat >> confdefs.h <<\EOF
11110 #define REPLACE_INET_NTOA 1
11115 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11116 echo "configure:11117: checking for secure mkstemp" >&5
11117 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11118 echo $ac_n "(cached) $ac_c" 1>&6
11121 if test "$cross_compiling" = yes; then
11122 samba_cv_HAVE_SECURE_MKSTEMP=cross
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 #include <stdlib.h>
11128 #include <sys/types.h>
11129 #include <sys/stat.h>
11130 #include <unistd.h>
11133 char tpl[20]="/tmp/test.XXXXXX";
11134 int fd = mkstemp(tpl);
11135 if (fd == -1) exit(1);
11137 if (fstat(fd, &st) != 0) exit(1);
11138 if ((st.st_mode & 0777) != 0600) exit(1);
11142 if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11144 samba_cv_HAVE_SECURE_MKSTEMP=yes
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 samba_cv_HAVE_SECURE_MKSTEMP=no
11156 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11157 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11158 cat >> confdefs.h <<\EOF
11159 #define HAVE_SECURE_MKSTEMP 1
11164 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11165 echo "configure:11166: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11166 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11170 if test "$cross_compiling" = yes; then
11171 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11176 #include <unistd.h>
11177 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11179 if { (eval echo configure:11180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11181 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11183 echo "configure: failed program was:" >&5
11184 cat conftest.$ac_ext >&5
11186 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11193 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11194 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11195 cat >> confdefs.h <<\EOF
11196 #define SYSCONF_SC_NGROUPS_MAX 1
11201 echo $ac_n "checking for root""... $ac_c" 1>&6
11202 echo "configure:11203: checking for root" >&5
11203 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11207 if test "$cross_compiling" = yes; then
11208 samba_cv_HAVE_ROOT=cross
11210 cat > conftest.$ac_ext <<EOF
11211 #line 11212 "configure"
11212 #include "confdefs.h"
11213 main() { exit(getuid() != 0); }
11215 if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11217 samba_cv_HAVE_ROOT=yes
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11222 samba_cv_HAVE_ROOT=no
11229 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11230 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11231 cat >> confdefs.h <<\EOF
11232 #define HAVE_ROOT 1
11236 echo "configure: warning: running as non-root will disable some tests" 1>&2
11240 # look for a method of finding the list of network interfaces
11242 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11243 echo "configure:11244: checking for iface AIX" >&5
11244 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11248 if test "$cross_compiling" = yes; then
11249 samba_cv_HAVE_IFACE_AIX=cross
11251 cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11255 #define HAVE_IFACE_AIX 1
11256 #define AUTOCONF_TEST 1
11257 #include "confdefs.h"
11258 #include "${srcdir-.}/lib/interfaces.c"
11260 if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11262 samba_cv_HAVE_IFACE_AIX=yes
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11267 samba_cv_HAVE_IFACE_AIX=no
11274 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11275 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11276 iface=yes;cat >> confdefs.h <<\EOF
11277 #define HAVE_IFACE_AIX 1
11282 if test $iface = no; then
11283 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11284 echo "configure:11285: checking for iface ifconf" >&5
11285 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11286 echo $ac_n "(cached) $ac_c" 1>&6
11289 if test "$cross_compiling" = yes; then
11290 samba_cv_HAVE_IFACE_IFCONF=cross
11292 cat > conftest.$ac_ext <<EOF
11293 #line 11294 "configure"
11294 #include "confdefs.h"
11296 #define HAVE_IFACE_IFCONF 1
11297 #define AUTOCONF_TEST 1
11298 #include "confdefs.h"
11299 #include "${srcdir-.}/lib/interfaces.c"
11301 if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11303 samba_cv_HAVE_IFACE_IFCONF=yes
11305 echo "configure: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11308 samba_cv_HAVE_IFACE_IFCONF=no
11315 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11316 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11317 iface=yes;cat >> confdefs.h <<\EOF
11318 #define HAVE_IFACE_IFCONF 1
11324 if test $iface = no; then
11325 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11326 echo "configure:11327: checking for iface ifreq" >&5
11327 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11328 echo $ac_n "(cached) $ac_c" 1>&6
11331 if test "$cross_compiling" = yes; then
11332 samba_cv_HAVE_IFACE_IFREQ=cross
11334 cat > conftest.$ac_ext <<EOF
11335 #line 11336 "configure"
11336 #include "confdefs.h"
11338 #define HAVE_IFACE_IFREQ 1
11339 #define AUTOCONF_TEST 1
11340 #include "confdefs.h"
11341 #include "${srcdir-.}/lib/interfaces.c"
11343 if { (eval echo configure:11344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11345 samba_cv_HAVE_IFACE_IFREQ=yes
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11350 samba_cv_HAVE_IFACE_IFREQ=no
11357 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11358 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11359 iface=yes;cat >> confdefs.h <<\EOF
11360 #define HAVE_IFACE_IFREQ 1
11367 ################################################
11368 # look for a method of setting the effective uid
11370 if test $seteuid = no; then
11371 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11372 echo "configure:11373: checking for setresuid" >&5
11373 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11374 echo $ac_n "(cached) $ac_c" 1>&6
11377 if test "$cross_compiling" = yes; then
11378 samba_cv_USE_SETRESUID=cross
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11382 "configure"
11382 #include "confdefs.h"
11384 #define AUTOCONF_TEST 1
11385 #define USE_SETRESUID 1
11386 #include "confdefs.h"
11387 #include "${srcdir-.}/lib/util_sec.c"
11389 if { (eval echo configure:11390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11391 samba_cv_USE_SETRESUID=yes
11393 echo "configure: failed program was:" >&5
11394 cat conftest.$ac_ext >&5
11396 samba_cv_USE_SETRESUID=no
11403 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11404 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11405 seteuid=yes;cat >> confdefs.h <<\EOF
11406 #define USE_SETRESUID 1
11413 if test $seteuid = no; then
11414 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11415 echo "configure:11416: checking for setreuid" >&5
11416 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11420 if test "$cross_compiling" = yes; then
11421 samba_cv_USE_SETREUID=cross
11423 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11427 #define AUTOCONF_TEST 1
11428 #define USE_SETREUID 1
11429 #include "confdefs.h"
11430 #include "${srcdir-.}/lib/util_sec.c"
11432 if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11434 samba_cv_USE_SETREUID=yes
11436 echo "configure: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11439 samba_cv_USE_SETREUID=no
11446 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11447 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11448 seteuid=yes;cat >> confdefs.h <<\EOF
11449 #define USE_SETREUID 1
11455 if test $seteuid = no; then
11456 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11457 echo "configure:11458: checking for seteuid" >&5
11458 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11459 echo $ac_n "(cached) $ac_c" 1>&6
11462 if test "$cross_compiling" = yes; then
11463 samba_cv_USE_SETEUID=cross
11465 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure"
11467 #include "confdefs.h"
11469 #define AUTOCONF_TEST 1
11470 #define USE_SETEUID 1
11471 #include "confdefs.h"
11472 #include "${srcdir-.}/lib/util_sec.c"
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11476 samba_cv_USE_SETEUID=yes
11478 echo "configure: failed program was:" >&5
11479 cat conftest.$ac_ext >&5
11481 samba_cv_USE_SETEUID=no
11488 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11489 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11490 seteuid=yes;cat >> confdefs.h <<\EOF
11491 #define USE_SETEUID 1
11497 if test $seteuid = no; then
11498 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11499 echo "configure:11500: checking for setuidx" >&5
11500 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11501 echo $ac_n "(cached) $ac_c" 1>&6
11504 if test "$cross_compiling" = yes; then
11505 samba_cv_USE_SETUIDX=cross
11507 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11511 #define AUTOCONF_TEST 1
11512 #define USE_SETUIDX 1
11513 #include "confdefs.h"
11514 #include "${srcdir-.}/lib/util_sec.c"
11516 if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11518 samba_cv_USE_SETUIDX=yes
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11523 samba_cv_USE_SETUIDX=no
11530 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11531 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11532 seteuid=yes;cat >> confdefs.h <<\EOF
11533 #define USE_SETUIDX 1
11540 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11541 echo "configure:11542: checking for working mmap" >&5
11542 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11546 if test "$cross_compiling" = yes; then
11547 samba_cv_HAVE_MMAP=cross
11549 cat > conftest.$ac_ext <<EOF
11550 #line 11551 "configure"
11551 #include "confdefs.h"
11552 #include "${srcdir-.}/tests/shared_mmap.c"
11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11556 samba_cv_HAVE_MMAP=yes
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11561 samba_cv_HAVE_MMAP=no
11568 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11569 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11570 cat >> confdefs.h <<\EOF
11571 #define HAVE_MMAP 1
11576 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11577 echo "configure:11578: checking for ftruncate needs root" >&5
11578 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11579 echo $ac_n "(cached) $ac_c" 1>&6
11582 if test "$cross_compiling" = yes; then
11583 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11588 #include "${srcdir-.}/tests/ftruncroot.c"
11590 if { (eval echo configure:11591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11592 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11594 echo "configure: failed program was:" >&5
11595 cat conftest.$ac_ext >&5
11597 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11604 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11605 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11606 cat >> confdefs.h <<\EOF
11607 #define FTRUNCATE_NEEDS_ROOT 1
11612 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11613 echo "configure:11614: checking for fcntl locking" >&5
11614 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11615 echo $ac_n "(cached) $ac_c" 1>&6
11618 if test "$cross_compiling" = yes; then
11619 samba_cv_HAVE_FCNTL_LOCK=cross
11621 cat > conftest.$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 #include "${srcdir-.}/tests/fcntl_lock.c"
11626 if { (eval echo configure:11627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11628 samba_cv_HAVE_FCNTL_LOCK=yes
11630 echo "configure: failed program was:" >&5
11631 cat conftest.$ac_ext >&5
11633 samba_cv_HAVE_FCNTL_LOCK=no
11640 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11641 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11642 cat >> confdefs.h <<\EOF
11643 #define HAVE_FCNTL_LOCK 1
11648 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11649 echo "configure:11650: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11650 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11651 echo $ac_n "(cached) $ac_c" 1>&6
11654 if test "$cross_compiling" = yes; then
11655 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11657 cat > conftest.$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11660 #include "${srcdir-.}/tests/fcntl_lock64.c"
11662 if { (eval echo configure:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11664 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11669 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11676 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11677 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11678 cat >> confdefs.h <<\EOF
11679 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11686 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11687 echo "configure:11688: checking for 64 bit fcntl locking" >&5
11688 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11692 if test "$cross_compiling" = yes; then
11693 samba_cv_HAVE_STRUCT_FLOCK64=cross
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11699 #if defined(HAVE_UNISTD_H)
11700 #include <unistd.h>
11703 #include <stdlib.h>
11705 #ifdef HAVE_FCNTL_H
11709 #ifdef HAVE_SYS_FCNTL_H
11710 #include <sys/fcntl.h>
11712 main() { struct flock64 fl64;
11713 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11720 if { (eval echo configure:11721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11722 samba_cv_HAVE_STRUCT_FLOCK64=yes
11724 echo "configure: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11727 samba_cv_HAVE_STRUCT_FLOCK64=no
11734 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11736 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11737 cat >> confdefs.h <<\EOF
11738 #define HAVE_STRUCT_FLOCK64 1
11744 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11745 echo "configure:11746: checking for st_blocks in struct stat" >&5
11746 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11747 echo $ac_n "(cached) $ac_c" 1>&6
11750 cat > conftest.$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11753 #include <sys/types.h>
11754 #include <sys/stat.h>
11755 #include <unistd.h>
11757 struct stat st; st.st_blocks = 0;
11760 if { (eval echo configure:11761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11762 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11764 echo "configure: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11767 samba_cv_HAVE_STAT_ST_BLOCKS=no
11772 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11773 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11774 cat >> confdefs.h <<\EOF
11775 #define HAVE_STAT_ST_BLOCKS 1
11782 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11783 echo "configure:11784: checking for broken RedHat 7.2 system header files" >&5
11784 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11792 #ifdef HAVE_SYS_VFS_H
11793 #include <sys/vfs.h>
11795 #ifdef HAVE_SYS_CAPABILITY_H
11796 #include <sys/capability.h>
11803 if { (eval echo configure:11804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11805 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11810 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11815 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11816 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11817 cat >> confdefs.h <<\EOF
11818 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11825 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11826 echo "configure:11827: checking for broken nisplus include files" >&5
11827 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11828 echo $ac_n "(cached) $ac_c" 1>&6
11831 cat > conftest.$ac_ext <<EOF
11832 #line 11833 "configure"
11833 #include "confdefs.h"
11834 #include <sys/acl.h>
11835 #if defined(HAVE_RPCSVC_NIS_H)
11836 #include <rpcsvc/nis.h>
11842 if { (eval echo configure:11843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11844 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11849 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11854 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11855 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11856 cat >> confdefs.h <<\EOF
11857 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11863 #################################################
11864 # check for smbwrapper support
11865 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11866 echo "configure:11867: checking whether to use smbwrapper" >&5
11867 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11868 if test "${with_smbwrapper+set}" = set; then
11869 withval="$with_smbwrapper"
11872 echo "$ac_t""yes" 1>&6
11873 cat >> confdefs.h <<\EOF
11874 #define WITH_SMBWRAPPER 1
11877 WRAPPROG="bin/smbsh"
11878 WRAP="bin/smbwrapper.$SHLIBEXT"
11880 if test x$ATTEMPT_WRAP32_BUILD = x; then
11883 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11886 # Conditions under which smbwrapper should not be built.
11888 if test x$PICFLAG = x; then
11889 echo No support for PIC code - disabling smbwrapper and smbsh
11893 elif test x$ac_cv_func_syscall = xno; then
11894 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11901 echo "$ac_t""no" 1>&6
11905 echo "$ac_t""no" 1>&6
11910 #################################################
11911 # check for AFS clear-text auth support
11912 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11913 echo "configure:11914: checking whether to use AFS clear-text auth" >&5
11914 # Check whether --with-afs or --without-afs was given.
11915 if test "${with_afs+set}" = set; then
11916 withval="$with_afs"
11919 echo "$ac_t""yes" 1>&6
11920 cat >> confdefs.h <<\EOF
11926 echo "$ac_t""no" 1>&6
11930 echo "$ac_t""no" 1>&6
11936 #################################################
11937 # check for the DFS clear-text auth system
11938 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11939 echo "configure:11940: checking whether to use DFS clear-text auth" >&5
11940 # Check whether --with-dfs or --without-dfs was given.
11941 if test "${with_dfs+set}" = set; then
11942 withval="$with_dfs"
11945 echo "$ac_t""yes" 1>&6
11946 cat >> confdefs.h <<\EOF
11952 echo "$ac_t""no" 1>&6
11956 echo "$ac_t""no" 1>&6
11962 #################################################
11963 # see if this box has the RedHat location for kerberos
11964 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11965 echo "configure:11966: checking for /usr/kerberos" >&5
11966 if test -d /usr/kerberos; then
11967 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11968 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11969 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11970 echo "$ac_t""yes" 1>&6
11972 echo "$ac_t""no" 1>&6
11975 #################################################
11976 # check for location of Kerberos 5 install
11977 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11978 echo "configure:11979: checking for kerberos 5 install path" >&5
11979 # Check whether --with-krb5 or --without-krb5 was given.
11980 if test "${with_krb5+set}" = set; then
11981 withval="$with_krb5"
11984 echo "$ac_t""no" 1>&6
11987 echo "$ac_t""yes" 1>&6
11988 LIBS="$LIBS -lkrb5"
11989 CFLAGS="$CFLAGS -I$withval/include"
11990 CPPFLAGS="$CPPFLAGS -I$withval/include"
11991 LDFLAGS="$LDFLAGS -L$withval/lib"
11995 echo "$ac_t""no" 1>&6
12000 # now check for krb5.h. Some systems have the libraries without the headers!
12001 # note that this check is done here to allow for different kerberos
12003 for ac_hdr in krb5.h
12005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12007 echo "configure:12008: checking for $ac_hdr" >&5
12008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12009 echo $ac_n "(cached) $ac_c" 1>&6
12011 cat > conftest.$ac_ext <<EOF
12012 #line 12013 "configure"
12013 #include "confdefs.h"
12016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12017 { (eval echo configure:12018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12019 if test -z "$ac_err"; then
12021 eval "ac_cv_header_$ac_safe=yes"
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12027 eval "ac_cv_header_$ac_safe=no"
12031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12032 echo "$ac_t""yes" 1>&6
12033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12034 cat >> confdefs.h <<EOF
12035 #define $ac_tr_hdr 1
12039 echo "$ac_t""no" 1>&6
12044 # now check for gssapi headers. This is also done here to allow for
12045 # different kerberos include paths
12046 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12050 echo "configure:12051: checking for $ac_hdr" >&5
12051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12052 echo $ac_n "(cached) $ac_c" 1>&6
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12060 { (eval echo configure:12061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12062 if test -z "$ac_err"; then
12064 eval "ac_cv_header_$ac_safe=yes"
12067 echo "configure: failed program was:" >&5
12068 cat conftest.$ac_ext >&5
12070 eval "ac_cv_header_$ac_safe=no"
12074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12075 echo "$ac_t""yes" 1>&6
12076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12077 cat >> confdefs.h <<EOF
12078 #define $ac_tr_hdr 1
12082 echo "$ac_t""no" 1>&6
12087 ##################################################################
12088 # we might need the k5crypto and com_err libraries on some systems
12089 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12090 echo "configure:12091: checking for _et_list in -lcom_err" >&5
12091 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12093 echo $ac_n "(cached) $ac_c" 1>&6
12095 ac_save_LIBS="$LIBS"
12096 LIBS="-lcom_err $LIBS"
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 /* Override any gcc2 internal prototype to avoid an error. */
12101 /* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12111 eval "ac_cv_lib_$ac_lib_var=yes"
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12116 eval "ac_cv_lib_$ac_lib_var=no"
12119 LIBS="$ac_save_LIBS"
12122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12123 echo "$ac_t""yes" 1>&6
12124 LIBS="$LIBS -lcom_err"
12126 echo "$ac_t""no" 1>&6
12129 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12130 echo "configure:12131: checking for krb5_encrypt_data in -lk5crypto" >&5
12131 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12135 ac_save_LIBS="$LIBS"
12136 LIBS="-lk5crypto $LIBS"
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12140 /* Override any gcc2 internal prototype to avoid an error. */
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143 char krb5_encrypt_data();
12146 krb5_encrypt_data()
12149 if { (eval echo configure:12150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12151 eval "ac_cv_lib_$ac_lib_var=yes"
12153 echo "configure: failed program was:" >&5
12154 cat conftest.$ac_ext >&5
12156 eval "ac_cv_lib_$ac_lib_var=no"
12159 LIBS="$ac_save_LIBS"
12162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 LIBS="$LIBS -lk5crypto"
12166 echo "$ac_t""no" 1>&6
12170 ########################################################
12171 # now see if we can find the krb5 libs in standard paths
12172 # or as specified above
12173 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12174 echo "configure:12175: checking for krb5_mk_req_extended in -lkrb5" >&5
12175 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12179 ac_save_LIBS="$LIBS"
12180 LIBS="-lkrb5 $LIBS"
12181 cat > conftest.$ac_ext <<EOF
12182 #line 12183 "configure"
12183 #include "confdefs.h"
12184 /* Override any gcc2 internal prototype to avoid an error. */
12185 /* We use char because int might match the return type of a gcc2
12186 builtin and then its argument prototype would still apply. */
12187 char krb5_mk_req_extended();
12190 krb5_mk_req_extended()
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12195 eval "ac_cv_lib_$ac_lib_var=yes"
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 eval "ac_cv_lib_$ac_lib_var=no"
12203 LIBS="$ac_save_LIBS"
12206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12207 echo "$ac_t""yes" 1>&6
12208 LIBS="$LIBS -lkrb5";
12209 cat >> confdefs.h <<\EOF
12210 #define HAVE_KRB5 1
12214 echo "$ac_t""no" 1>&6
12218 ########################################################
12219 # now see if we can find the gssapi libs in standard paths
12220 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12221 echo "configure:12222: checking for gss_display_status in -lgssapi_krb5" >&5
12222 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12224 echo $ac_n "(cached) $ac_c" 1>&6
12226 ac_save_LIBS="$LIBS"
12227 LIBS="-lgssapi_krb5 $LIBS"
12228 cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231 /* Override any gcc2 internal prototype to avoid an error. */
12232 /* We use char because int might match the return type of a gcc2
12233 builtin and then its argument prototype would still apply. */
12234 char gss_display_status();
12237 gss_display_status()
12240 if { (eval echo configure:12241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12242 eval "ac_cv_lib_$ac_lib_var=yes"
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12247 eval "ac_cv_lib_$ac_lib_var=no"
12250 LIBS="$ac_save_LIBS"
12253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12254 echo "$ac_t""yes" 1>&6
12255 LIBS="$LIBS -lgssapi_krb5";
12256 cat >> confdefs.h <<\EOF
12257 #define HAVE_GSSAPI 1
12261 echo "$ac_t""no" 1>&6
12265 ##################################################################
12266 # we might need the lber lib on some systems. To avoid link errors
12267 # this test must be before the libldap test
12268 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12269 echo "configure:12270: checking for ber_scanf in -llber" >&5
12270 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12272 echo $ac_n "(cached) $ac_c" 1>&6
12274 ac_save_LIBS="$LIBS"
12275 LIBS="-llber $LIBS"
12276 cat > conftest.$ac_ext <<EOF
12277 #line 12278 "configure"
12278 #include "confdefs.h"
12279 /* Override any gcc2 internal prototype to avoid an error. */
12280 /* We use char because int might match the return type of a gcc2
12281 builtin and then its argument prototype would still apply. */
12288 if { (eval echo configure:12289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12290 eval "ac_cv_lib_$ac_lib_var=yes"
12292 echo "configure: failed program was:" >&5
12293 cat conftest.$ac_ext >&5
12295 eval "ac_cv_lib_$ac_lib_var=no"
12298 LIBS="$ac_save_LIBS"
12301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6
12303 LIBS="$LIBS -llber"
12305 echo "$ac_t""no" 1>&6
12309 ########################################################
12310 # now see if we can find the ldap libs in standard paths
12311 if test x$have_ldap != xyes; then
12312 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12313 echo "configure:12314: checking for ldap_domain2hostlist in -lldap" >&5
12314 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12316 echo $ac_n "(cached) $ac_c" 1>&6
12318 ac_save_LIBS="$LIBS"
12319 LIBS="-lldap $LIBS"
12320 cat > conftest.$ac_ext <<EOF
12321 #line 12322 "configure"
12322 #include "confdefs.h"
12323 /* Override any gcc2 internal prototype to avoid an error. */
12324 /* We use char because int might match the return type of a gcc2
12325 builtin and then its argument prototype would still apply. */
12326 char ldap_domain2hostlist();
12329 ldap_domain2hostlist()
12332 if { (eval echo configure:12333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12334 eval "ac_cv_lib_$ac_lib_var=yes"
12336 echo "configure: failed program was:" >&5
12337 cat conftest.$ac_ext >&5
12339 eval "ac_cv_lib_$ac_lib_var=no"
12342 LIBS="$ac_save_LIBS"
12345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12346 echo "$ac_t""yes" 1>&6
12347 LIBS="$LIBS -lldap";
12348 cat >> confdefs.h <<\EOF
12349 #define HAVE_LDAP 1
12353 echo "$ac_t""no" 1>&6
12357 ########################################################
12358 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12359 # Check found in pam_ldap 145.
12360 for ac_func in ldap_set_rebind_proc
12362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12363 echo "configure:12364: checking for $ac_func" >&5
12364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12365 echo $ac_n "(cached) $ac_c" 1>&6
12367 cat > conftest.$ac_ext <<EOF
12368 #line 12369 "configure"
12369 #include "confdefs.h"
12370 /* System header to define __stub macros and hopefully few prototypes,
12371 which can conflict with char $ac_func(); below. */
12372 #include <assert.h>
12373 /* Override any gcc2 internal prototype to avoid an error. */
12374 /* We use char because int might match the return type of a gcc2
12375 builtin and then its argument prototype would still apply. */
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12391 if { (eval echo configure:12392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12393 eval "ac_cv_func_$ac_func=yes"
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12398 eval "ac_cv_func_$ac_func=no"
12403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12404 echo "$ac_t""yes" 1>&6
12405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12406 cat >> confdefs.h <<EOF
12407 #define $ac_tr_func 1
12411 echo "$ac_t""no" 1>&6
12415 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12416 echo "configure:12417: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12417 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12428 ldap_set_rebind_proc(0, 0, 0);
12431 if { (eval echo configure:12432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12433 pam_ldap_cv_ldap_set_rebind_proc=3
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12438 pam_ldap_cv_ldap_set_rebind_proc=2
12443 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12444 cat >> confdefs.h <<EOF
12445 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12450 #################################################
12451 # check for automount support
12452 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12453 echo "configure:12454: checking whether to use AUTOMOUNT" >&5
12454 # Check whether --with-automount or --without-automount was given.
12455 if test "${with_automount+set}" = set; then
12456 withval="$with_automount"
12459 echo "$ac_t""yes" 1>&6
12460 cat >> confdefs.h <<\EOF
12461 #define WITH_AUTOMOUNT 1
12466 echo "$ac_t""no" 1>&6
12470 echo "$ac_t""no" 1>&6
12475 #################################################
12476 # check for smbmount support
12477 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12478 echo "configure:12479: checking whether to use SMBMOUNT" >&5
12479 # Check whether --with-smbmount or --without-smbmount was given.
12480 if test "${with_smbmount+set}" = set; then
12481 withval="$with_smbmount"
12486 echo "$ac_t""yes" 1>&6
12487 cat >> confdefs.h <<\EOF
12488 #define WITH_SMBMOUNT 1
12491 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12494 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12499 echo "$ac_t""no" 1>&6
12504 echo "$ac_t""no" 1>&6
12511 #################################################
12512 # check for a PAM clear-text auth, accounts, password and session support
12513 with_pam_for_crypt=no
12514 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12515 echo "configure:12516: checking whether to use PAM" >&5
12516 # Check whether --with-pam or --without-pam was given.
12517 if test "${with_pam+set}" = set; then
12518 withval="$with_pam"
12521 echo "$ac_t""yes" 1>&6
12522 cat >> confdefs.h <<\EOF
12527 with_pam_for_crypt=yes
12530 echo "$ac_t""no" 1>&6
12534 echo "$ac_t""no" 1>&6
12539 # we can't build a pam module if we don't have pam.
12540 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12541 echo "configure:12542: checking for pam_get_data in -lpam" >&5
12542 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12544 echo $ac_n "(cached) $ac_c" 1>&6
12546 ac_save_LIBS="$LIBS"
12548 cat > conftest.$ac_ext <<EOF
12549 #line 12550 "configure"
12550 #include "confdefs.h"
12551 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554 char pam_get_data();
12560 if { (eval echo configure:12561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12562 eval "ac_cv_lib_$ac_lib_var=yes"
12564 echo "configure: failed program was:" >&5
12565 cat conftest.$ac_ext >&5
12567 eval "ac_cv_lib_$ac_lib_var=no"
12570 LIBS="$ac_save_LIBS"
12573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12574 echo "$ac_t""yes" 1>&6
12575 cat >> confdefs.h <<\EOF
12576 #define HAVE_LIBPAM 1
12580 echo "$ac_t""no" 1>&6
12584 #################################################
12585 # check for pam_smbpass support
12586 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12587 echo "configure:12588: checking whether to use pam_smbpass" >&5
12588 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12589 if test "${with_pam_smbpass+set}" = set; then
12590 withval="$with_pam_smbpass"
12593 echo "$ac_t""yes" 1>&6
12595 # Conditions under which pam_smbpass should not be built.
12597 if test x$PICFLAG = x; then
12598 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12600 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12601 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12604 PAM_MOD="bin/pam_smbpass.so"
12608 echo "$ac_t""no" 1>&6
12612 echo "$ac_t""no" 1>&6
12618 ###############################################
12619 # test for where we get crypt() from, but only
12621 if test $with_pam_for_crypt = no; then
12622 for ac_func in crypt
12624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12625 echo "configure:12626: checking for $ac_func" >&5
12626 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12627 echo $ac_n "(cached) $ac_c" 1>&6
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 /* System header to define __stub macros and hopefully few prototypes,
12633 which can conflict with char $ac_func(); below. */
12634 #include <assert.h>
12635 /* Override any gcc2 internal prototype to avoid an error. */
12636 /* We use char because int might match the return type of a gcc2
12637 builtin and then its argument prototype would still apply. */
12642 /* The GNU C library defines this for functions which it implements
12643 to always fail with ENOSYS. Some functions are actually named
12644 something starting with __ and the normal name is an alias. */
12645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12655 eval "ac_cv_func_$ac_func=yes"
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 eval "ac_cv_func_$ac_func=no"
12665 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12666 echo "$ac_t""yes" 1>&6
12667 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12668 cat >> confdefs.h <<EOF
12669 #define $ac_tr_func 1
12673 echo "$ac_t""no" 1>&6
12677 if test x"$ac_cv_func_crypt" = x"no"; then
12678 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12679 echo "configure:12680: checking for crypt in -lcrypt" >&5
12680 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12682 echo $ac_n "(cached) $ac_c" 1>&6
12684 ac_save_LIBS="$LIBS"
12685 LIBS="-lcrypt $LIBS"
12686 cat > conftest.$ac_ext <<EOF
12687 #line 12688 "configure"
12688 #include "confdefs.h"
12689 /* Override any gcc2 internal prototype to avoid an error. */
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12698 if { (eval echo configure:12699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12700 eval "ac_cv_lib_$ac_lib_var=yes"
12702 echo "configure: failed program was:" >&5
12703 cat conftest.$ac_ext >&5
12705 eval "ac_cv_lib_$ac_lib_var=no"
12708 LIBS="$ac_save_LIBS"
12711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12712 echo "$ac_t""yes" 1>&6
12713 LIBS="$LIBS -lcrypt";
12714 cat >> confdefs.h <<\EOF
12715 #define HAVE_CRYPT 1
12719 echo "$ac_t""no" 1>&6
12726 ## moved after the check for -lcrypt in order to
12727 ## ensure that the necessary libraries are included
12728 ## check checking for truncated salt. Wrapped by the
12729 ## $with_pam_for_crypt variable as above --jerry
12731 if test $with_pam_for_crypt = no; then
12732 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12733 echo "configure:12734: checking for a crypt that needs truncated salt" >&5
12734 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12735 echo $ac_n "(cached) $ac_c" 1>&6
12738 if test "$cross_compiling" = yes; then
12739 samba_cv_HAVE_TRUNCATED_SALT=cross
12741 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 #include "${srcdir-.}/tests/crypttest.c"
12746 if { (eval echo configure:12747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12748 samba_cv_HAVE_TRUNCATED_SALT=no
12750 echo "configure: failed program was:" >&5
12751 cat conftest.$ac_ext >&5
12753 samba_cv_HAVE_TRUNCATED_SALT=yes
12760 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12761 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12762 cat >> confdefs.h <<\EOF
12763 #define HAVE_TRUNCATED_SALT 1
12771 ########################################################################################
12773 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12775 ########################################################################################
12777 #################################################
12778 # check for a TDB password database
12779 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12780 echo "configure:12781: checking whether to use TDB SAM database" >&5
12781 # Check whether --with-tdbsam or --without-tdbsam was given.
12782 if test "${with_tdbsam+set}" = set; then
12783 withval="$with_tdbsam"
12786 echo "$ac_t""yes" 1>&6
12787 cat >> confdefs.h <<\EOF
12788 #define WITH_TDB_SAM 1
12793 echo "$ac_t""no" 1>&6
12797 echo "$ac_t""no" 1>&6
12802 #################################################
12803 # check for a NISPLUS password database
12804 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12805 echo "configure:12806: checking whether to use NISPLUS SAM database" >&5
12806 # Check whether --with-nisplussam or --without-nisplussam was given.
12807 if test "${with_nisplussam+set}" = set; then
12808 withval="$with_nisplussam"
12811 echo "$ac_t""yes" 1>&6
12812 cat >> confdefs.h <<\EOF
12813 #define WITH_NISPLUS_SAM 1
12818 echo "$ac_t""no" 1>&6
12822 echo "$ac_t""no" 1>&6
12827 ########################################################################################
12829 ## END OF TESTS FOR SAM BACKENDS.
12831 ########################################################################################
12833 #################################################
12834 # check for a NISPLUS_HOME support
12835 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12836 echo "configure:12837: checking whether to use NISPLUS_HOME" >&5
12837 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12838 if test "${with_nisplus_home+set}" = set; then
12839 withval="$with_nisplus_home"
12842 echo "$ac_t""yes" 1>&6
12843 cat >> confdefs.h <<\EOF
12844 #define WITH_NISPLUS_HOME 1
12849 echo "$ac_t""no" 1>&6
12853 echo "$ac_t""no" 1>&6
12858 #################################################
12859 # check for syslog logging
12860 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12861 echo "configure:12862: checking whether to use syslog logging" >&5
12862 # Check whether --with-syslog or --without-syslog was given.
12863 if test "${with_syslog+set}" = set; then
12864 withval="$with_syslog"
12867 echo "$ac_t""yes" 1>&6
12868 cat >> confdefs.h <<\EOF
12869 #define WITH_SYSLOG 1
12874 echo "$ac_t""no" 1>&6
12878 echo "$ac_t""no" 1>&6
12883 #################################################
12884 # check for a shared memory profiling support
12885 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12886 echo "configure:12887: checking whether to use profiling" >&5
12887 # Check whether --with-profiling-data or --without-profiling-data was given.
12888 if test "${with_profiling_data+set}" = set; then
12889 withval="$with_profiling_data"
12892 echo "$ac_t""yes" 1>&6
12893 cat >> confdefs.h <<\EOF
12894 #define WITH_PROFILE 1
12899 echo "$ac_t""no" 1>&6
12903 echo "$ac_t""no" 1>&6
12909 #################################################
12910 # check for experimental disk-quotas support
12911 QUOTAOBJS=smbd/noquotas.o
12913 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12914 echo "configure:12915: checking whether to support disk-quotas" >&5
12915 # Check whether --with-quotas or --without-quotas was given.
12916 if test "${with_quotas+set}" = set; then
12917 withval="$with_quotas"
12920 echo "$ac_t""yes" 1>&6
12923 # Check for kernel 2.4.x quota braindamage...
12924 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12925 echo "configure:12926: checking for linux 2.4.x quota braindamage.." >&5
12926 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12927 echo $ac_n "(cached) $ac_c" 1>&6
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12934 #include <sys/types.h>
12935 #include <asm/types.h>
12936 #include <linux/quota.h>
12937 #include <mntent.h>
12938 #include <linux/unistd.h>
12940 struct mem_dqblk D;
12943 if { (eval echo configure:12944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12945 samba_cv_linux_2_4_quota_braindamage=yes
12947 echo "configure: failed program was:" >&5
12948 cat conftest.$ac_ext >&5
12950 samba_cv_linux_2_4_quota_braindamage=no
12955 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12956 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12957 cat >> confdefs.h <<\EOF
12958 #define LINUX_QUOTAS_2 1
12962 cat >> confdefs.h <<\EOF
12963 #define LINUX_QUOTAS_1 1
12971 QUOTAOBJS=smbd/quotas.o
12972 cat >> confdefs.h <<\EOF
12973 #define WITH_QUOTAS 1
12978 echo "$ac_t""no" 1>&6
12982 echo "$ac_t""no" 1>&6
12988 #################################################
12989 # check for experimental utmp accounting
12991 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12992 echo "configure:12993: checking whether to support utmp accounting" >&5
12993 # Check whether --with-utmp or --without-utmp was given.
12994 if test "${with_utmp+set}" = set; then
12995 withval="$with_utmp"
12998 echo "$ac_t""yes" 1>&6
12999 cat >> confdefs.h <<\EOF
13000 #define WITH_UTMP 1
13005 echo "$ac_t""no" 1>&6
13009 echo "$ac_t""no" 1>&6
13014 #################################################
13015 # choose native language(s) of man pages
13016 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13017 echo "configure:13018: checking chosen man pages' language(s)" >&5
13018 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13019 if test "${with_manpages_langs+set}" = set; then
13020 withval="$with_manpages_langs"
13023 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13027 manlangs="$withval"
13031 echo "$ac_t""$manlangs" 1>&6
13032 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13036 echo "$ac_t""$manlangs" 1>&6
13042 #################################################
13043 # should we build libsmbclient?
13045 LIBSMBCLIENT_SHARED=
13047 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13048 echo "configure:13049: checking whether to build the libsmbclient shared library" >&5
13049 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13050 if test "${with_libsmbclient+set}" = set; then
13051 withval="$with_libsmbclient"
13054 echo "$ac_t""no" 1>&6
13057 if test $BLDSHARED = true; then
13058 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13059 LIBSMBCLIENT=libsmbclient
13060 echo "$ac_t""yes" 1>&6
13062 echo "$ac_t""no shared library support" 1>&6
13067 echo "$ac_t""yes" 1>&6
13073 #################################################
13074 # these tests are taken from the GNU fileutils package
13075 echo "checking how to get filesystem space usage" 1>&6
13076 echo "configure:13077: checking how to get filesystem space usage" >&5
13079 # Test for statvfs64.
13080 if test $space = no; then
13082 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13083 echo "configure:13084: checking statvfs64 function (SVR4)" >&5
13084 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13085 echo $ac_n "(cached) $ac_c" 1>&6
13087 if test "$cross_compiling" = yes; then
13088 fu_cv_sys_stat_statvfs64=cross
13090 cat > conftest.$ac_ext <<EOF
13091 #line 13092 "configure"
13092 #include "confdefs.h"
13094 #if defined(HAVE_UNISTD_H)
13095 #include <unistd.h>
13097 #include <sys/types.h>
13098 #include <sys/statvfs.h>
13101 struct statvfs64 fsd;
13102 exit (statvfs64 (".", &fsd));
13105 if { (eval echo configure:13106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13107 fu_cv_sys_stat_statvfs64=yes
13109 echo "configure: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13112 fu_cv_sys_stat_statvfs64=no
13119 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13120 if test $fu_cv_sys_stat_statvfs64 = yes; then
13122 cat >> confdefs.h <<\EOF
13123 #define STAT_STATVFS64 1
13129 # Perform only the link test since it seems there are no variants of the
13130 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13131 # because that got a false positive on SCO OSR5. Adding the declaration
13132 # of a `struct statvfs' causes this test to fail (as it should) on such
13133 # systems. That system is reported to work fine with STAT_STATFS4 which
13134 # is what it gets when this test fails.
13135 if test $space = no; then
13137 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13138 echo "configure:13139: checking statvfs function (SVR4)" >&5
13139 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13142 cat > conftest.$ac_ext <<EOF
13143 #line 13144 "configure"
13144 #include "confdefs.h"
13145 #include <sys/types.h>
13146 #include <sys/statvfs.h>
13148 struct statvfs fsd; statvfs (0, &fsd);
13151 if { (eval echo configure:13152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13153 fu_cv_sys_stat_statvfs=yes
13155 echo "configure: failed program was:" >&5
13156 cat conftest.$ac_ext >&5
13158 fu_cv_sys_stat_statvfs=no
13163 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13164 if test $fu_cv_sys_stat_statvfs = yes; then
13166 cat >> confdefs.h <<\EOF
13167 #define STAT_STATVFS 1
13173 if test $space = no; then
13174 # DEC Alpha running OSF/1
13175 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13176 echo "configure:13177: checking for 3-argument statfs function (DEC OSF/1)" >&5
13177 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13178 echo $ac_n "(cached) $ac_c" 1>&6
13180 if test "$cross_compiling" = yes; then
13181 fu_cv_sys_stat_statfs3_osf1=no
13183 cat > conftest.$ac_ext <<EOF
13184 #line 13185 "configure"
13185 #include "confdefs.h"
13187 #include <sys/param.h>
13188 #include <sys/types.h>
13189 #include <sys/mount.h>
13194 exit (statfs (".", &fsd, sizeof (struct statfs)));
13197 if { (eval echo configure:13198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13199 fu_cv_sys_stat_statfs3_osf1=yes
13201 echo "configure: failed program was:" >&5
13202 cat conftest.$ac_ext >&5
13204 fu_cv_sys_stat_statfs3_osf1=no
13211 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13212 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13214 cat >> confdefs.h <<\EOF
13215 #define STAT_STATFS3_OSF1 1
13221 if test $space = no; then
13223 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13224 echo "configure:13225: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13225 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13226 echo $ac_n "(cached) $ac_c" 1>&6
13228 if test "$cross_compiling" = yes; then
13229 fu_cv_sys_stat_statfs2_bsize=no
13231 cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13235 #ifdef HAVE_SYS_PARAM_H
13236 #include <sys/param.h>
13238 #ifdef HAVE_SYS_MOUNT_H
13239 #include <sys/mount.h>
13241 #ifdef HAVE_SYS_VFS_H
13242 #include <sys/vfs.h>
13248 exit (statfs (".", &fsd));
13251 if { (eval echo configure:13252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13253 fu_cv_sys_stat_statfs2_bsize=yes
13255 echo "configure: failed program was:" >&5
13256 cat conftest.$ac_ext >&5
13258 fu_cv_sys_stat_statfs2_bsize=no
13265 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13266 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13268 cat >> confdefs.h <<\EOF
13269 #define STAT_STATFS2_BSIZE 1
13275 if test $space = no; then
13277 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13278 echo "configure:13279: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13279 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13280 echo $ac_n "(cached) $ac_c" 1>&6
13282 if test "$cross_compiling" = yes; then
13283 fu_cv_sys_stat_statfs4=no
13285 cat > conftest.$ac_ext <<EOF
13286 #line 13287 "configure"
13287 #include "confdefs.h"
13288 #include <sys/types.h>
13289 #include <sys/statfs.h>
13293 exit (statfs (".", &fsd, sizeof fsd, 0));
13296 if { (eval echo configure:13297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13298 fu_cv_sys_stat_statfs4=yes
13300 echo "configure: failed program was:" >&5
13301 cat conftest.$ac_ext >&5
13303 fu_cv_sys_stat_statfs4=no
13310 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13311 if test $fu_cv_sys_stat_statfs4 = yes; then
13313 cat >> confdefs.h <<\EOF
13314 #define STAT_STATFS4 1
13320 if test $space = no; then
13321 # 4.4BSD and NetBSD
13322 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13323 echo "configure:13324: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13324 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13325 echo $ac_n "(cached) $ac_c" 1>&6
13327 if test "$cross_compiling" = yes; then
13328 fu_cv_sys_stat_statfs2_fsize=no
13330 cat > conftest.$ac_ext <<EOF
13331 #line 13332 "configure"
13332 #include "confdefs.h"
13333 #include <sys/types.h>
13334 #ifdef HAVE_SYS_PARAM_H
13335 #include <sys/param.h>
13337 #ifdef HAVE_SYS_MOUNT_H
13338 #include <sys/mount.h>
13344 exit (statfs (".", &fsd));
13347 if { (eval echo configure:13348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13349 fu_cv_sys_stat_statfs2_fsize=yes
13351 echo "configure: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13354 fu_cv_sys_stat_statfs2_fsize=no
13361 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13362 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13364 cat >> confdefs.h <<\EOF
13365 #define STAT_STATFS2_FSIZE 1
13371 if test $space = no; then
13373 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13374 echo "configure:13375: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13375 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13376 echo $ac_n "(cached) $ac_c" 1>&6
13378 if test "$cross_compiling" = yes; then
13379 fu_cv_sys_stat_fs_data=no
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 #include <sys/types.h>
13385 #ifdef HAVE_SYS_PARAM_H
13386 #include <sys/param.h>
13388 #ifdef HAVE_SYS_MOUNT_H
13389 #include <sys/mount.h>
13391 #ifdef HAVE_SYS_FS_TYPES_H
13392 #include <sys/fs_types.h>
13396 struct fs_data fsd;
13397 /* Ultrix's statfs returns 1 for success,
13398 0 for not mounted, -1 for failure. */
13399 exit (statfs (".", &fsd) != 1);
13402 if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13404 fu_cv_sys_stat_fs_data=yes
13406 echo "configure: failed program was:" >&5
13407 cat conftest.$ac_ext >&5
13409 fu_cv_sys_stat_fs_data=no
13416 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13417 if test $fu_cv_sys_stat_fs_data = yes; then
13419 cat >> confdefs.h <<\EOF
13420 #define STAT_STATFS2_FS_DATA 1
13427 # As a gating factor for large file support, in order to
13428 # use <4GB files we must have the following minimal support
13430 # long long, and a 64 bit off_t or off64_t.
13431 # If we don't have all of these then disable large
13434 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13435 echo "configure:13436: checking if large file support can be enabled" >&5
13436 cat > conftest.$ac_ext <<EOF
13437 #line 13438 "configure"
13438 #include "confdefs.h"
13440 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13441 #include <sys/types.h>
13450 if { (eval echo configure:13451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13452 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13454 echo "configure: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13457 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13460 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13461 cat >> confdefs.h <<\EOF
13462 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13466 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13468 # Check whether --with-spinlocks or --without-spinlocks was given.
13469 if test "${with_spinlocks+set}" = set; then
13470 withval="$with_spinlocks"
13474 if test "x$with_spinlocks" = "xyes"; then
13475 cat >> confdefs.h <<\EOF
13476 #define USE_SPINLOCKS 1
13480 case "$host_cpu" in
13482 cat >> confdefs.h <<\EOF
13483 #define SPARC_SPINLOCKS 1
13488 i386|i486|i586|i686)
13489 cat >> confdefs.h <<\EOF
13490 #define INTEL_SPINLOCKS 1
13496 cat >> confdefs.h <<\EOF
13497 #define MIPS_SPINLOCKS 1
13503 cat >> confdefs.h <<\EOF
13504 #define POWERPC_SPINLOCKS 1
13511 #################################################
13512 # check for ACL support
13514 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13515 echo "configure:13516: checking whether to support ACLs" >&5
13516 # Check whether --with-acl-support or --without-acl-support was given.
13517 if test "${with_acl_support+set}" = set; then
13518 withval="$with_acl_support"
13524 echo "$ac_t""Using UnixWare ACLs" 1>&6
13525 cat >> confdefs.h <<\EOF
13526 #define HAVE_UNIXWARE_ACLS 1
13531 echo "$ac_t""Using solaris ACLs" 1>&6
13532 cat >> confdefs.h <<\EOF
13533 #define HAVE_SOLARIS_ACLS 1
13538 echo "$ac_t""Using HPUX ACLs" 1>&6
13539 cat >> confdefs.h <<\EOF
13540 #define HAVE_HPUX_ACLS 1
13545 echo "$ac_t""Using IRIX ACLs" 1>&6
13546 cat >> confdefs.h <<\EOF
13547 #define HAVE_IRIX_ACLS 1
13552 echo "$ac_t""Using AIX ACLs" 1>&6
13553 cat >> confdefs.h <<\EOF
13554 #define HAVE_AIX_ACLS 1
13559 echo "$ac_t""Using Tru64 ACLs" 1>&6
13560 cat >> confdefs.h <<\EOF
13561 #define HAVE_TRU64_ACLS 1
13564 LIBS="$LIBS -lpacl"
13567 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13568 echo "configure:13569: checking for acl_get_file in -lacl" >&5
13569 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13571 echo $ac_n "(cached) $ac_c" 1>&6
13573 ac_save_LIBS="$LIBS"
13575 cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13578 /* Override any gcc2 internal prototype to avoid an error. */
13579 /* We use char because int might match the return type of a gcc2
13580 builtin and then its argument prototype would still apply. */
13581 char acl_get_file();
13587 if { (eval echo configure:13588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13589 eval "ac_cv_lib_$ac_lib_var=yes"
13591 echo "configure: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13594 eval "ac_cv_lib_$ac_lib_var=no"
13597 LIBS="$ac_save_LIBS"
13600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13601 echo "$ac_t""yes" 1>&6
13602 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13604 cat >> confdefs.h <<EOF
13605 #define $ac_tr_lib 1
13611 echo "$ac_t""no" 1>&6
13614 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13615 echo "configure:13616: checking for ACL support" >&5
13616 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13617 echo $ac_n "(cached) $ac_c" 1>&6
13620 cat > conftest.$ac_ext <<EOF
13621 #line 13622 "configure"
13622 #include "confdefs.h"
13623 #include <sys/types.h>
13624 #include <sys/acl.h>
13626 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13629 if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13631 samba_cv_HAVE_POSIX_ACLS=yes
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13636 samba_cv_HAVE_POSIX_ACLS=no
13641 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13642 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13643 echo "$ac_t""Using posix ACLs" 1>&6
13644 cat >> confdefs.h <<\EOF
13645 #define HAVE_POSIX_ACLS 1
13648 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13649 echo "configure:13650: checking for acl_get_perm_np" >&5
13650 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13651 echo $ac_n "(cached) $ac_c" 1>&6
13654 cat > conftest.$ac_ext <<EOF
13655 #line 13656 "configure"
13656 #include "confdefs.h"
13657 #include <sys/types.h>
13658 #include <sys/acl.h>
13660 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13663 if { (eval echo configure:13664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13665 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13667 echo "configure: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13670 samba_cv_HAVE_ACL_GET_PERM_NP=no
13675 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13676 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13677 cat >> confdefs.h <<\EOF
13678 #define HAVE_ACL_GET_PERM_NP 1
13687 echo "$ac_t""no" 1>&6
13688 cat >> confdefs.h <<\EOF
13689 #define HAVE_NO_ACLS 1
13695 cat >> confdefs.h <<\EOF
13696 #define HAVE_NO_ACLS 1
13699 echo "$ac_t""no" 1>&6
13704 #################################################
13705 # Check whether winbind is supported on this platform. If so we need to
13706 # build and install client programs (WINBIND_TARGETS), sbin programs
13707 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13709 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13710 echo "configure:13711: checking whether to build winbind" >&5
13712 # Initially, the value of $host_os decides whether winbind is supported
13720 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13721 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13725 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13729 winbind_no_reason=", unsupported on $host_os"
13733 # Check the setting of --with-winbindd
13735 # Check whether --with-winbind or --without-winbind was given.
13736 if test "${with_winbind+set}" = set; then
13737 withval="$with_winbind"
13751 # We need unix domain sockets for winbind
13753 if test x"$HAVE_WINBIND" = x"yes"; then
13754 if test x"$samba_cv_unixsocket" = x"no"; then
13755 winbind_no_reason=", no unix domain socket support on $host_os"
13760 # Display test results
13763 WINBIND_STARGETS=""
13764 WINBIND_LTARGETS=""
13765 WINBIND_PAM_PROGS=""
13767 if test x"$HAVE_WINBIND" = x"yes"; then
13768 echo "$ac_t""yes" 1>&6
13770 WINBIND_TARGETS="bin/wbinfo"
13771 WINBIND_STARGETS="bin/winbindd"
13772 if test x"$BLDSHARED" = x"true"; then
13773 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13774 if test x"$with_pam" = x"yes"; then
13775 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13779 echo "$ac_t""no$winbind_no_reason" 1>&6
13783 # Substitution time!
13792 # Solaris has some extra fields in struct passwd that need to be
13793 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13794 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13797 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13798 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13799 # [#include <pwd.h>])
13801 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13802 echo "configure:13803: checking whether struct passwd has pw_comment" >&5
13803 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13804 echo $ac_n "(cached) $ac_c" 1>&6
13807 cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13812 struct passwd p; p.pw_comment;
13815 if { (eval echo configure:13816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13817 samba_cv_passwd_pw_comment=yes
13819 echo "configure: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13822 samba_cv_passwd_pw_comment=no
13827 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13828 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13829 cat >> confdefs.h <<\EOF
13830 #define HAVE_PASSWD_PW_COMMENT 1
13835 #AC_CHECK_MEMBER(struct passwd.pw_age,
13836 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13837 # [#include <pwd.h>])
13839 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13840 echo "configure:13841: checking whether struct passwd has pw_age" >&5
13841 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13842 echo $ac_n "(cached) $ac_c" 1>&6
13845 cat > conftest.$ac_ext <<EOF
13846 #line 13847 "configure"
13847 #include "confdefs.h"
13850 struct passwd p; p.pw_age;
13853 if { (eval echo configure:13854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13855 samba_cv_passwd_pw_age=yes
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13860 samba_cv_passwd_pw_age=no
13865 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13866 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13867 cat >> confdefs.h <<\EOF
13868 #define HAVE_PASSWD_PW_AGE 1
13873 #################################################
13874 # Check to see if we should use the included popt
13876 # Check whether --with-included-popt or --without-included-popt was given.
13877 if test "${with_included_popt+set}" = set; then
13878 withval="$with_included_popt"
13890 if test x"$INCLUDED_POPT" != x"yes"; then
13891 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13892 echo "configure:13893: checking for poptGetContext in -lpopt" >&5
13893 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13895 echo $ac_n "(cached) $ac_c" 1>&6
13897 ac_save_LIBS="$LIBS"
13898 LIBS="-lpopt $LIBS"
13899 cat > conftest.$ac_ext <<EOF
13900 #line 13901 "configure"
13901 #include "confdefs.h"
13902 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905 char poptGetContext();
13911 if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13913 eval "ac_cv_lib_$ac_lib_var=yes"
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13918 eval "ac_cv_lib_$ac_lib_var=no"
13921 LIBS="$ac_save_LIBS"
13924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13925 echo "$ac_t""yes" 1>&6
13928 echo "$ac_t""no" 1>&6
13934 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13935 echo "configure:13936: checking whether to use included popt" >&5
13936 if test x"$INCLUDED_POPT" = x"yes"; then
13937 echo "$ac_t""$srcdir/popt" 1>&6
13938 BUILD_POPT='$(POPT_OBJS)'
13939 FLAGS1="-I$srcdir/popt"
13941 echo "$ac_t""no" 1>&6
13942 LIBS="$LIBS -lpopt"
13947 #################################################
13948 # do extra things if we are running insure
13950 if test "${ac_cv_prog_CC}" = "insure"; then
13951 CPPFLAGS="$CPPFLAGS -D__INSURE__"
13954 #################################################
13955 # final configure stuff
13957 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13958 echo "configure:13959: checking configure summary" >&5
13959 if test "$cross_compiling" = yes; then
13960 echo "configure: warning: cannot run when cross-compiling" 1>&2
13962 cat > conftest.$ac_ext <<EOF
13963 #line 13964 "configure"
13964 #include "confdefs.h"
13965 #include "${srcdir-.}/tests/summary.c"
13967 if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13969 echo "$ac_t""yes" 1>&6
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13974 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13984 cat > confcache <<\EOF
13985 # This file is a shell script that caches the results of configure
13986 # tests run on this system so they can be shared between configure
13987 # scripts and configure runs. It is not useful on other systems.
13988 # If it contains results you don't want to keep, you may remove or edit it.
13990 # By default, configure uses ./config.cache as the cache file,
13991 # creating it if it does not exist already. You can give configure
13992 # the --cache-file=FILE option to use a different cache file; that is
13993 # what configure does when it calls configure scripts in
13994 # subdirectories, so they share the cache.
13995 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13996 # config.status only pays attention to the cache file if you give it the
13997 # --recheck option to rerun configure.
14000 # The following way of writing the cache mishandles newlines in values,
14001 # but we know of no workaround that is simple, portable, and efficient.
14002 # So, don't put newlines in cache variables' values.
14003 # Ultrix sh set writes to stderr and can't be redirected directly,
14004 # and sets the high bit in the cache file unless we assign to the vars.
14006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14008 # `set' does not quote correctly, so add quotes (double-quote substitution
14009 # turns \\\\ into \\, and sed turns \\ into \).
14011 -e "s/'/'\\\\''/g" \
14012 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14015 # `set' quotes correctly as required by POSIX, so do not add quotes.
14016 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14019 if cmp -s $cache_file confcache; then
14022 if test -w $cache_file; then
14023 echo "updating cache $cache_file"
14024 cat confcache > $cache_file
14026 echo "not updating unwritable cache $cache_file"
14031 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14034 # Let make expand exec_prefix.
14035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14037 # Any assignment to VPATH causes Sun make to only execute
14038 # the first set of double-colon rules, so remove it if not needed.
14039 # If there is a colon in the path, we need to keep it.
14040 if test "x$srcdir" = x.; then
14041 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14044 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14046 DEFS=-DHAVE_CONFIG_H
14048 # Without the "./", some shells look in PATH for config.status.
14049 : ${CONFIG_STATUS=./config.status}
14051 echo creating $CONFIG_STATUS
14052 rm -f $CONFIG_STATUS
14053 cat > $CONFIG_STATUS <<EOF
14055 # Generated automatically by configure.
14056 # Run this file to recreate the current configuration.
14057 # This directory was configured as follows,
14058 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14060 # $0 $ac_configure_args
14062 # Compiler output produced by configure, useful for debugging
14063 # configure, is in ./config.log if it exists.
14065 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14068 case "\$ac_option" in
14069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14070 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14071 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14072 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14073 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14075 -help | --help | --hel | --he | --h)
14076 echo "\$ac_cs_usage"; exit 0 ;;
14077 *) echo "\$ac_cs_usage"; exit 1 ;;
14081 ac_given_srcdir=$srcdir
14082 ac_given_INSTALL="$INSTALL"
14084 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14086 cat >> $CONFIG_STATUS <<EOF
14088 # Protect against being on the right side of a sed subst in config.status.
14089 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14090 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14094 s%@CFLAGS@%$CFLAGS%g
14095 s%@CPPFLAGS@%$CPPFLAGS%g
14096 s%@CXXFLAGS@%$CXXFLAGS%g
14097 s%@FFLAGS@%$FFLAGS%g
14099 s%@LDFLAGS@%$LDFLAGS%g
14101 s%@exec_prefix@%$exec_prefix%g
14102 s%@prefix@%$prefix%g
14103 s%@program_transform_name@%$program_transform_name%g
14104 s%@bindir@%$bindir%g
14105 s%@sbindir@%$sbindir%g
14106 s%@libexecdir@%$libexecdir%g
14107 s%@datadir@%$datadir%g
14108 s%@sysconfdir@%$sysconfdir%g
14109 s%@sharedstatedir@%$sharedstatedir%g
14110 s%@localstatedir@%$localstatedir%g
14111 s%@libdir@%$libdir%g
14112 s%@includedir@%$includedir%g
14113 s%@oldincludedir@%$oldincludedir%g
14114 s%@infodir@%$infodir%g
14115 s%@mandir@%$mandir%g
14116 s%@configdir@%$configdir%g
14117 s%@lockdir@%$lockdir%g
14118 s%@piddir@%$piddir%g
14119 s%@logfilebase@%$logfilebase%g
14120 s%@privatedir@%$privatedir%g
14121 s%@swatdir@%$swatdir%g
14122 s%@RUNPROG@%$RUNPROG%g
14123 s%@MPROGS@%$MPROGS%g
14124 s%@LDSHFLAGS@%$LDSHFLAGS%g
14125 s%@SONAMEFLAG@%$SONAMEFLAG%g
14127 s%@HOST_OS@%$HOST_OS%g
14128 s%@PAM_MOD@%$PAM_MOD%g
14130 s%@WRAP32@%$WRAP32%g
14131 s%@WRAPPROG@%$WRAPPROG%g
14132 s%@PICFLAG@%$PICFLAG%g
14133 s%@PICSUFFIX@%$PICSUFFIX%g
14134 s%@POBAD_CC@%$POBAD_CC%g
14135 s%@SHLIBEXT@%$SHLIBEXT%g
14136 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14137 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14139 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14140 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14141 s%@INSTALL_DATA@%$INSTALL_DATA%g
14143 s%@BROKEN_CC@%$BROKEN_CC%g
14145 s%@host_alias@%$host_alias%g
14146 s%@host_cpu@%$host_cpu%g
14147 s%@host_vendor@%$host_vendor%g
14148 s%@host_os@%$host_os%g
14149 s%@target@%$target%g
14150 s%@target_alias@%$target_alias%g
14151 s%@target_cpu@%$target_cpu%g
14152 s%@target_vendor@%$target_vendor%g
14153 s%@target_os@%$target_os%g
14155 s%@build_alias@%$build_alias%g
14156 s%@build_cpu@%$build_cpu%g
14157 s%@build_vendor@%$build_vendor%g
14158 s%@build_os@%$build_os%g
14160 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14161 s%@LIBOBJS@%$LIBOBJS%g
14162 s%@TERMLIBS@%$TERMLIBS%g
14163 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14165 s%@DYNEXP@%$DYNEXP%g
14166 s%@QUOTAOBJS@%$QUOTAOBJS%g
14167 s%@manlangs@%$manlangs%g
14168 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14169 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14170 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14171 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14172 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14173 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14174 s%@BUILD_POPT@%$BUILD_POPT%g
14175 s%@FLAGS1@%$FLAGS1%g
14176 s%@builddir@%$builddir%g
14181 cat >> $CONFIG_STATUS <<\EOF
14183 # Split the substitutions into bite-sized pieces for seds with
14184 # small command number limits, like on Digital OSF/1 and HP-UX.
14185 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14186 ac_file=1 # Number of current file.
14187 ac_beg=1 # First line for current file.
14188 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14191 while $ac_more_lines; do
14192 if test $ac_beg -gt 1; then
14193 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14195 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14197 if test ! -s conftest.s$ac_file; then
14198 ac_more_lines=false
14199 rm -f conftest.s$ac_file
14201 if test -z "$ac_sed_cmds"; then
14202 ac_sed_cmds="sed -f conftest.s$ac_file"
14204 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14206 ac_file=`expr $ac_file + 1`
14208 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14211 if test -z "$ac_sed_cmds"; then
14216 cat >> $CONFIG_STATUS <<EOF
14218 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14220 cat >> $CONFIG_STATUS <<\EOF
14221 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14224 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14225 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14226 *) ac_file_in="${ac_file}.in" ;;
14229 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14231 # Remove last slash and all that follows it. Not all systems have dirname.
14232 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14233 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14234 # The file is in a subdirectory.
14235 test ! -d "$ac_dir" && mkdir "$ac_dir"
14236 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14237 # A "../" for each directory in $ac_dir_suffix.
14238 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14240 ac_dir_suffix= ac_dots=
14243 case "$ac_given_srcdir" in
14245 if test -z "$ac_dots"; then top_srcdir=.
14246 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14247 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14248 *) # Relative path.
14249 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14250 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14253 case "$ac_given_INSTALL" in
14254 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14255 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14258 echo creating "$ac_file"
14260 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14262 *Makefile*) ac_comsub="1i\\
14263 # $configure_input" ;;
14267 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14269 s%@configure_input@%$configure_input%g
14270 s%@srcdir@%$srcdir%g
14271 s%@top_srcdir@%$top_srcdir%g
14272 s%@INSTALL@%$INSTALL%g
14273 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14277 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14278 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14280 # ac_d sets the value in "#define NAME VALUE" lines.
14281 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14282 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14285 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14286 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14287 ac_uB='\([ ]\)%\1#\2define\3'
14290 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14291 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14292 ac_eB='$%\1#\2define\3'
14296 if test "${CONFIG_HEADERS+set}" != set; then
14298 cat >> $CONFIG_STATUS <<EOF
14299 CONFIG_HEADERS="include/config.h"
14301 cat >> $CONFIG_STATUS <<\EOF
14303 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14304 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14306 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14307 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14308 *) ac_file_in="${ac_file}.in" ;;
14311 echo creating $ac_file
14313 rm -f conftest.frag conftest.in conftest.out
14314 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14315 cat $ac_file_inputs > conftest.in
14319 # Transform confdefs.h into a sed script conftest.vals that substitutes
14320 # the proper values into config.h.in to produce config.h. And first:
14321 # Protect against being on the right side of a sed subst in config.status.
14322 # Protect against being in an unquoted here document in config.status.
14323 rm -f conftest.vals
14324 cat > conftest.hdr <<\EOF
14327 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14331 sed -n -f conftest.hdr confdefs.h > conftest.vals
14334 # This sed command replaces #undef with comments. This is necessary, for
14335 # example, in the case of _POSIX_SOURCE, which is predefined and required
14336 # on some systems where configure will not decide to define it.
14337 cat >> conftest.vals <<\EOF
14338 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14341 # Break up conftest.vals because some shells have a limit on
14342 # the size of here documents, and old seds have small limits too.
14344 rm -f conftest.tail
14347 ac_lines=`grep -c . conftest.vals`
14348 # grep -c gives empty output for an empty file on some AIX systems.
14349 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14350 # Write a limited-size here document to conftest.frag.
14351 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14352 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14354 sed -f conftest.frag conftest.in > conftest.out
14356 mv conftest.out conftest.in
14357 ' >> $CONFIG_STATUS
14358 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14359 rm -f conftest.vals
14360 mv conftest.tail conftest.vals
14362 rm -f conftest.vals
14364 cat >> $CONFIG_STATUS <<\EOF
14365 rm -f conftest.frag conftest.h
14366 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14367 cat conftest.in >> conftest.h
14369 if cmp -s $ac_file conftest.h 2>/dev/null; then
14370 echo "$ac_file is unchanged"
14373 # Remove last slash and all that follows it. Not all systems have dirname.
14374 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14375 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14376 # The file is in a subdirectory.
14377 test ! -d "$ac_dir" && mkdir "$ac_dir"
14380 mv conftest.h $ac_file
14385 cat >> $CONFIG_STATUS <<EOF
14388 cat >> $CONFIG_STATUS <<\EOF
14392 chmod +x $CONFIG_STATUS
14393 rm -fr confdefs* $ac_clean_files
14394 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14397 #################################################
14398 # Print very concise instructions on building/use
14399 if test "x$enable_dmalloc" = xyes
14401 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14402 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6